TreelikeCpDerivation
Inductive type family of treelike Cutting Planes (CP) derivations of a linear inequality from a CNF formula F over n variables (given as a List of clauses, each a List of CnfLit (Fin n)): constructors are the trivial line 0 ≥ 0, box lower bounds x_i ≥ 0, box upper bounds -x_i ≥ -1, clause embeddings cnf_clause_to_lin n C.toFinset for C ∈ F, nonnegative integer linear combination of two sub-derivations with multipliers lam1 lam2 : ℕ, and integer division (rounding) of a sub-derivation by α : ℕ (α > 0) when α divides all coefficients.
Statement
inductive TreelikeCpDerivation (n : ℕ) (F : List (List (CnfLit (Fin n)))) : LinIneq n → Type
- Defined in
- arXiv:2611.24548 Def 4.1
- Verified
- 19 Nov 2026
- Axioms
- none listed
- Built on 4
- LinIneqA linear inequality c^T x ≥ d over n Boolean variables, with integer coefficient vector c : Fin n → ℤ and integer constant term d : ℤ.
- CnfLitA CNF literal over a variable type V is either a positive variable or a negated variable.
- cnf_clause_to_linThe linear inequality embedding of a CNF clause C over n variables, asserting ∑_{l ∈ C} [l] ≥ 1 where [x_i] = x_i and [~x_i] = 1 - x_i.
- cnf_lit_decidable_eqDecidable equality on CNF literals, derived from decidable equality on the underlying variables.
- Used by 2
- treelike_cp_sizeThe unary size of a treelike Cutting Planes derivation tree d, defined recursively as 1 plus the unary size lin_ineq_unary_size L of the…
- treelike_cp_unsat_of_refutationSoundness of treelike Cutting Planes refutations: if a CNF formula F over n variables has a treelike Cutting Planes refutation deriving 0…
Read back from the Lean
An inductive family of types TreelikeCpDerivation n F : LinIneq n → Type, parameterized by a natural number n and a list of clauses F : List (List (CnfLit (Fin n))), inductively defining tree-like Cutting Planes derivations of linear inequalities from F. Its constructors are:
1. trivial: derives the inequality { coeffs := fun _ => 0, const := 0 }.
2. box_lower (i : Fin n): derives { coeffs := fun j => if j = i then 1 else 0, const := 0 } (representing $x_i \ge 0$).
3. box_upper (i : Fin n): derives { coeffs := fun j => if j = i then -1 else 0, const := -1 } (representing $-x_i \ge -1$).
4. clause (C : List (CnfLit (Fin n))) (hC : C ∈ F): derives cnf_clause_to_lin n C.toFinset.
5. lin_comb {L₁ L₂ : LinIneq n} (d₁ : TreelikeCpDerivation n F L₁) (d₂ : TreelikeCpDerivation n F L₂) (lam1 lam2 : ℕ): derives the non-negative linear combination { coeffs := fun j => (lam1 : ℤ) * L₁.coeffs j + (lam2 : ℤ) * L₂.coeffs j, const := (lam1 : ℤ) * L₁.const + (lam2 : ℤ) * L₂.const }.
6. division {L : LinIneq n} (d : TreelikeCpDerivation n F L) (c : Fin n → ℤ) (α : ℕ) (hα : 0 < α) (hdiv : ∀ j, L.coeffs j = (α : ℤ) * c j): derives the Chvátal-Gomory cut { coeffs := c, const := Int.ceil ((L.const : ℚ) / α) }.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Inductive family of treelike Cutting Planes derivations from a CNF formula F. -/ inductive TreelikeCpDerivation (n : ℕ) (F : List (List (CnfLit (Fin n)))) : LinIneq n → Type | trivial : TreelikeCpDerivation n F { coeffs := fun _ => 0, const := 0 } | box_lower (i : Fin n) : TreelikeCpDerivation n F { coeffs := fun j => if j = i then 1 else 0, const := 0 } | box_upper (i : Fin n) : TreelikeCpDerivation n F { coeffs := fun j => if j = i then -1 else 0, const := -1 } | clause (C : List (CnfLit (Fin n))) (hC : C ∈ F) : TreelikeCpDerivation n F (cnf_clause_to_lin n C.toFinset) | lin_comb {L₁ L₂ : LinIneq n} (d₁ : TreelikeCpDerivation n F L₁) (d₂ : TreelikeCpDerivation n F L₂) (lam1 lam2 : ℕ) : TreelikeCpDerivation n F { coeffs := fun j => (lam1 : ℤ) * L₁.coeffs j + (lam2 : ℤ) * L₂.coeffs j, const := (lam1 : ℤ) * L₁.const + (lam2 : ℤ) * L₂.const } | division {L : LinIneq n} (d : TreelikeCpDerivation n F L) (c : Fin n → ℤ) (α : ℕ) (hα : 0 < α) (hdiv : ∀ j, L.coeffs j = (α : ℤ) * c j) : TreelikeCpDerivation n F { coeffs := c, const := Int.ceil ((L.const : ℚ) / α) }