Lean4
instance linearOrder : LinearOrder PosNum 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
toDecidableLT := by infer_instance
toDecidableLE := by infer_instance
toDecidableEq := by infer_instance