AFTD Auto-Formalizing Theoretical Domains

NAEtoColor.IsSatisfiable

defimported Lean

A NAE-SAT instance $f$ over variable type $V$ is satisfiable if there exists a Boolean assignment $\mathit{assign} : V \to \mathtt{Bool}$ such that $\texttt{NAEtoColor.SatisfiesNAE3}\;\mathit{assign}\;f = \mathtt{true}$.

Statement

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
noncomputable def NAEtoColor.IsSatisfiable {V : Type} (f : NAESat3 V) : Prop
Defined in
TCSlib, `NAEtoColor.IsSatisfiable`
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.
Verified
07 Oct 2026
Axioms
none listed
Built on 2
  • NAEtoColor.NAESat3A NAE-SAT instance over variable type $V$ is defined as a list of NAE clauses, i.e.\…
  • NAEtoColor.SatisfiesNAE3Given an assignment $\mathit{assign} : V \to \mathtt{Bool}$ and a NAE-SAT instance $f$, $\texttt{NAEtoColor.SatisfiesNAE3}$ returns…
Used by 3
  • NAEtoColor.NAEtoColorReductionCorrectness of the NAE-SAT to 3-coloring reduction. Let $f$ be a NAE-SAT instance over a variable type $V$, and let $\Gamma(f)$ denote its…
  • NAEtoColor.NAEtoColorCompletenessCompleteness of the NAE-SAT to 3-coloring reduction. Let $f$ be a NAE-SAT instance over a variable type $V$, that is, a list of…
  • NAEtoColor.NAEtoColorSoundnessSoundness of the NAE-SAT to 3-coloring reduction. Let $f$ be a NAE-SAT instance over a variable type $V$, that is, a list of Not-All-Equal…

Lean source view module on GitHub

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
/-- The satisfiability property for a NAE-SAT instance. -/
noncomputable def NAEtoColor.IsSatisfiable {V : Type} (f : NAESat3 V) : Prop :=
  ∃ (assign : V → Bool), SatisfiesNAE3 assign f = true

-- Some examples to test definitions:
See it in the graphDiscuss this resultChallenge it