Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Spectral invariants of the second-moment matrix under linear Hamiltonian motion

Proved
UnQuantumMechanics.second_moment_spectrum_conserved

by Lucas · Oct 2, 2026 · Mathlib 0df444a (Lean v4.33.1)

hamiltonian-mechanicslinear-algebramathematical-physics

Let H=γ0AH = \gamma_0 AH=γ0​A be a Hamiltonian 2n×2n2n\times 2n2n×2n matrix (AAA symmetric), the driving matrix of linear Hamiltonian motion ψ˙=Hψ\dot\psi = H\psiψ˙​=Hψ. Let τ↦Σ(τ)\tau\mapsto\Sigma(\tau)τ↦Σ(τ) be a matrix of second moments: a real 2n×2n2n\times 2n2n×2n matrix-valued function, symmetric at every time, that is differentiable and obeys the second-moment equation (40)

Σ˙=HΣ+ΣHT.\dot\Sigma = H\Sigma + \Sigma H^T .Σ˙=HΣ+ΣHT.

Let S(τ)=Σ(τ)γ0TS(\tau) = \Sigma(\tau)\gamma_0^TS(τ)=Σ(τ)γ0T​ be the autocorrelation matrix. Then for every time τ\tauτ:

  1. the eigenvalues of SSS are constants of motion, in the strong form that the characteristic polynomial is conserved:
χS(τ)(x)=χS(0)(x);\chi_{S(\tau)}(x) = \chi_{S(0)}(x);χS(τ)​(x)=χS(0)​(x);
  1. all odd powers of S(τ)S(\tau)S(τ) are traceless: Tr⁡(S(τ)2k+1)=0\operatorname{Tr}\big(S(\tau)^{2k+1}\big) = 0Tr(S(τ)2k+1)=0 for every k∈Nk\in\mathbb Nk∈N.

This is the paper's conclusion (p. 17) that "the result of Hamiltonian evolution in time ... is a symplectic similarity transformation. And since similarity transformations do not change eigenvalues, the eigenvalues are COMs", together with Eq. (48).

Formalization Note Derivatives are entrywise. Σ\SigmaΣ is any symmetric matrix-valued solution of Eq. (40); its interpretation as an ensemble average ⟨ψψT⟩\langle\psi\psi^T\rangle⟨ψψT⟩ (and positive semidefiniteness, Σ=KKT\Sigma = KK^TΣ=KKT) is not assumed, because it is not needed. Conservation of the characteristic polynomial (with multiplicities) implies conservation of the whole spectrum and of all Tr⁡(Sk)\operatorname{Tr}(S^k)Tr(Sk).

Preamble
import Mathlib
import Definitions.Def_UnQM_phase_space

open Matrix
Formal statement
namespace UnQuantumMechanics

theorem second_moment_spectrum_conserved (n : ℕ) (H : Matrix (PhaseIdx n) (PhaseIdx n) ℝ) (hH : IsHamiltonianMatrix n H)
    (Sig : ℝ → Matrix (PhaseIdx n) (PhaseIdx n) ℝ)
    (hSig : ∀ τ i j, HasDerivAt (fun t => Sig t i j) ((H * Sig τ + Sig τ * Hᵀ) i j) τ)
    (hSym : ∀ t, (Sig t).IsSymm) (τ : ℝ) :
    (autocorr n (Sig τ)).charpoly = (autocorr n (Sig 0)).charpoly ∧
      ∀ k : ℕ, (autocorr n (Sig τ) ^ (2 * k + 1)).trace = 0 := by sorry

end UnQuantumMechanics
Source
C. Baumgarten, How to (Un-) Quantum Mechanics, arXiv:1810.06981v2 [physics.gen-ph] (v2 dated June 10, 2025), https://arxiv.org/abs/1810.06981, Sec. V–VI, pp. 15–17: Eqs. (40)–(42), (47), (48), (51) and the sentence after Eq. (51)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent that drafted the statements; non-blind

Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, at the explicit direction of the proposal owner. The author knew the intended meaning and the source text while writing it, so it must not be mistaken for a blind, independent audit. An independent blind read-back is still recommended before submission.

For every natural number nnn, every real 2n×2n2n\times2n2n×2n matrix HHH for which there is a symmetric real AAA with H=γ0AH=\gamma_0AH=γ0​A (γ0=1n⊗η0\gamma_0=\mathbf 1_n\otimes\eta_0γ0​=1n​⊗η0​), every function Σ:R→R2n×2n\Sigma:\mathbb R\to\mathbb R^{2n\times2n}Σ:R→R2n×2n such that

  • for every ttt and all indices i,ji,ji,j, the function s↦Σ(s)ijs\mapsto\Sigma(s)_{ij}s↦Σ(s)ij​ is differentiable at ttt with derivative (HΣ(t)+Σ(t)HT)ij\big(H\Sigma(t)+\Sigma(t)H^T\big)_{ij}(HΣ(t)+Σ(t)HT)ij​, and
  • Σ(t)\Sigma(t)Σ(t) is symmetric for every ttt,

and every real τ\tauτ, both of the following hold, where S(t)=Σ(t)γ0TS(t) = \Sigma(t)\gamma_0^TS(t)=Σ(t)γ0T​:

  1. the characteristic polynomial of S(τ)S(\tau)S(τ) (a real polynomial) equals the characteristic polynomial of S(0)S(0)S(0);
  2. for every natural number kkk (including 000), Tr⁡(S(τ)2k+1)=0\operatorname{Tr}\big(S(\tau)^{2k+1}\big)=0Tr(S(τ)2k+1)=0.

No positivity of Σ\SigmaΣ or of AAA is assumed; HHH is constant in time.

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

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 8, 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