Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
There is no reasonable statement forUInt16.toUInt8_shiftRight; in fact for a b : UInt16 the
expression (a >>> b).toUInt8 is not a function of a.toUInt8 and b.toUInt8.
@[simp]
theorem USize.ofBitVec_shiftLeft (a : BitVec System.Platform.numBits) (b : Nat) (hb : b < System.Platform.numBits) :
@[simp]
@[simp]
@[simp]
theorem USize.ofBitVec_shiftRight (a : BitVec System.Platform.numBits) (b : Nat) (hb : b < System.Platform.numBits) :
@[simp]
@[simp]
instance instLawfulCommIdentityUInt8HOrOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt8) => x1 ||| x2) 0
instance instLawfulCommIdentityUInt16HOrOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt16) => x1 ||| x2) 0
instance instLawfulCommIdentityUInt32HOrOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt32) => x1 ||| x2) 0
instance instLawfulCommIdentityUInt64HOrOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt64) => x1 ||| x2) 0
instance instLawfulCommIdentityUSizeHOrOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : USize) => x1 ||| x2) 0
instance instLawfulCommIdentityUInt8HAndNegOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt8) => x1 &&& x2) (-1)
instance instLawfulCommIdentityUInt16HAndNegOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt16) => x1 &&& x2) (-1)
instance instLawfulCommIdentityUInt32HAndNegOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt32) => x1 &&& x2) (-1)
instance instLawfulCommIdentityUInt64HAndNegOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt64) => x1 &&& x2) (-1)
instance instLawfulCommIdentityUSizeHAndNegOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : USize) => x1 &&& x2) (-1)
instance instLawfulCommIdentityUInt8HXorOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt8) => x1 ^^^ x2) 0
instance instLawfulCommIdentityUInt16HXorOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt16) => x1 ^^^ x2) 0
instance instLawfulCommIdentityUInt32HXorOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt32) => x1 ^^^ x2) 0
instance instLawfulCommIdentityUInt64HXorOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : UInt64) => x1 ^^^ x2) 0
instance instLawfulCommIdentityUSizeHXorOfNat :
Std.LawfulCommIdentity (fun (x1 x2 : USize) => x1 ^^^ x2) 0
theorem USize.shiftLeft_add {a b c : USize} (hb : b < ofNat System.Platform.numBits) (hc : c < ofNat System.Platform.numBits) (hbc : b + c < ofNat System.Platform.numBits) :