Documentation

CslibFrontier.Computability.Complexity.Problems.QuantifiedSAT

Prenex quantified SAT instances #

A PrenexQBF records a list of variable blocks and a matrix in the existing QBF syntax. Its formula alternates the blocks, starting existentially or universally. The matrix is not restricted to CNF: well-formedness requires it to be quantifier-free and the prefixed formula to be closed. Empty blocks allow a shorter prefix to be padded to a given level.

This is the grouped-prefix representation of Arora–Barak, draft Example 5.9, display (1), printed pp. 94–95 and Goldreich, Exercise 3.7, printed p. 133. The record stores syntax, not a verifier or an efficiency hypothesis.

A grouped prenex Boolean formula, with the matrix in the existing quantified-formula syntax. Well-formedness is a language condition, so malformed instances can be rejected.

  • blocks : List (List ℕ)

    Variable blocks in outermost-first order. Empty blocks are permitted.

  • matrix : Logic.PL.QBF ℕ

    The Boolean matrix; language membership requires quantifier-freeness.

theorem Cslib.Complexity.encPrenexQBF_matrix_polyTime {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → PrenexQBF} :
theorem Cslib.Complexity.encPrenexQBF_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → List (List ℕ)} {T0 S0 : γ → ℕ} {x1 : γ → Logic.PL.QBF ℕ} {T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn (Turing.MultiTapeTM.encList (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat)) T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn encQBF T1 S1) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { blocks := x0 x, matrix := x1 x }) encIn encPrenexQBF (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x

Binary variable names in framed lists of framed blocks, followed by the prefix-token encoding of the matrix. The block list is framed as a whole before the matrix.

@[reducible, inline]

The tuple of the fields of encPrenexQBF.

theorem Cslib.Complexity.encPrenexQBF_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → List (List ℕ)} {x1 : γ → Logic.PL.QBF ℕ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn (Turing.MultiTapeTM.encList (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat)) budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn encQBF budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { blocks := x0 x, matrix := x1 x }) encIn encPrenexQBF budget
theorem Cslib.Complexity.encPrenexQBF_matrix_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → PrenexQBF} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ encPrenexQBF S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).matrix) encIn✝ encQBF S✝

The QBF represented by the record, starting existentially for q = true.

A well-formed level-i instance has i blocks, a quantifier-free matrix, and no free variables after prefixing. Empty blocks represent fewer than i effective alternations.

Instances For

    Well-formed instances yield closed formulas for either initial polarity.

    The truth condition for a grouped-prefix instance, using alternating word certificates.

    Existential-first true closed prenex formulas with i blocks (empty blocks are allowed), Arora–Barak, Example 5.9 and Exercise 5 §1, Goldreich, Exercise 3.7. Level zero consists of true closed quantifier-free matrices, and is excluded from the positive-level hardness claim.

    Universal-first true closed prenex formulas with i blocks, the dual of SigmaSAT.