8000 feat: set_option tactic.simp.warnUnused by nomeata · Pull Request #8895 · leanprover/lean4 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: set_option tactic.simp.warnUnused #8895

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

Closed
wants to merge 21 commits into from
Closed

Conversation

nomeata
Copy link
Collaborator
@nomeata nomeata commented Jun 20, 2025

This PR adds the tactic.simp.warnUnused tactic that will warn about
unused simp arguments (off by default).

This is off by default because it may report false positives when the simp invocation is run multiple times, e.g. inside all_goals or inside a macro. Fixing this would be good, but requires some more design and possible infrastructure.

This closes #4483.

Depends on #8815.

@nomeata nomeata added the changelog-language Language features, tactics, and metaprograms label Jun 20, 2025
@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 20, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jun 20, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Jun 20, 2025
@leanprover-community-bot leanprover-community-bot added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label Jun 20, 2025
@leanprover-community-bot
Copy link
Collaborator
leanprover-community-bot commented Jun 20, 2025

Mathlib CI status (docs):

leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jun 20, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Jun 20, 2025
@nomeata
Copy link
Collaborator Author
nomeata commented Jun 20, 2025

closing in favor of the more ambitious #8901, but we may come back to this.

@nomeata nomeata closed this Jun 20, 2025
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 changelog-language Language features, tactics, and metaprograms 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.

RFC: Make simp only warn on unused list elements
2 participants
0