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(tactic/lint/simp): simp_var_head uses whnf reducible #8749

Closed
wants to merge 2 commits into from

Conversation

fpvandoorn
Copy link
Member

@fpvandoorn fpvandoorn commented Aug 18, 2021

Changes the simp_var_head linter so that it unfolds reducible definitions.


@gebner Do we also want this for the other simp linters? I'm not sure, so I currently kept their behavior as before.

Related Zulip: https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/bad.20simp.20lemmas

Open in Gitpod

@fpvandoorn fpvandoorn added awaiting-review The author would like community review of the PR t-meta Tactics, attributes or user commands labels Aug 18, 2021
@fpvandoorn fpvandoorn requested a review from gebner August 18, 2021 20:54
@gebner
Copy link
Member

gebner commented Aug 18, 2021

This is just wrong for Lean 3, the simplifier doesn't unfold anything:

example : true := by trace_simp_set only [my_eq_on_empty]
/-
simplification rules for iff
[my_eq_on_empty] #4, my_eq_on ?x_2 ?x_3 ∅ ↦ true
-/

Not sure if it's worth to add a linter just for the port.

@fpvandoorn
Copy link
Member Author

Ah, I see.
I'm happy to close this without merging then.

@fpvandoorn fpvandoorn closed this Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review The author would like community review of the PR t-meta Tactics, attributes or user commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants