Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma sgn_add of the MIP* = RE formalization

Proved
MIPRE.sgn_add

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

mip-remipre-formalizationverifiers

A statement of the module MIPRE.Foundations.Sign of the MIP* = RE formalization (commit 70cbf1c of vidick/MIPRE-formalization). The sign of a bit. sgn x = (-1)^x for x : ZMod 2, as a complex number. It is the character group of 𝔽₂ written multiplicatively, and it is what every ±1-observable in this development is built from: the observable of a two-outcome measurement, the phase of a Weyl operator in characteristic two, and the sign a Magic Square constraint carries. Characteristic two is why this is a sign and not a root of unity. Over 𝔽_p the generalized Pauli operators carry phases e^{2πi/p}; this project's fields are always of admissible size q = 2^k, so p = 2 and every phase is real. That…

Formal statement. In Lean, with the scope shown:

open MIPRE

theorem MIPRE.sgn_add (x y : ZMod 2) : sgn (x + y) = sgn x * sgn y

Formalization Note MIPRE.sgn_add is declared in MIPRE/Foundations/Sign.lean, lines 30–34. 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.Analysis.SpecialFunctions.Complex.Circle
import Mathlib.Data.ZMod.Basic
import Mathlib.Tactic.IntervalCases
import Definitions.Def_MIPRE_Foundations_Sign

open MIPRE
Formal statement
theorem MIPRE.sgn_add (x y : ZMod 2) : sgn (x + y) = sgn x * sgn y := by sorry
Source
https://github.com/vidick/MIPRE-formalization/blob/70cbf1c52e3d5e1dff1162fdf952c9a9f4bd99ed/MIPRE/Foundations/Sign.lean#L30-L34; blueprint def:generalized-pauli

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