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:
- axiom download: a clause of the formula is added;
- inference: the resolvent of two clauses in memory, on a variable occurring positively in the first and negatively in the second, is added;
- erasure: a clause is removed.
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 #
Cslib.Logic.PL.ConfigMove,Cslib.Logic.PL.CNF.ConfigStep: the moves of configuration-style resolution refutations, and their effect on a configuration.Cslib.Logic.PL.CNF.configLTS: configuration-style resolution with configurations of at mostsclauses, as a cslibLTS.Cslib.Logic.PL.CNF.RefutableInSpace: refutability in clause spaces.
Main results #
Cslib.Logic.PL.CNF.RefutableInSpace.not_satisfiable: soundness.Cslib.Logic.PL.CNF.RefutableInSize.refutableInSpace: clause space is at most size.Cslib.Logic.PL.CNF.exists_refutableInSpace_iff_not_satisfiable: completeness.Cslib.Logic.PL.CNF.RefutableInSpace.three_le: refutations of formulas without the empty clause need space at least3.
References #
A move of a configuration-style resolution refutation: download a clause, infer the resolvent of two clauses on a variable, or erase a clause.
- download {V : Type u_2} (c : Clause V) : ConfigMove V
Axiom download.
- infer {V : Type u_2} (c₁ c₂ : Clause V) (v : V) : ConfigMove V
Inference of
c₁.resolvent c₂ v. - erase {V : Type u_2} (c : Clause V) : ConfigMove V
Erasure.
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.
- download {V : Type u_1} [DecidableEq V] {φ : CNF V} {M : Finset (Clause V)} {c : Clause V} (hc : c ∈ φ) : φ.ConfigStep M (ConfigMove.download c) (insert c M)
Axiom download: add a clause of
φ. - infer {V : Type u_1} [DecidableEq V] {φ : CNF V} {M : Finset (Clause V)} {c₁ c₂ : Clause V} (v : V) (h₁ : c₁ ∈ M) (h₂ : c₂ ∈ M) (hv₁ : (v, true) ∈ c₁) (hv₂ : (v, false) ∈ c₂) : φ.ConfigStep M (ConfigMove.infer c₁ c₂ v) (insert (c₁.resolvent c₂ v) M)
Inference: add the resolvent of two clauses of the configuration.
- erase {V : Type u_1} [DecidableEq V] {φ : CNF V} {M : Finset (Clause V)} (c : Clause V) : φ.ConfigStep M (ConfigMove.erase c) (M.erase c)
Erasure: remove a clause.
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.
A transition of configLTS φ s is a step whose result has at most s clauses.
A run within space s is a run within any larger space.
A configuration reachable from one of derivable clauses consists of derivable clauses.
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.
RefutableInSpace is monotone in the space bound.
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.