Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

III.E: controlled-Z adds a real edge

Proved
QAlgorithms.Papers.Independent.Intake100.P30.controlled_z_update

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

prove2quantum

Let a valid graph have two distinct active modes with block TTT and untouched blocks R,WR,WR,W. For real controlled-ZZZ strength ggg, write E=\begin{psmallmatrix}0&g\\g&0\end{psmallmatrix}. Then

Z′=(T+ERTRW).Z'=\begin{pmatrix}T+E&R^T\\R&W\end{pmatrix}.Z′=(T+ER​RTW​).

This remains a valid Gaussian graph. Both symmetric weights between the active nodes increase by ggg, and the diagonal self-loops do not change.

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.12, (3.22)–(3.23): two distinct active modes; add g to
both symmetric off-diagonal entries, leaving self-loops and W unchanged. -/
theorem controlled_z_update {J : Type*} [Fintype J] [DecidableEq J]
    (T : Matrix (Fin 2) (Fin 2) ℂ) (R : Matrix J (Fin 2) ℂ) (W : Matrix J J ℂ)
    (hZ : ValidGraph (Matrix.fromBlocks T R.transpose R W)) (g : ℝ) :
    let C := g • twoEdge
    graphLocalMobius 1 0 C 1 (Matrix.fromBlocks T R.transpose R W) =
      Matrix.fromBlocks (T + complexify C) R.transpose R W ∧
    ValidGraph (Matrix.fromBlocks (T + complexify C) R.transpose 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: controlled-Z adds a real edge
Read-back

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

Let JJJ be any finite type with decidable equality, possibly empty. Let T∈C2×2T\in\mathbb C^{2\times2}T∈C2×2, R∈CJ×2R\in\mathbb C^{J\times2}R∈CJ×2, and W∈CJ×JW\in\mathbb C^{J\times J}W∈CJ×J, and suppose that Z=(TRTRW)Z=\begin{pmatrix}T&R^{\mathsf T}\\R&W\end{pmatrix}Z=(TR​RTW​) is symmetric and its entrywise imaginary part is positive definite. For every g∈Rg\in\mathbb Rg∈R, put C=g(0110)C=g\begin{pmatrix}0&1\\1&0\end{pmatrix}C=g(01​10​), and extend it to C^=(C000)\widehat C=\begin{pmatrix}C&0\\0&0\end{pmatrix}C=(C0​00​) on the index type Fin⁡(2)⊔J\operatorname{Fin}(2)\sqcup JFin(2)⊔J. The local fractional transformation specified in the statement satisfies

(C^+Z)(I+0Z)−1=(T+CRTRW),(\widehat C+Z)(I+0Z)^{-1} =\begin{pmatrix}T+C&R^{\mathsf T}\\R&W\end{pmatrix},(C+Z)(I+0Z)−1=(T+CR​RTW​),

where real matrices are embedded entrywise into complex matrices, and the matrix on the right is symmetric with positive definite imaginary part.

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