Entropy nonneg
CanonicalEnsemble.entropy_nonneg
Plain-language statement
The entropy of a finite canonical ensemble (Shannon entropy) is non-negative.
Exact Lean statement
lemma entropy_nonneg [MeasurableSingletonClass ΞΉ] [IsFinite π] [Nonempty ΞΉ] (T : Temperature) :
0 β€ π.shannonEntropy TFormal artifact
Lean source
lemma entropy_nonneg [MeasurableSingletonClass ΞΉ] [IsFinite π] [Nonempty ΞΉ] (T : Temperature) : 0 β€ π.shannonEntropy T := by have hsum : β i, π.probability T i * log (π.probability T i) β€ 0 := Fintype.sum_nonpos fun i => mul_nonpos_iff.2 <| Or.inl β¨probability_nonneg_finite π T i, Real.log_nonpos (probability_nonneg_finite π T i) (probability_le_one π T i)β© rw [shannonEntropy, neg_mul, neg_nonneg] exact mul_nonpos_iff.2 <| Or.inl β¨kB_pos.le, hsumβ©- Project
- Physlib
- License
- Apache-2.0
- Commit
- dd43e9e65791
- Source
- Physlib/StatisticalMechanics/CanonicalEnsemble/Finite.lean:267-274
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.