Documentation

CslibFrontier.Computability.BlumComplexity.Hierarchy

Arbitrarily complex functions and the hierarchy of complexity classes #

For every Blum complexity measure Φ and every computable bound t, there is a computable 0/1-valued function f such that every program c for f has cost t n < Φ c n for all sufficiently large n. This is the standard measure-independent form of the theorem on arbitrarily complex functions, in the axiomatic setting of Blum Blum, A machine-independent theory of the complexity of recursive functions. The result is commonly credited to Rabin (1960) and to Blum's paper. Neither attribution nor any theorem locator has been checked against the original texts.

Construction #

The proof is a priority construction without the recursion theorem. A cancellation run (Cslib.BlumComplexity.Cancellation.canc) calls the program numbered i eligible at stage y when it halts on y with cost at most t y. By Blum's second axiom (Cslib.BlumComplexity.BlumMeasure.computablePred_cost_le), eligibility is decidable. At each stage the least eligible program not cancelled earlier is cancelled, and f outputs 1 - φ_i y there, so that φ_i differs from f at y. Stages without a cancellation output 0. A program for f is never cancelled, so it is eligible only finitely often (Cslib.BlumComplexity.Cancellation.eventually_not_eligible).

Strength #

The lower bound t n < Φ c n holds almost everywhere, for every program c for f, which is the almost-everywhere form of the source. It is strictly stronger than f ∉ C_t, which only says that each program for f exceeds t infinitely often. The statement is not vacuous: f is computable, so it has a program, and every program for f has its cost defined everywhere.

Main results #

References #

theorem Cslib.BlumComplexity.BlumMeasure.exists_arbitrarilyComplex (Φ : BlumMeasure) {t : ℕ → ℕ} (ht : Computable t) :
∃ (f : ℕ → ℕ), Computable f ∧ (∀ (n : ℕ), f n ≤ 1) ∧ ∀ (c : Nat.Partrec.Code), (∀ (n : ℕ), f n ∈ c.eval n) → ∀ᶠ (n : ℕ) in Filter.atTop, ∀ m ∈ Φ.cost c n, t n < m

Arbitrarily complex functions, in Blum's axiomatic setting [Blu67]. For every computable bound t there is a computable function f with values in {0, 1} such that every program c for f has cost t n < Φ c n for all sufficiently large n. The attribution (to Rabin and to Blum's paper) is the customary one; no theorem locator has been verified.

theorem Cslib.BlumComplexity.BlumMeasure.exists_not_mem_complexityClass (Φ : BlumMeasure) {t : ℕ → ℕ} (ht : Computable t) :
∃ (f : ℕ → ℕ), Computable f ∧ (∀ (n : ℕ), f n ≤ 1) ∧ f ∉ Φ.complexityClass t

For every computable bound t, some computable 0/1-valued function lies outside C_t.

No complexity class of a computable bound contains every computable function.

Hierarchy: every computable bound t is dominated by a computable bound t' with C_t ⊂ C_{t'}. The bound t' is obtained non-uniformly, from a program for the function of exists_arbitrarilyComplex; no computable map from programs for t to programs for t' is claimed. This corollary is derived here and is not attributed to a source.