Zulip Chat Archive
Stream: general
Topic: A linter to prevent `x = x` lemmas
Eric Wieser (May 09 2021 at 09:27):
I just noticed that we have a simp lemma with matching LHS and RHS, docs#submodule.quotient.mk_eq_mk. Presumably simp
just ignores this at the moment. How hard would it be to teach the simp linter to reject this?
Gabriel Ebner (May 09 2021 at 10:46):
I would insert a call to is_simp_eq
around here: https://github.com/leanprover-community/mathlib/blob/132328c4dd48da87adca5d408ca54f315282b719/src/tactic/lint/simp.lean#L89
Eric Wieser (Jul 02 2021 at 10:58):
Another one: docs#continuous_map.id_coe
Eric Wieser (Jul 02 2021 at 10:58):
(found in #8180)
Last updated: Dec 20 2023 at 11:08 UTC