Zulip Chat Archive
Stream: new members
Topic: breaking up a long conjunction
Michael Beeson (Sep 07 2020 at 15:59):
There has to be a better way to break up a conjunction of four conjuncts than this:
cases h13 with h15 h16,
cases h16 with h17 h18,
cases h18 with h18 h20,
Mario Carneiro (Sep 07 2020 at 16:00):
Have I mentioned that rcases
is awesome yet today?
Mario Carneiro (Sep 07 2020 at 16:00):
Mario Carneiro (Sep 07 2020 at 16:02):
your example would be rcases h13 with ⟨h15, h17, h18, h20⟩
Kenny Lau (Sep 07 2020 at 16:06):
don't name them as hXX
: instead name them as hxab
if the variables involved are x
and a
and b
Michael Beeson (Sep 07 2020 at 16:10):
Thank you.
Michael Beeson (Sep 07 2020 at 18:57):
And similarly, if my goal is a conjunction with four conjuncts, how do a split into four goals all at once instead of three different "split" commands?
Bryan Gin-ge Chen (Sep 07 2020 at 18:58):
Something like refine ⟨_, _, _, _⟩
should work.
Rob Lewis (Sep 07 2020 at 18:59):
Or repeat {split}
Anatole Dedecker (Sep 07 2020 at 19:02):
repeat {split}
doesn't really work because the "splittable "part is now the second goal, so it's not focused anymore.
Adam Topaz (Sep 07 2020 at 19:02):
I think repeat applies the tactic to all goals, right?
Rob Lewis (Sep 07 2020 at 19:04):
The n+1
st iteration of the tactic will apply to all goals generated by the n
th.
Anatole Dedecker (Sep 07 2020 at 19:05):
Oh indeed, my bad. Is that new, or am I just creating memories out of nowhere ?
Adam Topaz (Sep 07 2020 at 19:06):
There is also iterate
which works only on the first goal, if I recall correctly.
Last updated: Dec 20 2023 at 11:08 UTC