Documentation

CslibFrontier.Computability.Complexity.Classes.AlgorithmsToLowerBounds

From SAT algorithms to lower bounds for witness circuits #

The verification step of Williams's algorithmic method is an actual native nondeterministic simulation here. Given a family of succinct 3-CNF decoders D and a gate budget s, guess a bounded circuit description, construct the violated-clause circuit, run a deterministic SAT algorithm, and accept precisely when it answers unsatisfiable.

smallWitnessLanguage_mem_NTIME charges the input, computation of the certificate length, construction of the query circuit, and the SAT computation on that actual circuit. The certificate has exactly Boolean.certLength r s bits, at most 3 * (r + s + 1) ^ 2. certificateQuery retains the decoder's clause-index input width q, and its gate count is at most D.size + 3 * s + 17, including on malformed certificates. No step enumerates the exponentially long assignment or assumes that a guessed circuit computes the canonical witness. computableInPolyTime_certificateQuery supplies the native compiler from polynomial-time decoder construction. smallWitnessLanguage_mem_NTIME_of_polyTime then derives a polynomial preprocessing bound and adds only the SAT time on queries with the stated width and gate bound.

exists_hard_satisfyingAssignment_of_notMem_NTIME turns this simulation into a lower bound: if satisfiability of the decoder family is outside the supplied nondeterministic time class, some satisfiable member has no satisfying assignment of circuit complexity at most s. exists_hard_satisfyingAssignment_of_expLazyDiagonal discharges the hardness premise using the library's explicit exponential-time diagonal language, while retaining the hypotheses on the supplied succinct reduction and algorithms.

Scope and source mapping #

This is a modular version of the violated-clause verification in [Wil10], proof of Theorem 3.2, printed p. 10 in the author's May 4, 2010 version. The decoder is a De Morgan circuit with q inputs and three blocks of r address bits followed by a sign bit. The witness is a De Morgan circuit on r bits. Circuit size counts gates, including constants. The uniform computations use binary multitape machines, ComputableInO, and the explicit encodings in the theorem statements; time is preserved up to constant factors.

The certificate format uses unary wire fields and has quadratic length in r + s, rather than the O(s log s) circuit description in the source. This still gives polynomial overhead for polynomial witness budgets; sharper or superpolynomial budgets must account for this encoding explicitly. The SAT query itself uses the library's binary wire-number encoding.

The simulation is proved, not assumed. The explicit-cost form takes native certificates for computing the length and the specific circuit constructor, a deterministic SAT algorithm, and the displayed sum of their resource bounds. The polynomial-preprocessing form derives the first two computations from a uniformly constructible decoder family and unary parameters. The lower-bound theorems concern satisfying-assignment functions of a supplied decoder family. They do not assert NEXP ⊄ P/poly, E ^ NP ⊄ SIZE(s), or an infinitely-often bound. A full Williams theorem additionally needs the appropriate uniform succinct reduction, an easy-witness theorem (for NEXP), and a sufficiently fine time hierarchy. In particular, O(n) clause-index bits cannot replace n + O(log n) bits when using only polynomial savings over exhaustive search. The final corollary uses the existing coarse exponential hierarchy and makes no stronger hierarchy claim.

Main definitions #

Main results #

References #

def Cslib.Complexity.AlgorithmsToLowerBounds.certificateQuery {α : Type} {q r : α → ℕ} (D : (x : α) → Circuits.Circuit Circuits.Boolean.signature (q x) (3 * (r x + 1))) (s : α → ℕ) (p : α × List Bool) :

The actual SAT query: check a bounded circuit certificate against the succinct formula. The number of inputs is exactly the clause-index width, including for malformed certificates.

def Cslib.Complexity.AlgorithmsToLowerBounds.smallWitnessLanguage {α : Type} {q r : α → ℕ} (D : (x : α) → Circuits.Circuit Circuits.Boolean.signature (q x) (3 * (r x + 1))) (s : α → ℕ) :
Set α

The language of formulas having a satisfying circuit within the specified gate budget.

theorem Cslib.Complexity.AlgorithmsToLowerBounds.size_certificateQuery_le {α : Type} {q r : α → ℕ} (D : (x : α) → Circuits.Circuit Circuits.Boolean.signature (q x) (3 * (r x + 1))) (s : α → ℕ) (p : α × List Bool) :
(certificateQuery D s p).snd.size ≤ (D p.1).size + 3 * s p.1 + 17

The SAT query uses the decoder once and at most three copies of the guessed witness.

A polynomial-time decoder constructor gives a polynomial-time SAT-query constructor. The widths and gate budget are computed in unary; the decoder uses the existing encCode encoding with binary wire numbers. Guessing the certificate remains a separate operation.

theorem Cslib.Complexity.AlgorithmsToLowerBounds.smallWitnessLanguage_mem_NTIME {α : Type} {q r : α → ℕ} {D : (x : α) → Circuits.Circuit Circuits.Boolean.signature (q x) (3 * (r x + 1))} {s : α → ℕ} {enc : α ↪ List Bool} {t : ℕ → ℕ} {Tℓ Sℓ : α → ℕ} {TB SB : α × List Bool → ℕ} {sat : (n : ℕ) × Circuits.Circuit Circuits.Boolean.signature n 1 → Bool} {TS SS : (n : ℕ) × Circuits.Circuit Circuits.Boolean.signature n 1 → ℕ} {C : ℕ} (hℓ : Turing.MultiTapeTM.ComputableInO (fun (x : α) => Circuits.Boolean.certLength (r x) (s x)) enc Turing.MultiTapeTM.encUnary Tℓ Sℓ) (hbuild : Turing.MultiTapeTM.ComputableInO (certificateQuery D s) (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) (Circuits.Boolean.encCircuit 1) TB SB) (hsat : Turing.MultiTapeTM.ComputableInO sat (Circuits.Boolean.encCircuit 1) Turing.MultiTapeTM.encBool TS SS) (hspec : ∀ (c : (n : ℕ) × Circuits.Circuit Circuits.Boolean.signature n 1), sat c = true ↔ c ∈ CircuitSAT) (ht : ∀ (x : α) (w : List Bool), w.length = Circuits.Boolean.certLength (r x) (s x) → (enc x).length + Tℓ x + (TB (x, w) + TS (certificateQuery D s (x, w))) ≤ C * t (enc x).length + C) :

