Equations
- instHModUInt8Nat = { hMod := UInt8.modn }
Equations
- instComplementUInt8 = { complement := UInt8.complement }
Equations
- instShiftLeftUInt8 = { shiftLeft := UInt8.shiftLeft }
Equations
- instShiftRightUInt8 = { shiftRight := UInt8.shiftRight }
@[extern lean_uint8_dec_lt]
Equations
- a.decLt b = inferInstanceAs (Decidable (a.toBitVec < b.toBitVec))
Instances For
@[extern lean_uint8_dec_le]
Equations
- a.decLe b = inferInstanceAs (Decidable (a.toBitVec ≤ b.toBitVec))
Instances For
Equations
- instDecidableLtUInt8 a b = a.decLt b
Equations
- instDecidableLeUInt8 a b = a.decLe b
@[extern lean_uint16_div]
Equations
- a.div b = { toBitVec := a.toBitVec.udiv b.toBitVec }
Instances For
@[extern lean_uint16_mod]
Equations
- a.mod b = { toBitVec := a.toBitVec.umod b.toBitVec }
Instances For
Equations
- instHModUInt16Nat = { hMod := UInt16.modn }
Equations
- instComplementUInt16 = { complement := UInt16.complement }
Equations
- instShiftLeftUInt16 = { shiftLeft := UInt16.shiftLeft }
Equations
- instShiftRightUInt16 = { shiftRight := UInt16.shiftRight }
@[extern lean_uint16_dec_lt]
Equations
- a.decLt b = inferInstanceAs (Decidable (a.toBitVec < b.toBitVec))
Instances For
@[extern lean_uint16_dec_le]
Equations
- a.decLe b = inferInstanceAs (Decidable (a.toBitVec ≤ b.toBitVec))
Instances For
Equations
- instDecidableLtUInt16 a b = a.decLt b
Equations
- instDecidableLeUInt16 a b = a.decLe b
@[extern lean_uint32_div]
Equations
- a.div b = { toBitVec := a.toBitVec.udiv b.toBitVec }
Instances For
@[extern lean_uint32_mod]
Equations
- a.mod b = { toBitVec := a.toBitVec.umod b.toBitVec }
Instances For
Equations
- instHModUInt32Nat = { hMod := UInt32.modn }
Equations
- instComplementUInt32 = { complement := UInt32.complement }
Equations
- instShiftLeftUInt32 = { shiftLeft := UInt32.shiftLeft }
Equations
- instShiftRightUInt32 = { shiftRight := UInt32.shiftRight }
@[extern lean_uint64_div]
Equations
- a.div b = { toBitVec := a.toBitVec.udiv b.toBitVec }
Instances For
@[extern lean_uint64_mod]
Equations
- a.mod b = { toBitVec := a.toBitVec.umod b.toBitVec }
Instances For
Equations
- instHModUInt64Nat = { hMod := UInt64.modn }
Equations
- instComplementUInt64 = { complement := UInt64.complement }
Equations
- instShiftLeftUInt64 = { shiftLeft := UInt64.shiftLeft }
Equations
- instShiftRightUInt64 = { shiftRight := UInt64.shiftRight }
@[extern lean_uint64_dec_lt]
Equations
- a.decLt b = inferInstanceAs (Decidable (a.toBitVec < b.toBitVec))
Instances For
@[extern lean_uint64_dec_le]
Equations
- a.decLe b = inferInstanceAs (Decidable (a.toBitVec ≤ b.toBitVec))
Instances For
Equations
- instDecidableLtUInt64 a b = a.decLt b
Equations
- instDecidableLeUInt64 a b = a.decLe b
@[extern lean_usize_shift_left]
Equations
- a.shiftLeft b = { toBitVec := a.toBitVec <<< (b.mod (USize.ofNat System.Platform.numBits)).toBitVec }
Instances For
@[extern lean_usize_shift_right]
Equations
- a.shiftRight b = { toBitVec := a.toBitVec >>> (b.mod (USize.ofNat System.Platform.numBits)).toBitVec }
Instances For
Equations
- instHModUSizeNat = { hMod := USize.modn }
Equations
- instComplementUSize = { complement := USize.complement }
Equations
- instShiftLeftUSize = { shiftLeft := USize.shiftLeft }
Equations
- instShiftRightUSize = { shiftRight := USize.shiftRight }