SATtoColor.SatisfiesClause
defimported Lean
Under assignment $\mathrm{assign}$, a clause $c$ is satisfied if at least one
of its three literals evaluates to true:
\[
\mathrm{SatisfiesClause}(\mathrm{assign}, c)
\;=\;
\mathrm{SatisfiesLiteral}(\mathrm{assign}, c.\ell_1)
\;\vee\;
\mathrm{SatisfiesLiteral}(\mathrm{assign}, c.\ell_2)
\;\vee\;
\mathrm{SatisfiesLiteral}(\mathrm{assign}, c.\ell_3).
\]
Statement
set_option relaxedAutoImplicit false in set_option autoImplicit false in def SATtoColor.SatisfiesClause {V : Type} (assign : V → Bool) (c : Clause V) : Bool
- Defined in
- TCSlib, `SATtoColor.SatisfiesClause`
- Lean proof
- By CS 294-268 course staff (UC Berkeley, Spring 2026), from github.com/Shilun-Allan-Li/tcslib at
c8a02591b1e5(Copyright (c) 2026 UC Berkeley CS 294. 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.SATtoColor.SatisfiesClause← SATtoColor.SatisfiesClause (TCSlib/Complexity/NPReductions/ThreeSATToColoring.lean:88): verbatim
- Verified
- 07 Oct 2026
- Axioms
- none listed
- Built on 2
- SATtoColor.SatisfiesLiteralGiven a Boolean assignment $\mathrm{assign} : V \to \mathrm{Bool}$, the function $\texttt{SATtoColor.SatisfiesLiteral}$ evaluates a…
- SATtoColor.ClauseA clause over a variable type $V$ is a structure bundling exactly three literals $\ell_1, \ell_2, \ell_3 : \mathrm{Literal}\,V$.…
- Used by 3
- SATtoColor.SatisfiesSat3An assignment $\mathrm{assign}$ satisfies a 3-SAT instance $f$ if every clause in the list $f$ is satisfied by $\mathrm{assign}$,…
- SATtoColor.SATtoColorSoundnessSoundness of the 3-SAT to 3-colouring reduction. Let $f$ be a 3-SAT instance over a variable type $V$, that is, a list of clauses, each…
- SATtoColor.SATtoColorCompletenessCompleteness of the 3-SAT to 3-coloring reduction. Let $f$ be a 3-SAT instance over a variable type $V$, that is, a list of clauses, each…
Lean source view module on GitHub
set_option relaxedAutoImplicit false in set_option autoImplicit false in def SATtoColor.SatisfiesClause {V : Type} (assign : V → Bool) (c : Clause V) : Bool := SatisfiesLiteral assign c.l1 || SatisfiesLiteral assign c.l2 || SatisfiesLiteral assign c.l3