Documentation

CslibFrontier.Computability.Complexity.Classes.CountingSimulation.ContractionCall

Calling a contraction algorithm behind a guard #

Applications of the contraction interface (Cslib.Complexity.CountingSimulation.ContractionAlgorithm) evaluate a polynomial-time guard and then either compute a precision and a network in polynomial time and run the contraction algorithm on them, or return a polynomial-time fallback answer. When the networks of the inputs passing the guard are admissible at a size s ≥ 2 with a fixed constant, with a precision between 1 and a fixed multiple of s, this machine runs in time 2 ^ E times a polynomial and in polynomial space for every exponent E that bounds the interface's exponent K s / √⌊log₂ s⌋ on those inputs (Cslib.Complexity.CountingSimulation.ContractionAlgorithm.expTimePolySpace_branch).

Main results #

theorem Cslib.Complexity.CountingSimulation.ContractionAlgorithm.expTimePolySpace_branch {α N : Type} {enc : α ↪ List Bool} {encN : N ↪ List Bool} {value : N → ℕ} {Admissible : ℕ → ℕ → N → Prop} (A : ContractionAlgorithm encN value Admissible) {guard : α → Bool} (hguard : Turing.MultiTapeTM.ComputableInPolyTime guard enc Turing.MultiTapeTM.encBool) {input : α → ℕ × N} (hinput : Turing.MultiTapeTM.ComputableInPolyTime input enc (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encNat encN)) {fallback : α → ℕ} (hfallback : Turing.MultiTapeTM.ComputableInPolyTime fallback enc Turing.MultiTapeTM.encNat) (C D : ℕ) (s : α → ℕ) (hs : ∀ (a : α), guard a = true → 2 ≤ s a ∧ 1 ≤ (input a).1 ∧ (input a).1 ≤ D * s a ∧ Admissible C (s a) (input a).2) :
∃ (K : ℕ), ∀ (E : α → ℕ), (∀ (a : α), guard a = true → K * s a / (Nat.log 2 (s a)).sqrt ≤ E a) → ((GenericRAM.NativeCertificate.ofPolyTime hguard).branch (A.certificate.comp (GenericRAM.NativeCertificate.ofPolyTime hinput)) (GenericRAM.NativeCertificate.ofPolyTime hfallback)).ExpTimePolySpace E

A guarded call of a contraction algorithm runs in time 2 ^ E times a polynomial and in polynomial space. The machine evaluates a polynomial-time guard; on the inputs passing it, it computes a precision and a network by the polynomial-time input and runs the contraction algorithm A, and elsewhere it returns the polynomial-time fallback. If the network of every input a passing the guard is admissible at a size s a ≥ 2 with constant C, with a precision between 1 and D * s a, then for some K the machine runs in time 2 ^ E times a polynomial and in polynomial space for every exponent E with K * s a / √⌊log₂ (s a)⌋ ≤ E a on those inputs.