Skip to content
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

refactor: no need for congruence lemmas in simpIf #3841

Closed
wants to merge 4 commits into from

Conversation

nomeata
Copy link
Collaborator

@nomeata nomeata commented Apr 8, 2024

Since #3258 the discharger used by simpIf will not use assumptions brought into scope “later”. Therefore, smart congruence rules like if_congr aren’t actually useful here,
do not even include them in the simp configuration.

(This builds on #3253).

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc April 8, 2024 12:38 Inactive
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Apr 8, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Apr 8, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Apr 8, 2024
@nomeata nomeata changed the title feat: no need for congruence lemmas in simpIf refactor: no need for congruence lemmas in simpIf Apr 8, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label Apr 8, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

leanprover-community-mathlib4-bot commented Apr 8, 2024

Mathlib CI status (docs):

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc April 8, 2024 13:35 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Apr 8, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Apr 8, 2024
@nomeata
Copy link
Collaborator Author

nomeata commented Apr 8, 2024

Of course, as always with changes to such tactics, it breaks stuff in mathlib. Until we have evidence that the current behavior of unexpected simplifications is actually hurting anyone, I’ll let this be.

@nomeata nomeata closed this Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants