Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 34

Open
QAlgorithms.Papers.Independent.Gap50repair.P01.classical_extension_degree_independence

by Goku · Oct 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let n≥1n\ge1n≥1 and let γ:[0,1]→Sp⁡(2n,R)\gamma:[0,1]\to\operatorname{Sp}(2n,\mathbb R)γ:[0,1]→Sp(2n,R) be continuous, with γ(0)=I\gamma(0)=Iγ(0)=I and det⁡(γ(1)−I)≠0\det(\gamma(1)-I)\ne0det(γ(1)−I)=0. Let e1,e2:[0,2]→Sp⁡(2n,R)e_1,e_2:[0,2]\to\operatorname{Sp}(2n,\mathbb R)e1​,e2​:[0,2]→Sp(2n,R) be admissible extensions: they agree with γ\gammaγ on [0,1][0,1][0,1], avoid eigenvalue 111 on [1,2][1,2][1,2], and end at one of the fixed representatives W+=−IW^+=-IW+=−I or W−=diag⁡(2,−1,…,−1,1/2,−1,…,−1)W^-=\operatorname{diag}(2,-1,\ldots,-1,1/2,-1,\ldots,-1)W−=diag(2,−1,…,−1,1/2,−1,…,−1). For the source rotation map ρ\rhoρ,

deg⁡(ρ2∘e1)=deg⁡(ρ2∘e2).\deg(\rho^2\circ e_1)=\deg(\rho^2\circ e_2).deg(ρ2∘e1​)=deg(ρ2∘e2​).

Degree is oriented integer winding, with a positive full turn of degree +1+1+1. This makes Definition 33 independent of every admissible extension choice.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Gap50repair_P01
Formal statement
noncomputable section

open scoped BigOperators Matrix Matrix.Norms.Frobenius

namespace QAlgorithms.Papers.Independent.Gap50repair.P01

attribute [local instance] Classical.propDecidable

-- Pinned entrywise complexification and symplecticity. The latter uses -Omega0;
-- preserving -Omega0 is equivalent to preserving Omega0, with identical coordinates.

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

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

/-- Lemma 34 ([11,12]), PDF pp.35–36: all admissible extension choices
have the same oriented integer degree. -/
theorem classical_extension_degree_independence {n : ℕ} (hn : 1 ≤ n)
    (p e1 e2 : ℝ → GroupedRealMatrix n) (hp : IsAdmissible p 1)
    (he1 : IsExtension p e1) (he2 : IsExtension p e2) :
    winding (fun t => spectralRotation (e1 t)^2) 2 =
      winding (fun t => spectralRotation (e2 t)^2) 2 := by sorry

end QAlgorithms.Papers.Independent.Gap50repair.P01

end
Source
The Conley-Zehnder index for a path of symplectic matrices, arXiv:1201.3728v2, PDF p. 35, Lemma 34
Read-back

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

For every natural number n≥1n\ge1n≥1, let J=(0−InIn0)J=\begin{pmatrix}0&-I_n\\I_n&0\end{pmatrix}J=(0In​​−In​0​), call A∈R2n×2nA\in\mathbb R^{2n\times2n}A∈R2n×2n symplectic when ATJA=JA^{\mathsf T}JA=JATJA=J, and let p,e1,e2:R→R2n×2np,e_1,e_2:\mathbb R\to\mathbb R^{2n\times2n}p,e1​,e2​:R→R2n×2n. Assume that ppp is continuous and symplectic on [0,1][0,1][0,1], that p(0)=I2np(0)=I_{2n}p(0)=I2n​, and that det⁡(p(1)−I2n)≠0\det(p(1)-I_{2n})\ne0det(p(1)−I2n​)=0. Assume, for each a∈{1,2}a\in\{1,2\}a∈{1,2}, that eae_aea​ is continuous and symplectic on [0,2][0,2][0,2], agrees with ppp on [0,1][0,1][0,1], satisfies det⁡(ea(t)−I2n)≠0\det(e_a(t)-I_{2n})\ne0det(ea​(t)−I2n​)=0 for every t∈[1,2]t\in[1,2]t∈[1,2], and ends at either −I2n-I_{2n}−I2n​ or the diagonal matrix whose entries are 222 in coordinate x0x_0x0​, 1/21/21/2 in coordinate y0y_0y0​, and −1-1−1 in every other coordinate, where coordinates are written (x0,…,xn−1,y0,…,yn−1)(x_0,\ldots,x_{n-1},y_0,\ldots,y_{n-1})(x0​,…,xn−1​,y0​,…,yn−1​). Define the following scalar function ρ\rhoρ on real 2n×2n2n\times2n2n×2n matrices. Regard AAA entrywise as a complex matrix ACA_{\mathbb C}AC​; let E(A)E(A)E(A) be the set of distinct complex roots of its characteristic polynomial, let mA(z)m_A(z)mA​(z) be the multiplicity of zzz as a root of that polynomial, and let

