Documentation

Complexity.Computability.Recurrence.Growth

Standard growth bounds for the Akra–Bazzi comparison expression #

A proposed exponent is identified by the upstream uniqueness theorem, not by unfolding its inverse-function definition. Summability of the normalized toll makes its partial sums bounded. A critical toll is instead bounded by the upstream harmonic-number estimate and contributes one logarithmic factor.

The critical hypothesis concerns positive integer inputs only. The term at zero in mathlib's sum is retained as a finite constant, including when the exponent makes its denominator 0 ^ 0. No assumption silently deletes it.

These are upper asymptotic bounds for the existing comparison expression and recurrence. A program still needs its measured-execution and recurrence proof; no runtime certificate or matching lower bound is supplied here.

theorem AkraBazziRecurrence.p_eq_of_sum_eq_one {ι : Type u_1} [Fintype ι] [Nonempty ι] {M : ℕ → ℝ} {g : ℝ → ℝ} {a b : ι → ℝ} {r : ι → ℕ → ℕ} (R : AkraBazziRecurrence M g a b r) {q : ℝ} (hq : ∑ i : ι, a i * b i ^ q = 1) :
p a b = q

Identify the characteristic exponent by a checked coefficient equation.

theorem AkraBazziRecurrence.asympBound_eq_of_sum_eq_one {ι : Type u_1} [Fintype ι] [Nonempty ι] {M : ℕ → ℝ} {g : ℝ → ℝ} {a b : ι → ℝ} {r : ι → ℕ → ℕ} (R : AkraBazziRecurrence M g a b r) {q : ℝ} (hq : ∑ i : ι, a i * b i ^ q = 1) (n : ℕ) :
asympBound g a b n = ↑n ^ q * (1 + ∑ k ∈ Finset.range n, g ↑k / ↑k ^ (q + 1))

Rewrite the official comparison expression using an identified exponent. The finite sum still starts at zero, exactly as in mathlib.

theorem AkraBazziRecurrence.asympBound_isBigO_rpow_of_summable {ι : Type u_1} [Fintype ι] [Nonempty ι] {M : ℕ → ℝ} {g : ℝ → ℝ} {a b : ι → ℝ} {r : ι → ℕ → ℕ} (R : AkraBazziRecurrence M g a b r) {q : ℝ} (hq : ∑ i : ι, a i * b i ^ q = 1) (hsum : Summable fun (n : ℕ) => g ↑n / ↑n ^ (q + 1)) :
asympBound g a b =O[Filter.atTop] fun (n : ℕ) => ↑n ^ q

A summable normalized toll contributes only a bounded multiplicative factor to the characteristic power. Summability includes the finite zero term.

theorem AkraBazziRecurrence.isBigO_rpow_of_summable {ι : Type u_1} [Fintype ι] [Nonempty ι] {M : ℕ → ℝ} {g : ℝ → ℝ} {a b : ι → ℝ} {r : ι → ℕ → ℕ} (R : AkraBazziRecurrence M g a b r) {q : ℝ} (hq : ∑ i : ι, a i * b i ^ q = 1) (hsum : Summable fun (n : ℕ) => g ↑n / ↑n ^ (q + 1)) :
M =O[Filter.atTop] fun (n : ℕ) => ↑n ^ q

The exact comparison recurrence inherits the power upper bound. This also applies to an upstream recurrence packaged from majorant.

theorem AkraBazziRecurrence.normalized_toll_summable_of_lt {ι : Type u_1} [Fintype ι] [Nonempty ι] {M : ℕ → ℝ} {g : ℝ → ℝ} {a b : ι → ℝ} {r : ι → ℕ → ℕ} (R : AkraBazziRecurrence M g a b r) {q exponent C : ℝ} (hlt : exponent < q) (htoll : ∀ (n : ℕ), 0 < n → g ↑n ≤ C * ↑n ^ exponent) :
Summable fun (n : ℕ) => g ↑n / ↑n ^ (q + 1)

A toll whose power is strictly below the characteristic power has a summable normalization. The standard eventual comparison test permits its arbitrary finite value at zero; no new series comparison is proved here.

theorem AkraBazziRecurrence.asympBound_isBigO_rpow_of_toll_lt {ι : Type u_1} [Fintype ι] [Nonempty ι] {M : ℕ → ℝ} {g : ℝ → ℝ} {a b : ι → ℝ} {r : ι → ℕ → ℕ} (R : AkraBazziRecurrence M g a b r) {q exponent C : ℝ} (hq : ∑ i : ι, a i * b i ^ q = 1) (hlt : exponent < q) (htoll : ∀ (n : ℕ), 0 < n → g ↑n ≤ C * ↑n ^ exponent) :
asympBound g a b =O[Filter.atTop] fun (n : ℕ) => ↑n ^ q

A strictly subcritical power toll leaves the comparison expression bounded by the characteristic power itself.

theorem AkraBazziRecurrence.isBigO_rpow_of_toll_lt {ι : Type u_1} [Fintype ι] [Nonempty ι] {M : ℕ → ℝ} {g : ℝ → ℝ} {a b : ι → ℝ} {r : ι → ℕ → ℕ} (R : AkraBazziRecurrence M g a b r) {q exponent C : ℝ} (hq : ∑ i : ι, a i * b i ^ q = 1) (hlt : exponent < q) (htoll : ∀ (n : ℕ), 0 < n → g ↑n ≤ C * ↑n ^ exponent) :
M =O[Filter.atTop] fun (n : ℕ) => ↑n ^ q

Transfer the subcritical upper bound to the exact comparison recurrence.

theorem AkraBazziRecurrence.asympBound_isBigO_rpow_mul_one_add_log_of_le {ι : Type u_1} [Fintype ι] [Nonempty ι] {M : ℕ → ℝ} {g : ℝ → ℝ} {a b : ι → ℝ} {r : ι → ℕ → ℕ} (R : AkraBazziRecurrence M g a b r) {q C : ℝ} (hq : ∑ i : ι, a i * b i ^ q = 1) (htoll : ∀ (n : ℕ), 0 < n → g ↑n ≤ C * ↑n ^ q) :
asympBound g a b =O[Filter.atTop] fun (n : ℕ) => ↑n ^ q * (1 + Real.log ↑n)

A critical toll bounded by C * n^q on positive integer inputs contributes at most a logarithmic factor. No condition on its value at zero is added. Nonnegativity of C follows from the toll hypothesis at one and the existing Akra–Bazzi nonnegativity assumption.

theorem AkraBazziRecurrence.isBigO_rpow_mul_one_add_log_of_le {ι : Type u_1} [Fintype ι] [Nonempty ι] {M : ℕ → ℝ} {g : ℝ → ℝ} {a b : ι → ℝ} {r : ι → ℕ → ℕ} (R : AkraBazziRecurrence M g a b r) {q C : ℝ} (hq : ∑ i : ι, a i * b i ^ q = 1) (htoll : ∀ (n : ℕ), 0 < n → g ↑n ≤ C * ↑n ^ q) :
M =O[Filter.atTop] fun (n : ℕ) => ↑n ^ q * (1 + Real.log ↑n)

Transfer the critical upper bound to the exact comparison recurrence.