Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Pairing with the identity in the logarithmic-mean coordinates gives the weighted mean

Proved
OAI.BKM.vector_id_inner

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

hilbert-spacesoai-mathoperator-algebras

Let EEE be a complex Hilbert space with a Hilbert basis (bj)j∈J(b_j)_{j\in J}(bj​)j∈J​, and let p:J→(0,∞)p:J\to(0,\infty)p:J→(0,∞) be summable. Let L(x,y)L(x,y)L(x,y) denote the logarithmic mean (L(x,y)=y−xlog⁡y−log⁡xL(x,y)=\frac{y-x}{\log y-\log x}L(x,y)=logy−logxy−x​ for x≠yx\neq yx=y, L(x,x)=xL(x,x)=xL(x,x)=x). For a bounded operator ZZZ on EEE let v(Z)∈ℓ2(J×J)\mathrm v(Z)\in\ell^2(J\times J)v(Z)∈ℓ2(J×J) be its logarithmic-mean coordinate vector

v(Z)ij=L(pi,pj)  ⟨bi,Zbj⟩(i,j∈J),\mathrm v(Z)_{ij}=\sqrt{L(p_i,p_j)}\;\langle b_i,Zb_j\rangle\qquad(i,j\in J),v(Z)ij​=L(pi​,pj​)​⟨bi​,Zbj​⟩(i,j∈J),

which is square summable. Then

⟨v(Id), v(Z)⟩ℓ2(J×J)=∑j∈Jpj ⟨bj,Zbj⟩.\bigl\langle\mathrm v(\mathrm{Id}),\,\mathrm v(Z)\bigr\rangle_{\ell^2(J\times J)}=\sum_{j\in J}p_j\,\langle b_j,Zb_j\rangle .⟨v(Id),v(Z)⟩ℓ2(J×J)​=j∈J∑​pj​⟨bj​,Zbj​⟩.

Thus ∥v(Z)∥2=∑i,jL(pi,pj)∣⟨bi,Zbj⟩∣2\|\mathrm v(Z)\|^2=\sum_{i,j}L(p_i,p_j)|\langle b_i,Zb_j\rangle|^2∥v(Z)∥2=∑i,j​L(pi​,pj​)∣⟨bi​,Zbj​⟩∣2 is the Bogoliubov–Kubo–Mori quadratic form of ZZZ relative to ρ=∑jpj∣bj⟩⟨bj∣\rho=\sum_jp_j|b_j\rangle\langle b_j|ρ=∑j​pj​∣bj​⟩⟨bj​∣, and the identity says that the component of v(Z)\mathrm v(Z)v(Z) along v(Id)\mathrm v(\mathrm{Id})v(Id) is the mean Tr⁡ρZ\operatorname{Tr}\rho ZTrρZ. This is the basic step for decomposing the BKM form into a variance plus the squared mean.

Formalization Note The right side is the tsum BKM.mean b p Z; the inner product on ℓ2\ell^2ℓ2 is conjugate-linear in the first argument.

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.BKM
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 Topology
open ContinuousLinearMap
open scoped BigOperators ComplexConjugate
open DiagonalForms.System
variable {J E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]
Formal statement
theorem OAI.BKM.vector_id_inner (b : HilbertBasis J ℂ E) (p : J → ℝ) (hp : ∀j,0 < p j) (hs : Summable p)
    (Z : E →L[ℂ] E) :
    inner ℂ (vector b p hp hs (ContinuousLinearMap.id ℂ E)) (vector b p hp hs Z)=mean b p Z := by sorry
Source
https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/lean/OAI/InformationTheory/PhotonNumber/FiniteVariation.lean#L2526-L2544

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