Documentation

CslibFrontier.Computability.Complexity.FineGrained.SingleSubexp

Single-machine subexponential time (2 ^ o(μ)) versus machine families (∀ δ > 0, ∃ M) #

Fine-grained complexity distinguishes two formulations of subexponential runtime in a parameter μ : α → ℕ [ImpagliazzoPaturi2001; ImpagliazzoPaturiZane2001]:

  1. Family subexponential time (Cslib.Complexity.DecidableInSubexpTime, Cslib.Complexity.ComputableInSubexpTime): for every δ > 0 there exist a machine M_δ and polynomial degree e_δ solving the problem within time O(2 ^ (δ * μ a) * (L + 1) ^ e_δ). For instance, fixed-threshold sparsification [IPZ01] chooses its branching fan-out threshold from the target accuracy ε > 0, producing a family indexed by δ.
  2. Single-machine subexponential time (Cslib.Complexity.DecidableInSingleSubexpTime, Cslib.Complexity.ComputableInSingleSubexpTime): a single machine and fixed polynomial degree e solve the problem within time O(2 ^ s (μ a) * (L + 1) ^ e) for a nonnegative scale s =o[atTop] id.

This module formalizes single-machine subexponential decision and function computation and proves their exact relationship to the family notions:

Main definitions #

Main results #

References #

Asymptotic rescaling for o(n) exponents #

Single-machine subexponential decision and function computation #

def Cslib.Complexity.DecidableInSingleSubexpTime {α : Type u_1} (A : Set α) (enc : α ↪ List Bool) (μ : α → ℕ) :

A is decidable in single-machine subexponential time in μ: a single machine and fixed polynomial degree e decide A within time O(2 ^ s (μ a) * (L + 1) ^ e) for a nonnegative scale s =o[atTop] id.

def Cslib.Complexity.ComputableInSingleSubexpTime {α : Type u_1} {β : Type u_2} (f : α → β) (encIn : α ↪ List Bool) (encOut : β ↪ List Bool) (μ : α → ℕ) :

f is computable in single-machine subexponential time in μ: a single machine and fixed polynomial degree e compute f within time O(2 ^ s (μ a) * (L + 1) ^ e) for a nonnegative scale s =o[atTop] id.

Single-machine implies family subexponential decision.

theorem Cslib.Complexity.ComputableInSingleSubexpTime.computableInSubexpTime {α : Type u_1} {β : Type u_2} {f : α → β} {encIn : α ↪ List Bool} {encOut : β ↪ List Bool} {μ : α → ℕ} (h : ComputableInSingleSubexpTime f encIn encOut μ) :
ComputableInSubexpTime f encIn encOut μ

Single-machine implies family subexponential function computation.

Quantifier-order characterization (∃ (M, e), ∀ δ > 0, ∃ c) #

theorem Cslib.Complexity.computableInSingleSubexpTime_iff_exists_machine {α : Type u_1} {β : Type u_2} {f : α → β} {encIn : α ↪ List Bool} {encOut : β ↪ List Bool} {μ : α → ℕ} :
ComputableInSingleSubexpTime f encIn encOut μ ↔ ∃ (t : α → ℕ) (sp : α → ℕ) (e : ℕ), Turing.MultiTapeTM.ComputableInTimeAndSpace f encIn encOut t sp ∧ ∀ (δ : ℝ), 0 < δ → ∃ (c : ℕ), ∀ (a : α), ↑(t a) ≤ ↑c * (2 ^ (δ * ↑(μ a)) * (↑(encIn a).length + 1) ^ e) + ↑c

Machine-quantifier characterization of ComputableInSingleSubexpTime. Single-machine 2 ^ o(μ) function computation is equivalent to having one machine (ComputableInTimeAndSpace f encIn encOut t sp) and one polynomial degree e that satisfy the 2 ^ (δ * μ a) * (L + 1) ^ e runtime bound for every δ > 0.

theorem Cslib.Complexity.decidableInSingleSubexpTime_iff_exists_machine {α : Type u_1} {A : Set α} {enc : α ↪ List Bool} {μ : α → ℕ} :
DecidableInSingleSubexpTime A enc μ ↔ ∃ (t : α → ℕ) (sp : α → ℕ) (e : ℕ), Turing.MultiTapeTM.DecidableInTimeAndSpace A enc t sp ∧ ∀ (δ : ℝ), 0 < δ → ∃ (c : ℕ), ∀ (a : α), ↑(t a) ≤ ↑c * (2 ^ (δ * ↑(μ a)) * (↑(enc a).length + 1) ^ e) + ↑c

