Zulip Chat Archive
Stream: mathlib4
Topic: Equiv.rfl
Kevin Buzzard (Jan 16 2024 at 15:52):
I just noticed that despite refl
becoming rfl
in Lean 4, we still have Equiv.refl
in mathlib. Should it be changed to Equiv.rfl? Again this is coming from my preparing my course and thinking "is this confusing for the students?"
Yaël Dillies (Jan 16 2024 at 15:53):
We should if and only if we make the argument implicit.
Kevin Buzzard (Jan 16 2024 at 16:19):
Oh, that's what the distinction means now?
Johan Commelin (Jan 16 2024 at 16:22):
Also in Lean 3, viz le_refl x
vs le_rfl
.
Kyle Miller (Jan 16 2024 at 16:24):
docs#Eq.refl has an explicit argument, docs#rfl has an implicit argument. Similarly, docs#HEq.refl and docs#HEq.rfl
Kevin Buzzard (Jan 16 2024 at 16:28):
If this is the convention, I think it's a great one (because it's easy to explain)
Mario Carneiro (Jan 16 2024 at 16:29):
yes, this has always been the case (for theorem names)
Mario Carneiro (Jan 16 2024 at 16:30):
the tactic is special, but given that it doesn't take an argument the rfl
name makes sense
Yaël Dillies (Jan 16 2024 at 16:33):
<insert always has been meme>
Last updated: May 02 2025 at 03:31 UTC