Documentation

CslibFrontier.Logics.Propositional.CuttingPlanes

Cutting planes #

The cutting planes proof system Cook, Coullard and Turán reasons about integer linear inequalities ∑ᵥ aᵥ xᵥ ≥ b over variables ranging over {0, 1} (Cslib.Logic.PL.Ineq, with finitely supported integer coefficients). A line follows from earlier lines by

and the axioms are xᵥ ≥ 0 and -xᵥ ≥ -1. Rounding is sound because the left-hand side takes integer values on integer points. These are the rules of Krajíček, Section 1 and Jukna, Section 19.1. A cutting planes proof from a set Γ of inequalities (Cslib.Logic.PL.CuttingPlanes.IsProof) is a list of inequalities, from its last line to its first, each of which is in Γ, an axiom, or follows from earlier lines by a rule. Its size is its number of lines and a refutation is a proof with the contradiction 0 ≥ 1 (Cslib.Logic.PL.Ineq.contra) among its lines. Coefficient sizes are not measured.

Every line of a proof from Γ holds under every 0/1 assignment satisfying Γ (Cslib.Logic.PL.CuttingPlanes.IsProof.holds), so a refutable system has no 0/1 solution.

A clause C translates to ∑_{v ∈ C} xᵥ + ∑_{¬v ∈ C} (1 - xᵥ) ≥ 1 over its distinct literals (Cslib.Logic.PL.Clause.toIneq), which holds under an assignment exactly when the clause does (Cslib.Logic.PL.Clause.holds_toIneq_iff) Jukna, Section 19.2. A CNF φ gives the system φ.toIneqs of the inequalities of its clauses, which cutting planes refute only if φ is unsatisfiable.

Main definitions #

Main results #

References #

structure Cslib.Logic.PL.Ineq (V : Type u_1) :
Type u_1

An integer linear inequality ∑ᵥ aᵥ xᵥ ≥ b over the variables V, with finitely many nonzero coefficients. Inequalities form an additive group under coefficientwise operations.

  • coeff : V →₀ ℤ

    The coefficients aᵥ.

  • bound : ℤ

    The bound b.

Instances For
    theorem Cslib.Logic.PL.Ineq.ext {V : Type u_1} {x y : Ineq V} (coeff : x.coeff = y.coeff) (bound : x.bound = y.bound) :
    x = y
    theorem Cslib.Logic.PL.Ineq.ext_iff {V : Type u_1} {x y : Ineq V} :
    x = y ↔ x.coeff = y.coeff ∧ x.bound = y.bound
    @[instance_reducible]
    instance Cslib.Logic.PL.Ineq.instZero {V : Type u_1} :
    @[instance_reducible]
    noncomputable instance Cslib.Logic.PL.Ineq.instAdd {V : Type u_1} :
    Add (Ineq V)
    @[instance_reducible]
    noncomputable instance Cslib.Logic.PL.Ineq.instNeg {V : Type u_1} :
    Neg (Ineq V)
    @[instance_reducible]
    noncomputable instance Cslib.Logic.PL.Ineq.instSub {V : Type u_1} :
    Sub (Ineq V)
    @[instance_reducible]
    noncomputable instance Cslib.Logic.PL.Ineq.instSMulNat {V : Type u_1} :
    @[instance_reducible]
    noncomputable instance Cslib.Logic.PL.Ineq.instSMulInt {V : Type u_1} :
    @[simp]
    @[simp]
    @[simp]
    theorem Cslib.Logic.PL.Ineq.coeff_add {V : Type u_1} (I J : Ineq V) :
    (I + J).coeff = I.coeff + J.coeff
    @[simp]
    theorem Cslib.Logic.PL.Ineq.bound_add {V : Type u_1} (I J : Ineq V) :
    (I + J).bound = I.bound + J.bound
    @[simp]
    theorem Cslib.Logic.PL.Ineq.coeff_neg {V : Type u_1} (I : Ineq V) :
    @[simp]
    theorem Cslib.Logic.PL.Ineq.bound_neg {V : Type u_1} (I : Ineq V) :
    @[simp]
    theorem Cslib.Logic.PL.Ineq.coeff_sub {V : Type u_1} (I J : Ineq V) :
    (I - J).coeff = I.coeff - J.coeff
    @[simp]
    theorem Cslib.Logic.PL.Ineq.bound_sub {V : Type u_1} (I J : Ineq V) :
    (I - J).bound = I.bound - J.bound
    @[simp]
    theorem Cslib.Logic.PL.Ineq.coeff_nsmul {V : Type u_1} (c : ℕ) (I : Ineq V) :
    (c • I).coeff = c • I.coeff
    @[simp]
    theorem Cslib.Logic.PL.Ineq.bound_nsmul {V : Type u_1} (c : ℕ) (I : Ineq V) :
    (c • I).bound = c • I.bound
    @[simp]
    theorem Cslib.Logic.PL.Ineq.coeff_zsmul {V : Type u_1} (c : ℤ) (I : Ineq V) :
    (c • I).coeff = c • I.coeff
    @[simp]
    theorem Cslib.Logic.PL.Ineq.bound_zsmul {V : Type u_1} (c : ℤ) (I : Ineq V) :
    (c • I).bound = c • I.bound
    @[instance_reducible]
    noncomputable instance Cslib.Logic.PL.Ineq.instAddCommGroup {V : Type u_1} :
    @[simp]
    theorem Cslib.Logic.PL.Ineq.coeff_sum {V : Type u_1} {ι : Type u_2} (s : Finset ι) (f : ι → Ineq V) :
    (∑ i ∈ s, f i).coeff = ∑ i ∈ s, (f i).coeff
    @[simp]
    theorem Cslib.Logic.PL.Ineq.bound_sum {V : Type u_1} {ι : Type u_2} (s : Finset ι) (f : ι → Ineq V) :
    (∑ i ∈ s, f i).bound = ∑ i ∈ s, (f i).bound

    Semantics #

    noncomputable def Cslib.Logic.PL.Ineq.lhs {V : Type u_1} (σ : V → Bool) (I : Ineq V) :

    The value ∑ᵥ aᵥ σ(v) of the left-hand side of I under a 0/1 assignment σ.

    def Cslib.Logic.PL.Ineq.Holds {V : Type u_1} (σ : V → Bool) (I : Ineq V) :

    The 0/1 assignment σ satisfies I: ∑ᵥ aᵥ σ(v) ≥ b.

    @[simp]
    theorem Cslib.Logic.PL.Ineq.lhs_zero {V : Type u_1} (σ : V → Bool) :
    lhs σ 0 = 0
    @[simp]
    theorem Cslib.Logic.PL.Ineq.lhs_add {V : Type u_1} (σ : V → Bool) (I J : Ineq V) :
    lhs σ (I + J) = lhs σ I + lhs σ J
    @[simp]
    theorem Cslib.Logic.PL.Ineq.lhs_nsmul {V : Type u_1} (σ : V → Bool) (c : ℕ) (I : Ineq V) :
    lhs σ (c • I) = ↑c * lhs σ I
    theorem Cslib.Logic.PL.Ineq.lhs_of_coeff_eq_smul {V : Type u_1} (σ : V → Bool) {I J : Ineq V} {c : ℤ} (h : I.coeff = c • J.coeff) :
    lhs σ I = c * lhs σ J

    Scaling the coefficients by c scales the left-hand side.

    @[simp]
    theorem Cslib.Logic.PL.Ineq.lhs_sum {V : Type u_1} (σ : V → Bool) {ι : Type u_2} (s : Finset ι) (f : ι → Ineq V) :
    lhs σ (∑ i ∈ s, f i) = ∑ i ∈ s, lhs σ (f i)
    @[simp]
    theorem Cslib.Logic.PL.Ineq.lhs_mk_single {V : Type u_1} (σ : V → Bool) (v : V) (a b : ℤ) :
    lhs σ { coeff := Finsupp.single v a, bound := b } = a * (σ v).toInt

    The left-hand side of an inequality with a single nonzero coefficient.

    theorem Cslib.Logic.PL.Ineq.lhs_eq_sum {V : Type u_1} [Fintype V] (σ : V → Bool) (I : Ineq V) :
    lhs σ I = ∑ v : V, I.coeff v * (σ v).toInt

    The left-hand side over finitely many variables, as a sum.

    theorem Cslib.Logic.PL.Ineq.lhs_eq_finsuppSum {V : Type u_1} (σ : V → Bool) (I : Ineq V) :
    lhs σ I = I.coeff.sum fun (v : V) (a : ℤ) => a * (σ v).toInt

    The left-hand side as a sum over the nonzero coefficients.

    theorem Cslib.Logic.PL.Ineq.Holds.add {V : Type u_1} {σ : V → Bool} {I J : Ineq V} (hI : Holds σ I) (hJ : Holds σ J) :
    Holds σ (I + J)
    theorem Cslib.Logic.PL.Ineq.Holds.nsmul {V : Type u_1} {σ : V → Bool} {I : Ineq V} (c : ℕ) (h : Holds σ I) :
    Holds σ (c • I)

    The axioms and the contradiction #

    The contradiction 0 ≥ 1.

    noncomputable def Cslib.Logic.PL.Ineq.nonneg {V : Type u_1} (v : V) :

    The axiom xᵥ ≥ 0.

    noncomputable def Cslib.Logic.PL.Ineq.leOne {V : Type u_1} (v : V) :

    The axiom -xᵥ ≥ -1, that is xᵥ ≤ 1.

    @[simp]
    @[simp]
    theorem Cslib.Logic.PL.Ineq.bound_nonneg {V : Type u_1} (v : V) :
    (nonneg v).bound = 0
    @[simp]
    theorem Cslib.Logic.PL.Ineq.coeff_leOne {V : Type u_1} (v : V) :
    @[simp]
    theorem Cslib.Logic.PL.Ineq.bound_leOne {V : Type u_1} (v : V) :
    (leOne v).bound = -1
    theorem Cslib.Logic.PL.Ineq.not_holds_contra {V : Type u_1} (σ : V → Bool) :

    No assignment satisfies 0 ≥ 1.

    theorem Cslib.Logic.PL.Ineq.holds_nonneg {V : Type u_1} (σ : V → Bool) (v : V) :
    Holds σ (nonneg v)
    theorem Cslib.Logic.PL.Ineq.holds_leOne {V : Type u_1} (σ : V → Bool) (v : V) :
    Holds σ (leOne v)

    xᵥ ≥ 0 plus -xᵥ ≥ -1 is 0 ≥ -1.

    Rounded division #

    noncomputable def Cslib.Logic.PL.Ineq.div {V : Type u_1} (I : Ineq V) (c : ℕ) :

    Rounded division by c Chvátal: ∑ᵥ (aᵥ / c) xᵥ ≥ ⌈b / c⌉, where aᵥ / c is integer division. It is sound when c divides every coefficient (Cslib.Logic.PL.Ineq.Holds.div); cutting planes use it only for c > 0.

    @[simp]
    theorem Cslib.Logic.PL.Ineq.coeff_div {V : Type u_1} (I : Ineq V) (c : ℕ) (v : V) :
    (I.div c).coeff v = I.coeff v / ↑c
    @[simp]
    theorem Cslib.Logic.PL.Ineq.bound_div {V : Type u_1} (I : Ineq V) (c : ℕ) :
    (I.div c).bound = -(-I.bound / ↑c)
    theorem Cslib.Logic.PL.Ineq.bound_div_le_iff {V : Type u_1} {I : Ineq V} {c : ℕ} (hc : 0 < c) {y : ℤ} :
    (I.div c).bound ≤ y ↔ I.bound ≤ ↑c * y

    ⌈b / c⌉ ≤ y iff b ≤ c y.

    theorem Cslib.Logic.PL.Ineq.smul_coeff_div {V : Type u_1} {I : Ineq V} {c : ℕ} (hdvd : ∀ (v : V), ↑c ∣ I.coeff v) :
    ↑c • (I.div c).coeff = I.coeff

    If c divides every coefficient of I, multiplying the coefficients of I.div c by c gives back those of I.

    theorem Cslib.Logic.PL.Ineq.Holds.div {V : Type u_1} {σ : V → Bool} {I : Ineq V} {c : ℕ} (hdvd : ∀ (v : V), ↑c ∣ I.coeff v) (h : Holds σ I) :
    Holds σ (I.div c)

    Soundness of rounded division: if c divides every coefficient of I, every 0/1 assignment satisfying I satisfies I.div c. At c = 0, I.div 0 is 0 ≥ 0.

    theorem Cslib.Logic.PL.Ineq.div_eq_of {V : Type u_1} {I J : Ineq V} {c : ℕ} (hc : 0 < c) (hcoeff : I.coeff = ↑c • J.coeff) (hlo : ↑c * (J.bound - 1) < I.bound) (hhi : I.bound ≤ ↑c * J.bound) :
    I.div c = J

    Recognizing a rounded division: I.div c = J when the coefficients of I are c times those of J and ⌈b_I / c⌉ = b_J.

    Renaming variables #

    noncomputable def Cslib.Logic.PL.Ineq.relabel {V : Type u_1} {W : Type u_2} (f : V → W) (I : Ineq V) :

    Renaming the variables of an inequality along f; the coefficients of variables with the same image add up.

    theorem Cslib.Logic.PL.Ineq.coeff_relabel {V : Type u_1} {W : Type u_2} (f : V → W) (I : Ineq V) :
    @[simp]
    theorem Cslib.Logic.PL.Ineq.bound_relabel {V : Type u_1} {W : Type u_2} (f : V → W) (I : Ineq V) :
    @[simp]
    theorem Cslib.Logic.PL.Ineq.coeff_relabel_apply {V : Type u_1} {W : Type u_2} {f : V → W} (hf : Function.Injective f) (I : Ineq V) (v : V) :
    (relabel f I).coeff (f v) = I.coeff v

    Along an injective renaming, the coefficient of f v is that of v.

    @[simp]
    theorem Cslib.Logic.PL.Ineq.lhs_relabel {V : Type u_1} {W : Type u_2} (f : V → W) (σ : W → Bool) (I : Ineq V) :
    lhs σ (relabel f I) = lhs (σ ∘ f) I
    @[simp]
    theorem Cslib.Logic.PL.Ineq.holds_relabel {V : Type u_1} {W : Type u_2} (f : V → W) (σ : W → Bool) (I : Ineq V) :
    Holds σ (relabel f I) ↔ Holds (σ ∘ f) I

    σ satisfies a renamed inequality iff σ ∘ f satisfies the original.

    theorem Cslib.Logic.PL.Ineq.relabel_add {V : Type u_1} {W : Type u_2} (f : V → W) (I J : Ineq V) :
    relabel f (I + J) = relabel f I + relabel f J
    theorem Cslib.Logic.PL.Ineq.relabel_nsmul {V : Type u_1} {W : Type u_2} (f : V → W) (c : ℕ) (I : Ineq V) :
    relabel f (c • I) = c • relabel f I
    @[simp]
    theorem Cslib.Logic.PL.Ineq.relabel_contra {V : Type u_1} {W : Type u_2} (f : V → W) :
    @[simp]
    theorem Cslib.Logic.PL.Ineq.relabel_nonneg {V : Type u_1} {W : Type u_2} (f : V → W) (v : V) :
    relabel f (nonneg v) = nonneg (f v)
    @[simp]
    theorem Cslib.Logic.PL.Ineq.relabel_leOne {V : Type u_1} {W : Type u_2} (f : V → W) (v : V) :
    relabel f (leOne v) = leOne (f v)
    theorem Cslib.Logic.PL.Ineq.relabel_sum {V : Type u_1} {W : Type u_2} {ι : Type u_3} (f : V → W) (s : Finset ι) (g : ι → Ineq V) :
    relabel f (∑ i ∈ s, g i) = ∑ i ∈ s, relabel f (g i)
    theorem Cslib.Logic.PL.Ineq.coeff_relabel_eq_smul_div {V : Type u_1} {W : Type u_2} (f : V → W) {I : Ineq V} {c : ℕ} (hdvd : ∀ (v : V), ↑c ∣ I.coeff v) :
    (relabel f I).coeff = ↑c • (relabel f (I.div c)).coeff

    When c divides every coefficient of I, the coefficients of the renamed inequality are c times those of the renamed division.

    theorem Cslib.Logic.PL.Ineq.dvd_coeff_relabel {V : Type u_1} {W : Type u_2} (f : V → W) {I : Ineq V} {c : ℕ} (hdvd : ∀ (v : V), ↑c ∣ I.coeff v) (w : W) :
    ↑c ∣ (relabel f I).coeff w

    When c divides every coefficient of I, it divides every coefficient of the renamed inequality.

    theorem Cslib.Logic.PL.Ineq.relabel_div_of_dvd {V : Type u_1} {W : Type u_2} (f : V → W) {I : Ineq V} {c : ℕ} (hdvd : ∀ (v : V), ↑c ∣ I.coeff v) :
    relabel f (I.div c) = (relabel f I).div c

    When c divides every coefficient of I, division by c commutes with renaming.

    Clauses as inequalities #

    noncomputable def Cslib.Logic.PL.Literal.toIneq {V : Type u_1} (l : Literal V) :

    The inequality of a literal: xᵥ ≥ 0 for v, and -xᵥ ≥ -1 (that is 1 - xᵥ ≥ 0) for ¬v.

    noncomputable def Cslib.Logic.PL.Clause.toIneq {V : Type u_1} [DecidableEq V] (c : Clause V) :

    The inequality ∑_{v ∈ C} xᵥ + ∑_{¬v ∈ C} (1 - xᵥ) ≥ 1 of a clause C, over its distinct literals Jukna, Section 19.2. It is 0 ≥ 1 plus the inequalities of the distinct literals of C.

    theorem Cslib.Logic.PL.Clause.holds_toIneq_iff {V : Type u_1} [DecidableEq V] (σ : V → Bool) (c : Clause V) :

    The translation of clauses is faithful: σ satisfies the inequality of c iff it satisfies c.

    @[simp]

    The empty clause translates to 0 ≥ 1.

    For a clause without repeated literals, the translation is 0 ≥ 1 plus the list sum.

    def Cslib.Logic.PL.CNF.toIneqs {V : Type u_1} [DecidableEq V] (φ : CNF V) :
    Set (Ineq V)

    The inequalities of the clauses of φ.

    theorem Cslib.Logic.PL.CNF.toIneq_mem_toIneqs {V : Type u_1} [DecidableEq V] {φ : CNF V} {c : Clause V} (hc : c ∈ φ) :
    theorem Cslib.Logic.PL.CNF.holds_toIneqs_iff {V : Type u_1} [DecidableEq V] (σ : V → Bool) (φ : CNF V) :
    (∀ I ∈ φ.toIneqs, Ineq.Holds σ I) ↔ eval σ φ = true

    σ satisfies the inequalities of φ iff it satisfies φ.

    theorem Cslib.Logic.PL.Literal.relabel_toIneq {V : Type u_1} {W : Type u_2} (f : V → W) (l : Literal V) :

    Renaming the variable of a literal renames its inequality.

    theorem Cslib.Logic.PL.Clause.toIneq_relabel {V : Type u_1} [DecidableEq V] {W : Type u_2} [DecidableEq W] {f : V → W} (hf : Function.Injective f) (c : Clause V) :

    Along an injective renaming, the inequality of a renamed clause is the renamed inequality.

    theorem Cslib.Logic.PL.CNF.toIneqs_relabel {V : Type u_1} [DecidableEq V] {W : Type u_2} [DecidableEq W] {f : V → W} (hf : Function.Injective f) (φ : CNF V) :

    Along an injective renaming, the inequalities of a renamed CNF are the renamed inequalities.

    Proofs #

    inductive Cslib.Logic.PL.CuttingPlanes.IsProof {V : Type u_1} (Γ : Set (Ineq V)) :
    List (Ineq V) → Prop

    A cutting planes proof from the inequalities Γ Cook, Coullard and Turán, listed from its last line to its first: every line is in Γ, an axiom xᵥ ≥ 0 or -xᵥ ≥ -1, the sum of two earlier lines, an earlier line multiplied by a positive integer, or an earlier line divided with rounding by a positive integer dividing all its coefficients.

    def Cslib.Logic.PL.CuttingPlanes.DerivableInSize {V : Type u_1} (Γ : Set (Ineq V)) (I : Ineq V) (s : ℕ) :

    I has a cutting planes derivation from Γ with at most s lines.

    Γ has a cutting planes refutation, a derivation of 0 ≥ 1, with at most s lines.

    The axioms and inference rules of cutting planes as Cslib.Logic.PL.LineRules: the box axioms xᵥ ≥ 0 and -xᵥ ≥ -1, addition, multiplication by a positive integer, and rounded division by a positive integer dividing every coefficient.

    Every cutting planes rule has at most two premises.

    theorem Cslib.Logic.PL.CuttingPlanes.rules_sound {V : Type u_1} {r : LineRule (Ineq V)} (hr : r ∈ rules V) {σ : V → Bool} (hp : ∀ I ∈ r.premises, Ineq.Holds σ I) :

    Every cutting planes rule preserves satisfaction by a 0/1 assignment.

    theorem Cslib.Logic.PL.CuttingPlanes.isProof_iff_lineProof {V : Type u_1} {Γ : Set (Ineq V)} {ls : List (Ineq V)} :
    IsProof Γ ls ↔ LineProof (rules V) Γ ls

    Cutting planes proofs as LineProof derivations.

    theorem Cslib.Logic.PL.CuttingPlanes.IsProof.append {V : Type u_1} {Γ : Set (Ineq V)} {ls ls' : List (Ineq V)} (h : IsProof Γ ls) (h' : IsProof Γ ls') :
    IsProof Γ (ls ++ ls')

    Two proofs from Γ concatenate to a proof from Γ.

    theorem Cslib.Logic.PL.CuttingPlanes.IsProof.holds {V : Type u_1} {Γ : Set (Ineq V)} {ls : List (Ineq V)} {I : Ineq V} (h : IsProof Γ ls) {σ : V → Bool} (hσ : ∀ I ∈ Γ, Ineq.Holds σ I) (hI : I ∈ ls) :

    Soundness: every line of a proof from Γ holds under every 0/1 assignment satisfying Γ.

    theorem Cslib.Logic.PL.CuttingPlanes.IsProof.comp {V : Type u_1} {Γ Δ : Set (Ineq V)} {ls ls' : List (Ineq V)} (hΔ : IsProof Δ ls') (h : IsProof Γ ls) (hΔΓ : ∀ I ∈ Δ, I ∈ Γ ∨ I ∈ ls) :
    ∃ (ls'' : List (Ineq V)), IsProof Γ (ls'' ++ ls) ∧ (∀ I ∈ ls', I ∈ ls'' ++ ls) ∧ ls''.length ≤ ls'.length

    Composing proofs: a proof ls' from Δ replays on top of a proof ls from Γ when every inequality of Δ is in Γ or a line of ls, adding at most as many lines as ls' has.

    theorem Cslib.Logic.PL.CuttingPlanes.IsProof.mono {V : Type u_1} {Γ Δ : Set (Ineq V)} {ls : List (Ineq V)} (h : IsProof Γ ls) (hΓΔ : Γ ⊆ Δ) :
    IsProof Δ ls

    Enlarging the hypotheses keeps a proof a proof.

    theorem Cslib.Logic.PL.CuttingPlanes.IsProof.restrict {V : Type u_1} {Γ : Set (Ineq V)} {ls : List (Ineq V)} (h : IsProof Γ ls) :
    IsProof (Γ ∩ {I : Ineq V | I ∈ ls}) ls

    A proof uses only the hypotheses among its lines.

    theorem Cslib.Logic.PL.CuttingPlanes.IsProof.relabel {V : Type u_1} {Γ : Set (Ineq V)} {ls : List (Ineq V)} {W : Type u_2} (f : V → W) (h : IsProof Γ ls) :

    Renaming the variables of a proof along any map gives a proof from the renamed hypotheses, line by line.

    theorem Cslib.Logic.PL.CuttingPlanes.DerivableInSize.hyp {V : Type u_1} {Γ : Set (Ineq V)} {I : Ineq V} (hI : I ∈ Γ) :

    An inequality of Γ is derivable in one line.

    The axiom xᵥ ≥ 0 is derivable in one line.

    The axiom -xᵥ ≥ -1 is derivable in one line.

    The inequality of a literal is an axiom, derivable in one line.

    theorem Cslib.Logic.PL.CuttingPlanes.DerivableInSize.mono {V : Type u_1} {Γ : Set (Ineq V)} {I : Ineq V} {s t : ℕ} (h : DerivableInSize Γ I s) (hst : s ≤ t) :
    theorem Cslib.Logic.PL.CuttingPlanes.DerivableInSize.relabel {V : Type u_1} {Γ : Set (Ineq V)} {I : Ineq V} {s : ℕ} {W : Type u_2} (f : V → W) (h : DerivableInSize Γ I s) :

    Renaming the variables along any map keeps a derivation a derivation of the same size.

    theorem Cslib.Logic.PL.CuttingPlanes.DerivableInSize.add {V : Type u_1} {Γ : Set (Ineq V)} {I J : Ineq V} {s t : ℕ} (hI : DerivableInSize Γ I s) (hJ : DerivableInSize Γ J t) :
    DerivableInSize Γ (I + J) (s + t + 1)
    theorem Cslib.Logic.PL.CuttingPlanes.DerivableInSize.smul {V : Type u_1} {Γ : Set (Ineq V)} {I : Ineq V} {s : ℕ} (hI : DerivableInSize Γ I s) (c : ℕ) (hc : 0 < c) :
    DerivableInSize Γ (c • I) (s + 1)
    theorem Cslib.Logic.PL.CuttingPlanes.DerivableInSize.div {V : Type u_1} {Γ : Set (Ineq V)} {I : Ineq V} {s : ℕ} (hI : DerivableInSize Γ I s) (c : ℕ) (hc : 0 < c) (hdvd : ∀ (v : V), ↑c ∣ I.coeff v) :
    DerivableInSize Γ (I.div c) (s + 1)
    theorem Cslib.Logic.PL.CuttingPlanes.DerivableInSize.add_sum {V : Type u_1} {Γ : Set (Ineq V)} {I : Ineq V} {s : ℕ} {ι : Type u_2} {f : ι → Ineq V} {r : ℕ} (u : Finset ι) (hI : DerivableInSize Γ I s) (hf : ∀ i ∈ u, DerivableInSize Γ (f i) r) :
    DerivableInSize Γ (I + ∑ i ∈ u, f i) (s + u.card * (r + 1))

    Adding a family of derivable inequalities to a derivable inequality, one at a time.

    theorem Cslib.Logic.PL.CuttingPlanes.DerivableInSize.sum {V : Type u_1} {Γ : Set (Ineq V)} {ι : Type u_2} {f : ι → Ineq V} {r : ℕ} {u : Finset ι} (hu : u.Nonempty) (hf : ∀ i ∈ u, DerivableInSize Γ (f i) r) :
    DerivableInSize Γ (∑ i ∈ u, f i) (u.card * (r + 1))

    The sum of a nonempty family of derivable inequalities.

    theorem Cslib.Logic.PL.CuttingPlanes.DerivableInSize.holds {V : Type u_1} {Γ : Set (Ineq V)} {I : Ineq V} {s : ℕ} (h : DerivableInSize Γ I s) {σ : V → Bool} (hσ : ∀ J ∈ Γ, Ineq.Holds σ J) :

    Soundness of derivations.

    theorem Cslib.Logic.PL.CuttingPlanes.DerivableInSize.extend {V : Type u_1} {Γ Δ : Set (Ineq V)} {ls : List (Ineq V)} {I : Ineq V} {t : ℕ} (hD : DerivableInSize Δ I t) (h : IsProof Γ ls) (hΔΓ : ∀ J ∈ Δ, J ∈ Γ ∨ J ∈ ls) :
    ∃ (ls'' : List (Ineq V)), IsProof Γ (ls'' ++ ls) ∧ I ∈ ls'' ++ ls ∧ ls''.length ≤ t

    Replay a derivation from Δ on top of a proof ls from Γ when every inequality of Δ is in Γ or a line of ls.

    theorem Cslib.Logic.PL.CuttingPlanes.RefutableInSize.not_exists_holds {V : Type u_1} {Γ : Set (Ineq V)} {s : ℕ} (h : RefutableInSize Γ s) :
    ¬∃ (σ : V → Bool), ∀ I ∈ Γ, Ineq.Holds σ I

    Soundness of cutting planes: a refutable system has no 0/1 solution.

    theorem Cslib.Logic.PL.CuttingPlanes.RefutableInSize.mono {V : Type u_1} {Γ : Set (Ineq V)} {s t : ℕ} (h : RefutableInSize Γ s) (hst : s ≤ t) :
    theorem Cslib.Logic.PL.CuttingPlanes.RefutableInSize.relabel {V : Type u_1} {Γ : Set (Ineq V)} {s : ℕ} {W : Type u_2} (f : V → W) (h : RefutableInSize Γ s) :

    Renaming the variables along any map keeps a refutation a refutation of the same size.

    Soundness of cutting planes for CNFs: a CNF whose inequalities are refutable is unsatisfiable.