Documentation

Batteries.Data.UInt

UInt8 #

theorem UInt8.ext {x y : UInt8} :
x.toNat = y.toNatx = y
theorem UInt8.ext_iff {x y : UInt8} :
x = y x.toNat = y.toNat

UInt16 #

theorem UInt16.ext {x y : UInt16} :
x.toNat = y.toNatx = y
theorem UInt16.ext_iff {x y : UInt16} :
x = y x.toNat = y.toNat
@[simp]

UInt32 #

theorem UInt32.ext {x y : UInt32} :
x.toNat = y.toNatx = y
theorem UInt32.ext_iff {x y : UInt32} :
x = y x.toNat = y.toNat
@[simp]
@[simp]

UInt64 #

theorem UInt64.ext {x y : UInt64} :
x.toNat = y.toNatx = y
theorem UInt64.ext_iff {x y : UInt64} :
x = y x.toNat = y.toNat
@[simp]
@[simp]
@[simp]

USize #

theorem USize.ext {x y : USize} :
x.toNat = y.toNatx = y
theorem USize.ext_iff {x y : USize} :
x = y x.toNat = y.toNat