Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered primary decomposition, equations (7)–(8)

Open
QAlgorithms.Papers.Independent.Intake100.P39.primary_decomposition

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

prove2quantum

Let V=R2nV=\mathbb R^{2n}V=R2n, with grouped symplectic form Ω(x,y)=∑i=1n(xiyn+i−xn+iyi)\Omega(x,y)=\sum_{i=1}^n(x_i y_{n+i}-x_{n+i}y_i)Ω(x,y)=∑i=1n​(xi​yn+i​−xn+i​yi​), and let AAA be a real linear map preserving Ω\OmegaΩ. This is a coordinate formulation in an arbitrary ambient symplectic basis. Write ACA_{\mathbb C}AC​ and ΩC\Omega_{\mathbb C}ΩC​ for their complex-linear and complex-bilinear extensions, Nλ=AC−λIN_\lambda=A_{\mathbb C}-\lambda INλ​=AC​−λI, and Eλ=⋃r≥1ker⁡NλrE_\lambda=\bigcup_{r\ge1}\ker N_\lambda^rEλ​=⋃r≥1​kerNλr​. Let [λ]={λ,λ−1,λˉ,λˉ−1}[\lambda]=\{\lambda,\lambda^{-1},\bar\lambda,\bar\lambda^{-1}\}[λ]={λ,λ−1,λˉ,λˉ−1}, with repetitions removed, and let V[λ]V_{[\lambda]}V[λ]​ be the real subspace whose complexification is ∑μ∈[λ]Eμ\sum_{\mu\in[\lambda]}E_\mu∑μ∈[λ]​Eμ​. A symplectic basis uses the matrix (0I−I0)\left(\begin{smallmatrix}0&I\\-I&0\end{smallmatrix}\right)(0−I​I0​). All transposes below are ordinary transposes.

The space VVV is the symplectically orthogonal internal direct sum of the AAA-invariant nondegenerate real spaces indexed by the distinct eigenvalue orbits:

V=⨁[λ]V[λ],(V[λ])C=⨁μ∈[λ]Eμ.V=\bigoplus_{[\lambda]}V_{[\lambda]},\qquad (V_{[\lambda]})_{\mathbb C}=\bigoplus_{\mu\in[\lambda]}E_\mu.V=[λ]⨁​V[λ]​,(V[λ]​)C​=μ∈[λ]⨁​Eμ​.

At λ=±1\lambda=\pm1λ=±1 there is one complex summand; at a nonreal unit eigenvalue there are two. The zero-dimensional space has the empty direct sum.

This constructs the primary subspaces used by every later normal form.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P39
Formal statement
noncomputable section

open scoped BigOperators Matrix

namespace QAlgorithms.Papers.Independent.Intake100.P39

attribute [local instance] Classical.propDecidable Classical.decEq

-- Reuse only the pinned accepted substrate, with definitionally identical coordinate models.
-- The imported symplectic predicate preserves -Omega0, equivalent to preserving Omega0.

open QAlgorithms.Papers.Independent.Dependency50.P10 (complexify)

open QAlgorithms.Papers.Independent.Frontier30.P02 (IsSymplectic)

open QAlgorithms.Papers.Independent.Gap50repair.P01
  (Coord GroupedRealMatrix omegaMatrix omegaR omegaC shifted generalizedSpace
    IsEigenvalue HasNilpotentHeight restrictedKernel GeneralizedQuotient)

/-- PDF pp.7–8, (7)–(8): real, symplectic, invariant primary spaces and their
orthogonal internal direct sum; repeated eigenvalues in an orbit are counted once. -/
theorem primary_decomposition {n : ℕ} (A : GroupedRealMatrix n) (hA : IsSymplectic A) :
    PrimaryDecomposition A := by sorry

end QAlgorithms.Papers.Independent.Intake100.P39

end
Source
Normal Forms for Symplectic Matrices, arXiv:1307.2403v2, PDF p. 7, Unnumbered primary decomposition, equations (7)–(8)
Read-back

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

For every natural number nnn, including 000, and every real 2n×2n2n\times2n2n×2n matrix AAA satisfying ATJA=JA^{\mathsf T}JA=JATJA=J, where J=(0−InIn0)J=\begin{pmatrix}0&-I_n\\I_n&0\end{pmatrix}J=(0In​​−In​0​), define

Ez=ker⁡(AC−zI)2n,Oz={z,z−1,zˉ,zˉ−1},Hz=∑t∈OzEt,Wz={v∈R2n:vC∈Hz},E_z=\ker(A_{\mathbb C}-zI)^{2n},\qquad O_z=\{z,z^{-1},\bar z,\bar z^{-1}\},\qquad H_z=\sum_{t\in O_z}E_t,\qquad W_z=\{v\in\mathbb R^{2n}:v_{\mathbb C}\in H_z\},Ez​=ker(AC​−zI)2n,Oz​={z,z−1,zˉ,zˉ−1},Hz​=t∈Oz​∑​Et​,Wz​={v∈R2n:vC​∈Hz​},

where ACA_{\mathbb C}AC​ and vCv_{\mathbb C}vC​ are obtained by regarding real entries as complex, and inversion is total with 0−1=00^{-1}=00−1=0. For every complex zzz, the complex span of {vC:v∈Wz}\{v_{\mathbb C}:v\in W_z\}{vC​:v∈Wz​} is exactly HzH_zHz​, the space WzW_zWz​ is preserved by AAA, and the restriction to WzW_zWz​ of

ωR((x,y),(x′,y′))=∑i=0n−1(xiyi′−yixi′)\omega_{\mathbb R}((x,y),(x',y'))=\sum_{i=0}^{n-1}(x_i y'_i-y_i x'_i)ωR​((x,y),(x′,y′))=i=0∑n−1​(xi​yi′​−yi​xi′​)

is nondegenerate: if v∈Wzv\in W_zv∈Wz​ pairs to zero with every w∈Wzw\in W_zw∈Wz​, then v=0v=0v=0. Furthermore, there exists a finite set S⊆CS\subseteq\mathbb CS⊆C such that every z∈Sz\in Sz∈S has a nonzero vector vvv with ACv=zvA_{\mathbb C}v=zvAC​v=zv; every complex number having such a nonzero eigenvector belongs to OtO_tOt​ for some t∈St\in St∈S; the sets Oz,OtO_z,O_tOz​,Ot​ are disjoint whenever z,t∈Sz,t\in Sz,t∈S are distinct; and

∑z∈SWz=R2n,Wz∩∑t∈S∖{z}Wt={0}(z∈S).\sum_{z\in S}W_z=\mathbb R^{2n},\qquad W_z\cap\sum_{t\in S\setminus\{z\}}W_t=\{0\}\quad(z\in S).z∈S∑​Wz​=R2n,Wz​∩t∈S∖{z}∑​Wt​={0}(z∈S).

For distinct z,t∈Sz,t\in Sz,t∈S, every v∈Wzv\in W_zv∈Wz​ and w∈Wtw\in W_tw∈Wt​ also satisfy ωR(v,w)=0\omega_{\mathbb R}(v,w)=0ωR​(v,w)=0. The assertions about Hz,WzH_z,W_zHz​,Wz​ quantify over all complex zzz, without an eigenvalue assumption. When n=0n=0n=0, all these spaces are zero-dimensional, there are no eigenvalues, and SSS may be empty.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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