eval_cnf_lit
def
Evaluation of a CNF literal under a truth assignment: a positive literal pos v evaluates to α v, and a negative literal neg v evaluates to the negation of α v.
Statement
def eval_cnf_lit {V : Type*} (α : V → Bool) (l : CnfLit V) : Bool
- 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 2
- thr_res_soundnessSoundness of Threshold Resolution: for any CNF formula F : List (List (CnfLit V)), multiset of literals f : Multiset (CnfLit V), and…
- thr_res_unsat_of_refutationIf a Threshold Resolution refutation of a CNF formula F : List (List (CnfLit V)) exists (namely ThrResDerivable F 0 1), then F is…
Read back from the Lean
eval_cnf_lit is a function that, given a type V, a boolean assignment α : V → Bool, and a literal l : CnfLit V, evaluates l to a Bool:
- if l is of the form CnfLit.pos v, it evaluates to α v;
- if l is of the form CnfLit.neg v, it evaluates to !(α v) (the boolean negation of α v).
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
/-- Evaluates a CNF literal under a truth assignment. -/ def eval_cnf_lit {V : Type*} (α : V → Bool) (l : CnfLit V) : Bool := match l with | CnfLit.pos v => α v | CnfLit.neg v => !(α v)