Documentation

CslibFrontier.Foundations.Data.Nat.PowClog

The strict overshoot of a ceiling-logarithm power #

The power b ^ ⌈log_b n⌉ is at least n (Nat.le_pow_clog) and, for n ≠ 0, strictly less than b * n: the exponent is the least one reaching n, so one fewer factor of b stays below n. This is the strict sibling of Nat.pow_clog_le_mul; it lives in its own small module so that its clients do not import the Nat logarithm hub.

Main results #

theorem Nat.pow_clog_lt_mul {b n : ℕ} (hb : 1 < b) (hn : n ≠ 0) :
b ^ clog b n < b * n

The power b ^ ⌈log_b n⌉ overshoots n ≠ 0 by strictly less than a factor b.