Finite Canonical Ensemble #
This file specializes the general measure-theoretic framework of the canonical ensemble to systems with a finite number of discrete microstates. This is a common and important case in statistical mechanics to study models like spin systems (e.g., the Ising model) and other systems with a discrete quantum state space.
Main Definitions and Results #
The specialization is achieved through the IsFinite class, which asserts that:
- The type of microstates
ιis aFintype. - The measure
μonιis the standard counting measure. - The number of degrees of freedom
dofis 0. - The
phaseSpaceunitis 1.
These assumptions correspond to systems where the state space is fundamentally discrete, and no semi-classical approximation from a continuous phase space is needed. Consequently, the dimensionless physical quantities are directly equivalent to their mathematical counterparts.
The main results proved in this file are:
- The abstract integral definitions for thermodynamic quantities (partition function, mean energy)
are shown to reduce to the familiar finite sums found in introductory texts. For example, the
partition function becomes
Z = ∑ᵢ exp(-β Eᵢ). - The abstract
thermodynamicEntropy, defined generally for measure-theoretic systems, is proven to be equal to the standardshannonEntropy(S = -k_B ∑ᵢ pᵢ log pᵢ). The semi-classical correction terms from the general theory vanish under theIsFiniteassumptions. - The fluctuation-dissipation theorem in the form
C_V = Var(E) / (k_B T²), which connects the heat capacityC_Vto the variance of energy fluctuations, is formally proven for these systems.
This file also confirms that the IsFinite property is preserved under the composition of
systems (addition, nsmul, and congr).
References #
- L. D. Landau & E. M. Lifshitz, Statistical Physics, Part 1, §31.
- D. Tong, Lectures on Statistical Physics, §1.3.
A finite CanonicalEnsemble is one whose microstates form a finite type
and whose measure is the counting measure. For such systems, the state space is
inherently discrete and dimensionless, so we require dof = 0 and
phaseSpaceUnit = 1.
Instances
In the finite (counting) case a nonempty index type gives a nonzero measure.
The Shannon entropy of a finite canonical ensemble.
This is defined by the formula S = -k_B ∑ pᵢ log pᵢ. It is proven to be
equivalent to the differentialEntropy and the thermodynamicEntropy for systems
satisfying the IsFinite property.
Equations
- 𝓒.shannonEntropy T = -Constants.kB * ∑ i : ι, 𝓒.probability T i * Real.log (𝓒.probability T i)
Instances For
Finite specialization: strict positivity of the mathematical partition function.
Finite specialization: strict positivity of the (physical) partition function.
Finite specialization: non-negativity (indeed positivity) of probabilities.
The sum of probabilities over all microstates is 1.
The entropy of a finite canonical ensemble (Shannon entropy) is non-negative.
In the finite, nonempty case the thermodynamic and Shannon entropies coincide.
All semi-classical correction factors vanish (dof = 0, phaseSpaceUnit = 1),
so the absolute thermodynamic entropy reduces to the discrete Shannon form.
Fluctuations in Finite Systems #
β-parameterization for finite systems #
The finite-sum partition function as a real function of the inverse temperature b = β,
defined by Z(b) = ∑ i exp (-b * 𝓒.energy i).
Instances For
For inverse temperature b = β, the (real-valued) Boltzmann probability of microstate i,
given by exp (-b * E i) / Z(b) where Z(b) = ∑ i exp (-b * E i).
Equations
- 𝓒.probabilityBetaReal b i = Real.exp (-b * 𝓒.energy i) / 𝓒.mathematicalPartitionFunctionBetaReal b
Instances For
The mean energy as a function of inverse temperature b = β in the finite case,
defined by U(b) = ∑ i, E i * p_b i with p_b i = exp (-b * E i) / Z(b) and Z(b) = ∑ i, exp (-b * E i).
Equations
- 𝓒.meanEnergyBetaReal b = ∑ i : ι, 𝓒.energy i * 𝓒.probabilityBetaReal b i
Instances For
Derivatives of Z and numerator
The numerator in the finite-sum expression of the mean energy as a function of the
inverse temperature b = β,
namely ∑ i, E i * exp (-b * E i) (so that U(b) = meanEnergyNumerator b / Z(b)).
Instances For
Quotient rule: dU/db = U^2 - ⟨E^2⟩_β
(∂U/∂β) = -Var(E) for finite systems.
FDT for finite canonical ensembles: C_V = Var(E) / (k_B T²).