Skip to content

chore: fix nolint simpNF exception - #761

Merged
chenson2018 merged 1 commit into
leanprover:mainfrom
felixpernegger:simpnf
Jul 31, 2026
Merged

chore: fix nolint simpNF exception#761
chenson2018 merged 1 commit into
leanprover:mainfrom
felixpernegger:simpnf

Conversation

@felixpernegger

Copy link
Copy Markdown
Contributor

A theorem shouldnt be tagged with simp, when the LHS can be simplified already, as it will never fire. There is only one exception which is not a false positive in this PR

There are two solutions to this:
Either untag the theorem or rewrite it as it would be after applying simp.

I chose the second method, since there is a more general simp lemma avaiable. But of course happy to go the other way

@chenson2018
chenson2018 added this pull request to the merge queue Jul 31, 2026
Merged via the queue into leanprover:main with commit 126d659 Jul 31, 2026
2 checks passed

@ctchou ctchou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

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.

3 participants