Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 12 — real sign counts and total signature

Open
QAlgorithms.Papers.Independent.Intake100.P39.real_sign_counts_and_total_signature

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.

For a positive integer rrr, let J(λ,r)J(\lambda,r)J(λ,r) have diagonal λ\lambdaλ, superdiagonal 111, and other entries zero. Put D(r,s)=diag⁡(0,…,0,s)D(r,s)=\operatorname{diag}(0,\ldots,0,s)D(r,s)=diag(0,…,0,s) and

B(λ,r,s)=(J(λ,r)−1J(λ,r)−1D(r,s)0J(λ,r)T).B(\lambda,r,s)=\begin{pmatrix}J(\lambda,r)^{-1}&J(\lambda,r)^{-1}D(r,s)\\0&J(\lambda,r)^T\end{pmatrix}.B(λ,r,s)=(J(λ,r)−10​J(λ,r)−1D(r,s)J(λ,r)T​).

The symbol ⋄\diamond⋄ denotes the symplectic direct sum: concatenate all first-half basis vectors before all second-half basis vectors. For a∈{1,−1}a\in\{1,-1\}a∈{1,−1} and k≥1k\ge1k≥1, define the real symmetric kernel form on ker⁡(A−aI)2k\ker(A-aI)^{2k}ker(A−aI)2k by

Q2ka(v,w)=a Ω((A−aI)kv,(A−aI)k−1w).Q^a_{2k}(v,w)=a\,\Omega((A-aI)^k v,(A-aI)^{k-1}w).Q2ka​(v,w)=aΩ((A−aI)kv,(A−aI)k−1w).

Its positive and negative indices count positive and negative eigenvalues, excluding zeros; its rank is their sum and its signature is their difference. Consider any valid signed real normal decomposition ⋄jB(a,rj,sj)\diamond_j B(a,r_j,s_j)⋄j​B(a,rj​,sj​) on V[a]V_{[a]}V[a]​, a=±1a=\pm1a=±1. For every k≥1k\ge1k≥1,

n+(Q2ka)=#{j:rj=k,sj=1},n−(Q2ka)=#{j:rj=k,sj=−1}.n_+(Q^a_{2k})=\#\{j:r_j=k,s_j=1\},\qquad n_-(Q^a_{2k})=\#\{j:r_j=k,s_j=-1\}.n+​(Q2ka​)=#{j:rj​=k,sj​=1},n−​(Q2ka​)=#{j:rj​=k,sj​=−1}.

Moreover, with the source's ambient dimension bound,

∑jsj=∑k=1dim⁡VSignature⁡(Q2ka).\sum_j s_j=\sum_{k=1}^{\dim V}\operatorname{Signature}(Q^a_{2k}).j∑​sj​=k=1∑dimV​Signature(Q2ka​).

Here n+n_+n+​ and n−n_-n−​ denote the positive and negative indices. The forms may have zero eigenvalues.

This recovers both sign multiplicities and the finite total signature formula (22).

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.17–18, Proposition 12: BOTH inertia counts and the finite total
signature identity (22), whose upper bound is the ambient dim V=2n. -/
theorem real_sign_counts_and_total_signature {n L : ℕ} (A : GroupedRealMatrix n)
    (hA : IsSymplectic A) (a : ℝ) (ha : a = 1 ∨ a = -1)
    (r : Fin L → ℕ) (s : Fin L → ℤ) (hNF : RealNormal A a r s) :
    RealSignCounts A a r s ∧
      (∑ j, s j) = ∑ k ∈ Finset.Icc 1 (2 * n), (rankSignature (realInertia A a k)).2 := by sorry

end QAlgorithms.Papers.Independent.Intake100.P39

end
Source
Normal Forms for Symplectic Matrices, arXiv:1307.2403v2, PDF p. 17, Proposition 12 — real sign counts and total signature
Read-back

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

For every pair of nonnegative integers n,Ln,Ln,L, 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​), real number a∈{1,−1}a\in\{1,-1\}a∈{1,−1}, and lists r1,…,rLr_1,\ldots,r_Lr1​,…,rL​ of natural numbers and s1,…,sLs_1,\ldots,s_Ls1​,…,sL​ of integers, suppose that every rj>0r_j>0rj​>0, every sj∈{0,1,−1}s_j\in\{0,1,-1\}sj​∈{0,1,−1}, and sj=0s_j=0sj​=0 implies rjr_jrj​ is odd. Suppose also that W=ker⁡R(A−aI)2nW=\ker_{\mathbb R}(A-aI)^{2n}W=kerR​(A−aI)2n has a basis ej,α,fj,αe_{j,\alpha},f_{j,\alpha}ej,α​,fj,α​, 1≤α≤rj1\le\alpha\le r_j1≤α≤rj​, with canonical pairings under ωR(x,y)=∑ℓ=1n(xℓyn+ℓ−xn+ℓyℓ)\omega_{\mathbb R}(x,y)=\sum_{\ell=1}^n(x_\ell y_{n+\ell}-x_{n+\ell}y_\ell)ωR​(x,y)=∑ℓ=1n​(xℓ​yn+ℓ​−xn+ℓ​yℓ​): pairings between two eee's or two fff's are zero, and ωR(ej,α,fh,β)=δjhδαβ\omega_{\mathbb R}(e_{j,\alpha},f_{h,\beta})=\delta_{jh}\delta_{\alpha\beta}ωR​(ej,α​,fh,β​)=δjh​δαβ​. In this basis assume that AAA acts separately on each jjj-block with matrix (Jrj(a)−1Jrj(a)−1Drj(sj)0Jrj(a)T)\begin{pmatrix}J_{r_j}(a)^{-1}&J_{r_j}(a)^{-1}D_{r_j}(s_j)\\0&J_{r_j}(a)^{\mathsf T}\end{pmatrix}(Jrj​​(a)−10​Jrj​​(a)−1Drj​​(sj​)Jrj​​(a)T​), where Jr(a)J_r(a)Jr​(a) has diagonal aaa, superdiagonal 111, and zeros elsewhere, and Dr(s)D_r(s)Dr​(s) has only its last diagonal entry equal to sss. For every integer k≥1k\ge1k≥1, put N=A−aIN=A-aIN=A−aI, Wk=ker⁡RN2kW_k=\ker_{\mathbb R}N^{2k}Wk​=kerR​N2k, and qk(x)=a ωR(Nkx,Nk−1x)q_k(x)=a\,\omega_{\mathbb R}(N^kx,N^{k-1}x)qk​(x)=aωR​(Nkx,Nk−1x). Let pkp_kpk​ be the largest real dimension of a linear subspace of WkW_kWk​ on whose nonzero vectors qkq_kqk​ is strictly positive, and let mkm_kmk​ be the corresponding largest dimension for strict negativity. Then

pk=#{j:rj=k, sj=1},mk=#{j:rj=k, sj=−1}(k≥1),∑j=1Lsj=∑k=12n(pk−mk),p_k=\#\{j:r_j=k,\ s_j=1\},\qquad m_k=\#\{j:r_j=k,\ s_j=-1\} \quad(k\ge1), \qquad \sum_{j=1}^L s_j=\sum_{k=1}^{2n}(p_k-m_k),pk​=#{j:rj​=k, sj​=1},mk​=#{j:rj​=k, sj​=−1}(k≥1),j=1∑L​sj​=k=1∑2n​(pk​−mk​),

where each difference on the right is taken in the integers. The zero subspace is allowed in the definitions of pk,mkp_k,m_kpk​,mk​, so either index may be zero. Empty block lists and empty sums are included; in particular, when n=0n=0n=0, the assumed basis forces L=0L=0L=0, and the total-signature equality is 0=00=00=0. No eigenvalue hypothesis on aaa is imposed.

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