AFTD Auto-Formalizing Theoretical Domains

LinIneq

structure

A linear inequality c^T x ≥ d over n Boolean variables, with integer coefficient vector c : Fin n → ℤ and integer constant term d : ℤ.

Statement

structure LinIneq (n : ℕ)
Defined in
arXiv:2611.24548 Definition 4.1
Verified
19 Nov 2026
Axioms
none listed
Used by 11
  • lin_ineq_unary_sizeThe unary size of a linear inequality c^T x ≥ d, defined as the sum of absolute values of its coefficients plus |d| + 1.
  • 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.
  • is_lp_refutationA Lift & Project refutation of a CNF formula F : Finset (Finset (CnfLit (Fin n))) is an L&P derivation π : List (LinIneq n) from F…
  • 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…
  • TreelikeCpDerivationInductive type family of treelike Cutting Planes (CP) derivations of a linear inequality from a CNF formula F over n variables (given as a…
  • is_lp_derivationA Lift & Project (L&P) derivation from a CNF formula F : Finset (Finset (CnfLit (Fin n))) is a list π : List (LinIneq n) where each line…
  • thr_to_linThe translation ⟨f ≥ s⟩ of a threshold condition to a linear inequality over plain Boolean variables, obtained by substituting ~x_i = 1 -…
  • 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…
  • 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.
  • is_cp_refutationA Cutting Planes refutation of a CNF formula F : Finset (Finset (CnfLit (Fin n))) is a CP derivation π : List (LinIneq n) from F…
  • is_cp_derivationA Cutting Planes (CP) derivation from a CNF formula F : Finset (Finset (CnfLit (Fin n))) is a list π : List (LinIneq n) where each line…

Read back from the Lean

A structure LinIneq parameterized by a natural number $n : \mathbb{N}$, consisting of: 1. coeffs: a function from Fin n to $\mathbb{Z}$ (an $n$-tuple of integer coefficients), and 2. const: an integer $\mathbb{Z}$ (a constant term).

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

/-- A linear inequality c^T x ≥ d over n Boolean variables, with integer coefficients and constant. -/
structure LinIneq (n : ℕ) where
  coeffs : Fin n → ℤ
  const : ℤ
See it in the graphDiscuss this resultChallenge it