thr_res_size
def
The unary size of a Threshold Resolution proof π, equal to the number of lines plus the sum of the unary sizes of its lines.
Statement
def thr_res_size {n : ℕ} (π : List (ThrCond n)) : ℕ- Defined in
- arXiv:2611.24548 Section 2.1, Definition 2.12
- Verified
- 19 Nov 2026
- Axioms
- none listed
- Built on 2
- ThrCondA threshold condition over n Boolean variables is an inequality f ≥ s, where f is a nonnegative integer linear combination of literals…
- thr_cond_unary_sizeThe unary size of a threshold condition f ≥ s, defined as the sum of all literal multiplicities plus |s| + 1.
Read back from the Lean
Given a natural number n (implicit) and a list π of threshold conditions ThrCond n (each consisting of literal coefficients coeffs : CnfLit (Fin n) → ℕ and an integer threshold : ℤ), thr_res_size π is defined as the length of the list π plus the sum of thr_cond_unary_size T over all threshold conditions T in π.
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 Thr-Res proof: number of lines plus sum of unary sizes of the lines. -/ def thr_res_size {n : ℕ} (π : List (ThrCond n)) : ℕ := π.length + (π.map thr_cond_unary_size).sum