Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions of PVM (addendum): Observables of a projective measurement A projective measurement `P : Λ → Matrix n n ℂ` and a weighting `ε : Λ → ℂ`…

Definition
MIPRE_Foundations_PVM_B

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

mip-remipre-formalizationverifiers

The definitions of the module MIPRE.Foundations.PVM of the MIP* = RE formalization (commit 70cbf1c of vidick/MIPRE-formalization). Observables of a projective measurement. A projective measurement P : Λ → Matrix n n ℂ and a weighting ε : Λ → ℂ give the operator pvmObs P ε = ∑_a ε a • P a. The one fact worth isolating is that this is a ring homomorphism in ε: pvmObs P ε * pvmObs P δ = pvmObs P (ε * δ), pvmObs P 1 = 1, because the projections are mutually orthogonal (IsPVM.orthogonal). Everything the rigidity arguments want about signed sums of a projective measurement follows: with ε valued in {±1}, pvmObs P ε is a self-adjoint reflection; two weightings of the same measurement commute, whatever…

This bundle adds the declarations below to the already published bundle MIPRE_Foundations_PVM of the same module, which the new statements of this upload need and the earlier bundle left out.

Definitions (1): MIPRE.pvmObs (∑_a ε a • P a, the operator a weighting of a projective measurement's outcomes defines.).

Formalization Note The bundle is the module MIPRE.Foundations.PVM (MIPRE/Foundations/PVM.lean) with every declaration not listed removed, imports rewritten to the bundles of the module's import closure; the declarations keep their names, statements and bodies; the source module is split over 1 imported bundle(s).

Definition code
/-
Copyright (c) 2026 Thomas Vidick. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Vidick
-/
/- Generated for Prove2Me from vidick/MIPRE-formalization@70cbf1c, MIPRE/Foundations/PVM.lean (delta bundle: declarations the new statements need that the published bundle Def_MIPRE_Foundations_PVM does not carry);
   produced mechanically by prove2me/tools/gen.py, never edited by hand. -/
import Mathlib.Analysis.Matrix.Order
import Mathlib.Analysis.Matrix.PosDef
import Definitions.Def_MIPRE_Foundations_PVM
import Theorems.Thm_MIPRE_IsPVM_orthogonal

/-!
# Observables of a projective measurement

A projective measurement `P : Λ → Matrix n n ℂ` and a weighting `ε : Λ → ℂ` give the operator
`pvmObs P ε = ∑_a ε a • P a`. The one fact worth isolating is that this is a **ring
homomorphism** in `ε`:

`pvmObs P ε * pvmObs P δ = pvmObs P (ε * δ)`,  `pvmObs P 1 = 1`,

because the projections are mutually orthogonal (`IsPVM.orthogonal`). Everything the rigidity
arguments want about signed sums of a projective measurement follows: with `ε` valued in
`{±1}`, `pvmObs P ε` is a self-adjoint reflection; two weightings of the *same* measurement
commute, whatever they are; and if `ε δ η` is constantly `s` then `pvmObs P ε * pvmObs P δ *
pvmObs P η = s • 1` exactly.

That last one is what a linear-constraint-system game's Alice-side dilation buys: the three
reflections of one constraint commute and multiply to the constraint's sign, with no error
term. Blueprint `lem:ms-direct-anticomm` is the consumer.
-/

noncomputable section

namespace MIPRE

open Finset Matrix
open scoped ComplexOrder MatrixOrder

variable {n Λ : Type*} [Fintype n] [DecidableEq n] [Fintype Λ] [DecidableEq Λ]

namespace IsPVM

variable {P : Λ → Matrix n n ℂ}

end IsPVM

/-! ## The observable of a weighting -/

/-- `∑_a ε a • P a`, the operator a weighting of a projective measurement's outcomes
defines. -/
def pvmObs (P : Λ → Matrix n n ℂ) (ε : Λ → ℂ) : Matrix n n ℂ := ∑ a, ε a • P a

variable {P : Λ → Matrix n n ℂ}

end MIPRE

end
Source
https://github.com/vidick/MIPRE-formalization/blob/70cbf1c52e3d5e1dff1162fdf952c9a9f4bd99ed/MIPRE/Foundations/PVM.lean

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