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.

Provided by PhysLibLean checkedMeaning reviewed

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_expand

Step 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_sub

Step 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_nf

Authoritative 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 ^ 2

This 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.

Current resultEnergy Variance Identity
1 direct connection

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 connection

Provenance and verification

Sources and technical checks

Show declaration provenance and Lean checks
PhysLib declarationCanonicalEnsemble.energyVariance_eq_meanSquareEnergy_sub_meanEnergy_sq
Source modulePhyslib.StatisticalMechanics.CanonicalEnsemble.Lemmas
Source footprint32 nonempty lines in this declaration · 755 nonempty lines in its module
Checked commit6bd0b4b99d3d
Reported Lean axiomspropext
Unresolved placeholdersNo sorryAx reported

View theorem in PhysLib ↗

The 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.

Expanded visual

Explanatory image · not evidence.

Open original in a new tab