Zulip Chat Archive
Stream: new members
Topic: getting to normal inequality from an inequality with Top
Michael Novak (Dec 23 2025 at 09:09):
I have h : ↑m ≤ 1, where m : ℕ and ↑m : WithTop ℕ∞. How can I get the inequality m ≤ 1?
Julian Berman (Dec 23 2025 at 09:28):
import Mathlib
example {m : ℕ} (hm : (m : WithTop ℕ∞) ≤ 1) : m ≤ 1 := by simp_all
seems to do it.
Michael Novak (Dec 23 2025 at 09:29):
Thank you very much!
Julian Berman (Dec 23 2025 at 09:30):
I didn't apply any brainpower by the way -- try? is a good thing to try if it seems like something obvious should work, it just told me simp_all solved it once I wrote out what you wanted. It looks like docs#Nat.cast_le_one is the relevant lemma.
Michael Novak (Dec 23 2025 at 09:32):
Is try? the same as apply??
Julian Berman (Dec 23 2025 at 09:40):
They're complementary. apply? is "find me a lemma which looks like it fits". exact? is "only show me ones which close the goal". And then try? will look at whether tactics (rather than specific lemmas) will make progress as well, like here.
Last updated: Feb 28 2026 at 14:05 UTC