All proofs
Project-declaredLean 4.32.0 Β· mathlib@81a5d257c8e4

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 𝓒.phaseSpaceunit

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
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

Project-declaredLean 4.32.0

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.

physicsquantum field theoryrelativity

Source project: Physlib

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.0

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.

physicsquantum field theoryrelativity

Source project: Physlib

Person-level attribution pending.

View proof record