Documentation

CslibFrontier.Computability.Complexity.Classes.Hierarchy.LazyDiagonalBounds

Shared arithmetic bounds for lazy diagonalization #

This module provides the shared arithmetic estimates used by the polynomial and exponential nondeterministic time hierarchy proofs (NondeterministicTime and NondeterministicExponentialTime) to bound the universal simulation and the verifier branch tests.

Main results #

theorem Cslib.Complexity.LazyDiagonal.accBound_aux (d cD cO : ℕ) :
∃ (K : ℕ), ∀ {N A W Dl Nl Ll X Y E : ℕ}, N ≤ 2 * X → A ≤ X → W ≤ 2 * X → Dl ≤ cD * (N + A + 1) → Nl ≤ 3 * W → Ll ≤ (d + 4) * X → 1 ≤ X → 1 ≤ Y → E ≤ cO * (N + A + (N + W + (N + Y)) + (2 * Dl + 1 + (2 * Nl + 1 + Ll) + 1) ^ 2 * (Y + 1) + 1) → N + A + (N + W + (N + Y)) + (2 * Dl + 1 + (2 * Nl + 1 + Ll) + 1) ^ 4 * (Y + 1) ^ 2 + (E + 1) ^ 2 + 1 ≤ K * (X ^ 4 * Y ^ 2) ∧ N + A + (N + W + (N + Y)) + (2 * Dl + 1 + (2 * Nl + 1 + Ll) + 1) ^ 2 * (Y + 1) + E + 1 ≤ K * (X ^ 4 * Y ^ 2)

The numeric core of the resources of the simulation: for an encoded input of length N, a decoding time A, a word W = frame y ++ v, a decoded description of encoded length Dl, encoded symbols of length Nl, a clock Y of Ll binary digits and a result of encoded length E, everything is within K * X ^ 4 * Y ^ 2.

theorem Cslib.Complexity.LazyDiagonal.cheap_aux (G : ℕ) {N n Z Y : ℕ} (hn : n ≤ N) (hY : 1 ≤ Y) (hZ : Z ≤ G * Y) :
N + 1 ≤ (N + 1) ^ 2 * Y ^ 2 ∧ (Z + 1) ^ 2 ≤ (G + 4) ^ 2 * ((N + 1) ^ 2 * Y ^ 2) ∧ (2 * N + 4 + Z) ^ 2 ≤ (G + 4) ^ 2 * ((N + 1) ^ 2 * Y ^ 2)

The numeric facts behind cheap, for an encoded input of length N, an input of length n and a clock Z of at most G * Y.

theorem Cslib.Complexity.LazyDiagonal.acceptance_input_bound {description n certificate C : ℕ} (hd : description ≤ C * n) (hn : n + 2 ≤ certificate) :
description + (n + 1) + certificate + 1 ≤ (C + 3) * certificate

A linear description bound and a certificate covering the input control the common fourth-power input factor in the acceptance simulation.

theorem Cslib.Complexity.LazyDiagonal.verifier_branch_bound {n t c a b M A₁ A₂ A₃ B : ℕ} {short : Bool} {q r : Prop} [Decidable q] [Decidable r] (hn : n + 1 ≤ M) (ht : t ≤ A₃ * M) (hc : c ≤ A₁ * M) (ha : short = true → a ≤ A₂ * M) (hb : ¬q → b ≤ n + 1 + B) :
n + t + (c + if short = true then c + if q then c + a else c + if r then c + b else c else c) ≤ (2 + A₃ + 4 * A₁ + A₂ + B) * M + (2 + A₃ + 4 * A₁ + A₂ + B)

Bound the complete lazy-verifier branch tree after charging certificate construction. Simulation is charged only for a short description, and search only when the first horizon comparison fails. The last comparison changes the branch but needs no further estimate.

theorem Cslib.Complexity.LazyDiagonal.brute_bound_aux (C K₀ N c : ℕ) (hc : 1 ≤ c) :
N + (C * 2 ^ N + c * c) + 2 ^ (K₀ * (2 * N + 1 + c + c)) ≤ (C + 3) * (2 ^ ((3 * K₀ + 4) * (N + c)) + 1)

The numeric facts behind the bound of the exponential brute-force search: the encoded pair of length N, the certificate length c, the unary certificate length and the search.