A satisfying assignment of the gate clauses carries the gate values
ProvedMIPRE.SAT.Circuit.tseitin_valuesA 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.
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*}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