Documentation

CslibFrontier.Foundations.Data.Nat.LogRpow

Fixed powers of shifted natural logarithms are subpolynomial #

This bridge applies Mathlib's real logarithm little-o estimate to natural logarithms with fixed base, input shift and additive constant. It is general mathematics intended for Mathlib. The native 3SUM host uses it for packed-side, catalogue-count and preprocessing logarithms.

Main results #

theorem Nat.eventually_mul_log_add_pow_le_rpow {b : ℕ} (hb : 1 < b) (s c d : ℕ) {K ε : ℝ} (hK : 0 < K) (hε : 0 < ε) :
∀ᶠ (n : ℕ) in Filter.atTop, K * (↑(log b (n + s)) + ↑c) ^ d ≤ ↑n ^ ε

Fixed shifts and additive constants do not change the subpolynomial growth of a natural logarithm. The threshold may depend on all fixed parameters, but not on the varying input.

theorem Nat.exists_size_add_one_pow_le_mul_rpow (d : ℕ) {ε : ℝ} (hε : 0 < ε) :
∃ (K : ℝ), 1 ≤ K ∧ ∀ (n : ℕ), ↑(n.size + 1) ^ d ≤ K * (↑n + 1) ^ ε

A fixed power of the binary length Nat.size n + 1 is at most a constant times any positive real power of n + 1, uniformly in n.