Skip to content

chore(Tactic/Lint/Simp): add local hypotheses to simp context #1214

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jcommelin
Copy link
Member

This PR adds the local hypotheses to the simp context when checking simp-normal form.
That means we effectively test if simp [*] will rewrite the left-hand side to the right-hand side,
instead of just simp (or dsimp in the case of rfl theorems).

This PR adds the local hypotheses to the simp context when checking simp-normal form.
That means we effectively test if `simp [*]` will rewrite the left-hand side to the right-hand side,
instead of just `simp` (or `dsimp` in the case of rfl theorems).
@github-actions github-actions bot added the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Apr 28, 2025
@JovanGerb
Copy link
Contributor

I noticed you removed the use of conditional, which seems reasonable. I think we can then also remove isConditionalHyps.

It is quite likely that a bunch of errors will appear in Mathlib after this. We'll have to wait and see if they are all correct errors.

@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Apr 28, 2025

Mathlib CI status (docs):

leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Apr 29, 2025
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict This PR has merge conflicts with the `main` branch which must be resolved by the author. label Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review This PR is ready for review; the author thinks it is ready to be merged. builds-mathlib merge-conflict This PR has merge conflicts with the `main` branch which must be resolved by the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants