Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Spectral formula for the exponential of a Hermitian matrix

Proved
OAI.FiniteBlock.exp_spectral

by Shuze Chen · Oct 16, 2026 · Mathlib 0df444a (Lean v4.33.1)

linear-algebramatrix-analysisoai-math

Let III be a finite index set and let M∈CI×IM\in\mathbb{C}^{I\times I}M∈CI×I be a Hermitian matrix. Let UUU be the unitary matrix whose columns are the orthonormal eigenvectors of MMM chosen by the spectral theorem, and let λi∈R\lambda_i\in\mathbb{R}λi​∈R be the corresponding eigenvalues, so that M=Udiag⁡(λi)U∗M=U\operatorname{diag}(\lambda_i)U^*M=Udiag(λi​)U∗. Then the matrix exponential satisfies

exp⁡M=U diag⁡(eλi)i∈I U∗.\exp M=U\,\operatorname{diag}\bigl(e^{\lambda_i}\bigr)_{i\in I}\,U^* .expM=Udiag(eλi​)i∈I​U∗.

This explicit diagonalization of eMe^{M}eM is used to describe finite-dimensional Gibbs-type perturbations ρ∝eM\rho\propto e^{M}ρ∝eM of a state on a finite block, whose eigenvalues are eλie^{\lambda_i}eλi​ in the eigenbasis of MMM.

Formalization Note UUU is hM.eigenvectorUnitary and λi\lambda_iλi​ is hM.eigenvalues i from Mathlib's spectral theorem for Hermitian matrices; exp⁡\expexp is NormedSpace.exp in the matrix algebra.

Preamble
import Mathlib
import Definitions.Def_EntropyPhotonNumber
import Definitions.Def_OAI_MathematicalPhysics_Fock_Beam
import Definitions.Def_OAI_Analysis_QuantumTrace_Basic
import Definitions.Def_OAI_MathematicalPhysics_Fock_Operators
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Gibbs
import Definitions.Def_OAI_Analysis_TensorLp
import Definitions.Def_OAI_InformationTheory_PhotonNumber_BeamTrace
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Functions
import Definitions.Def_OAI_Analysis_DiagonalForms
import Definitions.Def_OAI_InformationTheory_PhotonNumber_ThermalMetric
import Definitions.Def_OAI_InformationTheory_PhotonNumber_BeamForms
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Generator
import Definitions.Def_OAI_InformationTheory_PhotonNumber_SpectralLog
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Continuity
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Entropy
import Definitions.Def_OAI_InformationTheory_PhotonNumber_GibbsVariational
import Definitions.Def_OAI_Analysis_Herglotz
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Interpolation
import Definitions.Def_OAI_InformationTheory_PhotonNumber_SpectralForms
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Contraction
import Definitions.Def_OAI_InformationTheory_PhotonNumber_FiniteVariation

open OAI OAI.FiniteBlock
open scoped ComplexConjugate
open scoped BigOperators ComplexConjugate
open scoped BigOperators ComplexConjugate ENNReal Topology
open MeasureTheory
open scoped BigOperators
open MvPolynomial
open scoped BigOperators ComplexConjugate Classical
open Submodule
open scoped ENNReal
open Module
open scoped ComplexConjugate BigOperators Matrix
open NormedSpace Matrix
open scoped Matrix.Norms.Operator
variable {I : Type*} [Fintype I] [DecidableEq I]
Formal statement
theorem OAI.FiniteBlock.exp_spectral (M : Matrix I I ℂ) (hM : M.IsHermitian) :
    exp M = (hM.eigenvectorUnitary : Matrix I I ℂ) *
      Matrix.diagonal (fun i => (Real.exp (hM.eigenvalues i) : ℂ)) *
      star (hM.eigenvectorUnitary : Matrix I I ℂ) := by sorry
Source
https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/lean/OAI/InformationTheory/PhotonNumber/FiniteVariation.lean#L143-L159

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me