Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

II.H: complex and real nullifier covariance and scalar error

Open
QAlgorithms.Papers.Independent.Intake100.P30.nullifier_covariances

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

prove2quantum

Let Z=V+iUZ=V+iUZ=V+iU, where VVV is real symmetric and UUU is real symmetric positive definite, and let ψZ\psi_ZψZ​ be its normalized Gaussian wavefunction. The symmetrized complex-nullifier covariance and real-nullifier covariance are

cov⁡(p−Zq)=U,cov⁡(p−Vq)=12U,∑j⟨(pj−∑kVjkqk)2⟩=12tr⁡U.\operatorname{cov}(p-Zq)=U,\qquad \operatorname{cov}(p-Vq)=\tfrac12 U,\qquad \sum_j\langle(p_j-\sum_kV_{jk}q_k)^2\rangle=\tfrac12\operatorname{tr}U.cov(p−Zq)=U,cov(p−Vq)=21​U,j∑​⟨(pj​−k∑​Vjk​qk​)2⟩=21​trU.

The quadrature and nullifier forms used here are integrable. For an arbitrary real symmetric target AAA, the real-nullifier covariance equals 12[U+(V−A)U−1(V−A)]\tfrac12[U+(V-A)U^{-1}(V-A)]21​[U+(V−A)U−1(V−A)]. These identities quantify finite-squeezing error through squared-operator expectations, rather than squared means.

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 p.8, (2.40)–(2.42): covariance U for complex nullifiers,
U/2 for real nullifiers, and the sum of squared-operator expectations.
The arbitrary fixed target formula also makes (2.3)'s limiting meaning explicit. -/
theorem nullifier_covariances {n : ℕ} (U V : Matrix (Fin n) (Fin n) ℝ)
    (hU : U.PosDef) (hV : V.IsSymm) :
    let Z := complexify V + Complex.I • complexify U
    let f := gaussianWave U (-V)
    NormalizedGaussian f ∧ HasQuadratureForms f ∧
    complexNullifierCovariance Z f = complexify U ∧
    realNullifierCovariance V f = (1 / 2 : ℝ) • U ∧
    (∀ A : Matrix (Fin n) (Fin n) ℝ, A.IsSymm →
      realNullifierCovariance A f = targetError Z A ∧
      targetError Z A = (1 / 2 : ℝ) • (U + (V - A) * U⁻¹ * (V - A))) ∧
    (∀ j k, Integrable (fun q => star (nullifier Z f j q) * nullifier Z f k q) ∧
      Integrable (fun q => star (nullifier (fun a b => star (Z a b)) f j q) *
        nullifier (fun a b => star (Z a b)) f k q) ∧
      Integrable (fun q => star (nullifier (complexify V) f j q) *
        nullifier (complexify V) f k q)) ∧
    Matrix.trace U / 2 = ∑ j, ∫ q, Complex.normSq (nullifier (complexify V) f j q) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P30

end
Source
Graphical calculus for Gaussian pure states, arXiv:1007.0725v3, PDF p. 8, II.H: complex and real nullifier covariance and scalar error
Read-back

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

For every natural number nnn, including 000, every real positive definite n×nn\times nn×n matrix UUU, and every real symmetric n×nn\times nn×n matrix VVV, set

Z=V+iU,f(q)=π−n/4(det⁡U)1/4exp⁡ ⁣(−12∑j,kqj(Ujk−iVjk)qk),q∈Rn,Z=V+iU,\qquad f(q)=\pi^{-n/4}(\det U)^{1/4} \exp\!\left(-\frac12\sum_{j,k}q_j(U_{jk}-iV_{jk})q_k\right), \quad q\in\mathbb R^n,Z=V+iU,f(q)=π−n/4(detU)1/4exp​−21​j,k∑​qj​(Ujk​−iVjk​)qk​​,q∈Rn,

where the powers in the prefactor are real powers. For a function h:Rn→Ch:\mathbb R^n\to\mathbb Ch:Rn→C, define Qjh(q)=qjh(q)Q_jh(q)=q_jh(q)Qj​h(q)=qj​h(q), Pjh(q)=−i Dh(q)[ej]P_jh(q)=-i\,Dh(q)[e_j]Pj​h(q)=−iDh(q)[ej​], using the real Fréchet derivative, and

