Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

IV.A and Appendix B: phase stationarity criterion

Open
QAlgorithms.Papers.Independent.Intake100.P30.phase_stationarity

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

prove2quantum

For a valid finite Gaussian graph Z=V+iUZ=V+iUZ=V+iU, let EZ(θ)=12tr⁡Im⁡Z(θ)E_Z(\theta)=\tfrac12\operatorname{tr}\operatorname{Im}Z(\theta)EZ​(θ)=21​trImZ(θ) after independent local phase rotations. For each coordinate jjj,

Im⁡(Z2)jj=2(UV)jj,∂EZ∂θj∣0=−(UV)jj.\operatorname{Im}(Z^2)_{jj}=2(UV)_{jj},\qquad \left.\frac{\partial E_Z}{\partial\theta_j}\right|_0=-(UV)_{jj}.Im(Z2)jj​=2(UV)jj​,∂θj​∂EZ​​​0​=−(UV)jj​.

Consequently, if (UV)jj=0(UV)_{jj}=0(UV)jj​=0 for every jjj, then the full first derivative of EZE_ZEZ​ vanishes at zero. This is stationarity, the meaning used by Appendix B, and does not exclude saddles. The printed missing factor two is corrected.

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.13–14,22, (4.3),(B8): stationarity, not a claim that
vanishing first derivatives exclude saddles. The printed missing factor 2 in
Im(Z^2)_jj=2(UV)_jj is corrected here. -/
theorem phase_stationarity {I : Type*} [Fintype I] [DecidableEq I]
    (Z : Matrix I I ℂ) (hZ : ValidGraph Z) :
    (∀ j, imagPart (Z * Z) j j = 2 * (imagPart Z * realPart Z) j j) ∧
    (∀ j, HasDerivAt (fun s : ℝ => phaseError Z (Pi.single j s))
      (-(imagPart Z * realPart Z) j j) 0) ∧
    ((∀ j, (imagPart Z * realPart Z) j j = 0) →
      HasFDerivAt (phaseError Z) (0 : (I → ℝ) →L[ℝ] ℝ) 0) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P30

end
Source
Graphical calculus for Gaussian pure states, arXiv:1007.0725v3, PDF p. 13, IV.A and Appendix B: phase stationarity criterion
Read-back

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

Let III be any finite type with decidable equality, possibly empty, and let Z∈CI×IZ\in\mathbb C^{I\times I}Z∈CI×I satisfy ZT=ZZ^{\mathsf T}=ZZT=Z and U=Im⁡Z>0U=\operatorname{Im}Z>0U=ImZ>0; write V=Re⁡ZV=\operatorname{Re}ZV=ReZ. For θ∈RI\theta\in\mathbb R^Iθ∈RI, define Cθ=diag⁡(cos⁡θj)C_\theta=\operatorname{diag}(\cos\theta_j)Cθ​=diag(cosθj​), Sθ=diag⁡(sin⁡θj)S_\theta=\operatorname{diag}(\sin\theta_j)Sθ​=diag(sinθj​), and

ΦZ(θ)=(−Sθ+CθZ)(Cθ+SθZ)−1,EZ(θ)=12tr⁡(Im⁡ΦZ(θ)).\Phi_Z(\theta)=(-S_\theta+C_\theta Z)(C_\theta+S_\theta Z)^{-1}, \qquad E_Z(\theta)=\tfrac12\operatorname{tr}\bigl(\operatorname{Im}\Phi_Z(\theta)\bigr).ΦZ​(θ)=(−Sθ​+Cθ​Z)(Cθ​+Sθ​Z)−1,EZ​(θ)=21​tr(ImΦZ​(θ)).

For every j∈Ij\in Ij∈I, Im⁡(Z2)jj=2(UV)jj\operatorname{Im}(Z^2)_{jj}=2(UV)_{jj}Im(Z2)jj​=2(UV)jj​, and the real function s↦EZ(sej)s\mapsto E_Z(se_j)s↦EZ​(sej​), where eje_jej​ is the coordinate vector at jjj, has derivative −(UV)jj-(UV)_{jj}−(UV)jj​ at s=0s=0s=0. Moreover, if (UV)jj=0(UV)_{jj}=0(UV)jj​=0 for every jjj, then EZ:RI→RE_Z:\mathbb R^I\to\mathbb REZ​:RI→R has Fréchet derivative equal to the zero continuous real-linear map at θ=0\theta=0θ=0. When III is empty, the coordinate assertions and the stationarity hypothesis 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