Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

III.E: local phase shift graph rule

Open
QAlgorithms.Papers.Independent.Intake100.P30.local_phase_shift

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

prove2quantum

For a valid one-mode block graph Z=\begin{psmallmatrix}t&r^T\\r&W\end{psmallmatrix} and real θ\thetaθ, put d=cos⁡θ+tsin⁡θd=\cos\theta+t\sin\thetad=cosθ+tsinθ. Then d≠0d\ne0d=0, and the source's phase rotation \begin{psmallmatrix}\cos\theta&\sin\theta\\-\sin\theta&\cos\theta\end{psmallmatrix} gives

Z′=((−sin⁡θ+tcos⁡θ)/drT/dr/dW−sin⁡θ rrT/d).Z'=\begin{pmatrix}(-\sin\theta+t\cos\theta)/d&r^T/d\\r/d&W-\sin\theta\,rr^T/d\end{pmatrix}.Z′=((−sinθ+tcosθ)/dr/d​rT/dW−sinθrrT/d​).

The output is valid. The neighborhood block can acquire new links through this operation.

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.11–12, (3.18): the source's signed phase-shift rule. -/
theorem local_phase_shift {J : Type*} [Fintype J] [DecidableEq J]
    (t : ℂ) (r : J → ℂ) (W : Matrix J J ℂ) (hZ : ValidGraph (oneGraph t r W)) (theta : ℝ) :
    let den : ℂ := (Real.cos theta : ℂ) + t * (Real.sin theta : ℂ)
    den ≠ 0 ∧
    oneAction (Real.cos theta) (Real.sin theta) (-Real.sin theta) (Real.cos theta) (oneGraph t r W) =
      oneGraph ((-(Real.sin theta : ℂ) + t * (Real.cos theta : ℂ)) / den)
        (fun j => r j / den)
        (fun j k => W j k - (Real.sin theta : ℂ) * r j * r k / den) ∧
    ValidGraph (oneAction (Real.cos theta) (Real.sin theta) (-Real.sin theta) (Real.cos theta)
      (oneGraph t r W)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P30

end
Source
Graphical calculus for Gaussian pure states, arXiv:1007.0725v3, PDF p. 12, III.E: local phase shift graph rule
Read-back

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

For every finite type JJJ with decidable equality, including the empty type, every t∈Ct\in\mathbb Ct∈C, vector r:J→Cr:J\to\mathbb Cr:J→C, complex matrix WWW indexed by JJJ, and real θ\thetaθ, suppose

Z(t,r,W)=(trTrW)Z(t,r,W)=\begin{pmatrix}t&r^{\mathsf T}\\r&W\end{pmatrix}Z(t,r,W)=(tr​rTW​)

on one distinguished coordinate together with JJJ is symmetric with positive definite entrywise imaginary part. Define

La,b,c,d(Z)=(diag⁡(c,0J)+diag⁡(d,1J)Z)(diag⁡(a,1J)+diag⁡(b,0J)Z)−1,δ=cos⁡θ+tsin⁡θ,\mathcal L_{a,b,c,d}(Z)= \bigl(\operatorname{diag}(c,0_J)+\operatorname{diag}(d,\mathbf1_J)Z\bigr) \bigl(\operatorname{diag}(a,\mathbf1_J)+\operatorname{diag}(b,0_J)Z\bigr)^{-1}, \qquad \delta=\cos\theta+t\sin\theta,La,b,c,d​(Z)=(diag(c,0J​)+diag(d,1J​)Z)(diag(a,1J​)+diag(b,0J​)Z)−1,δ=cosθ+tsinθ,

where real scalars are viewed in C\mathbb CC and transposes have no conjugation. Then δ≠0\delta\ne0δ=0 and

Lcos⁡θ,sin⁡θ,−sin⁡θ,cos⁡θ(Z(t,r,W))=Z(t′,r′,W′),\mathcal L_{\cos\theta,\sin\theta,-\sin\theta,\cos\theta}(Z(t,r,W)) =Z(t',r',W'),Lcosθ,sinθ,−sinθ,cosθ​(Z(t,r,W))=Z(t′,r′,W′),

where

t′=−sin⁡θ+tcos⁡θδ,rj′=rjδ,Wjk′=Wjk−sin⁡θ rjrkδ.t'=\frac{-\sin\theta+t\cos\theta}{\delta},\qquad r'_j=\frac{r_j}{\delta},\qquad W'_{jk}=W_{jk}-\frac{\sin\theta\,r_jr_k}{\delta}.t′=δ−sinθ+tcosθ​,rj′​=δrj​​,Wjk′​=Wjk​−δsinθrj​rk​​.

The transformed matrix is symmetric with positive definite entrywise imaginary part. When JJJ is empty, only the formula for the distinguished coordinate remains.

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