Skip to content

Conversation

chenson2018
Copy link
Collaborator

@chenson2018 chenson2018 commented Aug 28, 2025

This PR enables Mathlib's flexible linter, a generalized version of checking for non-terminal simp. As part of this PR I have removed every non-terminal simp detected by the linter.

There is one minor category of false positive I encountered, which is when <;> simp is followed by the rest of a proof. In this case the linter can be suppressed locally or you can slightly reorder a proof. I counted only five occurrences (and some of these didn't need simp anyway). I think that the proof stability is worth this uncommon and minor inconvenience.

Side note: Bisimulation.traceEq_not_bisim was painful to edit performance-wise! Vim consistently froze on me while trying to use simp? in the middle of it.

@chenson2018 chenson2018 requested a review from fmontesi as a code owner August 28, 2025 09:21
@fmontesi
Copy link
Collaborator

Very nice! 👏

@fmontesi fmontesi merged commit 2377f66 into leanprover:main Aug 28, 2025
2 checks passed
fmontesi pushed a commit that referenced this pull request Sep 20, 2025
thomaskwaring pushed a commit to thomaskwaring/cslib_SKI that referenced this pull request Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants