Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Second-order expansion of a log-partition function in a Banach algebra with a trace

Proved
OAI.QuantumCalculus.log_partition_expansion

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

analysisoai-mathoperator-algebrasreal-analysis

Let AAA be a real Banach algebra (a complete normed ring that is a normed R\mathbb{R}R-algebra) and let τ:A→R\tau:A\to\mathbb{R}τ:A→R be a continuous R\mathbb{R}R-linear functional with the trace property τ(xy)=τ(yx)\tau(xy)=\tau(yx)τ(xy)=τ(yx) for all x,y∈Ax,y\in Ax,y∈A. Let a,z∈Aa,z\in Aa,z∈A and c∈Rc\in\mathbb{R}c∈R satisfy the normalization

c+τ(ea)=1.c+\tau(e^{a})=1 .c+τ(ea)=1.

Then, as t→0t\to0t→0,

log⁡(c+τ(ea+tz))−τ(eaz) t−12(τ[(∫01e(1−s)a z esa ds)z]−τ(eaz)2)t2=o(t2).\log\bigl(c+\tau(e^{a+tz})\bigr)-\tau(e^{a}z)\,t-\frac{1}{2}\Bigl(\tau\Bigl[\Bigl(\int_0^1e^{(1-s)a}\,z\,e^{sa}\,ds\Bigr)z\Bigr]-\tau(e^{a}z)^2\Bigr)t^2=o(t^2).log(c+τ(ea+tz))−τ(eaz)t−21​(τ[(∫01​e(1−s)azesads)z]−τ(eaz)2)t2=o(t2).

This is the second-order Taylor expansion of the (shifted) log-partition function t↦log⁡(c+τ(ea+tz))t\mapsto\log(c+\tau(e^{a+tz}))t↦log(c+τ(ea+tz)): the first derivative is the mean τ(eaz)\tau(e^az)τ(eaz) and the second derivative is the Duhamel (Kubo–Mori) second moment minus the squared mean, i.e. a variance. The constant ccc allows part of the normalization to come from a component of the state that is not perturbed.

Formalization Note o(t2)o(t^2)o(t2) is Mathlib's little-o (=o[𝓝 0]); exe^{x}ex is NormedSpace.exp and the integral is a Bochner interval integral in AAA. A local instance regards AAA as a normed Q\mathbb{Q}Q-algebra, needed for the exponential.

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.QuantumCalculus
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
open scoped Matrix.Norms.Operator
open scoped Topology
open MeasureTheory NormedSpace
open Filter Asymptotics
variable {A : Type*} [NormedRing A] [NormedAlgebra ℝ A] [CompleteSpace A]
attribute [local instance] OAI.QuantumCalculus.instNormedAlgebraRat_oAI_2
Formal statement
theorem OAI.QuantumCalculus.log_partition_expansion (τ : A →L[ℝ] ℝ)
    (hτ : ∀ x y, τ (x*y) = τ (y*x)) (a z : A) (c : ℝ)
    (hn : c+τ (exp a) = 1) :
    (fun t : ℝ => Real.log (c+τ (exp (a+t • z))) -
      τ (exp a*z)*t -
      (τ ((∫ s in (0:ℝ)..1, exp ((1-s) • a)*z*exp (s • a))*z) -
        (τ (exp a*z))^2)/2*t^2) =o[𝓝 (0:ℝ)] (fun t => t^2) := by sorry
Source
https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/lean/OAI/InformationTheory/PhotonNumber/FiniteVariation.lean#L1099-L1123

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