AFTD Auto-Formalizing Theoretical Domains

ThrCond

structure

A threshold condition over n Boolean variables is an inequality f ≥ s, where f is a nonnegative integer linear combination of literals (given by coefficients CnfLit (Fin n) → ℕ) and s is an integer threshold.

Statement

structure ThrCond (n : ℕ)
Defined in
arXiv:2611.24548 Definition 2.12
Verified
19 Nov 2026
Axioms
none listed
Built on 1
  • CnfLitA CNF literal over a variable type V is either a positive variable or a negated variable.
Used by 5
  • thr_cond_unary_sizeThe unary size of a threshold condition f ≥ s, defined as the sum of all literal multiplicities plus |s| + 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.
  • is_thr_res_derivationA Threshold Resolution (Thr-Res) derivation from a CNF formula F : Finset (Finset (CnfLit (Fin n))) is a list π : List (ThrCond n) where…
  • thr_to_linThe translation ⟨f ≥ s⟩ of a threshold condition to a linear inequality over plain Boolean variables, obtained by substituting ~x_i = 1 -…
  • is_thr_res_refutationA Threshold Resolution refutation of a CNF formula F : Finset (Finset (CnfLit (Fin n))) is a Thr-Res derivation π : List (ThrCond n) from…

Read back from the Lean

A structure ThrCond n (parameterized by a natural number n) consisting of two fields: 1. coeffs: a function from CnfLit (Fin n) to ℕ, assigning a natural number to each literal over Fin n (where a literal is either pos v or neg v for v : Fin n). 2. threshold: an integer (ℤ).

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 threshold condition f ≥ s over n Boolean variables, where f is a nonnegative linear combination of literals. -/
structure ThrCond (n : ℕ) where
  coeffs : CnfLit (Fin n) → ℕ
  threshold : ℤ
See it in the graphDiscuss this resultChallenge it