Deriv Within mean Energy Beta eq neg variance
CanonicalEnsemble.derivWithin_meanEnergy_Beta_eq_neg_variance
Plain-language statement
(∂U/∂β) = -Var(E) for finite systems.
Exact Lean statement
lemma derivWithin_meanEnergy_Beta_eq_neg_variance
[MeasurableSingletonClass ι][𝓒.IsFinite] (T : Temperature) (hT_pos : 0 < T.val) :
derivWithin 𝓒.meanEnergyBeta (Set.Ioi 0) (T.β : ℝ) = - 𝓒.energyVariance TFormal artifact
Lean source
lemma derivWithin_meanEnergy_Beta_eq_neg_variance [MeasurableSingletonClass ι][𝓒.IsFinite] (T : Temperature) (hT_pos : 0 < T.val) : derivWithin 𝓒.meanEnergyBeta (Set.Ioi 0) (T.β : ℝ) = - 𝓒.energyVariance T := by let β₀ := (T.β : ℝ) have hβ₀_pos : 0 < β₀ := beta_pos T hT_pos have h_eq_on : Set.EqOn 𝓒.meanEnergyBeta 𝓒.meanEnergyBetaReal (Set.Ioi 0) := by intro b hb; exact meanEnergy_Beta_eq_finite 𝓒 b hb rw [derivWithin_congr h_eq_on (h_eq_on hβ₀_pos)] have h_diff : DifferentiableAt ℝ 𝓒.meanEnergyBetaReal β₀ := (differentiable_meanEnergyBetaReal 𝓒) β₀ rw [h_diff.derivWithin (uniqueDiffOn_Ioi 0 β₀ hβ₀_pos)] rw [deriv_meanEnergyBetaReal 𝓒 β₀] have h_U_eq : 𝓒.meanEnergyBetaReal β₀ = 𝓒.meanEnergy T := by rw [← meanEnergy_Beta_eq_finite 𝓒 β₀ hβ₀_pos] simp [meanEnergyBeta] simp_all only [NNReal.coe_pos, toNNReal_coe, ofβ_β, β₀] have h_prob_eq (i : ι) : 𝓒.probabilityBetaReal β₀ i = 𝓒.probability T i := by unfold probabilityBetaReal CanonicalEnsemble.probability congr 1 · unfold mathematicalPartitionFunctionBetaReal rw [mathematicalPartitionFunction_of_fintype] rw [h_U_eq] simp_rw [h_prob_eq] rw [energyVariance_of_fintype 𝓒 T] ring- Project
- Physlib
- License
- Apache-2.0
- Commit
- dd43e9e65791
- Source
- Physlib/StatisticalMechanics/CanonicalEnsemble/Finite.lean:447-471
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.
Differential Entropy eq k B beta mean Energy add k B log math Z
CanonicalEnsemble.differentialEntropy_eq_kB_beta_meanEnergy_add_kB_log_mathZ
Plain-language statement
General identity: S_diff = kB β ⟨E⟩ + kB log Z_math. This connects the differential entropy to the mean energy and the mathematical partition function. Integrability of log (probability …) follows from the pointwise formula.
Source project: Physlib
Person-level attribution pending.