Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Perfect PCC strategies transfer between verifiers with the same sampler and equivalent deciders

Proved
MIPRE.Verifier.hasPerfectPCC_of_accepts_iff

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

mip-remipre-formalizationnonlocal-gamespcc-strategiessynchronous-gamesverifiers

Let VVV and WWW be ℓ\ellℓ-level normal form verifiers, each a sampler (a program producing the questions) and a decider (a program checking the answers). Fix an index nnn and an answer-length bound TTT. V.HasPerfectPCC n T says that the game Vn\mathcal{V}_nVn​ with answers of length at most TTT, played on the doubled question set (Alice is asked (false,x)(\mathtt{false}, x)(false,x) and Bob (true,y)(\mathtt{true}, y)(true,y) with (x,y)(x, y)(x,y) distributed by the sampler; every other pair has weight 000 and is rejected), has a synchronous strategy, one family of projective measurements indexed by the questions and used by both players against the tracial state, that is PCC (the measurements of any two questions asked with positive probability commute) and has value exactly 111. Suppose WWW has the same sampler as VVV and that, for all bit strings x,y,a,bx, y, a, bx,y,a,b, VVV's decider accepts (n,x,y,a,b)(n, x, y, a, b)(n,x,y,a,b) if and only if WWW's does. Then

V.HasPerfectPCC n T  ⟹  W.HasPerfectPCC n T.V.\mathrm{HasPerfectPCC}\ n\ T \;\Longrightarrow\; W.\mathrm{HasPerfectPCC}\ n\ T .V.HasPerfectPCC n T⟹W.HasPerfectPCC n T.

This is bookkeeping for the instantiation of the compressibility criterion (blueprint rem:compression-abstract): the verifier a string denotes and the verifier it is compared with share the compressed sampler and accept the same tuples at the index, so a completeness clause (a value-111 PCC strategy) proved for one holds for the other. The two-sided form is hasPerfectPCC_congr; the statements for val∗\mathrm{val}^*val∗ are valStar_le_of_accepts_imp and valStar_congr.

Formalization Note Verifier.HasPerfectPCC n T := ∃ S : SyncStrategy (V.doubledGame n T), S.IsPCC ∧ S.value = 1, where V.doubledGame n T = (V.game n T).doubled is a SynchronousGame (Bool × V.Questions n) (Answers T) with Questions n = Fin (V.sampler.dim n) → 𝔽₂ and Answers T = {a : BitStr // a.length ≤ T}; the doubled game is synchronous for every verifier, so no synchronicity hypothesis on the decider is made. SyncStrategy.IsPCC is ∀ x y, 0 < G.μ x y → ∀ a b, M x a * M y b = M y b * M x a (projectivity is part of SyncStrategy, consistency is automatic). Decider.Accepts n x y a b := ∃ t, D.prog.Runs (encode (n, x, y, a, b)) (encode true) t. The hypotheses are hS : W.sampler = V.sampler (propositional equality of CL.Sampler ℓ), h : ∀ x y a b, V.decider.Accepts n x y a b ↔ W.decider.Accepts n x y a b and hV : V.HasPerfectPCC n T; V W n T are implicit and ℓ is a section variable. Namespace MIPRE.Verifier, module MIPRE.Foundations.VerifierValue.

Preamble
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.Polynomial.Eval.Defs
import Mathlib.Analysis.CStarAlgebra.CStarMatrix
import Mathlib.Analysis.CStarAlgebra.Classes
import Mathlib.Analysis.Matrix.Order
import Mathlib.Data.ENat.Lattice
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.Pi
import Mathlib.Data.List.Basic
import Mathlib.Data.Nat.Bits
import Mathlib.Data.Nat.Notation
import Mathlib.Data.Nat.Size
import Mathlib.Data.Real.Basic
import Mathlib.Data.ZMod.Basic
import Mathlib.LinearAlgebra.Matrix.Kronecker
import Mathlib.LinearAlgebra.Pi
import Definitions.Def_MIPRE_Foundations_CL_Register
import Definitions.Def_MIPRE_Foundations_CL_Basic
import Definitions.Def_MIPRE_Foundations_CL_Closure
import Definitions.Def_MIPRE_Foundations_Cost_Basic
import Definitions.Def_MIPRE_Foundations_Cost_Basic_B
import Definitions.Def_MIPRE_Foundations_Cost_Encoding
import Definitions.Def_MIPRE_Foundations_Cost_Encoding_B
import Definitions.Def_MIPRE_Foundations_Cost_PolyTime
import Definitions.Def_MIPRE_Foundations_CL_Sampler
import Definitions.Def_MIPRE_Foundations_Games
import Definitions.Def_MIPRE_Foundations_GameTransport
import Definitions.Def_MIPRE_Foundations_GameDouble
import Definitions.Def_MIPRE_Foundations_Verifier
import Definitions.Def_MIPRE_Foundations_GapCompression
import Definitions.Def_MIPRE_Foundations_VerifierValue

open MIPRE
open MIPRE.Verifier
open MIPRE.Cost
variable {ℓ : ℕ} (V : Verifier ℓ)
Formal statement
theorem MIPRE.Verifier.hasPerfectPCC_of_accepts_iff {V W : Verifier ℓ} {n T : ℕ} (hS : W.sampler = V.sampler)
    (h : ∀ x y a b, V.decider.Accepts n x y a b ↔ W.decider.Accepts n x y a b)
    (hV : V.HasPerfectPCC n T) : W.HasPerfectPCC n T := by sorry
Source
https://github.com/vidick/MIPRE-formalization/blob/70cbf1c52e3d5e1dff1162fdf952c9a9f4bd99ed/MIPRE/Foundations/VerifierValue.lean#L81-L100

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