Zulip Chat Archive

Stream: general

Topic: Is {...} a tactic?


Jason Rute (May 07 2020 at 00:31):

I'm starting to understand the interactive tactics and how they work and are implemented. Is the focus notation {...} which focuses on the first goal a tactic? It seems similar to tactic.focus1 (tac >> done) where tac is the inner tactic.

Mario Carneiro (May 07 2020 at 01:02):

It is focus

Mario Carneiro (May 07 2020 at 01:06):

{ tac } is the same as focus {tac}, and you can read the interactive tactic here

Jason Rute (May 07 2020 at 03:06):

No. focus doesn't error if you don't complete the goal. I think it is solve1, partly because that is the same behavior and partly because if you don't finish a {...} block, the error is solve1 tactic failed, focused goal has not been solved. :upside_down:

Jason Rute (May 07 2020 at 03:14):

(I think the lesson is that error messages can tell you a lot. I should look there more often.)


Last updated: Dec 20 2023 at 11:08 UTC