Documentation

CslibFrontier.Computability.Complexity.FineGrained.Reduction

Reductions of linear size #

Exponential time bounds in a parameter of the instance transfer along polynomial-time reductions that increase the parameter at most linearly. If f reduces A to B in polynomial time and μB (f a) ≤ c * μA a + c, then a decider for B within time 2 ^ (δ * μB b) times a polynomial in the length of the encoded instance gives a decider for A within time 2 ^ (c * δ * μA a) times a polynomial (Cslib.Complexity.DecidableInExpTime.of_reduction): run the reduction, then the decider. The polynomial absorbs the running time of the reduction and the length of its output. Hence subexponential time in μB gives subexponential time in μA (Cslib.Complexity.DecidableInSubexpTime.of_reduction).

More generally, subexponential time transfers along $2^{O(m(a))}$-time reductions (Cslib.Complexity.DecidableInSubexpTime.of_expReduction), where the target measure is bounded linearly in $m(a) \log_2 m(a)$ and the $2^{O(m(a))}$ runtime is absorbed into $2^{(\varepsilon / 2) m(a) \log_2 m(a)}$.

Subexponential time in a smaller measure transfers to every measure that bounds it up to a linear factor (Cslib.Complexity.DecidableInSubexpTime.mono_measure).

These transfers are how linear-size reductions from 3SAT give the classical lower bounds under the exponential time hypothesis [IPZ01] [CyganEtAl2015, Chapter 14]. Cslib.Complexity.CountingNativeEndpoint.not_ETH refutes that hypothesis, and with it Cslib.Complexity.ETH_iff_not_decidableInSubexpTime_length proves that ThreeSAT is decidable in subexponential time in the number of clauses, so a transfer whose conclusion is that statement carries no information and is not stated here.

The scalar estimates for measure rescaling and reduction-time composition are shared with function-time and randomized transfers through CslibFrontier.Computability.Complexity.FineGrained.Bounds.

Main results #

References #

Changing the measure #

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

A decider within time 2 ^ (δ * μ a) times a polynomial, for a measure μ ≤ c * μ' + c, decides within time 2 ^ (c * δ * μ' a) times a polynomial.

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

Subexponential time in a measure μ ≤ c * μ' + c gives subexponential time in μ'. So a lower bound for μ' gives the lower bound for μ.

Reductions #

theorem Cslib.Complexity.DecidableInExpTime.of_reduction {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} {μA : α → ℕ} {μB : β → ℕ} {f : α → β} (hf : Turing.MultiTapeTM.ComputableInPolyTime f encA encB) (hfA : ∀ (a : α), a ∈ A ↔ f a ∈ B) {c : ℕ} (hμ : ∀ (a : α), μB (f a) ≤ c * μA a + c) {δ : ℝ} (hδ : 0 ≤ δ) (h : DecidableInExpTime B encB μB δ) :
DecidableInExpTime A encA μA (↑c * δ)

Transfer along reductions of linear size. If f reduces A to B in polynomial time with μB (f a) ≤ c * μA a + c, then a decider for B within time 2 ^ (δ * μB b) times a polynomial in the length of the encoded instance gives a decider for A within time 2 ^ (c * δ * μA a) times a polynomial.

theorem Cslib.Complexity.DecidableInSubexpTime.of_reduction {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} {μA : α → ℕ} {μB : β → ℕ} {f : α → β} (hf : Turing.MultiTapeTM.ComputableInPolyTime f encA encB) (hfA : ∀ (a : α), a ∈ A ↔ f a ∈ B) {c : ℕ} (hμ : ∀ (a : α), μB (f a) ≤ c * μA a + c) (h : DecidableInSubexpTime B encB μB) :

Transfer along reductions of linear size. If f reduces A to B in polynomial time with μB (f a) ≤ c * μA a + c, and B is decidable in subexponential time in μB, then A is decidable in subexponential time in μA.

Exponential-time reductions into $m \log_2 m$ #

theorem Cslib.Complexity.DecidableInSubexpTime.of_expReduction {α β : Type} {encA : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} {μB : β → ℕ} {f : α → β} {m : α → ℕ} (hf : ∃ (C : ℕ) (D : ℕ), Turing.MultiTapeTM.ComputableInO f encA encB (fun (a : α) => 2 ^ (C * m a) * ((encA a).length + 1) ^ D) fun (a : α) => 2 ^ (C * m a) * ((encA a).length + 1) ^ D) (hfA : ∀ (a : α), a ∈ A ↔ f a ∈ B) {c : ℕ} (hμ : ∀ (a : α), μB (f a) ≤ c * (m a * Nat.log 2 (m a)) + c) (h : DecidableInSubexpTime B encB μB) :
DecidableInSubexpTime A encA fun (a : α) => m a * Nat.log 2 (m a)

Subexponential-time transfer along $2^{O(m(a))}$-time reductions. If $f : \alpha \to \beta$ is computable in time $O(2^{C m(a)} \cdot (|a| + 1)^D)$, reduces $A$ to $B$, and maps every instance $a$ to one with parameter $\mu_B(f(a)) \le c \cdot m(a) \log_2 m(a) + c$, then a $2^{o(\mu_B)}$-time decider for $B$ yields a $2^{o(m \log m)}$-time decider for $A$.