Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

II.E: graph from measured second moments, Eq. (2.27)

Open
QAlgorithms.Papers.Independent.Intake100.P30.measured_second_moments

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let fff be a normalized, centered, nnn-mode Gaussian wavefunction on Rn\mathbb R^nRn, with ℏ=1\hbar=1ℏ=1. Let Qjk=⟨qjqk⟩Q_{jk}=\langle q_jq_k\rangleQjk​=⟨qj​qk​⟩, Pjk=⟨qjpk⟩P_{jk}=\langle q_jp_k\ranglePjk​=⟨qj​pk​⟩, and Hjk=⟨qjpk+pkqj⟩H_{jk}=\langle q_jp_k+p_kq_j\rangleHjk​=⟨qj​pk​+pk​qj​⟩. All first and second quadrature forms are integrable; QQQ is positive definite and invertible, and

P=12H+i2I,Z=Q−1P=12Q−1(H+iI).P=\tfrac12 H+\tfrac i2 I,\qquad Z=Q^{-1}P=\tfrac12 Q^{-1}(H+iI).P=21​H+2i​I,Z=Q−1P=21​Q−1(H+iI).

The resulting ZZZ is symmetric with positive definite imaginary part. This identifies the graph using measured second moments, with vacuum Q=I/2Q=I/2Q=I/2.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P30
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped BigOperators ENNReal ComplexOrder Matrix.Norms.Frobenius Topology

open QAlgorithms.Papers.Independent.Dependency50.P10 (Phase complexify sigma)

namespace QAlgorithms.Papers.Independent.Intake100.P30

open QAlgorithms.Papers.Independent.Claimed50.P41
  (Schrodinger gaussianWave IsCenteredGaussianFunction quadratureFunction waveMean waveCovariance displacedFunction IsImplementer)

/-- PDF pp.6–7, (2.25)–(2.27): actual second-moment graph extraction.
Vacuum normalization is Q=I/2 and <qp^T>=iI/2. -/
theorem measured_second_moments {n : ℕ} (f : (Fin n → ℝ) → ℂ)
    (hf : NormalizedGaussian f) :
    HasQuadratureForms f ∧ (realPart (qMoment f)).PosDef ∧
    IsUnit (qMoment f).det ∧
    (∀ j k, qpMoment f j k = (symQpMoment f j k / 2 : ℝ) +
      (Complex.I / 2) * (if j = k then 1 else 0)) ∧
    extractedGraph f = (1 / 2 : ℂ) • ((qMoment f)⁻¹ *
      (complexify (symQpMoment f) + Complex.I • 1)) ∧
    ValidGraph (extractedGraph f) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P30

end
Source
Graphical calculus for Gaussian pure states, arXiv:1007.0725v3, PDF p. 7, II.E: graph from measured second moments, Eq. (2.27)
Read-back

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

For every natural number nnn, including 000, and every function f:Rn→Cf:\mathbb R^n\to\mathbb Cf:Rn→C, suppose that there exist real n×nn\times nn×n matrices u,vu,vu,v and c∈C∖{0}c\in\mathbb C\setminus\{0\}c∈C∖{0}, with uuu positive definite and vvv symmetric, such that

f(q)=cexp⁡ ⁣(−12∑j,k=0n−1qj(ujk+ivjk)qk)for every q,f(q)=c\exp\!\left(-\frac12\sum_{j,k=0}^{n-1}q_j(u_{jk}+iv_{jk})q_k\right) \quad\text{for every }q,f(q)=cexp​−21​j,k=0∑n−1​qj​(ujk​+ivjk​)qk​​for every q,

and suppose fff belongs to L2L^2L2 and ∫Rn∣f(q)∣2 dq=1\int_{\mathbb R^n}|f(q)|^2\,dq=1∫Rn​∣f(q)∣2dq=1. Define Rqjf(q)=qjf(q)R_{q_j}f(q)=q_jf(q)Rqj​​f(q)=qj​f(q) and Rpjf(q)=−iDRf(q)[ej]R_{p_j}f(q)=-iD_{\mathbb R}f(q)[e_j]Rpj​​f(q)=−iDR​f(q)[ej​], where eje_jej​ is the jjj-th coordinate vector, and set

Qjk=∫RnRqjf(q)‾ Rqkf(q) dq,Mjk=∫RnRqjf(q)‾ Rpkf(q) dq,Tjk=2Re⁡Mjk.Q_{jk}=\int_{\mathbb R^n}\overline{R_{q_j}f(q)}\,R_{q_k}f(q)\,dq, \qquad M_{jk}=\int_{\mathbb R^n}\overline{R_{q_j}f(q)}\,R_{p_k}f(q)\,dq, \qquad T_{jk}=2\operatorname{Re}M_{jk}.Qjk​=∫Rn​Rqj​​f(q)​Rqk​​f(q)dq,Mjk​=∫Rn​Rqj​​f(q)​Rpk​​f(q)dq,Tjk​=2ReMjk​.

Then every function f‾ Raf\overline f\,R_aff​Ra​f, for aaa in either copy of the coordinate indices, is integrable, and every function Raf‾ Rbf\overline{R_af}\,R_bfRa​f​Rb​f, for any two such indices a,ba,ba,b, is integrable. Moreover, the entrywise real part of QQQ is positive definite, det⁡Q≠0\det Q\ne0detQ=0, and, for every j,kj,kj,k,

Mjk=Tjk2+i2δjk,Q−1M=12Q−1(TC+iIn),M_{jk}=\frac{T_{jk}}2+\frac{i}{2}\delta_{jk}, \qquad Q^{-1}M=\frac12Q^{-1}(T_{\mathbb C}+iI_n),Mjk​=2Tjk​​+2i​δjk​,Q−1M=21​Q−1(TC​+iIn​),

where δjk=1\delta_{jk}=1δjk​=1 when j=kj=kj=k and 000 otherwise, and TCT_{\mathbb C}TC​ is TTT regarded as a complex matrix. Finally, Q−1MQ^{-1}MQ−1M is symmetric under transpose and its entrywise imaginary part is positive definite. The statement includes n=0n=0n=0, when the matrices are empty, the determinant of QQQ is 111, and the assertions quantified over coordinate indices are vacuous.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me