Documentation

Batteries.Data.UInt

UInt8 #

theorem UInt8.ext {x y : UInt8} :
x.toNat = y.toNatx = y
theorem UInt8.toNat_lt (x : UInt8) :
x.toNat < 2 ^ 8

UInt16 #

theorem UInt16.ext {x y : UInt16} :
x.toNat = y.toNatx = y
theorem UInt16.toNat_lt (x : UInt16) :
x.toNat < 2 ^ 16
@[simp]

UInt32 #

theorem UInt32.ext {x y : UInt32} :
x.toNat = y.toNatx = y
theorem UInt32.toNat_lt (x : UInt32) :
x.toNat < 2 ^ 32
@[simp]
@[simp]

UInt64 #

theorem UInt64.ext {x y : UInt64} :
x.toNat = y.toNatx = y
theorem UInt64.toNat_lt (x : UInt64) :
x.toNat < 2 ^ 64
@[simp]
@[simp]
@[simp]

USize #

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