Zulip Chat Archive
Stream: lean4
Topic: is nonminimal number not trivially positive?
Stepan Holub (Mar 17 2025 at 11:05):
Is it not strange that exact? fails on the following :
example (k l : ℕ) (h: ¬ k ≤ l) : 0 < k
Aaron Liu (Mar 17 2025 at 11:11):
This doesn't match any existing theorem, so I'm not surprised that exact?
fails on this one.
example (k l : Nat) (h : ¬k ≤ l) : 0 < k := by
apply Nat.zero_lt_of_lt
exact Nat.lt_of_not_le h
Stepan Holub (Mar 17 2025 at 11:14):
Thanks.
What is the best way to find such a simple proof if exact fails?
Kim Morrison (Mar 17 2025 at 12:27):
If it's a linear arithmetic problem about nat and int, by omega
Kim Morrison (Mar 17 2025 at 12:28):
or try by hint
Last updated: May 02 2025 at 03:31 UTC