Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

QPBT definitions: Test / MagicSquareTheorems / Rigidity / GroundSlice

Definition
QPBT_QPBT_Test_MagicSquareTheorems_Rigidity_GroundSlice

by Dengnifer · Oct 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

qpbt

This bundle defines the ground-slice projection and the norm identities used for enlarged local spaces. It relates operator action to quadratic forms and records norm preservation when an operator has identity Gram matrix.

Principal definitions:

  • MIPStarRE.QPBT.MagicSquareRigidity.groundProjection: defines the orthogonal projection of an enlarged local space onto its ground slice.
  • MIPStarRE.QPBT.MagicSquareRigidity.applyOperatorToState_one: states that the identity acts trivially.
  • MIPStarRE.QPBT.MagicSquareRigidity.applyOperatorToState_add_op: states additivity of operator action on states.
  • MIPStarRE.QPBT.MagicSquareRigidity.norm_toEuclideanLin_sq: states that the squared norm of an operator applied to a vector is the quadratic form of its adjoint product.
  • MIPStarRE.QPBT.MagicSquareRigidity.norm_toEuclideanLin_of_conjTranspose_mul_eq_one: states that a rectangular matrix with identity Gram matrix preserves norms.
  • MIPStarRE.QPBT.MagicSquareRigidity.norm_applyOperatorToState_sq: states the analogous squared-norm identity for the ground-slice operator.

Formalization Credit. This Lean declaration is part of the Quantum Pauli basis test formalization by Ruixuan Deng. The source code was generated by AI agents; Ruixuan Deng is the responsible maintainer.

Mathematical Source. The mathematical source is Ji, Natarajan, Vidick, Wright, and Yuen, MIP*=RE, arXiv:2001.04383v3.

Definition code
-- Generated from QPBT/Test/MagicSquareTheorems/Rigidity/GroundSlice.lean by skeleton subtraction.
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_AxisParallelLine
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_DiagonalLine
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_LinePolynomials
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_LowDegreePolynomial
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_OpFamily
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_ParametersBase
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_ParametersFiniteAnswers
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_QuantumState
import Definitions.Def_LIDT_MIPStarRE_LDT_CommutativityPoints_Defs
import Definitions.Def_LIDT_MIPStarRE_LDT_ExpansionHypercubeGraph_Defs_Core
import Definitions.Def_LIDT_MIPStarRE_LDT_GlobalVariance_Defs_Core
import Definitions.Def_LIDT_MIPStarRE_LDT_MakingMeasurementsProjective_Defs
import Definitions.Def_LIDT_MIPStarRE_LDT_Pasting_Defs_Families
import Definitions.Def_LIDT_MIPStarRE_LDT_Pasting_Defs_Interpolation
import Definitions.Def_LIDT_MIPStarRE_LDT_Tactic_AvgCongr
import Definitions.Def_LIDT_MIPStarRE_LDT_Test_StrategyCore
import Definitions.Def_LIDT_MIPStarRE_Quantum_FiniteHilbert
import Definitions.Def_LIDT_MIPStarRE_Quantum_FiniteMatrix_Basic
import Definitions.Def_QPBT_QPBT_Games_Defs
import Definitions.Def_QPBT_QPBT_Test_MagicSquareTheorems_Rigidity_Dilation

namespace LIDT.MIPStarRE.LDT
end LIDT.MIPStarRE.LDT
namespace LIDT.MIPStarRE.Quantum
end LIDT.MIPStarRE.Quantum
namespace MIPStarRE.QPBT.DistanceCalculus
end MIPStarRE.QPBT.DistanceCalculus
namespace MIPStarRE.QPBT.MagicSquareRigidity
end MIPStarRE.QPBT.MagicSquareRigidity

/-!
# Contractions, isometries and the ground slice of the dilation

Support for the transfer step of `thm:ms-rigidity` (blueprint
`thm:ms-rigidity`, paper
`references/qpbt-paper/08_classical_and_quantum_low_degree_tests.tex:612-652`):
the calculus needed to compare the dilated projective strategy of
`Rigidity/Dilation.lean` with the original strategy on states.

* Contractions: operators `K` with `Kᴴ K ≤ 1` do not increase norms; effects,
  observables of binary measurements, orthogonal projections, tensor placements,
  products and isometry conjugates are contractions.
* Matrices of isometries: `Vᴴ V = 1`, the two-sided isometry image of a state
  preserves norms, and a conjugated local operator acts on the transported state
  as the original operator acts on the original state.
* The ground projection `Π` of an enlarged local space: an orthogonal projection
  fixing the dilated state, with `Π P Π` the inflation of the compression of `P`.
* Leakage: the part `(1 - Π) P ψ'` of a dilated operator that leaves the ground
  slice is bounded by the intertwining defect of `P ⊗ 1` against any `1 ⊗ Q`,
  because `(1 - Π) ⊗ 1` annihilates `(1 ⊗ Q) ψ'`.  This is the estimate that
  replaces the `≈_δ`-preservation which Naimark dilation lacks in general
  (`references/ldt-paper/orthonormalization.tex:82-101`, blueprint
  `ex:easy-but-long`).

## References

blueprint `thm:ms-rigidity`,
paper `references/qpbt-paper/08_classical_and_quantum_low_degree_tests.tex:612-652`.
-/

@[expose] public section

