Documentation

CslibFrontier.Logics.Propositional.Resolution.Space

Clause space of resolution refutations #

A resolution refutation in the configuration-style presentation of Esteban and Torán keeps a set of clauses in memory and changes it one step at a time Esteban and Torán Filmus, Lauria, Mikša, Nordström and Vinyals, Section 2:

These are the moves (Cslib.Logic.PL.ConfigMove) of a labelled transition system on sets of clauses (Cslib.Logic.PL.CNF.configLTS). A refutation starts from the empty configuration and ends with one containing the empty clause. Its clause space is the largest number of clauses it holds at once, and φ is refutable in clause space s (Cslib.Logic.PL.CNF.RefutableInSpace) if it has a refutation in which every configuration has at most s clauses. The derivation steps are those of Cslib.Logic.PL.CNF.IsProof; in particular there is no weakening rule. Configurations are sets of clauses, so the space of a configuration counts distinct clauses. Clauses are lists, so two orderings of the same literals count as two clauses; this does not change the least space of a refutation compared with the convention of clauses as sets, since mapping each clause to its set of literals never increases space, and a refutation on sets lifts by fixing one list for each set.

Clause space is the resolution analogue of the number of pebbles in the black pebble game (Cslib.Pebbling.blackPebbleGame): a download places a pebble on a source of the graph of a proof, an inference places one on a vertex whose two predecessors carry pebbles, and an erasure removes a pebble. Both are labelled transition systems on finite sets with a cardinality budget.

Every configuration reachable from the empty one consists of derivable clauses, so refutations in bounded space are sound (Cslib.Logic.PL.CNF.RefutableInSpace.not_satisfiable). Conversely a refutation with s lines can be replayed, downloading or deriving its lines in order and never erasing anything, in space s (Cslib.Logic.PL.CNF.RefutableInSize.refutableInSpace); so the unsatisfiable formulas are exactly those refutable in some clause space (Cslib.Logic.PL.CNF.exists_refutableInSpace_iff_not_satisfiable). Unless the formula contains the empty clause, a refutation needs space at least 3: the empty clause is derived from two clauses held at the same time (Cslib.Logic.PL.CNF.RefutableInSpace.three_le).

The Atserias–Dalmau inequality, bounding width by clause space, is in CslibFrontier.Logics.Propositional.Resolution.SpaceWidth; Esteban and Torán's bound of clause space by tree-like size is in CslibFrontier.Logics.Propositional.Resolution.TreeLikeSpace.

Main definitions #

Main results #

References #

inductive Cslib.Logic.PL.ConfigMove (V : Type u_2) :
Type u_2

A move of a configuration-style resolution refutation: download a clause, infer the resolvent of two clauses on a variable, or erase a clause.

inductive Cslib.Logic.PL.CNF.ConfigStep {V : Type u_1} [DecidableEq V] (φ : CNF V) :
Finset (Clause V) → ConfigMove V → Finset (Clause V) → Prop

The effect of a move on a configuration of a configuration-style resolution refutation from φ Esteban and Torán: download a clause of φ, add the resolvent of two clauses of the configuration on a variable occurring positively in the first and negatively in the second, or erase a clause.

def Cslib.Logic.PL.CNF.configLTS {V : Type u_1} [DecidableEq V] (φ : CNF V) (s : ℕ) :

Configuration-style resolution from φ with configurations of at most s clauses, as a labelled transition system.

φ is refutable in clause space s Esteban and Torán: some sequence of moves leads from the empty configuration to one containing the empty clause, through configurations of at most s clauses each.

theorem Cslib.Logic.PL.CNF.configLTS_tr {V : Type u_1} [DecidableEq V] {φ : CNF V} {s : ℕ} {M M' : Finset (Clause V)} {m : ConfigMove V} :
(φ.configLTS s).Tr M m M' ↔ φ.ConfigStep M m M' ∧ M'.card ≤ s

A transition of configLTS φ s is a step whose result has at most s clauses.

theorem Cslib.Logic.PL.CNF.configLTS_mTr_mono {V : Type u_1} [DecidableEq V] {φ : CNF V} {s t : ℕ} (hst : s ≤ t) {M M' : Finset (Clause V)} {ms : List (ConfigMove V)} (h : (φ.configLTS s).MTr M ms M') :
(φ.configLTS t).MTr M ms M'

A run within space s is a run within any larger space.

theorem Cslib.Logic.PL.CNF.derives_of_configLTS_mTr {V : Type u_1} [DecidableEq V] {φ : CNF V} {s : ℕ} {M M' : Finset (Clause V)} {ms : List (ConfigMove V)} (h : (φ.configLTS s).MTr M ms M') (hM : ∀ c ∈ M, φ.Derives c) (c : Clause V) :
c ∈ M' → φ.Derives c

A configuration reachable from one of derivable clauses consists of derivable clauses.

theorem Cslib.Logic.PL.CNF.exists_configLTS_mTr_of_subset {V : Type u_1} [DecidableEq V] {φ : CNF V} {s : ℕ} {M N : Finset (Clause V)} (hNM : N ⊆ M) (hM : M.card ≤ s) :
∃ (ms : List (ConfigMove V)), (φ.configLTS s).MTr M ms N

Erasing clauses one at a time runs from a configuration to any subset of it.

Soundness: a formula refutable in some clause space is unsatisfiable.

theorem Cslib.Logic.PL.CNF.RefutableInSpace.mono {V : Type u_1} [DecidableEq V] {φ : CNF V} {s t : ℕ} (h : φ.RefutableInSpace s) (hst : s ≤ t) :

RefutableInSpace is monotone in the space bound.

theorem Cslib.Logic.PL.CNF.RefutableInSpace.three_le {V : Type u_1} [DecidableEq V] {φ : CNF V} {s : ℕ} (hφ : [] ∉ φ) (h : φ.RefutableInSpace s) :
3 ≤ s

Refutations of a formula without the empty clause need space at least 3: the empty clause is the resolvent of two different clauses, [x] and [¬x], held together with it.

Clause space is at most size: a refutation with s lines gives a refutation in clause space s, which downloads or derives the lines in order and never erases.

Resolution refutes exactly the unsatisfiable formulas, in some clause space.