Statistical mechanics · PhysLib theorem

Mean Energy as the Negative Beta Derivative of log Z

Under the theorem's positive-temperature, finiteness, nonzero-measure, and derivative hypotheses, canonical mean energy equals the negative within-derivative of the physical log partition function with respect to beta.

Provided by PhysLibLean checkedMeaning reviewed

What it says

What the theorem says

The proof starts from PhysLib's derivative theorem for the mathematical partition function. It then invokes the result that the physical and mathematical partition functions differ by a beta-independent factor, so their logarithms have the same derivative, and transports the negative-slope identity to the physical Z.

Context

Why it matters

The logarithmic partition function is the generating object for equilibrium thermodynamics; recovering mean energy from its beta slope connects the ensemble definition to practical calculations.

Inside the proof

Proof architecture

The proof starts from PhysLib's derivative theorem for the mathematical partition function. It then invokes the result that the physical and mathematical partition functions differ by a beta-independent factor, so their logarithms have the same derivative, and transports the negative-slope identity to the physical Z.

Step 1

Use the mathematical log-partition theorem

The supplied derivative-under-the-integral hypothesis feeds the existing theorem for the mathematical partition function, producing mean energy as its negative logarithmic derivative.

U=-∂β log Z_math

Show the Lean ingredients
meanEnergy_eq_neg_deriv_log_mathZ_of_betah_deriv

Step 2

Match physical and mathematical derivatives

Finiteness for every positive beta shows that the physical normalization contributes only a constant shift to log Z and therefore no change of slope.

∂β log Z_phys=∂β log Z_math

Show the Lean ingredients
derivWithin_log_phys_eq_derivWithin_log_mathh_fin

Step 3

Transport the energy identity

Rewriting the mathematical derivative by the equality of slopes yields the exact physical-partition formula with its minus sign.

U=-∂β log Z_phys

Show the Lean ingredients
rw [h_dw]exact h_math

Authoritative formal type

Exact PhysLib statement

CanonicalEnsemble.meanEnergy_eq_neg_deriv_log_Z_of_beta {ι : Type} [MeasurableSpace ι] (𝓒 : CanonicalEnsemble ι) (T : Temperature) (hT_pos : 0 < T.val) [MeasureTheory.IsFiniteMeasure (𝓒.μBolt T)] [NeZero 𝓒.μ] (h_fin : ∀ β > 0, MeasureTheory.IsFiniteMeasure (𝓒.μBolt (Temperature.ofβ β.toNNReal))) (h_deriv : HasDerivWithinAt (fun β => ∫ (i : ι), Real.exp (-β * 𝓒.energy i) ∂𝓒.μ) (-∫ (i : ι), 𝓒.energy i * Real.exp (-↑T.β * 𝓒.energy i) ∂𝓒.μ) (Set.Ioi 0) ↑T.β) : 𝓒.meanEnergy T = -derivWithin (fun β => Real.log (𝓒.partitionFunction (Temperature.ofβ β.toNNReal))) (Set.Ioi 0) ↑T.β

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 resultMean Energy as the Negative Beta Derivative of log Z
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.meanEnergy_eq_neg_deriv_log_Z_of_beta
Source modulePhyslib.StatisticalMechanics.CanonicalEnsemble.Lemmas
Source footprint21 nonempty lines in this declaration · 755 nonempty lines in its module
Checked commit6bd0b4b99d3d
Reported Lean axiomsClassical.choice, Quot.sound, propext
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