Zulip Chat Archive
Stream: lean4
Topic: Appending tactic sequences
Siddhartha Gadgil (Jul 25 2023 at 06:30):
Is there a good way to append a tactic sequence to another (and to a byTacticSeq
)? My present hack is:
(← `(tacticSeq|
$tacticCode
($script)))
which means the second one is in parenthesis.
Mario Carneiro (Jul 25 2023 at 06:37):
yep that's the standard approach
Siddhartha Gadgil (Jul 25 2023 at 06:49):
Related question: is there a delaborator for a tacticSeq
?
Mario Carneiro (Jul 25 2023 at 06:49):
what would that mean?
Mario Carneiro (Jul 25 2023 at 06:49):
tacticSeq
only exists as syntax
Siddhartha Gadgil (Jul 25 2023 at 06:49):
I mean to go from Syntax
to Format
Mario Carneiro (Jul 25 2023 at 06:50):
that's a 'formatter' in lean parlance
Mario Carneiro (Jul 25 2023 at 06:50):
and yes, you can format any syntax category
Mario Carneiro (Jul 25 2023 at 06:51):
docs4#Lean.PrettyPrinter.formatCategory
Last updated: Dec 20 2023 at 11:08 UTC