Equations
- BitVec.ofBit w Bit.B₀ = 0
- BitVec.ofBit w Bit.B₁ = 1
Instances For
Equations
- BitVec.ofBits w bs = List.foldr (fun (bit : Bit) (x : BitVec w) => x <<< 1 ||| BitVec.ofBit w bit) 0 bs
Instances For
@[simp]
@[instance_reducible]
Equations
- BitVec.instLinearOrder_projects = { toLE := instLEBitVec, toLT := instLTBitVec, le_refl := ⋯, le_trans := ⋯, lt_iff_le_not_ge := ⋯, le_antisymm := ⋯, toMin := minOfOrd', toMax := maxOfOrd', toOrd := instOrdBitVec, le_total := ⋯, toDecidableLE := fun {x y : BitVec w} => inferInstance, toDecidableEq := decidableEqOfDecidableLE, toDecidableLT := decidableLTOfDecidableLE, min_def := ⋯, max_def := ⋯, compare_eq_compareOfLessAndEq := ⋯ }
@[simp]