Documentation

CslibFrontier.Computability.BlumComplexity.Gap

Borodin's gap theorem #

For every Blum complexity measure Φ and every computable g with g n ≥ n, there is a computable bound t such that stretching it to g ∘ t adds no function to the complexity class: C_{g ∘ t} = C_t Borodin, Computational complexity and the existence of complexity gaps. Taking g n = 2 ^ n, for instance, exponentially more resources compute exactly the same functions beyond t. Hence complexity classes for arbitrary computable bounds need not form a hierarchy. Hierarchy theorems need constructible bounds. The stretch may also depend on the input: for every computable g with g n y ≥ y, some computable t has C_{n ↦ g n (t n)} = C_t (gap_theorem₂).

The proof constructs t n by searching for a k such that no program numbered at most n has cost on input n in the interval (k, g n k]. Iterating k ↦ max k (g n k) gives n + 2 disjoint intervals, and each of the n + 1 programs has its cost in at most one of them, so the search terminates. Blum's second axiom makes each test decidable. Each program c is accounted for at every input n ≥ encode c, which gives the pointwise statement exists_gap₂: for those inputs, Φ c n ≤ t n or Φ c n > g n (t n).

Conventions and strength #

complexityClass t uses Borodin's almost-everywhere convention: f ∈ C_t when some program for f has cost at most t n for all sufficiently large n (see CslibFrontier.Computability.BlumComplexity.Basic). exists_gap₂ gives an explicit threshold for each program, namely n ≥ encode c. So the class equality holds for this almost-everywhere class, as in the source. All statements also allow a computable lower bound a: the gap function t can be chosen strictly increasing with t ≥ a, so gaps occur above every computable function. Dropping these extra conclusions leaves the statement C_{g ∘ t} = C_t for a computable t. The one-argument forms exists_gap and gap_theorem are the special case where g n y does not depend on n.

Main results #

References #

theorem Cslib.BlumComplexity.BlumMeasure.exists_gap₂ (Φ : BlumMeasure) {g : ℕ → ℕ → ℕ} {a : ℕ → ℕ} (hg : Computable₂ g) (ha : Computable a) :
∃ (t : ℕ → ℕ), Computable t ∧ StrictMono t ∧ (∀ (n : ℕ), a n ≤ t n) ∧ ∀ (c : Nat.Partrec.Code) (n : ℕ), Encodable.encode c ≤ n → ∀ m ∈ Φ.cost c n, m ≤ t n ∨ g n (t n) < m

Pointwise gap [Bor72], with a two-argument stretch. For every computable g and every computable lower bound a, there is a computable, strictly increasing t ≥ a such that, for every program c and every input n ≥ encode c, the cost Φ c n, if defined, is at most t n or greater than g n (t n).

theorem Cslib.BlumComplexity.BlumMeasure.exists_gap (Φ : BlumMeasure) {g a : ℕ → ℕ} (hg : Computable g) (ha : Computable a) :
∃ (t : ℕ → ℕ), Computable t ∧ StrictMono t ∧ (∀ (n : ℕ), a n ≤ t n) ∧ ∀ (c : Nat.Partrec.Code) (n : ℕ), Encodable.encode c ≤ n → ∀ m ∈ Φ.cost c n, m ≤ t n ∨ g (t n) < m

Pointwise gap [Bor72]. For every computable g and every computable lower bound a, there is a computable, strictly increasing t ≥ a such that, for every program c and every input n ≥ encode c, the cost Φ c n, if defined, is at most t n or greater than g (t n).

theorem Cslib.BlumComplexity.BlumMeasure.gap_theorem₂ (Φ : BlumMeasure) {g : ℕ → ℕ → ℕ} {a : ℕ → ℕ} (hg : Computable₂ g) (hgn : ∀ (n y : ℕ), y ≤ g n y) (ha : Computable a) :
∃ (t : ℕ → ℕ), Computable t ∧ StrictMono t ∧ (∀ (n : ℕ), a n ≤ t n) ∧ (Φ.complexityClass fun (n : ℕ) => g n (t n)) = Φ.complexityClass t

Borodin's gap theorem [Bor72], with a two-argument stretch. For every computable g with g n y ≥ y and every computable lower bound a, there is a computable, strictly increasing t ≥ a with C_{n ↦ g n (t n)} = C_t.

theorem Cslib.BlumComplexity.BlumMeasure.gap_theorem (Φ : BlumMeasure) {g a : ℕ → ℕ} (hg : Computable g) (hgn : ∀ (n : ℕ), n ≤ g n) (ha : Computable a) :
∃ (t : ℕ → ℕ), Computable t ∧ StrictMono t ∧ (∀ (n : ℕ), a n ≤ t n) ∧ Φ.complexityClass (g ∘ t) = Φ.complexityClass t

Borodin's gap theorem [Bor72]. For every computable g with g n ≥ n and every computable lower bound a, there is a computable, strictly increasing t ≥ a with C_{g ∘ t} = C_t.