NM,jh=Pjh−∑kMjkQkh.N_{M,j}h=P_jh-\sum_kM_{jk}Q_kh.NM,j​h=Pj​h−k∑​Mjk​Qk​h.

All integrals below use Lebesgue measure on Rn\mathbb R^nRn, and a bar denotes entrywise complex conjugation. The function fff has the form cexp⁡(−12qT(u+iv)q)c\exp(-\frac12q^{\mathsf T}(u+iv)q)cexp(−21​qT(u+iv)q) for some real positive definite uuu, real symmetric vvv, and nonzero complex ccc; it belongs to L2L^2L2 and satisfies ∫∣f(q)∣2 dq=1\int|f(q)|^2\,dq=1∫∣f(q)∣2dq=1. Writing RaR_aRa​ for any of the QjQ_jQj​ or PjP_jPj​, every function f‾ Raf\overline f\,R_aff​Ra​f and every function Raf‾ Rbf\overline{R_af}\,R_bfRa​f​Rb​f is integrable. Define matrices

Cjk=12(∫NZ,jf‾ NZ,kf dq+∫NZ‾,kf‾ NZ‾,jf dq),R(A)jk=Re⁡∫NA,jf‾ NA,kf dq\mathcal C_{jk}= \frac12\left( \int\overline{N_{Z,j}f}\,N_{Z,k}f\,dq+ \int\overline{N_{\overline Z,k}f}\,N_{\overline Z,j}f\,dq \right), \qquad \mathcal R(A)_{jk}= \operatorname{Re}\int\overline{N_{A,j}f}\,N_{A,k}f\,dqCjk​=21​(∫NZ,j​f​NZ,k​fdq+∫NZ,k​f​NZ,j​fdq),R(A)jk​=Re∫NA,j​f​NA,k​fdq

for real matrices AAA, viewed as complex matrices inside NNN. Then C=U\mathcal C=UC=U, with UUU embedded into complex matrices, and R(V)=U/2\mathcal R(V)=U/2R(V)=U/2. Define

Σ=12(U−1U−1VVU−1U+VU−1V),EZ(A)=Σpp−AΣqp−ΣpqAT+AΣqqAT.\Sigma=\frac12 \begin{pmatrix} U^{-1}&U^{-1}V\\ VU^{-1}&U+VU^{-1}V \end{pmatrix}, \qquad E_Z(A)=\Sigma_{pp}-A\Sigma_{qp}-\Sigma_{pq}A^{\mathsf T} +A\Sigma_{qq}A^{\mathsf T}.Σ=21​(U−1VU−1​U−1VU+VU−1V​),EZ​(A)=Σpp​−AΣqp​−Σpq​AT+AΣqq​AT.

For every real symmetric n×nn\times nn×n matrix AAA,

R(A)=EZ(A)=12(U+(V−A)U−1(V−A)).\mathcal R(A)=E_Z(A) =\frac12\bigl(U+(V-A)U^{-1}(V-A)\bigr).R(A)=EZ​(A)=21​(U+(V−A)U−1(V−A)).

For every j,kj,kj,k, each of NZ,jf‾NZ,kf\overline{N_{Z,j}f}N_{Z,k}fNZ,j​f​NZ,k​f, NZ‾,jf‾NZ‾,kf\overline{N_{\overline Z,j}f}N_{\overline Z,k}fNZ,j​f​NZ,k​f, and NV,jf‾NV,kf\overline{N_{V,j}f}N_{V,k}fNV,j​f​NV,k​f is integrable, and

tr⁡U2=∑j∫∣NV,jf(q)∣2 dq.\frac{\operatorname{tr}U}{2} =\sum_j\int|N_{V,j}f(q)|^2\,dq.2trU​=j∑​∫∣NV,j​f(q)∣2dq.

When n=0n=0n=0, the coordinate-indexed assertions have no instances and the final trace and sum are both zero.

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