All proofs
Project-declaredLean 4.32.0 · mathlib@81a5d257c8e4

Β 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

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

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