Machine-quantifier characterization of DecidableInSingleSubexpTime. Single-machine 2 ^ o(μ) decision is equivalent to having one machine (DecidableInTimeAndSpace A enc t sp) and one polynomial degree e that satisfy the 2 ^ (δ * μ a) * (L + 1) ^ e runtime bound for every δ > 0 (with only the constant c depending on δ).

Measure rescaling and reduction transfers #

theorem Cslib.Complexity.ComputableInSingleSubexpTime.mono_measure {α : Type u_1} {β : Type u_2} {f : α → β} {encIn : α ↪ List Bool} {encOut : β ↪ List Bool} {μ μ' : α → ℕ} {c : ℕ} (hμ : ∀ (a : α), μ a ≤ c * μ' a + c) (h : ComputableInSingleSubexpTime f encIn encOut μ) :
ComputableInSingleSubexpTime f encIn encOut μ'

Single-machine subexponential function computation transfers to any parameter at least linear in μ.

theorem Cslib.Complexity.DecidableInSingleSubexpTime.mono_measure {α : Type u_1} {A : Set α} {enc : α ↪ List Bool} {μ μ' : α → ℕ} {c : ℕ} (hμ : ∀ (a : α), μ a ≤ c * μ' a + c) (h : DecidableInSingleSubexpTime A enc μ) :

Single-machine subexponential decision transfers to any parameter at least linear in μ.

theorem Cslib.Complexity.DecidableInSingleSubexpTime.of_computableInPolyTime {α : Type} {encIn : α ↪ List Bool} {A : Set α} {μ : α → ℕ} {g : α → Bool} (hg : Turing.MultiTapeTM.ComputableInPolyTime g encIn Turing.MultiTapeTM.encBool) (hA : ∀ (a : α), a ∈ A ↔ g a = true) :

Polynomial-time decidable sets are decidable in single-machine subexponential time.

theorem Cslib.Complexity.ComputableInSingleSubexpTime.of_computableInPolyTime {α β : Type} {encIn : α ↪ List Bool} {encMid : β ↪ List Bool} {f : α → β} {μ : α → ℕ} (hf : Turing.MultiTapeTM.ComputableInPolyTime f encIn encMid) :

Polynomial-time computable functions are computable in single-machine subexponential time.

theorem Cslib.Complexity.ComputableInSingleSubexpTime.ite_polyTime {α β : Type} {encIn : α ↪ List Bool} {encMid : β ↪ List Bool} {f g : α → β} {p : α → Bool} {μ : α → ℕ} (hp : Turing.MultiTapeTM.ComputableInPolyTime p encIn Turing.MultiTapeTM.encBool) (hf : ComputableInSingleSubexpTime f encIn encMid μ) (hg : Turing.MultiTapeTM.ComputableInPolyTime g encIn encMid) :
ComputableInSingleSubexpTime (fun (a : α) => if p a = true then f a else g a) encIn encMid μ

Guarding a single-machine subexponential function by a polynomial-time test and fallback preserves single-machine subexponential time.

theorem Cslib.Complexity.DecidableInSingleSubexpTime.of_computableInSingleSubexpTime_polyBounded {α β : Type} {encIn : α ↪ List Bool} {encMid : β ↪ List Bool} {f : α → β} {μ : α → ℕ} (hf : ComputableInSingleSubexpTime f encIn encMid μ) (hlen : Turing.MultiTapeTM.PolyBounded (fun (a : α) => (encIn a).length) fun (a : α) => (encMid (f a)).length) {test : β → Bool} (htest : Turing.MultiTapeTM.ComputableInPolyTime test encMid Turing.MultiTapeTM.encBool) :
DecidableInSingleSubexpTime {a : α | test (f a) = true} encIn μ

Single-machine decision from function computation. Composing a single-machine subexponential function of polynomially bounded output length with a polynomial-time test yields a single-machine subexponential decision procedure.

theorem Cslib.Complexity.ComputableInSingleSubexpTime.of_reduction {α β γ : Type} {encIn : α ↪ List Bool} {encMid : β ↪ List Bool} {encOut : γ ↪ List Bool} {μA : α → ℕ} {μB : β → ℕ} {r : α → β} {g : β → γ} (hr : Turing.MultiTapeTM.ComputableInPolyTime r encIn encMid) {c : ℕ} (hμ : ∀ (a : α), μB (r a) ≤ c * μA a + c) (hg : ComputableInSingleSubexpTime g encMid encOut μB) :
ComputableInSingleSubexpTime (g ∘ r) encIn encOut μA

Transfer along linear-parameter parsimonious reductions (SingleSubexp).

