Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Local and global random-observable comparison, with source correction

Open
QAlgorithms.Papers.Independent.Intakethird100.P71.localGlobal_randomObservableComparison

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Consider the complete locally scrambled two-qudit toy experiment with d≥2d\ge2d≥2, 2d/(d2+1)≤w≤12d/(d^2+1)\le w\le12d/(d2+1)≤w≤1, snapshot features (1,w,w,1)(1,w,w,1)(1,w,w,1), and local-state averaged second moment QavQ_{\mathrm{av}}Qav​. Every traceless Hermitian local observable Oloc=A⊗IO_{\rm loc}=A\otimes IOloc​=A⊗I satisfies

Qav(Oloc)=d2−1d2(dw−1)Tr⁡(Oloc2).Q_{\mathrm{av}}(O_{\rm loc})=\frac{d^2-1}{d^2(dw-1)}\operatorname{Tr}(O_{\rm loc}^2).Qav​(Oloc​)=d2(dw−1)d2−1​Tr(Oloc2​).

For a trace-removed global GUE observable GGG, in ensemble expectation,

EGQav(G)=d2−1d2(d2+1)((d2−1)2d2−2dw+1+2dw−1)EGTr⁡(G2).\mathbb E_G Q_{\mathrm{av}}(G)=\frac{d^2-1}{d^2(d^2+1)}\left(\frac{(d^2-1)^2}{d^2-2dw+1}+\frac{2}{dw-1}\right)\mathbb E_G\operatorname{Tr}(G^2).EG​Qav​(G)=d2(d2+1)d2−1​(d2−2dw+1(d2−1)2​+dw−12​)EG​Tr(G2).

The Gaussian integrands are integrable. At w=2d/(d2+1)w=2d/(d^2+1)w=2d/(d2+1) every traceless Hermitian OOO has Qav(O)=(1+d−2)Tr⁡(O2)Q_{\mathrm{av}}(O)=(1+d^{-2})\operatorname{Tr}(O^2)Qav​(O)=(1+d−2)Tr(O2). This compares second moments at a fixed Hilbert–Schmidt scale.

Source correction. The printed global denominator in Eq. (34) is d2−2dw−1d^2-2dw-1d2−2dw−1; it is changed to d2−2dw+1d^2-2dw+1d2−2dw+1, as forced by Eq. (31). The printed expression is negative at d=2,w=4/5d=2,w=4/5d=2,w=4/5. The global formula is an ensemble assertion, not an identity for each GUE draw. Independent moderation of this correction is pending.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P71
Formal statement
noncomputable section

open MeasureTheory

open scoped Matrix ComplexConjugate ENNReal Matrix.Norms.Elementwise

namespace QAlgorithms.Papers.Independent.Intakethird100.P71

attribute [local instance] Classical.propDecidable

local notation "Config" n:max d:max =>
  QAlgorithms.Papers.Independent.Information100.P21.Config (P := Fin n) (fun _ => d)

local notation "Op" n:max d:max =>
  QAlgorithms.Papers.Independent.Information100.P21.Op (Config n d)

attribute [local instance] QAlgorithms.Papers.Independent.Intakethird100.P71.matrixContinuousENorm

local notation "Unitary" n:max d:max => Matrix.unitaryGroup (Config n d) ℂ

local notation "Local" n:max d:max => Fin n → Matrix.unitaryGroup (Fin d) ℂ

open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)

/-- PDF p.6 Eqs.(32)–(34), corrected consequence of Eq.(31).
Printed: d²−2dw−1 in the global denominator. Changed: d²−2dw+1.
Why: Eq.(31) forces +1; at d=2,w=4/5 the printed expression is negative.
The global GUE statement is an ensemble expectation, not an identity for each
random draw. Traces are removed to obey the section's traceless convention.
This source correction requires independent moderation. -/
theorem localGlobal_randomObservableComparison {d : ℕ} (hd : 2 ≤ d) (E : ProjectiveEnsemble 2 d)
    (hls : LocallyScrambled (prior E)) (hc : Complete (prior E))
    (w : ℝ) (hw : 2*(d : ℝ)/((d : ℝ)^2+1) ≤ w ∧ w ≤ 1) (hf : ToyFeature (prior E) w)
    (H : Measure (Local 2 d)) [IsProbabilityMeasure H] [H.IsMulLeftInvariant]
    (rho : Op 2 d) (hrho : IsDensityMatrix rho) :
    (∀ A : Matrix (Fin d) (Fin d) ℂ, A.IsHermitian → A.trace = 0 →
      averagedSecondMoment H (prior E) hc rho (localObservable A) =
        ((d : ℝ)^2-1)/((d : ℝ)^2*((d : ℝ)*w-1)) * hsSquare (localObservable A)) ∧
    Integrable (fun z => averagedSecondMoment H (prior E) hc rho (gueOperator d z)) (gueCoordinates d) ∧
    Integrable (fun z => hsSquare (gueOperator d z)) (gueCoordinates d) ∧
    (∫ z, averagedSecondMoment H (prior E) hc rho (gueOperator d z) ∂gueCoordinates d) =
      ((d : ℝ)^2-1)/((d : ℝ)^2*((d : ℝ)^2+1)) *
        (((d : ℝ)^2-1)^2/((d : ℝ)^2-2*(d : ℝ)*w+1) + 2/((d : ℝ)*w-1)) *
          (∫ z, hsSquare (gueOperator d z) ∂gueCoordinates d) ∧
    (∀ X : Op 2 d, X.IsHermitian → X.trace = 0 →
      (w = 2*(d : ℝ)/((d : ℝ)^2+1) →
        averagedSecondMoment H (prior E) hc rho X = (1 + ((d : ℝ)^2)⁻¹) * hsSquare X)) := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P71

