The exponential time hypotheses #
Fine-grained complexity measures running time in a parameter of the instance, such as the number
n of variables of a formula, rather than in the length L of its encoding. The time class
Cslib.Complexity.DTIME bounds the time by a function of L; here
Cslib.Complexity.DecidableInTimeO A enc T bounds it by O(T a) for any real function T of the
instance a, on the same machines. A bound that is a function of the length gives back DTIME
(Cslib.Complexity.mem_DTIME_iff_decidableInTimeO).
Cslib.Complexity.DecidableInExpTime A enc μ δ says that A is decidable within time
2 ^ (δ * μ a) times a polynomial in L, for a parameter μ. The polynomial in L is the cost of
reading and processing the instance; the parameter is never hidden in the encoding length. For
formulas μ is usually the number of distinct variables (Cslib.Logic.PL.CNF.numVars), which is
at most L, and can be much smaller.
Cslib.Complexity.KSAT kisk-SAT, the satisfiable formulas whose clauses have at mostkliterals, andCslib.Complexity.satExponent kis its exponents_k[IP01]: the infimum of theδ ≥ 0for whichk-SAT is decidable within time2 ^ (δ * n)times a polynomial.Cslib.Complexity.ETH, the exponential time hypothesis [IP01]: for someδ > 0, 3SAT is not decidable within time2 ^ (δ * n)times any polynomial inL.Cslib.Complexity.SETH, the strong exponential time hypothesis: for everyε > 0somek-SAT is not decidable within time2 ^ ((1 - ε) * n)times any polynomial inL.Cslib.Complexity.OV, the orthogonal vectors problem, andCslib.Complexity.OVH, the orthogonal vectors hypothesis in its moderate-dimension form: for everyε > 0,OVis not decidable within timeN ^ (2 - ε)times any polynomial in the dimensiond, onNvectors.
The negation of ETH is Cslib.Complexity.DecidableInSubexpTime: decidability within time
2 ^ (δ * n) times a polynomial for every δ > 0, by a decider that may depend on δ
(Cslib.Complexity.ETH_iff_not_decidableInSubexpTime).
The companion CountingNativeEndpoint module proves subexponential decidability of k-SAT for each fixed width using an exact-counting algorithm with polynomial workspace. It derives zero SAT exponents and the negations of ETH and SETH. The hypotheses remain defined here so their conditional consequences can still be stated.
Main definitions #
Cslib.Complexity.DecidableInTimeO,Cslib.Complexity.DecidableInExpTime,Cslib.Complexity.DecidableInSubexpTime: time bounds in parameters of the instance.Cslib.Complexity.KSAT,Cslib.Complexity.satExponent:k-SAT and its exponent.Cslib.Complexity.ETH,Cslib.Complexity.SETH: the exponential time hypotheses.Cslib.Complexity.OV,Cslib.Complexity.encOV,Cslib.Complexity.OVH: the orthogonal vectors problem and hypothesis.
Main results #
Cslib.Complexity.mem_DTIME_iff_decidableInTimeO:DTIMEisDecidableInTimeOfor bounds in the length of the encoded instance.Cslib.Complexity.DecidableInTimeO.exists_computableInO,Cslib.Complexity.DecidableInTimeO.of_computableInO: deciders within timeO(T)are the Boolean functions computable within timeO(T), which compose.Cslib.Complexity.DecidableInTimeO.inter: restricting to a set decided in polynomial time.Cslib.Complexity.DecidableInExpTime.mono: larger exponents allow more problems.Cslib.Complexity.ETH_iff_not_decidableInSubexpTime.
References #
Time bounds in parameters of the instance #
A is decidable within time O(T a) on the instance a: within time c * T a + c, for a
constant c, by a machine with a binary alphabet and finitely many states reading enc a, with
any space bound. Unlike Cslib.Complexity.DTIME, the bound is any real function of the instance,
not only a function of the length of enc a.
Weakening the bound of Cslib.Complexity.DecidableInTimeO up to constants.
DTIME in terms of DecidableInTimeO. For a bound that is a function of the length of
the encoded instance, Cslib.Complexity.DecidableInTimeO is membership in
Cslib.Complexity.DTIME.
The machine combinators of the library are stated for Type.
A decider within time O(T) is a decider within time and space O(t), for a bound t
within O(T).
A decider within time O(t), for t ≤ T, decides within time O(T).
Restriction to a set decided in polynomial time. If p is computable in polynomial time
and B is decidable within time O(T), then the instances of B satisfying p are decidable
within time O(T) on instances satisfying p, plus a polynomial in the length of the encoded
instance: the decider tests p first, and rejects at once when it fails.
Exponential and subexponential time #
A is decidable within time 2 ^ (δ * μ a) times a polynomial in the length of the encoded
instance: within time O(2 ^ (δ * μ a) * (L + 1) ^ e) for some e, on instances a with encoding
of length L.
A is decidable in subexponential time in μ: within time 2 ^ (δ * μ a) times a polynomial
in the length of the encoded instance, for every δ > 0. The decider may depend on δ, so this is
weaker than a single decider within time 2 ^ o(μ a); it is the negation of the quantifier pattern
of the exponential time hypothesis.
Larger exponents allow more problems.
A decider within time O(t), for t within a constant times 2 ^ (δ * μ a) times a
polynomial, decides within time 2 ^ (δ * μ a) times a polynomial.
Restriction to a set decided in polynomial time, for exponential bounds with δ ≥ 0.
k-SAT and the exponential time hypotheses #
k-SAT: the satisfiable formulas whose clauses have at most k literals.
The exponent s_k of k-SAT [IP01]: the infimum (Cslib.rateExponent) of the
δ ≥ 0 for which k-SAT is decidable within time 2 ^ (δ * n) times a polynomial in the length of
the encoded formula, on formulas with n variables. Exhaustive search puts 1 in this set, so
s_k ∈ [0, 1] (Cslib.Complexity.satExponent_le_one).
The exponential time hypothesis [IP01]: for some δ > 0, 3SAT is not
decidable within time 2 ^ (δ * n) times any polynomial in the length of the encoded formula, on
formulas with n variables.
The strong exponential time hypothesis [IP01]: for every ε > 0 there is
a width k such that k-SAT is not decidable within time 2 ^ ((1 - ε) * n) times any polynomial
in the length of the encoded formula, on formulas with n variables.
The exponential time hypothesis says that 3SAT is not decidable in subexponential time in the number of variables.
Orthogonal vectors #
Two bit vectors are orthogonal when no coordinate is true in both. Missing coordinates of a
shorter vector count as false.
Instances For
The orthogonal vectors hypothesis, in its moderate-dimension form: for every ε > 0, the
orthogonal vectors problem is not decidable within time N ^ (2 - ε) times any polynomial in the
dimension d, on instances of N vectors. The low-dimension form, for dimension c log N with a
constant c depending on ε, is stronger and is not stated here.