Zulip Chat Archive
Stream: lean4
Topic: what is the name of `<;>`?
Asei Inoue (Sep 28 2024 at 13:06):
what is the name of <;>
? (tactic combinator)
Damiano Testa (Sep 28 2024 at 13:11):
The parser is docs#Lean.Parser.Tactic.«tactic_<;>_», but I do not know its "name".
Asei Inoue (Sep 28 2024 at 13:12):
what should we call <;>
...?
Damiano Testa (Sep 28 2024 at 13:15):
The linter that sees if it is unneeded is called linter.unnecessarySeqFocus
, so maybe seqFocus
is its name?
David Renshaw (Sep 28 2024 at 15:07):
When I needed a name for it in a recent video, I said "the pointy semicolon combinator" https://www.youtube.com/watch?v=KuxFWwwlEtc&t=375s
David Renshaw (Sep 28 2024 at 15:07):
... but that's kind of a mouthful
David Thrane Christiansen (Sep 30 2024 at 10:19):
"and in subgoals"?
Floris van Doorn (Sep 30 2024 at 10:21):
In Coq the equivalent is called Sequence
Mario Carneiro (Sep 30 2024 at 10:52):
I think it would be a bad idea to call it sequence because lean has sequential composition of tactics and this isn't it
Mario Carneiro (Sep 30 2024 at 10:52):
it's not clear to me whether coq does?
Jannis Limperg (Sep 30 2024 at 10:53):
Yeah, Coq uses tactic1. tactic2
for sequencing.
David Thrane Christiansen (Sep 30 2024 at 11:17):
What Lean calls ;
, Coq calls .
. What Lean calls <;>
, Coq calls ;
.
David Thrane Christiansen (Sep 30 2024 at 11:19):
<;>
was called THEN
in Edinburgh LCF
Patrick Massot (Sep 30 2024 at 11:35):
It used to be called ;
in Lean 3 as well.
Mario Carneiro (Sep 30 2024 at 12:52):
Jannis Limperg said:
Yeah, Coq uses
tactic1. tactic2
for sequencing.
This isn't actually a tactic operator, it's using two tactics. I don't know if coq has a tactic that has similar effect to tactic1. tactic2
Mario Carneiro (Sep 30 2024 at 12:53):
in lean this is spelled (tac1; tac2)
Yann Herklotz (Sep 30 2024 at 13:12):
I guess you can get similar behaviour in Coq using Local application of tactics: (tac1; [tac2|..])
. And in Coq anything separated by .
is called a sentence.
Last updated: May 02 2025 at 03:31 UTC