Skip to content

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

Closed
jcommelin wants to merge 6 commits intomainfrom
jmc-simpnf-star
Closed

chore(Tactic/Lint/Simp): add local hypotheses to simp context#1214
jcommelin wants to merge 6 commits intomainfrom
jmc-simpnf-star

Conversation

@jcommelin
Copy link
Copy Markdown
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
Copy Markdown
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.

ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Apr 28, 2025
@ghost ghost added the builds-mathlib label Apr 28, 2025
@ghost
Copy link
Copy Markdown

ghost commented Apr 28, 2025

Mathlib CI status (docs):

ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Apr 29, 2025
@ghost ghost added the merge-conflict This PR has merge conflicts with the `main` branch which must be resolved by the author. label Jun 5, 2025
@fgdorais
Copy link
Copy Markdown
Collaborator

Looks like this one got lost in the queue... Could you fix the merge conflicts before I have a look?

@fgdorais fgdorais added awaiting-author Waiting for PR author to address issues and removed awaiting-review This PR is ready for review; the author thinks it is ready to be merged. labels Jul 24, 2025
@JovanGerb
Copy link
Copy Markdown
Contributor

This PR was superseded by #1220, so it can now be closed.

@fgdorais fgdorais closed this Jul 24, 2025
@github-actions github-actions bot removed the awaiting-author Waiting for PR author to address issues label Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants