Abstract

This note presents an intuitive, structured guide to Strategy Extraction via Interpolation for Quantified Boolean Formulas (QBF), based on F. Slivovsky (2024), assuming basic familiarity with Exp+Res proof systems and Craig interpolation. It bridges formal proof theory, Craig interpolation, and circuit synthesis, with explicit mappings to the C implementation in code/ferpcert2/extract.c.

Preliminaries

We assume basic familiarity with Exp+Res proof systems and Craig interpolation.

Scope & Variable Dependencies

Let be a false QBF in prenex CNF, where the prefix defines a total variable ordering .

  • is the set of universal variables ordered .
  • is the set of existential variables.

We define scope shortcuts for variables preceding a given index or variable :

  • : universal variables preceding .
  • : universal variables up to , with .
  • : existential variables preceding , with .
  • : existential variables preceding .
  • : universal variables preceding existential variable .

Given assignments and , we denote their restrictions to preceding scopes by (on ), (on ), (on ), and (on ).

Game-Theoretic Framework

QBF evaluation is a two-player game played along the prefix order . The Existential player attempts to satisfy the matrix , while the Universal player attempts to falsify it.

  • A universal strategy is a sequence of Boolean circuits where determines the choice for based on prior moves .
  • Assignments and are consistent with if for all .
  • is a winning strategy if every consistent play falsifies the matrix ().

Formula Expansion & Bipartitions

For a clause and universal assignment , the annotated clause is if satisfies any universal literal in . Otherwise, is obtained by deleting all universal literals from and replacing each existential literal (with ) by its annotated copy:

The complete expansion of is the conjunction of all non-trivial annotated clauses:

Since is false, is unsatisfiable. An Exp+Res refutation of is a resolution refutation of a subset of .

For a partial assignment on , we define the sub-expansion selected by as:

Every clause in explicitly assigns . We split into two sub-formulas:

When , we abbreviate and .

For an existential assignment , we write for the set of annotated existential unit clauses under .

Symmetric Craig Interpolation

We use symmetric Craig interpolation in the following form (Slivovsky, Prop. 3 & Thm. 4; Huang et al., 1998). Let be an unsatisfiable conjunction of clauses. A circuit over shared variables is a symmetric interpolant between and if for every assignment of the shared variables:

Given a resolution refutation of , symmetric interpolation labels axioms of with and axioms of with . For a resolution step on pivot with premise labels and :

  1. if is local to ();
  2. if is local to ();
  3. if is shared ().

The label at the empty clause is a valid interpolant separating and .

Interpolants as Strategy Functions

Interpolating the Expansion

Every clause of the complete expansion is annotated with a total assignment of the universal variables. Hence, for any universal variable , , and an interpolant between the two parts exists.

Proposition 1 (Slivovsky, Prop. 6)

Let and let be a symmetric interpolant between and . Then is unsatisfiable, and for every assignment of the shared variables.

The shared variables between and are . For the first universal variable , is the set of existential variables preceding , so is a circuit defined over preceding existential variables (Beyersdorff et al., 2016).

Single Universal Variable Case

Consider with matrix:

Expanding over yields:

  • Bipartition: , .
  • Shared variables: .

Interpolation labeling:

  • Axiom . Axioms .
  • Pivot is local to .
  • Pivot is shared .

Resulting interpolant: .

  • If , falsifying .
  • If , reducing to .

Thus is a complete, winning strategy for .

Two Universal Variables: Failure of Independent Interpolants

Consider with matrix:

The non-trivial expanded clauses are:

These four clauses are the axioms of an Exp+Res refutation which resolves on , then on , and finally on :

  • Bipartitioning on gives and , with the only shared variable.
  • Bipartitioning on gives and , with the only shared variable. Labelling the refutation under each bipartition:
clause

If we independently compute interpolants for and :

  • For : .
  • For : .

Why Naïve Independent Interpolation Fails

Suppose the Existential player chooses . The independent circuits dictate and . Under , the original matrix clauses evaluate to:

All four clauses are satisfied! The Universal player loses the game.

Reason: was calculated assuming no knowledge of . Independent interpolants fail because they make uncoordinated decisions.

Coordinated -Interpolants

The failure of independent interpolants shows that when choosing a value for , we cannot evaluate over the entire expansion in isolation. Instead, the decision for must be computed within the sub-expansion reached after preceding universal moves have been played.

Interpolating Within a Position

Why is the correct object to interpolate? Because conjoining with the existential choices made so far reflects the game state reached after playing .

Lemma 2 (Slivovsky, Lemma 1)

Let be a universal assignment on and an existential assignment on . Let be an assignment to all variables preceding (an initial segment of the prefix). Then the residual expansion and are equisatisfiable.

In particular, states that the residual QBF is false, meaning the Universal player is in a winning position from position . Since every clause in explicitly assigns , we can split into and , and interpolate between them at this specific position:

Definition 3 ( -interpolant; Slivovsky, Def. 7)

Fix , a universal assignment on , and an existential assignment on such that . A -interpolant is a symmetric interpolant between and .

Asymmetry Between and Shared Variables

Notice that is an assignment on (existentials preceding ), recording what is known before moves. However, the shared variables between and are for (existentials preceding ). Any existential variable lying between and is not fixed by , but can be read as an input gate by the interpolant .

Unifying Position Interpolants into Parameterized Circuits

While a -interpolant is defined for a single fixed pair , a universal strategy must be a single circuit capable of responding to all possible plays.

We reconcile these two requirements by observing that can take the preceding universal variables as input gates. Supplying to at runtime conditions the circuit to the current position, allowing one static circuit to act as a -interpolant across all game paths.

Definition 4 ( -interpolant; Slivovsky, Def. 8)

An -interpolant is a sequence of circuits such that:

  1. Domain constraint: for ; and
  2. Coordination invariant: For every pair of assignments and consistent with , the restricted circuit is a -interpolant whenever .

Notice two crucial aspects of condition (2):

  • The coordination invariant is enforced only along plays consistent with .
  • It is required only when the unsatisfiability hypothesis holds ().

Winning Strategy Equivalence

Proposition 5 (Slivovsky, Prop. 9)

An -interpolant is a universal winning strategy.

Proof: Let be an -interpolant and let be consistent with . We show by induction on that for .

  • Base case (): and are empty, so , which is unsatisfiable because is false.
  • Inductive step ():
    • By the inductive hypothesis, .
    • By condition (2) of Definition 4, is a -interpolant over shared variables for .
    • Since by consistency, evaluating at (which extends with existential moves up to ) yields .
    • By the interpolant property, the selected sub-expansion under is unsatisfiable, giving .

At , is a total assignment on , so states that falsifies the matrix . Since was arbitrary, is a universal winning strategy.

Conversely, any universal winning strategy can be shown to satisfy the conditions of an -interpolant, establishing complete equivalence:

Theorem 6 (Slivovsky, Thm. 10)

A sequence of circuits is a universal winning strategy if and only if it is an -interpolant.

Theorem 6 is a fundamental characterization: it defines what object must be synthesized (an -interpolant), independently of any specific proof system or extraction algorithm. In the next section, we examine how to compute such circuits directly from Exp+Res refutations.

Computing Strategy Circuits from Exp+Res Refutations

The Complement Bipartition

To construct a single static circuit from a proof, we cannot partition into and because which clauses belong to depends on .

Fix a target value . We partition into the uniform complement bipartition:

An annotated clause belongs to if and only if agrees with on AND . Otherwise, it belongs to .

Discrepancy Between Complement Bipartition and -Interpolants

Notice that strictly contains the opposing sub-expansion for , as also absorbs all clauses whose annotation disagrees with on . An interpolant between and outputs to certify unsatisfiability of , which is a weaker claim than certifying unsatisfiability of the opposing sub-expansion alone. This gap is closed by restricting the requirement to plays consistent with (Proposition 9).

Annotation Match Circuits & The Guard