theorem Cslib.Complexity.DecidableInSingleSubexpTime.of_reduction {α β : Type} {encIn : α ↪ List Bool} {encMid : β ↪ List Bool} {A : Set α} {B : Set β} {μA : α → ℕ} {μB : β → ℕ} {r : α → β} (hr : Turing.MultiTapeTM.ComputableInPolyTime r encIn encMid) (hAB : ∀ (a : α), a ∈ A ↔ r a ∈ B) {c : ℕ} (hμ : ∀ (a : α), μB (r a) ≤ c * μA a + c) (hB : DecidableInSingleSubexpTime B encMid μB) :

Transfer along linear-parameter polynomial-time reductions (SingleSubexp decision).

Problem instance input paired with a unary precision index precision (representing target rate 1 / (precision + 1) in an effectively uniform algorithm family).

  • precision : ℕ

    Unary precision index m.

  • input : α

    Underlying problem instance.

Framed encoding of PrecisionInput α (encUnary precision and enc instance).

theorem Cslib.Complexity.ComputableInSingleSubexpTime.of_uniformFamily {α β : Type} {encIn : α ↪ List Bool} {encOut : β ↪ List Bool} {f : α → β} {μ : α → ℕ} {evalAt : PrecisionInput α → β} {T S : PrecisionInput α → ℕ} (heval : Turing.MultiTapeTM.ComputableInO evalAt (PrecisionInput.encoding encIn) encOut T S) (hcorrect : ∀ (m : ℕ) (a : α), evalAt { precision := m, input := a } = f a) {c d e : ℕ} (htime : ∀ (m : ℕ) (a : α), ↑(T { precision := m, input := a }) ≤ ↑c * ((↑m + 1) ^ d * (2 ^ (↑(μ a) / (↑m + 1)) * (↑(encIn a).length + 1) ^ e)) + ↑c) {sched : α → ℕ} (hsched : Turing.MultiTapeTM.ComputableInPolyTime sched encIn Turing.MultiTapeTM.encUnary) (htend : ∀ (M : ℕ), ∃ (N : ℕ), ∀ (a : α), N ≤ μ a → M ≤ sched a) :

Converse from an effectively uniform rate family (ComputableInSingleSubexpTime). While an arbitrary non-uniform ∀ δ > 0, ∃ M_δ family need not collapse to one machine, a single uniform machine evalAt : PrecisionInput α → β running in time ≤ c * ((m + 1) ^ d * 2 ^ (μ a / (m + 1)) * (|enc a| + 1) ^ e) + c together with a polynomial-time precision schedule sched : α → ℕ tending to ∞ with μ a yields a single 2 ^ o(μ a) · poly(L) machine.

theorem Cslib.Complexity.DecidableInSingleSubexpTime.of_uniformFamily {α : Type} {encIn : α ↪ List Bool} {A : Set α} {μ : α → ℕ} {decideAt : PrecisionInput α → Bool} {T S : PrecisionInput α → ℕ} (hdec : Turing.MultiTapeTM.ComputableInO decideAt (PrecisionInput.encoding encIn) Turing.MultiTapeTM.encBool T S) (hcorrect : ∀ (m : ℕ) (a : α), a ∈ A ↔ decideAt { precision := m, input := a } = true) {c d e : ℕ} (htime : ∀ (m : ℕ) (a : α), ↑(T { precision := m, input := a }) ≤ ↑c * ((↑m + 1) ^ d * (2 ^ (↑(μ a) / (↑m + 1)) * (↑(encIn a).length + 1) ^ e)) + ↑c) {sched : α → ℕ} (hsched : Turing.MultiTapeTM.ComputableInPolyTime sched encIn Turing.MultiTapeTM.encUnary) (htend : ∀ (M : ℕ), ∃ (N : ℕ), ∀ (a : α), N ≤ μ a → M ≤ sched a) :

Converse from an effectively uniform rate family (DecidableInSingleSubexpTime).

SingleETH, SingleSharpETH, and single-machine rate transfers #

Single-machine ETH: 3-SAT is not decidable by a single machine in time 2 ^ o(n) · poly(L) (n = φ.numVars).

Single-machine #ETH: #3-SAT is not computable by a single machine in time 2 ^ o(n) · poly(L) (n = φ.numVars).

Family ETH implies single-machine SingleETH (the contrapositive DecidableInSingleSubexpTime.decidableInSubexpTime is unconditional).

Family SharpETH implies single-machine SingleSharpETH.

Single-machine decision hardness implies single-machine counting hardness (SingleETH → SingleSharpETH).