Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Canonical rotations, symbol substitution, and Gaussian kernel

Open
QAlgorithms.Papers.Independent.Intake100.P22.canonical_action

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

prove2quantum

Fix a finite number n≥0n\ge0n≥0 of fermionic modes. Let C2n=End⁡(C2n)\mathcal C_{2n}=\operatorname{End}(\mathbb C^{2^n})C2n​=End(C2n) have Hermitian Majorana generators cac_aca​ satisfying cacb+cbca=2δabIc_ac_b+c_bc_a=2\delta_{ab}Ica​cb​+cb​ca​=2δab​I. The symbol map ω\omegaω sends each ordered Majorana monomial linearly to the corresponding ordered Grassmann monomial; it is not multiplicative. Gaussian states, operators, and maps have the meanings of Definitions 1–3 of the paper. All maps act on the full complex operator algebra, including its odd sector.

For every R∈SO(2n)R\in SO(2n)R∈SO(2n) there is a real skew matrix HHH such that the unitary V=eiH^V=e^{i\widehat H}V=eiH, with H^=(i/4)∑a,bHabcacb\widehat H=(i/4)\sum_{a,b}H_{ab}c_ac_bH=(i/4)∑a,b​Hab​ca​cb​, satisfies VcaV†=∑bRabcbVc_aV^\dagger=\sum_bR_{ab}c_bVca​V†=∑b​Rab​cb​. Every canonical VVV implementing this same rotation obeys, for every XXX,

ω(VXV†,θ)=ω(X,Rθ),(A,B,D,C)=(0,RT,0,1).\omega(VXV^\dagger,\theta)=\omega(X,R\theta),\qquad (A,B,D,C)=(0,R^T,0,1).ω(VXV†,θ)=ω(X,Rθ),(A,B,D,C)=(0,RT,0,1).

Here the tuple specifies the Gaussian integral kernel of Definition 3. If ρ\rhoρ has real covariance MMM, its transformed density has covariance

M′=RTMR.M'=R^TMR.M′=RTMR.

This identifies canonical FLO evolution with substitution of Grassmann variables.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P22
Formal statement
noncomputable section

open scoped BigOperators Matrix ComplexConjugate ComplexOrder

namespace QAlgorithms.Papers.Independent.Intake100.P22

open QAlgorithms.Papers.Independent.Advance50.P19
  (CARSystem Major monomial wick totalFermionParity)

open QAlgorithms.Papers.Independent.Information100.P21 (Op)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.2,4,8, Eqs.(5),(16): every special orthogonal rotation is
implemented by exactly exp(iH) from Eq.(4); all implementations have B=R^T.
The covariance is R^T M R for the source's V c V-dagger convention. -/
theorem canonical_action {n : ℕ} (s : CARSystem n)
    (R : Matrix (Major n) (Major n) ℝ) (hR : Rotation R) :
    (∃ H : Matrix (Major n) (Major n) ℝ, H.transpose = -H ∧
      (canonicalFLO s H)ᴴ * canonicalFLO s H = 1 ∧
      canonicalFLO s H * (canonicalFLO s H)ᴴ = 1 ∧
      ImplementsRotation s (canonicalFLO s H) R) ∧
    (∀ V : Op (Qubits n), IsCanonicalFLO s V → ImplementsRotation s V R →
      HasGrassmannKernel s (conjSuperop V) (homogeneousKernel (R.transpose.map Complex.ofReal)) ∧
      (∀ X : Op (Qubits n), majoranaSymbol s (conjSuperop V X) =
        grassSubst (majoranaSymbol s X) (fun a =>
          ∑ b : Major n, (R a b : ℂ) • grassVar (2 * n) b.val)) ∧
      (∀ rho M, StateWith s rho M →
        StateWith s (conjSuperop V rho) (R.transpose * M * R))) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P22

end
Source
Lagrangian representation for fermionic linear optics, arXiv:quant-ph/0404180v2, PDF p. 2, §II/IV/VI, Eqs.(5),(16): canonical transformations and their Gaussian kernel
Read-back

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

For every natural number nnn, let Hn=C{0,1}n\mathcal H_n=\mathbb C^{\{0,1\}^n}Hn​=C{0,1}n, let sss supply Hermitian matrices γa\gamma_aγa​, a<d=2na<d=2na<d=2n, satisfying γaγb+γbγa=2δabI\gamma_a\gamma_b+\gamma_b\gamma_a=2\delta_{ab}Iγa​γb​+γb​γa​=2δab​I, and let RRR be a real d×dd\times dd×d matrix satisfying RRT=IRR^{\mathsf T}=IRRT=I and det⁡R=1\det R=1detR=1. Put