open scoped BigOperators Matrix MatrixOrder ComplexOrder

namespace MIPStarRE.QPBT.MagicSquareRigidity

open LIDT.MIPStarRE.LDT hiding Measurement
open LIDT.MIPStarRE.Quantum MIPStarRE.QPBT.DistanceCalculus

noncomputable section

/-! ## Contractions and their action on states -/

/-- The identity acts trivially. -/
theorem applyOperatorToState_one {ι : Type*} [Fintype ι] [DecidableEq ι]
    (v : EuclideanSpace ℂ ι) :
    _root_.MIPStarRE.QPBT.applyOperatorToState (1 : _root_.LIDT.MIPStarRE.Quantum.Op ι) v = v := by
  simp [_root_.MIPStarRE.QPBT.applyOperatorToState]





/-- The action on states is additive in the operator. -/
theorem applyOperatorToState_add_op {ι : Type*} [Fintype ι] [DecidableEq ι]
    (M N : _root_.LIDT.MIPStarRE.Quantum.Op ι) (v : EuclideanSpace ℂ ι) :
    _root_.MIPStarRE.QPBT.applyOperatorToState (M + N) v =
      _root_.MIPStarRE.QPBT.applyOperatorToState M v + _root_.MIPStarRE.QPBT.applyOperatorToState N v := by
  simp [_root_.MIPStarRE.QPBT.applyOperatorToState]





/-- The squared norm of `A v` is the quadratic form of `Aᴴ A` at `v`. -/
theorem norm_toEuclideanLin_sq {m n : Type*} [Fintype m] [Fintype n] [DecidableEq n]
    (A : Matrix m n ℂ) (v : EuclideanSpace ℂ n) :
    ‖Matrix.toEuclideanLin A v‖ ^ 2 =
      (inner ℂ v (Matrix.toEuclideanLin (Aᴴ * A) v)).re := by
  rw [@norm_sq_eq_re_inner ℂ, _root_.LIDT.Matrix.toEuclideanLin_conjTranspose_mul_self]
  change (inner ℂ (Matrix.toEuclideanLin A v) (Matrix.toEuclideanLin A v)).re =
    (inner ℂ v ((Matrix.toEuclideanLin A).adjoint (Matrix.toEuclideanLin A v))).re
  rw [LinearMap.adjoint_inner_right]

/-- A rectangular matrix `A` with `Aᴴ A = 1` preserves norms. -/
theorem norm_toEuclideanLin_of_conjTranspose_mul_eq_one {m n : Type*} [Fintype m]
    [Fintype n] [DecidableEq n] {A : Matrix m n ℂ} (hA : Aᴴ * A = 1)
    (v : EuclideanSpace ℂ n) :
    ‖Matrix.toEuclideanLin A v‖ = ‖v‖ := by
  have h := _root_.MIPStarRE.QPBT.MagicSquareRigidity.norm_toEuclideanLin_sq A v
  have hv : (inner ℂ v v).re = ‖v‖ ^ 2 := by
    simpa using inner_self_eq_norm_sq (𝕜 := ℂ) v
  have hone : Matrix.toEuclideanLin (1 : Matrix n n ℂ) v = v := by
    simp [Matrix.toEuclideanLin]
  rw [hA, hone, hv] at h
  exact (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).1 h

/-- The squared norm of `K v` is the quadratic form of `Kᴴ K` at `v`. -/
theorem norm_applyOperatorToState_sq {ι : Type*} [Fintype ι] [DecidableEq ι]
    (K : _root_.LIDT.MIPStarRE.Quantum.Op ι) (v : EuclideanSpace ℂ ι) :
    ‖_root_.MIPStarRE.QPBT.applyOperatorToState K v‖ ^ 2 =
      (inner ℂ v (_root_.MIPStarRE.QPBT.applyOperatorToState (Kᴴ * K) v)).re :=
  _root_.MIPStarRE.QPBT.MagicSquareRigidity.norm_toEuclideanLin_sq K v

















/-! ## Kronecker algebra of placed operators

The mixed-product rule `heteroKron_mul`, the identity `heteroKron_one_one` and
the additive and difference identities are the shared tensor-placement lemmas of
`MIPStarRE/QPBT/Games/Defs.lean`; the identities below extend them with the
finite-sum and scalar facts used by the transfer step. -/









/-! ## Matrices of isometries -/





















/-! ## The ground projection -/

/-- The orthogonal projection of an enlarged local space onto its ground slice,
namely the inflation of the identity.  Formalization-only support for the
transfer step of blueprint `thm:ms-rigidity`. -/
def groundProjection (ι α : Type) [Fintype ι] [DecidableEq ι]
    [Fintype α] [DecidableEq α] : _root_.LIDT.MIPStarRE.Quantum.Op (ι × Option α) :=
  _root_.MIPStarRE.QPBT.MagicSquareRigidity.naimarkInflation (α := α) (1 : _root_.LIDT.MIPStarRE.Quantum.Op ι)



















/-! ## Leakage out of the ground slice is bounded by the intertwining defect -/





end

end MIPStarRE.QPBT.MagicSquareRigidity
Source
https://github.com/Dengnifer/MIPStarRE-QPBT/blob/8f4118aeea7be16912adbaee3df6dce1741a2c26/QPBT/Test/MagicSquareTheorems/Rigidity/GroundSlice.lean#L49-L410

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