lin_ineq_unary_size
def
The unary size of a linear inequality c^T x ≥ d, defined as the sum of absolute values of its coefficients plus |d| + 1.
Statement
def lin_ineq_unary_size {n : ℕ} (L : LinIneq n) : ℕ- Defined in
- arXiv:2611.24548 Section 2.1, Definition 4.1
- Verified
- 19 Nov 2026
- Axioms
- none listed
- Built on 1
- LinIneqA linear inequality c^T x ≥ d over n Boolean variables, with integer coefficient vector c : Fin n → ℤ and integer constant term d : ℤ.
- 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…
- lin_proof_sizeThe unary size of a linear inequality proof π, equal to the number of lines plus the sum of the unary sizes of its lines.
Read back from the Lean
Given a natural number n and a linear inequality L : LinIneq n (consisting of coefficients L.coeffs : Fin n → ℤ and a constant term L.const : ℤ), lin_ineq_unary_size L is the natural number defined as the sum over all i : Fin n of the absolute values of L.coeffs i, plus the absolute value of L.const, plus 1.
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
/-- Unary size of a linear inequality c^T x ≥ d: sum of |c_i| plus |d| + 1. -/ def lin_ineq_unary_size {n : ℕ} (L : LinIneq n) : ℕ := (∑ i : Fin n, (L.coeffs i).natAbs) + L.const.natAbs + 1