AFTD Auto-Formalizing Theoretical Domains

ThreeSATToClique.evalLiteral

defimported Lean

Given a truth assignment $\alpha : V \to \mathrm{Prop}$, the evaluation of a literal $\ell$ under $\alpha$ is $\alpha(v)$ when $\ell = \texttt{pos}\,v$ and $\neg\,\alpha(v)$ when $\ell = \texttt{neg}\,v$.

Statement

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
def ThreeSATToClique.evalLiteral {V : Type} (α : Assignment V) : Literal V → Prop
Defined in
TCSlib, `ThreeSATToClique.evalLiteral`
Lean proof
By Yangshuo Zou, from github.com/Shilun-Allan-Li/tcslib at c8a02591b1e5 (Copyright (c) 2026 Yangshuo Zou. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.
Verified
07 Oct 2026
Axioms
none listed
Built on 2
Used by 4

Lean source view module on GitHub

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
/-- The truth value of a literal under a given assignment. -/
def ThreeSATToClique.evalLiteral {V : Type} (α : Assignment V) : Literal V → Prop
  | .pos v => α v
  | .neg v => ¬(α v)
See it in the graphDiscuss this resultChallenge it