NLA-lib Explorer

Binary logarithms under shifts

Library · Source module

Binary logarithms under shifts

Upstream candidates for the mathematical API of Lean core's floating-point model. Adapted from the supplied NumLean archive, NumLean/Mathlib/Data/Nat/Log2.lean. The archive's SHA-256 and licensing status, the earlier Mathlib search and the changes needed for Lean 4.33 are recorded in docs/design/Finite-Precision-Arithmetic.md. No NumLean dependency is imported. The statement concerns natural-number binary logarithms, independently of a floating-point format or native execution cost.

Main results

* Nat.log2_mul_pow.

Declarations