Lean4
instance linearOrder : LinearOrder ZNum where
lt := (· < ·)
lt_iff_le_not_ge := by
intro a b
transfer_rw
apply lt_iff_le_not_ge
le := (· ≤ ·)
le_refl := by transfer
le_trans := by
intro a b c
transfer_rw
apply le_trans
le_antisymm := by
intro a b
transfer_rw
apply le_antisymm
le_total := by
intro a b
transfer_rw
apply le_total
toDecidableEq := instDecidableEqZNum
toDecidableLE := ZNum.decidableLE
toDecidableLT := ZNum.decidableLT