Mean Energy eq neg deriv log math Z of beta
CanonicalEnsemble.meanEnergy_eq_neg_deriv_log_mathZ_of_beta
Plain-language statement
The mean energy is the negative derivative of the logarithm of the (mathematical) partition function with respect to β = 1/(kB T). see: Tong (§1.3.2, §1.3.3), L&L (§31, implicitly, and §36) Here the derivative is a derivWithin over Set.Ioi 0 since β > 0.
Exact Lean statement
lemma meanEnergy_eq_neg_deriv_log_mathZ_of_beta
(𝓒 : CanonicalEnsemble ι) (T : Temperature)
(hT_pos : 0 < T.val) [IsFiniteMeasure (𝓒.μBolt T)] [NeZero 𝓒.μ]
(h_deriv :
HasDerivWithinAt
(fun β : ℝ => ∫ i, Real.exp (-β * 𝓒.energy i) ∂ 𝓒.μ)
(- ∫ i, 𝓒.energy i * Real.exp (-(T.β : ℝ) * 𝓒.energy i) ∂𝓒.μ)
(Set.Ioi 0) (T.β : ℝ)) :
𝓒.meanEnergy T =
- (derivWithin
(fun β : ℝ => Real.log (∫ i, Real.exp (-β * 𝓒.energy i) ∂𝓒.μ))
(Set.Ioi 0) (T.β : ℝ))Formal artifact
Lean source
lemma meanEnergy_eq_neg_deriv_log_mathZ_of_beta (𝓒 : CanonicalEnsemble ι) (T : Temperature) (hT_pos : 0 < T.val) [IsFiniteMeasure (𝓒.μBolt T)] [NeZero 𝓒.μ] (h_deriv : HasDerivWithinAt (fun β : ℝ => ∫ i, Real.exp (-β * 𝓒.energy i) ∂ 𝓒.μ) (- ∫ i, 𝓒.energy i * Real.exp (-(T.β : ℝ) * 𝓒.energy i) ∂𝓒.μ) (Set.Ioi 0) (T.β : ℝ)) : 𝓒.meanEnergy T = - (derivWithin (fun β : ℝ => Real.log (∫ i, Real.exp (-β * 𝓒.energy i) ∂𝓒.μ)) (Set.Ioi 0) (T.β : ℝ)) := by set f : ℝ → ℝ := fun β => ∫ i, Real.exp (-β * 𝓒.energy i) ∂𝓒.μ have hβ_pos : 0 < (T.β : ℝ) := beta_pos T hT_pos have hZpos : 0 < f (T.β : ℝ) := by simpa [f, mathematicalPartitionFunction_eq_integral (𝓒 := 𝓒) (T := T)] using mathematicalPartitionFunction_pos (𝓒 := 𝓒) (T := T) have h_log : HasDerivWithinAt (fun β : ℝ => Real.log (f β)) ((1 / f (T.β : ℝ)) * (- ∫ i, 𝓒.energy i * Real.exp (-(T.β : ℝ) * 𝓒.energy i) ∂𝓒.μ)) (Set.Ioi 0) (T.β : ℝ) := by simpa [f] using hasDerivWithinAt_log_comp' (hf := h_deriv) (hx := hZpos.ne') have hUD : UniqueDiffWithinAt ℝ (Set.Ioi (0:ℝ)) (T.β : ℝ) := isOpen_Ioi.uniqueDiffWithinAt hβ_pos rw [meanEnergy_eq_ratio_of_integrals, h_log.derivWithin hUD] simp only [f] ring- Project
- Physlib
- License
- Apache-2.0
- Commit
- dd43e9e65791
- Source
- Physlib/StatisticalMechanics/CanonicalEnsemble/Lemmas.lean:281-306
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.