Zulip Chat Archive

Stream: general

Topic: What's the fastest way to prove this?


Kenny Lau (May 27 2018 at 00:27):

example :  m n : , m = m * n  m = 0  n = 1 := sorry

Nicholas Scheel (May 27 2018 at 00:58):

I would do by_cases m = 0 and eq_of_mul_eq_mul_left

Nicholas Scheel (May 27 2018 at 00:58):

(after mul_one)

Nicholas Scheel (May 27 2018 at 01:00):

or maybe even by_cases n = 1 and eq_zero_of_mul_eq_self_right

Nicholas Scheel (May 27 2018 at 01:01):

(both of those long theorems are from integral domains https://github.com/leanprover/lean/blob/master/library/init/algebra/ring.lean#L290 )

Kenny Lau (May 27 2018 at 01:04):

but they don't apply to natural numbers

Nicholas Scheel (May 27 2018 at 01:05):

oh whoops, you’re right ... rings and all

Nicholas Scheel (May 27 2018 at 01:07):

https://github.com/leanprover/lean/blob/master/library/init/data/nat/lemmas.lean#L332

Kenny Lau (May 27 2018 at 01:07):

thanks


Last updated: Dec 20 2023 at 11:08 UTC