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.
Exact Lean statement
theorem adiabatic_relation_log
{s0 U0 V0 N0 c R : ℝ}
{Ua Ub Va Vb N : ℝ}
(hUa : 0 < Ua) (hUb : 0 < Ub)
(hVa : 0 < Va) (hVb : 0 < Vb)
(hN : 0 < N)
(hU0 : 0 < U0) (hV0 : 0 < V0)
(hR : 0 < R)
(hS :
entropy c R s0 U0 V0 N0 Ua Va N =
entropy c R s0 U0 V0 N0 Ub Vb N) :
c * log (Ua / Ub) + log (Va / Vb) = 0Formal artifact
Lean source
theorem adiabatic_relation_log {s0 U0 V0 N0 c R : ℝ} {Ua Ub Va Vb N : ℝ} (hUa : 0 < Ua) (hUb : 0 < Ub) (hVa : 0 < Va) (hVb : 0 < Vb) (hN : 0 < N) (hU0 : 0 < U0) (hV0 : 0 < V0) (hR : 0 < R) (hS : entropy c R s0 U0 V0 N0 Ua Va N = entropy c R s0 U0 V0 N0 Ub Vb N) : c * log (Ua / Ub) + log (Va / Vb) = 0 := by -- Unfold the entropy and expand every `log (x / y)` into `log x - log y`, -- so both `hS` and the goal become linear in the individual logarithms. unfold entropy at hS rw [Real.log_div hUa.ne' hU0.ne', Real.log_div hUb.ne' hU0.ne', Real.log_div hVa.ne' hV0.ne', Real.log_div hVb.ne' hV0.ne'] at hS rw [Real.log_div hUa.ne' hUb.ne', Real.log_div hVa.ne' hVb.ne'] -- The difference of the two entropies is `N * R` times the goal, so the -- goal is exactly the second factor of a vanishing product. have key : N * R * (c * (log Ua - log Ub) + (log Va - log Vb)) = 0 := by linear_combination hS exact (mul_eq_zero.mp key).resolve_left (mul_ne_zero hN.ne' hR.ne')- Project
- Physlib
- License
- Apache-2.0
- Commit
- dd43e9e65791
- Source
- Physlib/Thermodynamics/IdealGas/Basic.lean:46-68
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 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.
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.