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

feat: Simp.Config.implicitDefEqProofs #4595

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

leodemoura
Copy link
Member

@leodemoura leodemoura commented Jun 30, 2024

This PR implements Simp.Config.implicitDefEqsProofs.
When true (default: false), simp will not create a proof for a rewriting rule associated with an rfl-theorem.
Rewriting rules are provided by users by annotating theorems with the attribute @[simp]. If the proof of the theorem is just rfl (reflexivity), and implicitDefEqProofs := true, simp will not create a proof term which is an application of the annotated theorem.

Users can use simp (config := { implicitDefEqProofs := true }) to restore old behavior.

This PR also fixes an issue in the split tactic that has been exposed by this feature. It was looking for split candidates in proofs and implicit arguments. See new test for issue exposed by the previous feature.

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc June 30, 2024 23:39 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 Jun 30, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jun 30, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Jun 30, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan release-ci Enable all CI checks for a PR, like is done for releases labels Jun 30, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

leanprover-community-mathlib4-bot commented Jun 30, 2024

Mathlib CI status (docs):

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc July 1, 2024 00:11 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jul 1, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Jul 1, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc July 1, 2024 19:23 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jul 1, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Jul 1, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc July 2, 2024 01:15 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jul 2, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Jul 2, 2024
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jul 11, 2024
(With leanprover/lean4#4595, `aesop` goes astray here, and this proof is better anyway.)
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jul 11, 2024
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jul 11, 2024
semorrison added a commit that referenced this pull request Jul 16, 2024
leodemoura added a commit that referenced this pull request Jul 18, 2024
Motivation: unblock PR #4595
`Simp.Config.implicitDefEqProofs := false` is currently creating too
many issues in Mathlib.
github-merge-queue bot pushed a commit that referenced this pull request Jul 18, 2024
Motivation: unblock PR #4595
`Simp.Config.implicitDefEqProofs := false` is currently creating too
many issues in Mathlib.
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 release-ci Enable all CI checks for a PR, like is done for releases 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.

None yet

2 participants