end
Source
Classical Shadow Tomography with Locally Scrambled Quantum Dynamics, arXiv:2107.04817v4, PDF p. 6, §II C, Eqs.(32)–(34): local/global random-observable comparison, with correction
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let d≥2d\ge2d≥2, X={0,…,d−1}2\mathcal X=\{0,\ldots,d-1\}^2X={0,…,d−1}2, and let EEE give a probability law λ\lambdaλ on global unitary matrices. Define ν=d−2∑b(U↦U†∣b⟩⟨b∣U)∗λ\nu=d^{-2}\sum_b(U\mapsto U^\dagger|b\rangle\langle b|U)_*\lambdaν=d−2∑b​(U↦U†∣b⟩⟨b∣U)∗​λ; assume it is invariant under S↦LV†SLVS\mapsto L_V^\dagger SL_VS↦LV†​SLV​ for every local tensor product LV=V0⊗V1L_V=V_0\otimes V_1LV​=V0​⊗V1​. Define M(X)ij=∑k,l(∫d2SijSlk dν(S))Xkl\mathcal M(X)_{ij}=\sum_{k,l}(\int d^2S_{ij}S_{lk}\,d\nu(S))X_{kl}M(X)ij​=∑k,l​(∫d2Sij​Slk​dν(S))Xkl​, assume it is injective, and write R=M−1\mathcal R=\mathcal M^{-1}R=M−1. Let 2d/(d2+1)≤w≤12d/(d^2+1)\le w\le12d/(d2+1)≤w≤1, and assume that f(A)=∫Re⁡tr⁡((Tr⁡AcS)2) dν(S)f(A)=\int\operatorname{Re}\operatorname{tr}((\operatorname{Tr}_{A^c}S)^2)\,d\nu(S)f(A)=∫Retr((TrAc​S)2)dν(S) equals www for singleton A⊆{0,1}A\subseteq\{0,1\}A⊆{0,1} and 111 otherwise, where the partial trace sums matching complementary indices. Let HHH be a probability measure on local unitary pairs invariant under left multiplication, and let ρ\rhoρ be positive semidefinite of trace 111. For any observable OOO, define

Qρ(O)=∫(∫[Re⁡tr⁡(OR(S))]2 dνLV†ρLV(S))dH(V),dνσ=[d2Re⁡tr⁡(Sσ)]+dν,K(O)=Re⁡tr⁡(O2).Q_\rho(O)= \int\left(\int [\operatorname{Re}\operatorname{tr}(O\mathcal R(S))]^2 \,d\nu_{L_V^\dagger\rho L_V}(S)\right)dH(V), \qquad d\nu_\sigma=[d^2\operatorname{Re}\operatorname{tr}(S\sigma)]_+d\nu, \quad K(O)=\operatorname{Re}\operatorname{tr}(O^2).Qρ​(O)=∫(∫[Retr(OR(S))]2dνLV†​ρLV​​(S))dH(V),dνσ​=[d2Retr(Sσ)]+​dν,K(O)=Retr(O2).

For every Hermitian d×dd\times dd×d matrix AAA with tr⁡A=0\operatorname{tr}A=0trA=0, the theorem asserts

Qρ(A⊗I)=d2−1d2(dw−1)K(A⊗I).Q_\rho(A\otimes I)=\frac{d^2-1}{d^2(dw-1)}K(A\otimes I).Qρ​(A⊗I)=d2(dw−1)d2−1​K(A⊗I).

Let γ\gammaγ be the product measure under which all real coordinates zij,0,zij,1z_{ij,0},z_{ij,1}zij,0​,zij,1​, for i,j∈Xi,j\in\mathcal Xi,j∈X, are independent Gaussian random variables of mean 000 and variance 111. Set Zij=zij,0+izij,1Z_{ij}=z_{ij,0}+iz_{ij,1}Zij​=zij,0​+izij,1​, G0=(Z+Z†)/2G_0=(Z+Z^\dagger)/2G0​=(Z+Z†)/2, and G(z)=G0−tr⁡(G0)I/d2G(z)=G_0-\operatorname{tr}(G_0)I/d^2G(z)=G0​−tr(G0​)I/d2. Both z↦Qρ(G(z))z\mapsto Q_\rho(G(z))z↦Qρ​(G(z)) and z↦K(G(z))z\mapsto K(G(z))z↦K(G(z)) are integrable with respect to γ\gammaγ, and

∫Qρ(G(z)) dγ(z)=d2−1d2(d2+1)[(d2−1)2d2−2dw+1+2dw−1]∫K(G(z)) dγ(z).\int Q_\rho(G(z))\,d\gamma(z)= \frac{d^2-1}{d^2(d^2+1)} \left[\frac{(d^2-1)^2}{d^2-2dw+1}+\frac2{dw-1}\right] \int K(G(z))\,d\gamma(z).∫Qρ​(G(z))dγ(z)=d2(d2+1)d2−1​[d2−2dw+1(d2−1)2​+dw−12​]∫K(G(z))dγ(z).

Finally, every Hermitian matrix XXX on CX\mathbb C^{\mathcal X}CX with trace 000 satisfies the implication

w=2dd2+1⟹Qρ(X)=(1+d−2)K(X).w=\frac{2d}{d^2+1}\quad\Longrightarrow\quad Q_\rho(X)=(1+d^{-2})K(X).w=d2+12d​⟹Qρ​(X)=(1+d−2)K(X).
Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 2026

    Confirmed by the mission captain (proposal self-audit).

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me