Zulip Chat Archive
Stream: new members
Topic: convert equality to inequality
Lu-Ming Zhang (May 21 2021 at 09:33):
In the NNG, if I have
a b c:mynat
h: b=a+c (or h: b=a+0),
How to convert h to a<=b or introduce a new hypothesis a<=b?
Kevin Buzzard (May 21 2021 at 10:05):
you could put have h2 : a <= b and then you'll get a new goal which you can prove using h.
Lu-Ming Zhang (May 21 2021 at 10:19):
Kevin Buzzard said:
you could put
have h2 : a <= band then you'll get a new goal which you can prove usingh.
In the NNG, I put have h2 : a <= b, then I only got h2 : Prop. Why is that?
Lu-Ming Zhang (May 21 2021 at 10:35):
By the way, how to input letters like ℕ in Lean?
Eric Wieser (May 21 2021 at 10:42):
It sounds like you wrote have h2 := a <= b not have h2 : a <= b.
Eric Wieser (May 21 2021 at 10:42):
Vscode lets you type \nat to get ℕ
Lu-Ming Zhang (May 22 2021 at 09:16):
Many thanks to Eric and Kevin!
Last updated: May 02 2025 at 03:31 UTC