Β eq deriv S U
MicroHamiltonian.β_eq_deriv_S_U
Plain-language statement
The "definition of temperature from entropy": 1/T = (∂S/∂U), when the derivative is at constant extrinsic d (typically N/V). Here we use β instead of 1/T on the left, and express the right actually as (∂S/∂β)/(∂U/∂β), as all our things are ultimately parameterized by β. This identity requires the denominator ∂U/∂β to be nonzero.
Exact Lean statement
theorem β_eq_deriv_S_U {β : ℝ}
(hZne : H.partitionZ d β ≠ 0)
(hZint : (β : ℂ) ∈ interior (H.ZComplexConvergenceDomain d))
(hU' : deriv (H.internalU d) β ≠ 0) :
β = (deriv (H.entropySβ d) β) / deriv (H.internalU d) βFormal artifact
Lean source
theorem β_eq_deriv_S_U {β : ℝ} (hZne : H.partitionZ d β ≠ 0) (hZint : (β : ℂ) ∈ interior (H.ZComplexConvergenceDomain d)) (hU' : deriv (H.internalU d) β ≠ 0) : β = (deriv (H.entropySβ d) β) / deriv (H.internalU d) β := by have hZ : ContDiffAt ℝ ⊤ (H.partitionZ d) β := H.contDiffAt_partitionZ_of_mem_interior_convergenceDomain d hZint unfold entropySβ internalU --Show the differentiability side-goals have hlogDiff : DifferentiableAt ℝ (fun β => Real.log (H.partitionZ d β)) β := (hZ.differentiableAt (by simp)).log hZne have hlogDerivDiff : DifferentiableAt ℝ (deriv fun β => Real.log (H.partitionZ d β)) β := by have := ((hZ.log hZne).fderiv_right (m := ⊤) (OrderTop.le_top _)).differentiableAt (by simp) unfold deriv fun_prop have hderiv : deriv (deriv fun β => Real.log (H.partitionZ d β)) β ≠ 0 := by intro hzero apply hU' change deriv (-fun β => deriv (fun β' => Real.log (H.partitionZ d β')) β) β = 0 simp [deriv.neg, hzero] --Main goal simp only [mul_neg] erw [deriv.neg', deriv_add, deriv.neg'] dsimp erw [deriv_mul] simp only [deriv_id'', one_mul, neg_add_rev, add_neg_cancel_comm_assoc, neg_div_neg_eq] exact (mul_div_cancel_right₀ β hderiv).symm --Discharge those side-goals · exact differentiableAt_id · exact hlogDerivDiff · fun_prop (disch := assumption) · fun_prop (disch := assumption)- Project
- Physlib
- License
- Apache-2.0
- Commit
- dd43e9e65791
- Source
- Physlib/StatisticalMechanics/MicroCanonicalEnsemble/ThermoQuantities.lean:168-201
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.