AFTD Auto-Formalizing Theoretical Domains

lin_proof_size

def

The unary size of a linear inequality proof π, equal to the number of lines plus the sum of the unary sizes of its lines.

Statement

def lin_proof_size {n : ℕ} (π : List (LinIneq n)) : ℕ
Defined in
arXiv:2611.24548 Section 2.1, Definition 4.1
Verified
19 Nov 2026
Axioms
none listed
Built on 2
  • LinIneqA linear inequality c^T x ≥ d over n Boolean variables, with integer coefficient vector c : Fin n → ℤ and integer constant term d : ℤ.
  • 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.

Read back from the Lean

Given a natural number $n$ and a list $\pi$ of linear inequalities in $n$ variables (LinIneq n), lin_proof_size π is defined as the length of the list $\pi$ plus the sum of lin_ineq_unary_size applied to each linear inequality in $\pi$.

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 proof: number of lines plus sum of unary sizes. -/
def lin_proof_size {n : ℕ} (π : List (LinIneq n)) : ℕ :=
  π.length + (π.map lin_ineq_unary_size).sum
See it in the graphDiscuss this resultChallenge it