Mathlib Map

Theorems · Definition · number theory

Nat.log

ℕ → ℕ → ℕ

log b n, is the logarithm of natural number n in base b. It returns the largest k : ℕ such that b^k ≤ n, so if b^k = n, it returns exactly k.

Defined in
Mathlib.Data.Nat.Log
Cited by
101 results in Mathlib
Foundations
Depth 22 from the axioms, rests on 126 definitions · uses no axioms

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites1

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

Cited by103

Results whose statement or proof uses this declaration.