Documentation

CslibFrontier.Computability.Complexity.FineGrained.ExhaustiveSearch

Exhaustive-search reductions #

Exponential, subexponential, and fixed-power time bounds transfer along reductions that branch over $2^{\nu(a)}$ polynomial-time subinstances $f(a, r)$ (r < 2 ^ ν a), implemented by iterating a polynomial-time step with a binary counter (Turing.MultiTapeTM.ComputableInO.iterate):

Main results #

References #

theorem Cslib.Complexity.DecidableInExpTime.of_computableInPolyTime {α : Type} {encA : α ↪ List Bool} {A : Set α} {μ : α → ℕ} {p : α → Bool} (hp : Turing.MultiTapeTM.ComputableInPolyTime p encA Turing.MultiTapeTM.encBool) (hA : ∀ (a : α), a ∈ A ↔ p a = true) :
DecidableInExpTime A encA μ 0

A set decided by a polynomial-time predicate is decidable within exponential time with exponent 0 for any parameter μ.

theorem Cslib.Complexity.DecidableInExpTime.of_exhaustiveSearch {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} {μA : α → ℕ} {μB : β → ℕ} {f : α × ℕ → β} {ν : α → ℕ} (hf : Turing.MultiTapeTM.ComputableInPolyTime f (Turing.MultiTapeTM.encPair encA Turing.MultiTapeTM.encNat) encB) (hν : Turing.MultiTapeTM.ComputableInPolyTime ν encA Turing.MultiTapeTM.encUnary) (hfA : ∀ (a : α), a ∈ A ↔ ∃ r < 2 ^ ν a, f (a, r) ∈ B) {c : ℕ} (hμ : ∀ (a : α) (r : ℕ), μB (f (a, r)) ≤ c * μA a + c) {M K : ℕ} (hνM : ∀ (a : α), ν a ≤ μA a / M + K) {δ : ℝ} (hδ : 0 ≤ δ) (h : DecidableInExpTime B encB μB δ) :
DecidableInExpTime A encA μA (1 / ↑M + ↑c * δ)

Exponential-time transfer along an exhaustive search. If $f : \alpha \times \mathbb{N} \to \beta$ and $\nu : \alpha \to \mathbb{N}$ are computable in polynomial time (with $\nu$ in unary), $a \in A \iff \exists r < 2^{\nu(a)},\, f(a, r) \in B$, $\mu_B(f(a, r)) \le c \cdot \mu_A(a) + c$, and $\nu(a) \le \mu_A(a) / M + K$, then a decider for $B$ within time $2^{\delta \mu_B(b)} \cdot \mathrm{poly}(|b|)$ yields a decider for $A$ within time $2^{(1 / M + c \delta) \mu_A(a)} \cdot \mathrm{poly}(|a|)$.

theorem Cslib.Complexity.DecidableInPowerExpTime.of_exhaustiveSearch {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} {μA : α → ℕ} {μB : β → ℕ} {f : α × ℕ → β} {ν : α → ℕ} (hf : Turing.MultiTapeTM.ComputableInPolyTime f (Turing.MultiTapeTM.encPair encA Turing.MultiTapeTM.encNat) encB) (hν : Turing.MultiTapeTM.ComputableInPolyTime ν encA Turing.MultiTapeTM.encUnary) (hfA : ∀ (a : α), a ∈ A ↔ ∃ r < 2 ^ ν a, f (a, r) ∈ B) {C K : ℕ} {q b p : ℝ} (hbranch : ∀ (a : α), ↑(ν a) ≤ ↑C * (↑(μA a) + 1) ^ q) (hsize : ∀ (a : α) (r : ℕ), ↑(μB (f (a, r))) + 1 ≤ (↑K + 1) * (↑(μA a) + 1) ^ b) (hp : 0 ≤ p) (h : DecidableInPowerExpTime B encB μB p) :
DecidableInPowerExpTime A encA μA (max q (b * p))

Exhaustive search with a branch exponent of power q and query parameter blowup of power b transfers a power-p decider to a power-max q (b * p) decider. Query generation and computing the number of branch bits take polynomial time. The binary search counters and all encoded queries have length polynomial in the encoded input length.

theorem Cslib.Complexity.DecidableInSubexpTime.of_exhaustiveSearch {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} {μA : α → ℕ} {μB : β → ℕ} {f : α × ℕ → β} {ν : α → ℕ} (hf : Turing.MultiTapeTM.ComputableInPolyTime f (Turing.MultiTapeTM.encPair encA Turing.MultiTapeTM.encNat) encB) (hν : Turing.MultiTapeTM.ComputableInPolyTime ν encA Turing.MultiTapeTM.encUnary) (hfA : ∀ (a : α), a ∈ A ↔ ∃ r < 2 ^ ν a, f (a, r) ∈ B) {c : ℕ} (hμ : ∀ (a : α) (r : ℕ), μB (f (a, r)) ≤ c * μA a + c) (hνM : ∀ M > 0, ∃ (K : ℕ), ∀ (a : α), ν a ≤ μA a / M + K) (h : DecidableInSubexpTime B encB μB) :

Subexponential-time transfer along an exhaustive search with sublinear branch exponent. If $f : \alpha \times \mathbb{N} \to \beta$ and $\nu : \alpha \to \mathbb{N}$ are computable in polynomial time (with $\nu$ in unary), $a \in A \iff \exists r < 2^{\nu(a)},\, f(a, r) \in B$, $\mu_B(f(a, r)) \le c \cdot \mu_A(a) + c$, and for every $M \ge 1$ there is a constant $K$ with $\nu(a) \le \mu_A(a) / M + K$, then subexponential time for $B$ in $\mu_B$ gives subexponential time for $A$ in $\mu_A$.