Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A decider that accepts one fixed answer on every question pair has a value-one PCC strategy

Proved
MIPRE.Verifier.hasPerfectPCC_of_accepts_diagonal

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

mip-remipre-formalizationpcc-strategiessynchronous-gamesverifiers

Let VVV be a normal form verifier with ℓ\ellℓ levels, nnn an index and TTT an answer-length bound. The question alphabet V.Questions n is F2s(n)\mathbb{F}_2^{s(n)}F2s(n)​ with s=s = s= V.sampler.dim, and CL.toBits x is the bit string of coordinates of a question xxx. Answers T is the type of bit strings of length at most TTT. V.decider.Accepts n x y a b means that the decider halts on the encoding of (n,x,y,a,b)(n, x, y, a, b)(n,x,y,a,b) with output encode true. The game V.game n T has questions V.Questions n distributed as the sampler prescribes, answers in Answers T, and accepts (a,b)(a, b)(a,b) at (x,y)(x, y)(x,y) exactly when Accepts n (toBits x) (toBits y) a.1 b.1. Its doubled game V.doubledGame n T is the synchronous game on Bool×\mathrm{Bool} \timesBool× V.Questions n in which Alice's questions carry the tag false, Bob's the tag true, and every other tagged pair has probability zero and is rejected. V.HasPerfectPCC n T says that some synchronous strategy SSS of the doubled game is PCC — its projective measurements commute at every question pair of nonzero probability (S.IsPCC) — and has S.value = 1.

Let a0∈a_0 \ina0​∈ Answers T, and assume that for all x,y∈x, y \inx,y∈ V.Questions n, V.decider.Accepts n (CL.toBits x) (CL.toBits y) a₀.1 a₀.1. Then

V.HasPerfectPCC n T.V.\mathrm{HasPerfectPCC}\ n\ T .V.HasPerfectPCC n T.

This is the paper's "trivial strategy: for all questions the players return a fixed answer", and it is where the yes-instance yyesy_{\mathrm{yes}}yyes​ of the classes of the compressibility criterion comes from.

Formalization Note No synchronicity (IsSynchronousAt) is asked of the decider: HasPerfectPCC is defined on the doubled game (V.game n T).doubled, whose distribution gives equal tagged questions probability zero. The hypothesis quantifies over all question pairs of V.Questions n, including pairs of probability zero, and a₀.1 is the underlying bit string of the answer. n, T are implicit, a₀ explicit, V a section variable, and the proposition is MIPRE.Verifier.hasPerfectPCC_of_accepts_diagonal.

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_Cost_Closure
import Definitions.Def_MIPRE_Foundations_GameDouble
import Definitions.Def_MIPRE_Foundations_Verifier
import Definitions.Def_MIPRE_Foundations_GapCompression
import Definitions.Def_MIPRE_Foundations_VerifierValue
import Definitions.Def_MIPRE_Foundations_Halting_Freeze
import Definitions.Def_MIPRE_Foundations_Halting_Classes

open MIPRE
open MIPRE.Verifier
open MIPRE.Cost
variable {ℓ : ℕ} (V : Verifier ℓ)
Formal statement
theorem MIPRE.Verifier.hasPerfectPCC_of_accepts_diagonal {n T : ℕ} (a₀ : Answers T)
    (hacc : ∀ x y : V.Questions n, V.decider.Accepts n (CL.toBits x) (CL.toBits y) a₀.1 a₀.1) :
    V.HasPerfectPCC n T := by sorry
Source
https://github.com/vidick/MIPRE-formalization/blob/70cbf1c52e3d5e1dff1162fdf952c9a9f4bd99ed/MIPRE/Foundations/Halting/Classes.lean#L73-L91

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