Zulip Chat Archive

Stream: Is there code for X?

Topic: Comparing UInt64 and Nat


Tage Johansson (Apr 12 2023 at 13:46):

Hello,
I have the following goal:

skip : UInt64
skipped : Nat
skipped_le_skip : skipped  UInt64.toNat skip
 Nat.toUInt64 skipped  skip

I would apreciate any help of how to solve that goal in Lean 4. Preferably without mathlib4 but using mathlib is ok if necessary.

Thanks,
Tage

Jason Rute (Apr 12 2023 at 17:46):

(deleted)

Eric Wieser (Apr 12 2023 at 17:50):

The proof should follow from the fact that UInt64.toNat is strictly monotone


Last updated: Dec 20 2023 at 11:08 UTC