Zulip Chat Archive
Stream: general
Topic: a or b or c or d
Chris Hughes (Aug 04 2018 at 19:06):
If I have a or b or c or d
, can I split into four goals in one go?
Kenny Lau (Aug 04 2018 at 19:06):
rcases [identifier] with H | H | H | H
Kenny Lau (Aug 04 2018 at 19:06):
I can't interpret "split into four goals". If it's a hypothesis then you get four hypotheses. If it's a goal then you get one goal.
Simon Hudon (Aug 04 2018 at 19:08):
Alternatively, casesm* [_ ∨ _]
also helps.
Chris Hughes (Aug 04 2018 at 19:09):
Thanks
Mario Carneiro (Aug 04 2018 at 19:12):
there is no brackets in rcases
Kenny Lau (Aug 04 2018 at 19:12):
[identifier]
is a placeholder
Mario Carneiro (Aug 04 2018 at 19:13):
hm, it's hard to tell the difference between meta notation and lean notation... we need more brackets
rcases ⟅identifier⟆ with H | H | H | H
Ali Sever (Aug 04 2018 at 22:57):
On a similar note, if you want to prove ∃ a b c, ...
is there a way to do something like existsi a b c
? I triedrepeat {constructor}
for fun, and I was surprised to see lean perfectly guess what a, b and c were.
Ali Sever (Aug 04 2018 at 22:59):
Also, when I used constructor,
three times, lean did not guess them.
Simon Hudon (Aug 04 2018 at 22:59):
you could also do existsi [a,b,c]
if you want to specify the witnesses yourself.
Ali Sever (Aug 04 2018 at 23:06):
Ah thank you, I had not tried those brackets. Is there a rule to know which type is used where?
Simon Hudon (Aug 04 2018 at 23:07):
Which types do you mean?
Kevin Buzzard (Aug 04 2018 at 23:09):
which type of bracket?
Kevin Buzzard (Aug 04 2018 at 23:09):
I guess you can look at the documentation for the tactic...
Kevin Buzzard (Aug 04 2018 at 23:09):
(by hovering over it)
Nicholas Scheel (Aug 04 2018 at 23:10):
brackets are syntax, so I don‘t think they can have _types_, nor kinds, nor sorts ... must be varieties, I guess? ;)
Nicholas Scheel (Aug 04 2018 at 23:13):
we’re going to run out of variants of words soon to describe these things
Last updated: Dec 20 2023 at 11:08 UTC