Documentation

CslibFrontier.Logics.Propositional.Resolution.ProverDelayer

Prover–Delayer potentials for tree-like resolution #

A partial assignment ρ : V → Option Bool falsifies a clause (Cslib.Logic.PL.Clause.FalsifiedBy) if it sets every literal of the clause to false. Following a tree-like derivation from its conclusion towards the leaves, a Prover keeps a partial assignment falsifying the current clause: at a resolution step on v, if v is unset, either value of v falsifies one of the two premises (Cslib.Logic.PL.Clause.FalsifiedBy.resolvent_update). So a potential μ : (V → Option Bool) → ℕ that splits at every unset variable, μ ρ ≤ μ ρ[v ↦ 0] + μ ρ[v ↦ 1], and is at most 1 on partial assignments falsifying a clause of φ, bounds the number of leaves, and so the size, of every tree-like derivation of a clause ρ falsifies from below (Cslib.Logic.PL.CNF.Derivation.potential_le_leafCount, Cslib.Logic.PL.CNF.Derivation.potential_le_size). In particular μ (fun _ => none) is at most the size of every tree-like refutation (Cslib.Logic.PL.CNF.Derivation.potential_none_le_size).

This is the potential form of the asymmetric Prover–Delayer game of Beyersdorff, Galesi and Lauria [BeyersdorffGalesiLauria2010, Theorem 1]: if Delayer can secure p points in the (c₀, c₁)-game, with 1 / c₀ + 1 / c₁ = 1, then every tree-like refutation has at least 2 ^ p nodes. A Delayer strategy guaranteeing p points gives a real-valued splitting potential with value 2 ^ p at the empty assignment, and its ceiling, of value ⌈2 ^ p⌉, is a potential in the sense used here; the proof of their theorem is the induction above. Splitting with μ ρ ≤ μ ρ[v ↦ b] at a variable whose value Delayer chooses as b is a special case of the split inequality.

Main definitions #

Main results #

References #

def Cslib.Logic.PL.Clause.FalsifiedBy {V : Type u_1} (ρ : V → Option Bool) (c : Clause V) :

The partial assignment ρ falsifies the clause c: it sets every literal of c to false, that is, it gives the variable of each literal the opposite of the literal's sign. Partial assignments are encoded as in Cslib.Logic.PL.CNF.restrictBy, with none for unset variables.

@[simp]

Every partial assignment falsifies the empty clause.

theorem Cslib.Logic.PL.Clause.FalsifiedBy.left_of_resolvent {V : Type u_1} [DecidableEq V] {ρ : V → Option Bool} {c₁ c₂ : Clause V} {v : V} (h : FalsifiedBy ρ (c₁.resolvent c₂ v)) (hv : ρ v = some false) :
FalsifiedBy ρ c₁

If ρ falsifies the resolvent of c₁ and c₂ on v and sets v to false, it falsifies c₁.

theorem Cslib.Logic.PL.Clause.FalsifiedBy.right_of_resolvent {V : Type u_1} [DecidableEq V] {ρ : V → Option Bool} {c₁ c₂ : Clause V} {v : V} (h : FalsifiedBy ρ (c₁.resolvent c₂ v)) (hv : ρ v = some true) :
FalsifiedBy ρ c₂

If ρ falsifies the resolvent of c₁ and c₂ on v and sets v to true, it falsifies c₂.

theorem Cslib.Logic.PL.Clause.FalsifiedBy.update {V : Type u_1} [DecidableEq V] {ρ : V → Option Bool} {c : Clause V} (h : FalsifiedBy ρ c) {v : V} (hv : ρ v = none) (b : Bool) :

Setting a variable that ρ leaves unset keeps every clause ρ falsifies falsified.

theorem Cslib.Logic.PL.Clause.FalsifiedBy.resolvent_update {V : Type u_1} [DecidableEq V] {ρ : V → Option Bool} {c₁ c₂ : Clause V} {v : V} (h : FalsifiedBy ρ (c₁.resolvent c₂ v)) (hv : ρ v = none) :

The Prover's step. If ρ falsifies the resolvent of c₁ and c₂ on an unset variable v, setting v to false falsifies c₁ and setting it to true falsifies c₂.

theorem Cslib.Logic.PL.CNF.Derivation.potential_le_leafCount {V : Type u_1} [DecidableEq V] {φ : CNF V} (μ : (V → Option Bool) → ℕ) (hsplit : ∀ (ρ : V → Option Bool) (v : V), ρ v = none → μ ρ ≤ μ (Function.update ρ v (some false)) + μ (Function.update ρ v (some true))) (hax : ∀ (ρ : V → Option Bool), ∀ c ∈ φ, Clause.FalsifiedBy ρ c → μ ρ ≤ 1) {c : Clause V} (d : φ.Derivation c) {ρ : V → Option Bool} :

Prover–Delayer potentials bound the leaves of tree-like derivations [BeyersdorffGalesiLauria2010, Theorem 1]. Let μ split at every unset variable, μ ρ ≤ μ ρ[v ↦ 0] + μ ρ[v ↦ 1], and be at most 1 on partial assignments falsifying a clause of φ. Then every tree-like derivation of a clause that ρ falsifies has at least μ ρ leaves.

theorem Cslib.Logic.PL.CNF.Derivation.potential_le_size {V : Type u_1} [DecidableEq V] {φ : CNF V} (μ : (V → Option Bool) → ℕ) (hsplit : ∀ (ρ : V → Option Bool) (v : V), ρ v = none → μ ρ ≤ μ (Function.update ρ v (some false)) + μ (Function.update ρ v (some true))) (hax : ∀ (ρ : V → Option Bool), ∀ c ∈ φ, Clause.FalsifiedBy ρ c → μ ρ ≤ 1) {c : Clause V} (d : φ.Derivation c) {ρ : V → Option Bool} (hρ : Clause.FalsifiedBy ρ c) :
μ ρ ≤ d.size

Prover–Delayer potentials bound tree-like derivations [BeyersdorffGalesiLauria2010, Theorem 1]. Under the hypotheses of potential_le_leafCount, every tree-like derivation of a clause that ρ falsifies has at least μ ρ nodes.

theorem Cslib.Logic.PL.CNF.Derivation.potential_none_le_size {V : Type u_1} [DecidableEq V] {φ : CNF V} (μ : (V → Option Bool) → ℕ) (hsplit : ∀ (ρ : V → Option Bool) (v : V), ρ v = none → μ ρ ≤ μ (Function.update ρ v (some false)) + μ (Function.update ρ v (some true))) (hax : ∀ (ρ : V → Option Bool), ∀ c ∈ φ, Clause.FalsifiedBy ρ c → μ ρ ≤ 1) (d : φ.Derivation []) :
(μ fun (x : V) => none) ≤ d.size

Prover–Delayer potentials bound tree-like refutations: under the hypotheses of potential_le_size, every tree-like refutation of φ has at least μ (fun _ => none) nodes.