Thermodynamic Entropy eq differential Entropy sub correction
CanonicalEnsemble.thermodynamicEntropy_eq_differentialEntropy_sub_correction
Plain-language statement
Fundamental relation between thermodynamic and differential entropy: S_thermo = S_diff - kB * dof * log h.
Exact Lean statement
lemma thermodynamicEntropy_eq_differentialEntropy_sub_correction
(T : Temperature)
(hE : Integrable π.energy (π.ΞΌProd T))
[IsFiniteMeasure (π.ΞΌBolt T)] [NeZero π.ΞΌ] :
π.thermodynamicEntropy T
= π.differentialEntropy T
- kB * π.dof * Real.log π.phaseSpaceunitFormal artifact
Lean source
lemma thermodynamicEntropy_eq_differentialEntropy_sub_correction (T : Temperature) (hE : Integrable π.energy (π.ΞΌProd T)) [IsFiniteMeasure (π.ΞΌBolt T)] [NeZero π.ΞΌ] : π.thermodynamicEntropy T = π.differentialEntropy T - kB * π.dof * Real.log π.phaseSpaceunit := by have h_int_log_prob : Integrable (fun i => Real.log (π.probability T i)) (π.ΞΌProd T) := by have h_eq : (fun i => Real.log (π.probability T i)) = fun i => -(T.Ξ² : β) * π.energy i - Real.log (π.mathematicalPartitionFunction T) := funext fun i => π.log_probability T i rw [h_eq] exact (hE.const_mul _).sub (integrable_const _) simp only [thermodynamicEntropy_def, differentialEntropy] rw [integral_congr_ae (ae_of_all _ fun i => π.log_physicalProbability T i), integral_add h_int_log_prob (integrable_const _), integral_const] simp only [probReal_univ, smul_eq_mul] ring- Project
- Physlib
- License
- Apache-2.0
- Commit
- dd43e9e65791
- Source
- Physlib/StatisticalMechanics/CanonicalEnsemble/Lemmas.lean:120-138
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Adiabatic relation log
adiabatic_relation_log
Plain-language statement
Adiabatic relation in logarithmic form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then c * log (Ua/Ub) + log (Va/Vb) = 0.
Source project: Physlib
Person-level attribution pending.
Adiabatic relation Ua Ub Va Vb
adiabatic_relation_UaUbVaVb
Plain-language statement
Adiabatic relation in product form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then (Ua/Ub)^c * (Va/Vb) = 1.
Source project: Physlib
Person-level attribution pending.
Deriv Within mean Energy Beta eq neg variance
CanonicalEnsemble.derivWithin_meanEnergy_Beta_eq_neg_variance
Plain-language statement
(βU/βΞ²) = -Var(E) for finite systems.
Source project: Physlib
Person-level attribution pending.