Equations
- UInt16.instSMulNatUInt16 = { smul := fun (n : ℕ) (a : UInt16) => { val := n • a.val } }
Equations
- USize.instPowUSizeNat = { pow := fun (a : USize) (n : ℕ) => { val := a.val ^ n } }
Equations
- UInt32.instSMulNatUInt32 = { smul := fun (n : ℕ) (a : UInt32) => { val := n • a.val } }
Equations
- UInt16.instIntCastUInt16 = { intCast := fun (z : ℤ) => { val := ↑z } }
Equations
- UInt32.instSMulIntUInt32 = { smul := fun (z : ℤ) (a : UInt32) => { val := z • a.val } }
Equations
- One or more equations did not get rendered due to their size.
Equations
- USize.instNegUSize = { neg := fun (a : USize) => { val := -a.val } }
Equations
- UInt32.instIntCastUInt32 = { intCast := fun (z : ℤ) => { val := ↑z } }
Equations
- USize.instSMulNatUSize = { smul := fun (n : ℕ) (a : USize) => { val := n • a.val } }
Equations
- One or more equations did not get rendered due to their size.
Equations
- USize.instSMulIntUSize = { smul := fun (z : ℤ) (a : USize) => { val := z • a.val } }
Equations
- UInt64.instIntCastUInt64 = { intCast := fun (z : ℤ) => { val := ↑z } }
Equations
- One or more equations did not get rendered due to their size.
Equations
- UInt32.instNatCastUInt32 = { natCast := fun (n : ℕ) => { val := ↑n } }
Equations
- UInt8.instSMulIntUInt8 = { smul := fun (z : ℤ) (a : UInt8) => { val := z • a.val } }
Equations
- UInt64.instSMulIntUInt64 = { smul := fun (z : ℤ) (a : UInt64) => { val := z • a.val } }
Equations
- UInt64.instPowUInt64Nat = { pow := fun (a : UInt64) (n : ℕ) => { val := a.val ^ n } }
Equations
- UInt8.instNegUInt8 = { neg := fun (a : UInt8) => { val := -a.val } }
Equations
- USize.instInhabitedUSize = { default := 0 }
Equations
- USize.instIntCastUSize = { intCast := fun (z : ℤ) => { val := ↑z } }
Equations
- UInt64.instNegUInt64 = { neg := fun (a : UInt64) => { val := -a.val } }
Equations
- UInt16.instSMulIntUInt16 = { smul := fun (z : ℤ) (a : UInt16) => { val := z • a.val } }
Equations
- UInt16.instNegUInt16 = { neg := fun (a : UInt16) => { val := -a.val } }
Equations
- UInt64.instInhabitedUInt64 = { default := 0 }
Equations
- One or more equations did not get rendered due to their size.
Equations
- UInt8.instPowUInt8Nat = { pow := fun (a : UInt8) (n : ℕ) => { val := a.val ^ n } }
Equations
- UInt8.instSMulNatUInt8 = { smul := fun (n : ℕ) (a : UInt8) => { val := n • a.val } }
Equations
- UInt16.instPowUInt16Nat = { pow := fun (a : UInt16) (n : ℕ) => { val := a.val ^ n } }
Equations
- UInt32.instNegUInt32 = { neg := fun (a : UInt32) => { val := -a.val } }
Equations
- UInt64.instSMulNatUInt64 = { smul := fun (n : ℕ) (a : UInt64) => { val := n • a.val } }
Equations
- UInt16.instNatCastUInt16 = { natCast := fun (n : ℕ) => { val := ↑n } }
Equations
- UInt64.instNatCastUInt64 = { natCast := fun (n : ℕ) => { val := ↑n } }
Equations
- UInt8.instNatCastUInt8 = { natCast := fun (n : ℕ) => { val := ↑n } }
Equations
- UInt32.instInhabitedUInt32 = { default := 0 }
Equations
- USize.instNatCastUSize = { natCast := fun (n : ℕ) => { val := ↑n } }
Equations
- UInt16.instInhabitedUInt16 = { default := 0 }
Equations
- UInt32.instPowUInt32Nat = { pow := fun (a : UInt32) (n : ℕ) => { val := a.val ^ n } }
Equations
- UInt8.instInhabitedUInt8 = { default := 0 }
Equations
- One or more equations did not get rendered due to their size.
Equations
- UInt8.instIntCastUInt8 = { intCast := fun (z : ℤ) => { val := ↑z } }
Is this an alphabetic ASCII character?
Equations
- UInt8.isAlpha c = (UInt8.isUpper c || UInt8.isLower c)
Instances For
Is this an alphanumeric ASCII character?
Equations
- UInt8.isAlphanum c = (UInt8.isAlpha c || UInt8.isDigit c)
Instances For
The numbers from 0 to 256 are all valid UTF-8 characters, so we can embed one in the other.
Equations
- UInt8.toChar n = { val := UInt8.toUInt32 n, valid := (_ : Nat.isValidChar ↑(UInt32.ofNat ↑n.val).val) }