The padded satisfiability problem of Ladner's theorem #
Ladner's theorem is proved by padding satisfiable formulas with a number of ones growing slowly
but, unless P = NP, faster than any polynomial Arora and Barak, Theorem 3.3.
Along an exponent function e, a formula φ whose encoding has length m is padded to the word
pad (encCNF φ) (m ^ e m): the encoding followed by false and m ^ e m ones
(Cslib.Complexity.Ladner.padSAT). Ladner's language Cslib.Complexity.Ladner.SATH takes the
exponent Cslib.Complexity.Ladner.H defined here.
H n is the least index i < log₂ (log₂ n) of a machine agreeing with the language itself on the
words with indices below n, or log₂ (log₂ n) if there is none. Words are indexed by ℕ
(Cslib.Complexity.Ladner.word); the words with indices below n have length at most log₂ n and
include every word whose length l satisfies 2 ^ (l + 1) ≤ n + 1. The machine with index i
is the one described at the start of the i-th word (Turing.MultiTapeTM.Universal.decodeDesc),
run by the universal function, so every machine has arbitrarily large indices. On a word of
length l it is allowed (2 * l + 2) ^ i steps, a clock exceeding every polynomial time bound at
large enough indices, but never more than n. Arora and Barak allow i * l ^ i steps and estimate
the cost; capping the clock at n keeps the computation of H n polynomial in n without any
asymptotic estimate, and for every fixed machine and word the cap stops mattering once n is
large.
Whether a word with index below n belongs to the language depends only on the values H m with
m < n. H is therefore defined by recursion on tables of its earlier values
(Cslib.Complexity.Ladner.Hstep, Cslib.Complexity.Ladner.Htable), and characterised by
Cslib.Complexity.Ladner.H_le_of_agrees and Cslib.Complexity.Ladner.agrees_H.
Main definitions #
Cslib.Complexity.Ladner.word,Cslib.Complexity.Ladner.index: words by index.Cslib.Complexity.Ladner.pad,Cslib.Complexity.Ladner.unpad: padding with ones.Cslib.Complexity.Ladner.padSAT: satisfiable formulas padded along an exponent function.Cslib.Complexity.Ladner.runIndexed,Cslib.Complexity.Ladner.clock,Cslib.Complexity.Ladner.Agrees: the indexed machines, their clocks, and agreement with a padded language.Cslib.Complexity.Ladner.Hstep,Cslib.Complexity.Ladner.Htable,Cslib.Complexity.Ladner.H: the exponent function.Cslib.Complexity.Ladner.SATH: Ladner's language.
Main results #
Cslib.Complexity.Ladner.word_index,Cslib.Complexity.Ladner.index_word,Cslib.Complexity.Ladner.two_pow_length_word_le: words and indices are inverse bijections, and the word with indexjhas length at mostlog₂ (j + 1).Cslib.Complexity.Ladner.universal_desc_of_halted_map,Cslib.Complexity.Ladner.exists_index_ge,Cslib.Complexity.Ladner.exists_index_runIndexed_eq,Cslib.Complexity.Ladner.le_clock,Cslib.Complexity.Ladner.clock_le_two_pow: the universal function runs a machine from its description, every description has arbitrarily large indices, so every decider is run by machines with arbitrarily large indices, and the clock dominates fixed polynomials while staying within an exponential bound.Cslib.Complexity.Ladner.unpad_pad,Cslib.Complexity.Ladner.pad_unpad: padding is undone.Cslib.Complexity.Ladner.Htable_eq: the tables hold the values ofH.Cslib.Complexity.Ladner.H_le,Cslib.Complexity.Ladner.H_le_of_agrees,Cslib.Complexity.Ladner.agrees_H:H nis the least index belowlog₂ (log₂ n)of a machine agreeing withSATHon the words with indices belown, orlog₂ (log₂ n).
References #
Words by index #
The word with index j: the binary digits of j + 1, least significant first, without the
final true.
The index of a word: one less than the number whose binary digits are the word followed by
true.
Padding #
Padded satisfiability #
The indexed machines #
A finite binary machine halting within time t x with output f x, simulated by the
universal function on its description for at least t x steps, halts with output (f x).map eBit.
A finite binary machine halting within time t x with output [f x], simulated by the
universal function on its description for at least t x steps, halts with output [eBit (f x)].
Every description is the description of machines with arbitrarily large indices.
A decider is run by machines with arbitrarily large indices. A finite binary machine
halting within time t x with output [f x] is described at some index i ≥ B, which halts on
x with output [eBit (f x)] when allowed at least t x steps.
The clock of the machine with index i on inputs of length l.
The exponent function #
The value of the exponent at T.length from the table T of its earlier values: the least
index below log₂ (log₂ T.length) of a machine agreeing with padSAT on the words with indices
below T.length, or log₂ (log₂ T.length). The clocks are capped at T.length.
The table of the first n values of the exponent function.
The exponent function of Ladner's language.
The tables hold the values of H.