Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A satisfying assignment of the gate clauses carries the gate values

Proved
MIPRE.SAT.Circuit.tseitin_values

by thomasvidick · Oct 17, 2026 · Mathlib 0df444a (Lean v4.33.1)

mip-remipre-formalizationverifiers

A statement of the module MIPRE.Foundations.SAT.Tseitin of the MIP* = RE formalization (commit 70cbf1c of vidick/MIPRE-formalization). The circuit-to-3SAT reduction. Circuit.tseitin C inp gv is the 3SAT formula of a circuit C on variables inp i for its inputs and gv g for its gates (lem:circuit-to-sat-reduction, lem:tseitin with the output-wire conjunct of the F7.2 erratum): for every gate the clauses saying that its variable is the gate's function of its arguments' variables, and the unit clause on the output gate. tseitin_sat_iff: for a circuit reading only earlier gates, C(x) = 1 iff some assignment agreeing with x on the inputs satisfies the formula; tseitin_values: a satisfying assignment carries the…

A satisfying assignment of the gate clauses carries the gate values.

Formal statement. In Lean, with the scope shown:

open MIPRE
open MIPRE.SAT
open MIPRE.SAT.Circuit
variable {V : Type*}

theorem MIPRE.SAT.Circuit.tseitin_values (C : Circuit) (hC : C.RefsLt) (inp gv : ℕ → V) (w : V → Bool)
    (hSat : ∀ c ∈ C.tseitin inp gv, c.eval w = true) :
    ∀ g < C.gates.length, w (gv g) = C.valueAt (fun i => w (inp i)) g

Formalization Note MIPRE.SAT.Circuit.tseitin_values is declared in MIPRE/Foundations/SAT/Tseitin.lean, lines 89–105. The binders, hypotheses and conclusion are exactly those of the Lean statement above; the uploaded statement elaborates to the same type as the declaration in the repository. The definitions it mentions are those of the published definition bundles of the module's import closure.

Preamble
import Mathlib.Data.List.Basic
import Mathlib.Data.Nat.Bits
import Mathlib.Data.Nat.Notation
import Mathlib.Data.Nat.Size
import Mathlib.Data.Set.Basic
import Definitions.Def_MIPRE_Foundations_Cost_Basic_B
import Definitions.Def_MIPRE_Foundations_Cost_Encoding_B
import Definitions.Def_MIPRE_Foundations_SAT_Circuit
import Definitions.Def_MIPRE_Foundations_SAT_Cnf
import Definitions.Def_MIPRE_Foundations_SAT_Tseitin

open MIPRE
open MIPRE.SAT
open MIPRE.SAT.Circuit
variable {V : Type*}
Formal statement
theorem MIPRE.SAT.Circuit.tseitin_values (C : Circuit) (hC : C.RefsLt) (inp gv : ℕ → V) (w : V → Bool)
    (hSat : ∀ c ∈ C.tseitin inp gv, c.eval w = true) :
    ∀ g < C.gates.length, w (gv g) = C.valueAt (fun i => w (inp i)) g := by sorry
Source
https://github.com/vidick/MIPRE-formalization/blob/70cbf1c52e3d5e1dff1162fdf952c9a9f4bd99ed/MIPRE/Foundations/SAT/Tseitin.lean#L89-L105

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me