Abstract
This note introduces craig interpolation. We first introduce all the definitions and properties of interpolation. Then we will discuss how to extract interpolants from resolution refutation proofs.
Introduction
Propositional Foundation & Definition
Let and be two propositional logic formulas. Suppose that their conjunction is unsatisfiable (they are inconsistent with each other):
Equivalently, this means : any assignment that satisfies must falsify .
Variable Partitioning
Let and denote the sets of propositional variables appearing in and , respectively. We partition all variables into three disjoint sets:
- Private variables of :
- Private variables of :
- Shared variables:
Because and share no variables outside of , one might expect — and Craig’s theorem confirms — that the conflict can be witnessed using only the shared interface . This is the nontrivial content of the theorem below, not an immediate consequence of the variable partition itself.
What is an Interpolant?
(Reverse) Craig Interpolant
Let and be propositional formulas such that . A reverse Craig interpolant, or more simply a craig interpolant for is a propositional formula or Boolean circuit satisfying two conditions:
- Scope: , i.e., the interpolant uses strictly shared variables.
- Implication: , i.e., implies is true, and implies that is false.
Graphically, acts as an intermediate logical bridge between and :
can be viewed through a dual lens of approximations projected onto the shared vocabulary :
- : is an over-approximation of , retaining just enough logical information about to contradict , while discarding the private variables .
- : is simultaneously an under-approximation of , or dually, is an over-approximation of .
The Operational View: Interpolants as Decision Oracles
While the definition gives the formal logical criteria, it is helpful to understand what an interpolant does dynamically during execution.
Suppose an observer sets the shared interface variables to a specific truth assignment . If we evaluate the interpolant under this assignment, acts as a fault-localization oracle:
Decision Oracle Property
Let be a valid interpolant for the jointly unsatisfiable formulas and , and let be an assignment to the shared variables.
- If , then is UNSAT ( is violated by assignment ).
- If , then is UNSAT ( is violated by assignment ).
Intuition
- Suppose . Since , any model satisfying must evaluate to . Because forces to evaluate to , no assignment extending can satisfy . Thus, .
- Suppose . Since , any model satisfying must evaluate to . Because forces to evaluate to , no assignment extending can satisfy . Thus, .
Constructing and Checking an Interpolant
Let us construct and inspect an interpolant for a simple propositional system. Consider the following two formulas:
- Identify the Variable Sets
- Shared variables:
- Private variable to : and private variable to : .
- Verify Joint Unsatisfiability
- Construct and Check the Interpolant
- We need a formula such that , , and .
- Let :
- Scope Check: .
- Implication Check 1 (): . (Holds)
- Implication Check 2 (): . (Holds)
- Thus, is a valid Craig interpolant.
- Test the Decision Oracle Property
- Let us test the shared variable under both possible truth assignments :
- Case :
- .
- Proposition 1 predicts that is UNSAT.
- Checking : . (Confirmed)
- Case :
- .
- Proposition 1 predicts that is UNSAT.
- Checking : . (Confirmed)
- The interpolant successfully isolates which formula fails for any given assignment to the shared interface.
Resolution Refutation Proof Interpolant Extraction
Refutation Proofs & Partial Interpolants
When a SAT solver proves that two formulas and are jointly unsatisfiable (), it generates a resolution refutation—a sequence of clause derivations starting from the clauses of and (the axioms) and ending at the empty clause .
To extract an interpolant efficiently from such a proof, we extend the notion of an interpolant to intermediate clauses derived along the way.
Notation: Clause Restrictions
Given a clause , we write for the restriction of to literals whose underlying variables appear in . Similarly, is the restriction of to literals whose variables appear in . Note that literals over shared variables appear in both and .
Partial Interpolant
Let and be formulas, and let be a clause derived in a resolution refutation of . A partial interpolant for between and is a Boolean circuit satisfying:
- Scope Condition:
- Invariance Conditions: and .
Connecting Partial Interpolants to Full Interpolants
When the derivation reaches the empty clause , the restrictions simplify to and .
The invariance conditions reduce directly to and .
Thus, a partial interpolant for the empty clause is a full Craig interpolant for .
Pudlák’s Symmetric Interpolation System
Pudlák (1997) introduced a straightforward inductive algorithm that computes a partial interpolant for every clause in a resolution refutation in a single bottom-up pass over the proof tree.
The Inductive Labeling Rules
Let be a resolution refutation of . For each clause in , we define recursively as follows:
-
Axioms (Leaves of the Proof Tree):
- If , set .
- If , set .
-
Resolution Steps (Internal Nodes):
- Suppose clause is derived by resolving two parent clauses and on pivot variable , with previously computed partial interpolants and :
- Case A: Pivot private to ():
- Case B: Pivot private to ():
- Case C: Pivot shared ():
- Suppose clause is derived by resolving two parent clauses and on pivot variable , with previously computed partial interpolants and :
Correctness & Linear Complexity
Let be a resolution refutation of with clauses. The circuit constructed at the empty clause by Pudlák’s labeling rules is a valid Craig interpolant between and . Furthermore, can be constructed in time and its size is proportional to the number of resolution steps.
Structural Properties: Pudlák (Symmetric) vs. McMillan (Asymmetric)
The choice of interpolation system is not unique; different labeling rules construct different interpolant circuits from the same underlying proof.
Pudlák’s Symmetry Property
Pudlák’s system is symmetric because it treats and completely neutrally. Swapping the roles of and systematically negates the resulting circuit:
Symmetry Property
Let be the interpolant extracted from a resolution proof using Pudlák’s system, and let be the interpolant extracted from the exact same proof with the roles of and swapped. Then:
Comparison with McMillan’s Asymmetric System
In model checking, McMillan’s interpolation system (2003) is widely used. McMillan handles shared pivots asymmetrically:
When resolving on a shared pivot , McMillan sets — the same rule it uses for pivots private to , i.e. McMillan treats every shared variable as if it belonged to . (The dual choice, at shared pivots, gives a different, strictly weaker system.)
While McMillan’s system generates smaller formulas without gates, it breaks the clean duality . For applications that require exact balance or dual proof arguments, Pudlák’s symmetric system is required. Whereas for applications in model checking, McMillan’s system is preferred.