All proofs
Project-declaredLean 4.32.0 · mathlib@81a5d257c8e4

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

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

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