Documentation

CslibFrontier.Logics.Propositional.Resolution.ExistentialPebble

The Boolean existential pebble game #

The existential pebble game characterizes resolution width Atserias and Dalmau, Lemmas 2 and 3 and Theorem 2. Atserias and Dalmau characterize resolution width by the Boolean existential pebble game on a CNF formula φ. Spoiler places pebbles on variables, Duplicator answers with truth values, and Spoiler wins when the pebbled partial assignment falsifies a clause of φ. A winning strategy for Duplicator with k pebbles (Cslib.Logic.PL.CNF.DuplicatorStrategy, their Definition 2) is a nonempty family of partial assignments on at most k variables that falsify no clause of φ, closed under restriction, and such that each assignment on fewer than k variables extends to any further variable.

A partial assignment is a total assignment σ read only on a finite set d of variables, and Cslib.Logic.PL.CNF.Falsifies σ d c says that every literal of c is on a variable of d and false under σ.

If Duplicator has a winning strategy with w + 1 pebbles, then φ has no refutation of width w (Cslib.Logic.PL.CNF.DuplicatorStrategy.not_refutableInWidth, their Lemma 3). By induction along a proof of width w, no position of the strategy falsifies a line: a position falsifying a resolvent restricts to the at most w variables of the resolvent and extends to the resolved variable, and the extension falsifies one of the two premises. Since the strategy is nonempty and every position falsifies the empty clause, the proof is not a refutation.

Conversely, if φ has no clause of width exactly w + 1 and no refutation of width w, then Duplicator wins with w + 1 pebbles (Cslib.Logic.PL.CNF.DuplicatorStrategy.ofNotRefutableInWidth, their Lemma 2). The positions are the partial assignments on at most w + 1 variables that falsify no clause derivable within width w. The empty assignment is one of them. A position on at most w variables extends to any further variable, since if both extensions falsified derivable clauses, their resolvent would be a derivable clause of width at most w falsified by the position. The clauses of φ of width at most w are derivable within width w, and those of width more than w + 1 cannot be falsified on at most w + 1 variables, so no position falsifies a clause of φ. Together, for formulas without clauses of width w + 1, Duplicator wins with w + 1 pebbles exactly when there is no refutation of width w (Cslib.Logic.PL.CNF.DuplicatorStrategy.nonempty_iff_not_refutableInWidth, their Theorem 2). Clauses of width w + 1 must be excluded: (x₀ ∨ x₁ ∨ x₂) ∧ ¬x₀ ∧ ¬x₁ ∧ ¬x₂ has no refutation of width 2, but Spoiler wins with 3 pebbles. Duplicator strategies also give clause-space lower bounds, in CslibFrontier.Logics.Propositional.Resolution.SpaceWidth.

The mathematical symbols of the available copy of Atserias and Dalmau's paper do not extract, so neither the side conditions nor the pebble counts of their statements are quoted. The statements here are ours, with the off-by-one conventions of the library's Cslib.Logic.PL.CNF.RefutableInWidth. The game is unrelated to the black pebble game of CslibFrontier.Computability.Pebbling.

Main definitions #

Main results #

References #

def Cslib.Logic.PL.CNF.Falsifies {V : Type u_1} (σ : V → Bool) (d : Finset V) (c : Clause V) :

The assignment σ, read on d, falsifies c: every literal of c is on a variable of d and false under σ.

theorem Cslib.Logic.PL.CNF.Falsifies.congr {V : Type u_1} {σ τ : V → Bool} {d : Finset V} {c : Clause V} (h : Falsifies σ d c) (hστ : ∀ x ∈ d, τ x = σ x) :
Falsifies τ d c

Falsifying on d depends only on the values on d.

@[simp]
theorem Cslib.Logic.PL.CNF.falsifies_nil {V : Type u_1} (σ : V → Bool) (d : Finset V) :

Every partial assignment falsifies the empty clause.

structure Cslib.Logic.PL.CNF.DuplicatorStrategy {V : Type u_1} [DecidableEq V] (φ : CNF V) (k : ℕ) :
Type u_1

