Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Basis trace of ZρZ\rhoZρ for a density operator given by a vector ensemble

Proved
OAI.TraceEnsemble.hasSum_expectation_basis

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

functional-analysishilbert-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 (vi)i∈I(v_i)_{i\in I}(vi​)i∈I​ be a family in EEE with ∑i∥vi∥2<∞\sum_i\|v_i\|^2<\infty∑i​∥vi​∥2<∞. Put ρv=∑i∣vi⟩⟨vi∣\rho_v=\sum_i|v_i\rangle\langle v_i|ρv​=∑i​∣vi​⟩⟨vi​∣, a positive trace-class operator. Then for every bounded operator ZZZ on EEE the series below converges unconditionally and

∑j∈J⟨bj,  Zρv bj⟩=∑i∈I⟨vi, Zvi⟩.\sum_{j\in J}\bigl\langle b_j,\;Z\rho_v\,b_j\bigr\rangle=\sum_{i\in I}\langle v_i,\,Zv_i\rangle .j∈J∑​⟨bj​,Zρv​bj​⟩=i∈I∑​⟨vi​,Zvi​⟩.

In words, the trace of ZρvZ\rho_vZρv​ computed in an arbitrary orthonormal basis equals the ensemble expectation of ZZZ. This is what allows expectations Tr⁡ρZ\operatorname{Tr}\rho ZTrρZ to be evaluated in whichever basis is convenient, e.g. the eigenbasis of a reference state.

Formalization Note The left side is stated as HasSum over JJJ with value expectation v Z =∑i⟨vi,Zvi⟩=\sum_i\langle v_i,Zv_i\rangle=∑i​⟨vi​,Zvi​⟩ (a tsum); ρv\rho_vρv​ is operator v.

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.TraceEnsemble
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
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]
variable {I J : Type*}
Formal statement
theorem OAI.TraceEnsemble.hasSum_expectation_basis (b : HilbertBasis J ℂ E) {v : I → E}
    (hv : Summable (fun i => ‖v i‖^2)) (Z : E →L[ℂ] E) :
    HasSum (fun j => inner ℂ (b j) (Z (operator v (b j)))) (expectation v Z) := by sorry
Source
https://github.com/openai/math/blob/1581d4cbdd69a0faf34b2089614fe2a814316a6a/lean/OAI/InformationTheory/PhotonNumber/FiniteVariation.lean#L341-L358

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