Statistical mechanics · PhysLib theorem
Energy Variance Identity
For the canonical product measure under the stated probability-measure and first- and second-moment integrability assumptions, energy variance equals mean-square energy minus the square of mean energy.
What it says
What the theorem says
PhysLib names the mean U, expands each centered square into three terms, and uses the two integrability hypotheses to split their integrals. Probability normalization turns the constant integral into U², while the cross term contributes 2U², leaving the second moment minus U².
Context
Why it matters
The decomposition Var(E)=⟨E²⟩-⟨E⟩² is the moment identity underlying canonical energy fluctuations and later heat-capacity relations.
Inside the proof
Proof architecture
PhysLib names the mean U, expands each centered square into three terms, and uses the two integrability hypotheses to split their integrals. Probability normalization turns the constant integral into U², while the cross term contributes 2U², leaving the second moment minus U².
Step 1
Expand the centered square
Setting U to the ensemble mean turns the definition of variance into the pointwise polynomial expansion of (E-U)².
(E-U)²=E²-2UE+U²
Show the Lean ingredients
set Uhave h_expandStep 2
Distribute the integral
Integrability of E and E² justifies separating the three terms and pulling the scalar 2U through the integral.
∫(E²-2UE+U²)
Show the Lean ingredients
integral_addintegral_subStep 3
Use probability normalization
The product measure has total mass one, so the constant and cross contributions combine exactly to subtract U².
Var(E)=⟨E²⟩-U²
Show the Lean ingredients
hμProbhμRealring_nfAuthoritative formal type
Exact PhysLib statement
CanonicalEnsemble.energyVariance_eq_meanSquareEnergy_sub_meanEnergy_sq {ι : Type} [MeasurableSpace ι] (𝓒 : CanonicalEnsemble ι) (T : Temperature) [MeasureTheory.IsProbabilityMeasure (𝓒.μProd T)] (hE_int : MeasureTheory.Integrable 𝓒.energy (𝓒.μProd T)) (hE2_int : MeasureTheory.Integrable (fun i => 𝓒.energy i ^ 2) (𝓒.μProd T)) : 𝓒.energyVariance T = 𝓒.meanSquareEnergy T - 𝓒.meanEnergy T ^ 2This is the theorem's exact Lean type. The diagrams and commentary are explanatory; the pinned statement and source are authoritative.
Recorded connections
How this result fits
A one-step view of the published results directly connected to this page.
1 direct connection
- Related resultHeat Capacity from Energy Fluctuationsis related toEnergy Variance Identity
Only recorded public relationships are shown. A shared topic does not imply a dependency, and this is not a complete Lean proof-term dependency graph.
Open this result in the full theorem map1 direct connectionProvenance and verification
Sources and technical checks
Show declaration provenance and Lean checks
CanonicalEnsemble.energyVariance_eq_meanSquareEnergy_sub_meanEnergy_sqPhyslib.StatisticalMechanics.CanonicalEnsemble.Lemmas6bd0b4b99d3dsorryAx reportedThe declaration footprint describes source layout, not proof difficulty or the size of its dependencies. The pinned checks verify the cited Lean theorem; semantic review remains a separate PhysAtlas judgment.



