Documentation

CslibFrontier.Computability.Complexity.Classes.PH.QBF

Alternating word quantifiers and Boolean-formula blocks #

QBF.eval_blocks_eq_true_iff relates syntactic variable blocks to the hierarchy's alternating word quantifiers. A word supplies the truth values of one block, including repeated names and empty blocks. Negating the matrix and swapping the prefix negates the value.

theorem Cslib.Logic.PL.QBF.eval_blocks_eq_true_iff {V : Type u_1} [DecidableEq V] (q : Bool) (bs : List (List V)) (φ : QBF V) (σ : V → Bool) :
eval σ (blocks q bs φ) = true ↔ Complexity.Alternation q (List.map List.length bs) fun (w : List Bool) => eval (updates σ bs.flatten w) φ = true

Alternating quantifier blocks evaluate by alternating over words of the corresponding lengths and updating the assignment along the concatenated lists of variables.

theorem Cslib.Logic.PL.QBF.eval_blocks_dual {V : Type u_1} [DecidableEq V] (q : Bool) (bs : List (List V)) (φ : QBF V) (σ : V → Bool) :
eval σ (blocks (!q) bs φ.not) = !eval σ (blocks q bs φ)

Negation swaps every quantifier in the prefix and negates the matrix.