Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2, unnumbered [Sal99, AD10]: components, ambient contraction, extensions

Open
QAlgorithms.Papers.Independent.Intake100.P25.classical_extensions_and_topology

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

prove2quantum

For n≥1n\ge1n≥1, put Sp∗={A∈Sp⁡(2n,Ω0):det⁡(A−I)≠0}Sp^*=\{A\in\operatorname{Sp}(2n,\Omega_0):\det(A-I)\ne0\}Sp∗={A∈Sp(2n,Ω0​):det(A−I)=0}. It has exactly two connected components, the nonempty sets P={det⁡(A−I)>0}P=\{\det(A-I)>0\}P={det(A−I)>0} and M={det⁡(A−I)<0}M=\{\det(A-I)<0\}M={det(A−I)<0} inside the symplectic group, containing W+=−IW^+=-IW+=−I and 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) respectively. Every loop in Sp∗Sp^*Sp∗ contracts with its basepoint fixed in the ambient symplectic group. Every continuous ψ∈SP(n)\psi\in SP(n)ψ∈SP(n) admits an extension ψ~:[0,2]→Sp⁡(2n,Ω0)\widetilde\psi:[0,2]\to\operatorname{Sp}(2n,\Omega_0)ψ​:[0,2]→Sp(2n,Ω0​) agreeing on [0,1][0,1][0,1], lying in Sp∗Sp^*Sp∗ on [1,2][1,2][1,2], and ending at W+W^+W+ or W−W^-W−. For any two such extensions,

deg⁡(ρ2∘ψ~1)=deg⁡(ρ2∘ψ~2).\deg(\rho^2\circ\widetilde\psi_1)=\deg(\rho^2\circ\widetilde\psi_2).deg(ρ2∘ψ​1​)=deg(ρ2∘ψ​2​).

Here ρ\rhoρ is Definition 5 spectral rotation. Each composite is continuous, circle-valued, and has value 111 at both endpoints. This gives the topology, existence and degree independence used in defining the classical index. The contracting homotopy may pass through matrices with eigenvalue 111.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P25
Formal statement
noncomputable section

open scoped BigOperators Matrix Matrix.Norms.Frobenius

namespace QAlgorithms.Papers.Independent.Intake100.P25

open QAlgorithms.Papers.Independent.Gap50repair.P01

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

attribute [local instance] Classical.propDecidable

/-- Section 2 [Sal99,AD10], PDF p.6: two components, ambient loop contraction,
extension existence, circle-loop property and degree independence, together. -/
theorem classical_extensions_and_topology {n : ℕ} (hn : 1 ≤ n) :
    let P : Set (GroupedRealMatrix n) := {A | IsSymplectic A ∧ 0 < (A-1).det}
    let M : Set (GroupedRealMatrix n) := {A | IsSymplectic A ∧ (A-1).det < 0}
    IsConnected P ∧ IsConnected M ∧ Disjoint P M ∧
    {A | IsSymplectic A ∧ (A-1).det ≠ 0} = P ∪ M ∧
    wPlus n ∈ P ∧ wMinus n ∈ M ∧
    (∀ S : Set (GroupedRealMatrix n), IsConnected S → S ⊆ P ∪ M → S ⊆ P ∨ S ⊆ M) ∧
    (∀ q : ℝ → GroupedRealMatrix n, IsPath q 1 → q 0 = q 1 →
      (∀ t ∈ Set.Icc (0 : ℝ) 1, (q t-1).det ≠ 0) →
      FixedHomotopic q (fun _ => q 0) 1) ∧
    (∀ p : ℝ → GroupedRealMatrix n, IsAdmissible p 1 →
      (∃ e, IsExtension p e) ∧
      (∀ e, IsExtension p e →
        ContinuousOn (fun t => spectralRotation (e t)^2) (Set.Icc (0 : ℝ) 2) ∧
        (∀ t ∈ Set.Icc (0 : ℝ) 2, ‖spectralRotation (e t)^2‖ = 1) ∧
        spectralRotation (e 0)^2 = 1 ∧ spectralRotation (e 2)^2 = 1) ∧
      (∀ e1 e2, IsExtension p e1 → 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.Intake100.P25

end
Source
Generalized Conley-Zehnder index, arXiv:1307.7239v1, PDF p. 6, §2, unnumbered [Sal99, AD10]
Read-back

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

For every natural number n≥1n\ge1n≥1, use grouped coordinates v=(vx,vy)∈R2nv=(v_x,v_y)\in\mathbb R^{2n}v=(vx​,vy​)∈R2n, put Jn=(0−InIn0)J_n=\begin{pmatrix}0&-I_n\\ I_n&0\end{pmatrix}Jn​=(0In​​−In​0​), and call a real 2n×2n2n\times2n2n×2n matrix AAA symplectic when ATJnA=JnA^{\mathsf T}J_nA=J_nATJn​A=Jn​. Define

P={A:ATJnA=Jn, det⁡(A−I)>0},M={A:ATJnA=Jn, det⁡(A−I)<0}.P=\{A:A^{\mathsf T}J_nA=J_n,\ \det(A-I)>0\},\qquad M=\{A:A^{\mathsf T}J_nA=J_n,\ \det(A-I)<0\}.P={A:ATJn​A=Jn​, det(A−I)>0},M={A:ATJn​A=Jn​, det(A−I)<0}.

Both PPP and MMM are nonempty connected sets in the usual matrix topology, they are disjoint, and their union is exactly the set of symplectic AAA with det⁡(A−I)≠0\det(A-I)\ne0det(A−I)=0. The matrix −I2n-I_{2n}−I2n​ belongs to PPP, and the diagonal matrix W−W_-W−​ whose first xxx-entry is 222, whose first yyy-entry is 1/21/21/2, and whose remaining diagonal entries are −1-1−1, belongs to MMM. Every connected set SSS of real 2n×2n2n\times2n2n×2n matrices contained in P∪MP\cup MP∪M is contained entirely in PPP or entirely in MMM. Moreover, for every function q:R→M2n(R)q:\mathbb R\to M_{2n}(\mathbb R)q:R→M2n​(R) continuous and symplectic on [0,1][0,1][0,1], if q(0)=q(1)q(0)=q(1)q(0)=q(1) and det⁡(q(t)−I)≠0\det(q(t)-I)\ne0det(q(t)−I)=0 for every t∈[0,1]t\in[0,1]t∈[0,1], there exists a function H:R2→M2n(R)H:\mathbb R^2\to M_{2n}(\mathbb R)H:R2→M2n​(R), continuous on [0,1]2[0,1]^2[0,1]2, such that every H(s,t)H(s,t)H(s,t) on that square is symplectic and

H(0,t)=q(t),H(1,t)=q(0),H(s,0)=q(0),H(s,1)=q(1)(0≤s,t≤1).H(0,t)=q(t),\quad H(1,t)=q(0),\quad H(s,0)=q(0),\quad H(s,1)=q(1) \qquad(0\le s,t\le1).H(0,t)=q(t),H(1,t)=q(0),H(s,0)=q(0),H(s,1)=q(1)(0≤s,t≤1).

The matrices of this homotopy are required to be symplectic, but are not required to satisfy det⁡(H(s,t)−I)≠0\det(H(s,t)-I)\ne0det(H(s,t)−I)=0. Finally, consider any function p:R→M2n(R)p:\mathbb R\to M_{2n}(\mathbb R)p:R→M2n​(R) continuous and symplectic on [0,1][0,1][0,1], with p(0)=Ip(0)=Ip(0)=I and det⁡(p(1)−I)≠0\det(p(1)-I)\ne0det(p(1)−I)=0. Call a function e:R→M2n(R)e:\mathbb R\to M_{2n}(\mathbb R)e:R→M2n​(R) an extension here when it is continuous and symplectic on [0,2][0,2][0,2], agrees with ppp on [0,1][0,1][0,1], satisfies det⁡(e(t)−I)≠0\det(e(t)-I)\ne0det(e(t)−I)=0 for every t∈[1,2]t\in[1,2]t∈[1,2], and has e(2)=−I2ne(2)=-I_{2n}e(2)=−I2n​ or e(2)=W−e(2)=W_-e(2)=W−​. At least one such extension exists. To state the remaining conclusions explicitly, for any real matrix AAA, let ACA_{\mathbb C}AC​ be the same matrix with complex entries, let E(A)E(A)E(A) be the finite set of distinct complex roots of its characteristic polynomial, let mA(z)m_A(z)mA​(z) be the root multiplicity of zzz in that polynomial, and put GA(z)=ker⁡((AC−zI)2n)G_A(z)=\ker((A_{\mathbb C}-zI)^{2n})GA​(z)=ker((AC​−zI)2n). For complex vectors define Ω(v,w)=∑j=0n−1(vx,jwy,j−vy,jwx,j)\Omega(v,w)=\sum_{j=0}^{n-1}(v_{x,j}w_{y,j}-v_{y,j}w_{x,j})Ω(v,w)=∑j=0n−1​(vx,j​wy,j​−vy,j​wx,j​). 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 the underlying real vector space of GA(z)G_A(z)GA​(z), of real dimension kkk, with Im⁡Ω(v,v‾)>0\operatorname{Im}\Omega(v,\overline v)>0ImΩ(v,v)>0 for every nonzero v∈Wv\in Wv∈W; the zero subspace is allowed. Define

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

where both divisions are natural-number division, empty sums are zero, and empty products are one. For every extension eee just described, t↦ρ(e(t))2t\mapsto\rho(e(t))^2t↦ρ(e(t))2 is continuous on [0,2][0,2][0,2], has absolute value one throughout that interval, and satisfies ρ(e(0))2=ρ(e(2))2=1\rho(e(0))^2=\rho(e(2))^2=1ρ(e(0))2=ρ(e(2))2=1. Define wind⁡(f,T)\operatorname{wind}(f,T)wind(f,T) for a function f:R→Cf:\mathbb R\to\mathbb Cf:R→C to be a fixed classically chosen integer kkk for which there exists θ:R→R\theta:\mathbb R\to\mathbb Rθ:R→R, continuous on [0,T][0,T][0,T], with θ(0)=0\theta(0)=0θ(0)=0, θ(T)=k\theta(T)=kθ(T)=k, and f(t)=exp⁡(2πiθ(t))f(t)=\exp(2\pi i\theta(t))f(t)=exp(2πiθ(t)) for every t∈[0,T]t\in[0,T]t∈[0,T]; if no such integer exists, define it to be zero. Then every pair of extensions e1,e2e_1,e_2e1​,e2​ of this same ppp satisfies

wind⁡(t↦ρ(e1(t))2,2)=wind⁡(t↦ρ(e2(t))2,2).\operatorname{wind}\bigl(t\mapsto\rho(e_1(t))^2,2\bigr) = \operatorname{wind}\bigl(t\mapsto\rho(e_2(t))^2,2\bigr).wind(t↦ρ(e1​(t))2,2)=wind(t↦ρ(e2​(t))2,2).
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