SAT algorithms give a native simulation of small witness circuits. The bound charges input access, the unary certificate-length computation (hence writing and guessing its bits), the circuit constructor, and SAT on the circuit actually constructed. All branches halt within the bound, including those carrying invalid circuit descriptions.

Polynomial preprocessing plus the SAT time. For a uniformly polynomial-time decoder family, widths, and witness gate budget, the small-witness language is in nondeterministic time p(n) + t(n) for some polynomially bounded p, whenever the SAT algorithm takes at most t(n) on every query of the displayed input width and gate bound. The polynomial overhead is derived from the actual compiler and certificate encoding, rather than assumed as a simulation.

theorem Cslib.Complexity.AlgorithmsToLowerBounds.exists_hard_satisfyingAssignment_of_notMem_NTIME {α : Type} {q r : α → ℕ} {D : (x : α) → Circuits.Circuit Circuits.Boolean.signature (q x) (3 * (r x + 1))} {s : α → ℕ} {enc : α ↪ List Bool} {t : ℕ → ℕ} {Tℓ Sℓ : α → ℕ} {TB SB : α × List Bool → ℕ} {sat : (n : ℕ) × Circuits.Circuit Circuits.Boolean.signature n 1 → Bool} {TS SS : (n : ℕ) × Circuits.Circuit Circuits.Boolean.signature n 1 → ℕ} {C : ℕ} (hhard : {x : α | (Circuits.Boolean.SuccinctVerifier.toCNF (D x)).Satisfiable} ∉ NTIME enc t) (hℓ : Turing.MultiTapeTM.ComputableInO (fun (x : α) => Circuits.Boolean.certLength (r x) (s x)) enc Turing.MultiTapeTM.encUnary Tℓ Sℓ) (hbuild : Turing.MultiTapeTM.ComputableInO (certificateQuery D s) (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) (Circuits.Boolean.encCircuit 1) TB SB) (hsat : Turing.MultiTapeTM.ComputableInO sat (Circuits.Boolean.encCircuit 1) Turing.MultiTapeTM.encBool TS SS) (hspec : ∀ (c : (n : ℕ) × Circuits.Circuit Circuits.Boolean.signature n 1), sat c = true ↔ c ∈ CircuitSAT) (ht : ∀ (x : α) (w : List Bool), w.length = Circuits.Boolean.certLength (r x) (s x) → (enc x).length + Tℓ x + (TB (x, w) + TS (certificateQuery D s (x, w))) ≤ C * t (enc x).length + C) :

Algorithms-to-witness-circuit-lower-bounds transfer. If the succinct satisfiability language cannot be decided in the time of the preceding simulation, a satisfiable formula in the family has no small satisfying assignment. The lower bound concerns every satisfying assignment of that member, not merely a chosen canonical one.

theorem Cslib.Complexity.AlgorithmsToLowerBounds.exists_hard_satisfyingAssignment_of_expLazyDiagonal {q r : List Bool → ℕ} {D : (x : List Bool) → Circuits.Circuit Circuits.Boolean.signature (q x) (3 * (r x + 1))} {s : List Bool → ℕ} {k : ℕ} {Tℓ Sℓ : List Bool → ℕ} {TB SB : List Bool × List Bool → ℕ} {sat : (n : ℕ) × Circuits.Circuit Circuits.Boolean.signature n 1 → Bool} {TS SS : (n : ℕ) × Circuits.Circuit Circuits.Boolean.signature n 1 → ℕ} {C : ℕ} (hred : ∀ (x : List Bool), (Circuits.Boolean.SuccinctVerifier.toCNF (D x)).Satisfiable ↔ x ∈ expLazyDiagonal k) (hℓ : Turing.MultiTapeTM.ComputableInO (fun (x : List Bool) => Circuits.Boolean.certLength (r x) (s x)) Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encUnary Tℓ Sℓ) (hbuild : Turing.MultiTapeTM.ComputableInO (certificateQuery D s) (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits) (Circuits.Boolean.encCircuit 1) TB SB) (hsat : Turing.MultiTapeTM.ComputableInO sat (Circuits.Boolean.encCircuit 1) Turing.MultiTapeTM.encBool TS SS) (hspec : ∀ (c : (n : ℕ) × Circuits.Circuit Circuits.Boolean.signature n 1), sat c = true ↔ c ∈ CircuitSAT) (ht : ∀ (x w : List Bool), w.length = Circuits.Boolean.certLength (r x) (s x) → x.length + Tℓ x + (TB (x, w) + TS (certificateQuery D s (x, w))) ≤ C * 2 ^ (k * x.length) + C) :

A supplied uniform succinct reduction of the explicit exponential diagonal gives the preceding witness-circuit lower bound with the hardness premise proved by the native hierarchy. The sum of the actual costs must fit O(2 ^ (k * n)); the reduction and this cost inequality remain explicit hypotheses. This does not use or assert a fine polynomial-savings hierarchy.