Zulip Chat Archive
Stream: new members
Topic: refl and rfl
Alex Zhang (May 24 2021 at 10:31):
What is the difference between tactics refl
and rfl
?
Kevin Buzzard (May 24 2021 at 10:33):
Are you sure rfl
is a tactic? What happens if you put it in a begin/end block?
Alex Zhang (May 24 2021 at 10:56):
No...I don't think rfl is a tactic now.
Kevin Buzzard (May 24 2021 at 10:58):
so rfl
is a term, you can use it in term mode to prove x = x
, e.g.
example : 2 = 2 := rfl
And refl
is a tactic, so you can use it in tactic mode to prove x = x
, e.g.
example : 2 = 2 :=
begin
refl
end
Mario Carneiro (May 25 2021 at 01:27):
Speaking of which, perhaps we should rename refl
tactic to rfl
for consistency with lean 4? I don't think it's a very big deal but we may as well get in the habit
Kevin Buzzard (May 25 2021 at 06:37):
I think lean 4's rfl tactic only does eq.rfl so we might end up making a refl tactic anyway
Mario Carneiro (May 25 2021 at 06:41):
I'd rather just override the rfl
tactic when the time comes
Last updated: Dec 20 2023 at 11:08 UTC