Equations
Instances For
Instances For
Equations
- UInt8.ofBits bs = List.foldr (fun (bit : Bit) (x : UInt8) => x <<< 1 ||| UInt8.ofBit bit) 0 bs
Instances For
Equations
- x.toBits = List.map (fun (n : ℕ) => (x >>> UInt8.ofNat n).lowestBit) (List.range 8)
Instances For
@[simp]
@[instance_reducible]
Equations
- UInt8.instLinearOrder_projects = { toLE := instLEUInt8, toLT := instLTUInt8, le_refl := @UInt8.instLinearOrder_projects._proof_1, le_trans := @UInt8.instLinearOrder_projects._proof_2, lt_iff_le_not_ge := ⋯, le_antisymm := ⋯, toMin := instMinUInt8, toMax := instMaxUInt8, toOrd := UInt8.instOrd, le_total := ⋯, toDecidableLE := fun {x y : UInt8} => inferInstance, toDecidableEq := decidableEqOfDecidableLE, toDecidableLT := decidableLTOfDecidableLE, min_def := @UInt8.instLinearOrder_projects._proof_3, max_def := @UInt8.instLinearOrder_projects._proof_4, compare_eq_compareOfLessAndEq := UInt8.instLinearOrder_projects._proof_5 }