Documentation

Init.Data.Fin.Log2

def Fin.log2 {m : Nat} (n : Fin m) :
Fin m

Logarithm base 2 for bounded numbers.

The resulting value is the same as that computed by Nat.log2. In particular, the result for 0 is 0.

Examples:

Equations