Zulip Chat Archive
Stream: general
Topic: linarith nat
Patrick Massot (Dec 23 2018 at 16:38):
Is it part of the known limitations of linarith
that I can't do better than
example (n m : ℕ) (h : 0 < n) (h' : ¬ m < n) : m - n < m := begin apply nat.sub_lt ; linarith end
I would like to get rid of the first line?
Patrick Massot (Dec 23 2018 at 16:38):
@Rob Lewis
Rob Lewis (Dec 23 2018 at 17:56):
To linarith
, m - n
is some arbitrary constant with type nat
that it knows no extra information about. So no, it shouldn't be expected to solve that.
Last updated: Dec 20 2023 at 11:08 UTC