A winning strategy for Duplicator in the Boolean existential k-pebble game on φ Atserias and Dalmau, Definition 2: a nonempty family of partial assignments (σ, d), read on at most k variables, that falsify no clause of φ, closed under restriction, and such that every assignment on fewer than k variables extends to any further variable.

  • Mem : (V → Bool) → Finset V → Prop

    The positions of the strategy: σ read on d.

  • nonempty : ∃ (σ : V → Bool) (d : Finset V), self.Mem σ d

    There is a position.

  • card_le {σ : V → Bool} {d : Finset V} : self.Mem σ d → d.card ≤ k

    Positions are read on at most k variables.

  • restrict {σ : V → Bool} {d e : Finset V} : self.Mem σ d → e ⊆ d → self.Mem σ e

    Positions are closed under restriction.

  • extend {σ : V → Bool} {d : Finset V} : self.Mem σ d → d.card < k → ∀ (v : V), ∃ (τ : V → Bool), (∀ x ∈ d, τ x = σ x) ∧ self.Mem τ (insert v d)

    A position on fewer than k variables extends to any further variable.

  • not_falsifies {σ : V → Bool} {d : Finset V} : self.Mem σ d → ∀ c ∈ φ, ¬Falsifies σ d c

    No position falsifies a clause of φ.

theorem Cslib.Logic.PL.CNF.DuplicatorStrategy.exists_extend_union {V : Type u_1} [DecidableEq V] {φ : CNF V} {k : ℕ} (S : φ.DuplicatorStrategy k) {σ : V → Bool} {d : Finset V} (hσ : S.Mem σ d) (e : Finset V) (hde : d.card + e.card ≤ k) :
∃ (σ' : V → Bool), S.Mem σ' (d ∪ e) ∧ ∀ x ∈ d, σ' x = σ x

Extension to a set of variables: a position of a k-pebble strategy on d extends to a position on d ∪ e agreeing with it on d, provided |d| + |e| ≤ k.

theorem Cslib.Logic.PL.CNF.DuplicatorStrategy.not_falsifies_of_isProof {V : Type u_1} [DecidableEq V] {φ : CNF V} {w : ℕ} (S : φ.DuplicatorStrategy (w + 1)) {ls : List (Clause V)} (hp : φ.IsProof ls) (hw : ∀ c ∈ ls, c.width ≤ w) (c : Clause V) :
c ∈ ls → ∀ (σ : V → Bool) (d : Finset V), S.Mem σ d → ¬Falsifies σ d c

No position falsifies a line of a narrow proof [Atserias and Dalmau, Lemma 3] [AD08]: for a strategy with w + 1 pebbles, no position falsifies a line of a proof from φ whose lines have width at most w.

A Duplicator strategy with w + 1 pebbles rules out refutations of width w Atserias and Dalmau, Lemma 3.

A strategy from the absence of narrow refutations #

def Cslib.Logic.PL.CNF.DuplicatorStrategy.ofNotRefutableInWidth {V : Type u_1} [DecidableEq V] {φ : CNF V} {w : ℕ} (hk : ∀ c ∈ φ, c.width ≠ w + 1) (h : ¬φ.RefutableInWidth w) :

A Duplicator strategy from the absence of narrow refutations Atserias and Dalmau, Lemma 2: if φ has no clause of width exactly w + 1 and no refutation of width w, then Duplicator wins the existential (w + 1)-pebble game. The positions are the partial assignments on at most w + 1 variables that falsify no clause derivable from φ within width w. Clauses of width more than w + 1 play no role, since they cannot be falsified on at most w + 1 variables.

Clauses of width w + 1 must be excluded: (x₀ ∨ x₁ ∨ x₂) ∧ ¬x₀ ∧ ¬x₁ ∧ ¬x₂ has no refutation of width 2, but Spoiler wins with 3 pebbles by pebbling x₀, x₁ and x₂. From a bound hk : ∀ c ∈ φ, c.width ≤ w, the hypothesis is fun c hc => (Nat.lt_succ_of_le (hk c hc)).ne.

The existential pebble game characterizes width Atserias and Dalmau, Theorem 2: for a formula without clauses of width w + 1, Duplicator wins the existential (w + 1)-pebble game exactly when there is no refutation of width w.