The Hamiltonian for a microcanonical ensemble, parameterized by any extrinsic parameters of data D. Since it's an arbitrary type, 'T' would be nice, but we use 'D' for data to avoid confusion with temperature. We define Hamiltonians as an energy function on a real manifold, whose dimension n possibly depends on the data D. Energy is a WithTop ℝ, ⊤ is used to mean "excluded as a possibility in phase space". This formalization does exclude the possibility of discrete degrees of freedom; it is not completely general. A better formalization could have an arbitrary measurable space.
- dim : D → Type
Instances For
We add the dim_fin to the instance cache so that things like the measure can be synthesized
Equations
- microHamiltonianFintype H d = H.dim_fin d
The standard microcanonical ensemble Hamiltonian, where the data is the particle number N and the volume V.
Equations
Instances For
Helper to get the number in an N-V Hamiltonian
Equations
Instances For
Helper to get the volume in an N-V Hamiltonian