VA(z)=ker⁡(AC−zI)2n,ωC(v,w)=∑j=0n−1(vxjwyj−vyjwxj).V_A(z)=\ker(A_{\mathbb C}-zI)^{2n},\qquad \omega_{\mathbb C}(v,w)=\sum_{j=0}^{n-1}(v_{x_j}w_{y_j}-v_{y_j}w_{x_j}).VA​(z)=ker(AC​−zI)2n,ωC​(v,w)=j=0∑n−1​(vxj​​wyj​​−vyj​​wxj​​).

Let κA(z)\kappa_A(z)κA​(z) be the largest integer k∈{0,…,4n}k\in\{0,\ldots,4n\}k∈{0,…,4n} for which there is a real linear subspace WWW of VA(z)V_A(z)VA​(z), viewed as a real vector space, with real dimension kkk and Im⁡ωC(v,v‾)>0\operatorname{Im}\omega_{\mathbb C}(v,\overline v)>0ImωC​(v,v)>0 for every nonzero v∈Wv\in Wv∈W; dimension zero is permitted. Set

ρ(A)=(−1)⌊12∑z∈E(A)Im⁡z=0, Re⁡z<0mA(z)⌋∏z∈E(A)∣z∣=1, z≠1, z≠−1z⌊κA(z)/2⌋,\rho(A)= (-1)^{\left\lfloor\frac12 \sum_{\substack{z\in E(A)\\ \operatorname{Im}z=0,\ \operatorname{Re}z<0}}m_A(z)\right\rfloor} \prod_{\substack{z\in E(A)\\ |z|=1,\ z\ne1,\ z\ne-1}} z^{\lfloor\kappa_A(z)/2\rfloor},ρ(A)=(−1)⌊21​∑z∈E(A)Imz=0, Rez<0​​mA​(z)⌋z∈E(A)∣z∣=1, z=1, z=−1​∏​z⌊κA​(z)/2⌋,

where an empty sum is zero and an empty product is one. For any f:R→Cf:\mathbb R\to\mathbb Cf:R→C, define W2(f)W_2(f)W2​(f) to be a classically chosen integer kkk for which there exists θ:R→R\theta:\mathbb R\to\mathbb Rθ:R→R, continuous on [0,2][0,2][0,2], with θ(0)=0\theta(0)=0θ(0)=0, θ(2)=k\theta(2)=kθ(2)=k, and f(t)=exp⁡(2πiθ(t))f(t)=\exp(2\pi i\theta(t))f(t)=exp(2πiθ(t)) throughout [0,2][0,2][0,2]; define W2(f)=0W_2(f)=0W2​(f)=0 if no such integer exists. Then

W2(t↦ρ(e1(t))2)=W2(t↦ρ(e2(t))2).W_2\bigl(t\mapsto\rho(e_1(t))^2\bigr) = W_2\bigl(t\mapsto\rho(e_2(t))^2\bigr).W2​(t↦ρ(e1​(t))2)=W2​(t↦ρ(e2​(t))2).
Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 22, 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