8000 Trestle refactor by JamesGallicchio · Pull Request #26 · FormalSAT/trestle · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Trestle refactor #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 18, 2025
Merged

Trestle refactor #26

merged 7 commits into from
Jan 18, 2025

Conversation

JamesGallicchio
Copy link
Collaborator

No description provided.

@@ -75,11 +78,49 @@ lemma mem_vars_of_flip {φ : PropForm ν} {τ : PropAssignment ν} (x : ν) : τ
simp_all only [vars, satisfies_var, Finset.mem_singleton]
by_contra h
exact hτ' (hτ ▸ τ.set_get_of_ne (!τ x) h)
| _ =>
simp_all only
[satisfies_conj, satisfies_disj, satisfies_impl', satisfies_biImpl', vars, Finset.mem_union]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know the simp_all proof is slow, but it is likely more robust to change, and easier to maintain. tradeoff worth considering.

@@ -50,18 +51,22 @@ section subst

variable (f f₁ : ν₁ → PropForm ν₂) (f₂ : ν₂ → PropForm ν₃) (φ φ₁ φ₂ : PropForm ν₁)

-- CC: Unnecessary block of theorems, if the definition is `reducible` anyways?
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless simp has changed recently, you can have definitional equations like this where the LHS is simp-normal (ie you need to add it as a simp lemma). I don't remember how to determine when it is/isn't necessary though

Copy link
Collaborator Author
@JamesGallicchio JamesGallicchio Jan 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i see what you mean

still no clue if the simps are necessary or not.

@JamesGallicchio JamesGallicchio self-assigned this Jan 17, 2025
@JamesGallicchio JamesGallicchio changed the base branch from main to dev January 17, 2025 23:38
@JamesGallicchio JamesGallicchio changed the base branch from dev to main January 17, 2025 23:38
@JamesGallicchio JamesGallicchio merged commit d2591fd into main Jan 18, 2025
0 of 2 checks passed
@JamesGallicchio JamesGallicchio deleted the trestle_refactor branch January 22, 2025 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0