Documentation

Batteries.Data.Fin.OfBits

@[reducible, inline]
abbrev Fin.ofBits {n : Nat} (f : Fin nBool) :
Fin (2 ^ n)

Construct an element of Fin (2 ^ n) from a sequence of bits (little endian).

Equations
Instances For
    @[simp]
    theorem Fin.val_ofBits {n : Nat} (f : Fin nBool) :