Zulip Chat Archive
Stream: general
Topic: trivially false
Kevin Buzzard (Aug 04 2018 at 09:07):
Am I supposed to resolve situations like
H : (1 / 2).denom = 1 ⊢ false
with revert H,exact dec_trivial
or is there some less clunky way where I apply something to H directly?
Mario Carneiro (Aug 04 2018 at 09:08):
I use absurd H dec_trivial
for this kind of thing
Kevin Buzzard (Aug 04 2018 at 09:09):
Thanks
Kenny Lau (Aug 04 2018 at 09:13):
import data.rat theorem test (H : (1 / 2 : ℚ).denom = 1) : false := nat.no_confusion (nat.succ_inj H)
Kenny Lau (Aug 04 2018 at 09:15):
@Mario Carneiro interestingly cases
fails on H
or on nat.succ_inj H
, and so does injections with H
Kevin Buzzard (Aug 04 2018 at 09:16):
ha ha, I'll let you know the next time I'm in this situation Kenny and you can come up with some bespoke solution for me :-)
Mario Carneiro (Aug 04 2018 at 09:19):
I get timeouts on everything that does something equivalent to cases on H, even match H with end
times out
Mario Carneiro (Aug 04 2018 at 09:21):
match (show 2 = 1, from H) with end
works, and other equivalent things
Mario Carneiro (Aug 04 2018 at 09:22):
it must be unfolding things in a weird order
Last updated: Dec 20 2023 at 11:08 UTC