thr_cond_unary_size
def
The unary size of a threshold condition f ≥ s, defined as the sum of all literal multiplicities plus |s| + 1.
Statement
def thr_cond_unary_size {n : ℕ} (T : ThrCond n) : ℕ- Defined in
- arXiv:2611.24548 Section 2.1, Definition 2.12
- Verified
- 19 Nov 2026
- Axioms
- none listed
- Built on 2
- Used by 1
- thr_res_sizeThe unary size of a Threshold Resolution proof π, equal to the number of lines plus the sum of the unary sizes of its lines.
Read back from the Lean
For a natural number n and a threshold condition T (of type ThrCond n), thr_cond_unary_size T is defined as the sum over all i : Fin n of T.coeffs (CnfLit.pos i), plus the sum over all i : Fin n of T.coeffs (CnfLit.neg i), plus the absolute value of T.threshold as a natural number, 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 threshold condition f ≥ s: sum of literal multiplicities plus |s| + 1. -/ def thr_cond_unary_size {n : ℕ} (T : ThrCond n) : ℕ := (∑ i : Fin n, T.coeffs (CnfLit.pos i)) + (∑ i : Fin n, T.coeffs (CnfLit.neg i)) + T.threshold.natAbs + 1