Documentation

CslibFrontier.Logics.Propositional.Resolution.TreeLikeSpace

Clause space of tree-like refutations #

Esteban and Torán's bound: clause space is at most logarithmic in tree-like size. In the form of Torán, Theorem 9, credited there to Esteban and Torán [ET01], an unsatisfiable formula F has tree-size(F) ≥ 2 ^ space(F) - 1.

The proof in that survey pebbles a tree-like refutation with d + 1 pebbles, where d is the height of the largest complete binary tree embedded in it. This is the Horton–Strahler number of the derivation (Cslib.Logic.PL.CNF.Derivation.strahler): 0 at a leaf, and at a resolution step the larger of the numbers of the two premises, plus one if they are equal. It is the Ehrenfeucht–Haussler rank (Cslib.DecisionTree.rank) of the decision tree of the derivation (Cslib.Logic.PL.CNF.Derivation.strahler_eq_rank_toDecisionTree). To derive the conclusion, derive first the premise of larger number, keep it, and derive the other (Cslib.Logic.PL.CNF.Derivation.exists_configLTS_mTr). A derivation of Strahler number r embeds a complete binary tree of height r, so it has at least 2 ^ (r + 1) - 1 nodes (Cslib.Logic.PL.CNF.Derivation.two_pow_strahler_add_one_le, from Cslib.DecisionTree.two_pow_rank_le_leafCount).

Convention. The pebble game of the survey Torán, Definition 7 and Lemma 8 lets an inference shift a pebble from a premise to the resolvent, so x ∧ ¬x is refuted with two pebbles. Configurations here (Cslib.Logic.PL.CNF.configLTS) keep both premises while they add the resolvent, as in Filmus, Lauria, Mikša, Nordström and Vinyals [FLM+14], so x ∧ ¬x needs clause space 3 (Cslib.Logic.PL.CNF.RefutableInSpace.three_le), and every bound below is one larger than its counterpart in the survey:

Every unsatisfiable formula on n variables is refutable in clause space n + 2 (Cslib.Logic.PL.CNF.refutableInSpace_of_not_satisfiable), the survey's bound n + 1 Torán, Section 4 in this convention: splitting on a variable gives a tree-like refutation of Strahler number at most n (Cslib.Logic.PL.CNF.exists_derivation_strahler_le).

The original paper of Esteban and Torán was not inspected for this formalization.

Main definitions #

Main results #

References #

The Horton–Strahler number #

def Cslib.Logic.PL.CNF.Derivation.strahler {V : Type u_1} [DecidableEq V] {φ : CNF V} {c : Clause V} :
φ.Derivation c → ℕ

The Horton–Strahler number of a tree-like derivation: 0 at a leaf, and at a resolution step the larger of the numbers of the two premises, plus one if they are equal. It is the height of the largest complete binary tree embedded in the derivation Torán, Theorem 9, and the Ehrenfeucht–Haussler rank Cslib.DecisionTree.rank of the decision tree of the derivation (Cslib.Logic.PL.CNF.Derivation.strahler_eq_rank_toDecisionTree).

@[simp]
theorem Cslib.Logic.PL.CNF.Derivation.strahler_mem {V : Type u_1} [DecidableEq V] {φ : CNF V} {c : Clause V} (hc : c ∈ φ) :
(mem hc).strahler = 0

A leaf has Strahler number 0.

theorem Cslib.Logic.PL.CNF.Derivation.strahler_resolvent {V : Type u_1} [DecidableEq V] {φ : CNF V} {c₁ c₂ : Clause V} (v : V) (d₁ : φ.Derivation c₁) (d₂ : φ.Derivation c₂) (hv₁ : (v, true) ∈ c₁) (hv₂ : (v, false) ∈ c₂) :
(resolvent v d₁ d₂ hv₁ hv₂).strahler = if d₁.strahler = d₂.strahler then d₁.strahler + 1 else max d₁.strahler d₂.strahler

The Strahler number of a resolution step.

The Strahler number of a tree-like derivation is the Ehrenfeucht–Haussler rank of its decision tree.

theorem Cslib.Logic.PL.CNF.Derivation.two_pow_strahler_add_one_le {V : Type u_1} [DecidableEq V] {φ : CNF V} {c : Clause V} (d : φ.Derivation c) :
2 ^ (d.strahler + 1) ≤ d.size + 1

A tree-like derivation of Strahler number r has at least 2 ^ (r + 1) - 1 nodes: its decision tree has at least 2 ^ r leaves (Cslib.DecisionTree.two_pow_rank_le_leafCount).

Clause space #

theorem Cslib.Logic.PL.CNF.Derivation.exists_configLTS_mTr {V : Type u_1} [DecidableEq V] {φ : CNF V} {c : Clause V} (d : φ.Derivation c) (K : Finset (Clause V)) :
∃ (ms : List (ConfigMove V)), (φ.configLTS (K.card + d.strahler + 2)).MTr K ms (insert c K)

A tree-like derivation of c of Strahler number r runs from any configuration K to insert c K with at most |K| + r + 2 clauses at a time: derive the premise of larger number, then the other, resolve them, and erase both.

A tree-like refutation of Strahler number r gives clause space r + 2.

Esteban and Torán's bound Torán, Theorem 9 [ET01]: a tree-like refutation of S nodes gives clause space log₂ (S + 1) + 1. The space of the survey, for a pebble game that shifts a pebble from a premise to the resolvent, is at most one less than clause space here, so its bound log₂ (S + 1) implies this one.

theorem Cslib.Logic.PL.CNF.Derivation.two_pow_le_size_add_one {V : Type u_1} [DecidableEq V] {φ : CNF V} (d : φ.Derivation []) {s : ℕ} (h : ¬φ.RefutableInSpace s) :
2 ^ s ≤ d.size + 1

Esteban and Torán's bound Torán, Theorem 9 [ET01], as a lower bound on tree-like size: if φ is not refutable in clause space s, every tree-like refutation of φ has at least 2 ^ s - 1 nodes. The survey states tree-size(F) ≥ 2 ^ space(F) - 1 for a pebble game that shifts a pebble from a premise to the resolvent, whose space is at most one less than clause space here.

A DPLL tree of rank r gives clause space r + 2: a decision tree of Ehrenfeucht–Haussler rank r finding a falsified clause of φ gives a tree-like refutation of Strahler number at most r (Cslib.DecisionTree.FindsFalsifiedClause.exists_derivation_rank_le).

Formulas on n variables #

theorem Cslib.Logic.PL.CNF.Derivation.exists_of_restrict {V : Type u_1} [DecidableEq V] {φ : CNF V} {c : Clause V} {v : V} {b : Bool} (d : (φ.restrict v b).Derivation c) :
∃ (c' : Clause V) (d' : φ.Derivation c'), (∀ l ∈ c', l ∈ c ∨ l = (v, !b)) ∧ (∀ l ∈ c, l ∈ c') ∧ d'.strahler = d.strahler

Lifting a tree-like derivation: a tree-like derivation from φ with v fixed to b lifts to a tree-like derivation from φ of the same Strahler number, whose conclusion contains the original one and has, besides its literals, at most the literal (v, !b) falsified by b.

An unsatisfiable formula on n variables has a tree-like refutation of Strahler number at most n.

Every unsatisfiable formula on n variables is refutable in clause space n + 2: the bound n + 1 of Torán, Section 4, for a pebble game that shifts a pebble from a premise to the resolvent, in the convention of Cslib.Logic.PL.CNF.configLTS.