Documentation

CslibFrontier.Foundations.Analysis.SpecialFunctions.IteratedLog

Real Iterated Base-2 Logarithm #

This module defines the real iterated base-2 logarithm iterLogReal k x, clamped to 0 once an iterate falls into (-∞, 1], and develops its monotonicity, antitone-in-depth, and Nat.twoTower / Nat.logStar comparison API.

Main definitions #

Main results #

Iterated base-2 real logarithm log₂^(k)(x), clamped to 0 once an iterate reaches ≤ 1.

Step equation for iterLogReal on its natural domain 1 < iterLogReal k x.

Step equation when iterLogReal k x ≤ 1: all further iterates vanish.

Every positive iterate (k ≥ 1) is nonnegative.

Positive iterLogReal (k + 1) x forces 1 < iterLogReal k x.

For iterLogReal (k + 1) x > 0, 2 ^ iterLogReal (k + 1) x = iterLogReal k x.

iterLogReal k is unconditionally monotone in x.

Strict monotonicity of iterLogReal k when the lower argument keeps 0 < iterLogReal k x.

Applying Real.logb 2 once on 1 < x shifts iterLogReal.

Base-2 iterated logarithm of a tower of twos: iterLogReal k (Nat.twoTower (k + m)) = Nat.twoTower m.

If Nat.twoTower (k + m) ≤ ℓ, then Nat.twoTower m ≤ iterLogReal k ℓ.

If k + m + 1 ≤ Nat.logStar ℓ, then Nat.twoTower m < iterLogReal k ℓ.

If 1 ≤ iterLogReal (k + 1) x, then 2 ≤ iterLogReal k x.

iterLogReal (k + 1) x ≤ iterLogReal k x whenever 0 ≤ iterLogReal k x.

theorem Cslib.Analysis.SpecialFunctions.iterLogReal_anti {j k : ℕ} {x : ℝ} (hx : 0 ≤ x) (hjk : j ≤ k) :

iterLogReal k x is antitone in k for 0 ≤ x.

If 1 ≤ iterLogReal k x, then 1 ≤ iterLogReal j x for all j ≤ k.