VH=exp⁡ ⁣(i(i4∑a,b<dHabγaγb)),σs(X)(S)=2−ntr⁡(γS†X),V_H=\exp\!\left(i\left(\frac{i}{4}\sum_{a,b<d}H_{ab}\gamma_a\gamma_b\right)\right), \qquad \sigma_s(X)(S)=2^{-n}\operatorname{tr}(\gamma_S^\dagger X),VH​=exp​i​4i​a,b<d∑​Hab​γa​γb​​​,σs​(X)(S)=2−ntr(γS†​X),

where γS\gamma_SγS​ is the increasing ordered product and γ∅=I\gamma_\varnothing=Iγ∅​=I. The theorem first asserts the existence of a real HHH with HT=−HH^{\mathsf T}=-HHT=−H, VH†VH=VHVH†=IV_H^\dagger V_H=V_HV_H^\dagger=IVH†​VH​=VH​VH†​=I, and VHγaVH†=∑bRabγbV_H\gamma_aV_H^\dagger=\sum_bR_{ab}\gamma_bVH​γa​VH†​=∑b​Rab​γb​ for every a<da<da<d. It further asserts that every matrix VVV which equals VHV_HVH​ for some real skew-symmetric HHH and satisfies these same identities VγaV†=∑bRabγbV\gamma_aV^\dagger=\sum_bR_{ab}\gamma_bVγa​V†=∑b​Rab​γb​ has the following properties. Interpret symbols as exterior polynomials in ordered generators that anticommute and square to zero, and write Eq(Q)=∑k=0qQk/k!E_q(Q)=\sum_{k=0}^{q}Q^k/k!Eq​(Q)=∑k=0q​Qk/k!. In three consecutive ddd-generator blocks θ,η,ζ\theta,\eta,\zetaθ,η,ζ, let JJJ extract coefficients containing the requested θ\thetaθ-subset and every η\etaη- and ζ\zetaζ-generator. Then X↦VXV†X\mapsto VXV^\daggerX↦VXV† is complex linear and, for every matrix XXX,

σs(VXV†)=J ⁣(E3d ⁣(i∑a,b<dRbaθaηb+i∑a<dηaζa)σs(X)(ζ))=∑S⊆{0,…,d−1}σs(X)(S)∏a∈Sincreasing(∑b<dRabξb).\sigma_s(VXV^\dagger) =J\!\left(E_{3d}\!\left(i\sum_{a,b<d}R_{ba}\theta_a\eta_b +i\sum_{a<d}\eta_a\zeta_a\right)\sigma_s(X)(\zeta)\right) =\sum_{S\subseteq\{0,\ldots,d-1\}}\sigma_s(X)(S) \prod_{a\in S}^{\mathrm{increasing}}\left(\sum_{b<d}R_{ab}\xi_b\right).σs​(VXV†)=J​E3d​​ia,b<d∑​Rba​θa​ηb​+ia<d∑​ηa​ζa​​σs​(X)(ζ)​=S⊆{0,…,d−1}∑​σs​(X)(S)a∈S∏increasing​(b<d∑​Rab​ξb​).

Moreover, for every matrix ρ\rhoρ and real matrix MMM, if ρ\rhoρ is positive semidefinite with trace 111, MT=−MM^{\mathsf T}=-MMT=−M, and σs(ρ)=2−nEd(i2∑a,b<dMabξaξb)\sigma_s(\rho)=2^{-n}E_d(\tfrac{i}{2}\sum_{a,b<d}M_{ab}\xi_a\xi_b)σs​(ρ)=2−nEd​(2i​∑a,b<d​Mab​ξa​ξb​), then VρV†V\rho V^\daggerVρV† is positive semidefinite with trace 111 and its symbol is 2−nEd(i2∑a,b<d(RTMR)abξaξb)2^{-n}E_d(\tfrac{i}{2}\sum_{a,b<d}(R^{\mathsf T}MR)_{ab}\xi_a\xi_b)2−nEd​(2i​∑a,b<d​(RTMR)ab​ξa​ξb​), with RTMRR^{\mathsf T}MRRTMR skew-symmetric. The statement includes n=0n=0n=0, with empty matrix indices, empty sums, and the exterior-algebra identity as each zeroth power.

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