Documentation

CslibFrontier.Foundations.Data.Nat.Subexponential

Subexponential bounds on natural-valued functions #

SubexponentiallyBounded f expresses f(n) = 2^{o(n)} using the upper binary logarithm of f n + 1. Equivalently, this logarithm is little-o of n after casting to the reals. The shift by one handles zero values without side conditions. This is a growth condition and makes no computability assertion.

The closure rules show that polynomial expressions in subexponentially bounded functions remain subexponentially bounded. The concrete bound f n ≤ 2 ^ (n / d) for each positive integer d allows purely natural-number estimates in formula hardness magnification.

Main definitions #

Main results #

A function is subexponentially bounded when every fixed multiple of its upper binary logarithm is eventually at most the input.

theorem Cslib.subexponentiallyBounded_iff_isLittleO {f : ℕ → ℕ} :
SubexponentiallyBounded f ↔ (fun (n : ℕ) => ↑(Nat.clog 2 (f n + 1))) =o[Filter.atTop] fun (n : ℕ) => ↑n

Subexponential growth is equivalent to the upper binary logarithm being little-o of the input after casting to the reals.

Eventual domination preserves a subexponential bound.

Pointwise domination preserves a subexponential bound.

Constants are subexponentially bounded.

The identity function is subexponentially bounded.

Sums of subexponentially bounded functions are subexponentially bounded.

Products of subexponentially bounded functions are subexponentially bounded.

Fixed powers of a subexponentially bounded function are subexponentially bounded.

A subexponentially bounded function is eventually at most 2 ^ (n / d) for every positive integer d. Natural division only rounds the exponent down.

Every polynomially bounded function is subexponentially bounded.