For an annotation and , we define the annotation match circuit using literal exponent notation (where and ):

Constructed incrementally, . At runtime, evaluates to if and only if the input universal assignment matches on .

For target value , we define the guard circuit as in Slivovsky (2024):

For the remainder of the extraction algorithm, we fix target value and write , , , and output sequence . Target yields the dual guard and dual sequence .

NOTE

Here is fixed constant data attached to clause at extraction time, NOT an input gate . Thus only depends on universal input gates , satisfying the domain constraint .

Axiom Labelling

For an axiom of the refutation, the partial interpolant label for index is:

  • If : is , so (belongs to for all ).
  • If : . If matches on , (); otherwise ().

Resolution Step & Dynamic Multiplexing

Let be resolved from (containing ) and (containing ) with labels and . The status of pivot depends on its position relative to :

graph TD
    P["Pivot e"] -->|"e <_Π u_i"| Left["Precedes u_i"]
    P -->|"e >_Π u_i"| Right["Follows u_i"]

    Left -->|"H^k_μ = 1"| Shared["Shared Pivot: ite(~e, I1, I2)"]
    Left -->|"H^k_μ = 0"| BLocal1["B-Local Pivot: I1 ∧ I2"]

    Right -->|"G = 1"| ALocal["A-Local Pivot: I1 ∨ I2"]
    Right -->|"G = 0"| BLocal2["B-Local Pivot: I1 ∧ I2"]
  1. Pivot : Let be maximal with . The annotation of only specifies universals up to .

    • If : appears in both and Shared pivot .
    • If : -Local pivot .
    • Combined gate:
  2. Pivot : The annotation of includes .

    • If (which requires and ): and cannot appear in under -Local pivot .
    • If (if or ): -Local pivot .
    • Combined gate:

Coordinated Extraction Example

Re-evaluating the refutation of under coordinated dynamic labeling:

  • For (): .

    • Axiom has . Other axioms have .
    • Pivots shared branch , .
    • Pivot .
    • Result: .
  • For (): .

    • Axiom has . Other axioms .
    • Pivot () .
    • Pivot () .
    • Pivot .
    • Result: .

Validation under

  1. .
  2. . Under , matrix clause is falsified! The coordinated strategy wins the game.

Mapping to C Implementation (extract.c)

The algorithms detailed above are directly implemented in code/ferpcert2/extract.c.

Paper Conceptextract.c Function / VariableImplementation Details
AIG Data Structuresimpleaig *aigAIG circuit graph storing extracted strategy nodes.
Variable Order create_var_order()Populates var_order[] from top-level scope definitions.
Match Gate annotation_match_aigAccumulated in extract_leaf and extract_non_leaf.
Axiom Labels extract_leaf(...)Sets aig_labels[i] = aiger_true (constant 1) if (), and makeITE(match_aig, aiger_false, aiger_true) () if ().
Pivot Gateextract_non_leaf(...)Constructs makeITE(match_aig, shared_aig, local_aig) where shared_aig = makeITE(pivot, aig2, aig1).
Pivot Gateextract_non_leaf(...)If (annotation_lit > 0, , “definitely in 1 part”), emits makeAND(aig1, aig2). If (annotation_lit < 0, , “possibly in 0 part”), emits makeITE(match_aig, makeOR(aig1, aig2), makeAND(aig1, aig2)).
Cone of Influence (COI)aig_get_cone(...), aig_map_cone(...)Traverses reachable gates from output strategy variables and prunes dead nodes into aig_out.

Conclusion

  • Equivalence: Universal winning strategies and -interpolants are mathematically identical objects.
  • Coordination via Inputs: Coordinated interpolants solve the multi-variable uncoordination problem by taking earlier universal choices as runtime input gates.
  • Efficiency & System Caveat: Using dynamic match circuits , an -interpolant can be extracted from an Exp+Res refutation of size with universal variables in time in a single pass. Note that the -interpolant validity proof (Prop. 13) is proved specifically for the symmetric interpolation system; whether other interpolation systems guarantee valid -interpolants remains open.