Entropy change across a shock (Ogilvie 2016, Example A.13, eq. A 28)
ProvedAstrophysicalFluidDynamics.shock_entropy_jumpFor a perfect gas with , let positive upstream and downstream states , satisfy the Rankine–Hugoniot relations. Writing for the pressure ratio, the entropy change across the shock is
where the specific entropy of a perfect gas is , so that .
This formula is the basis for the second-law argument that excludes rarefaction shocks.
Formalization Note The formula also holds, trivially, when the two states coincide, so the non-degeneracy hypothesis is not included here.
import Definitions.Def_AstrophysicalFluidDynamics_ShockDefs import Mathlib open Filter Topology
namespace AstrophysicalFluidDynamics
theorem shock_entropy_jump
(γ ρ₁ u₁ p₁ ρ₂ u₂ p₂ : ℝ) (hγ : 1 < γ)
(hρ₁ : 0 < ρ₁) (hu₁ : 0 < u₁) (hp₁ : 0 < p₁)
(hρ₂ : 0 < ρ₂) (hu₂ : 0 < u₂) (hp₂ : 0 < p₂)
(hRH : RankineHugoniot γ ρ₁ u₁ p₁ ρ₂ u₂ p₂) :
entropyJumpOverCv γ ρ₁ p₁ ρ₂ p₂ =
Real.log (p₂ / p₁) -
γ * Real.log (((γ + 1) * (p₂ / p₁) + (γ - 1)) / ((γ - 1) * (p₂ / p₁) + (γ + 1))) := by sorry
end AstrophysicalFluidDynamicsRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind
Read-back disclosure — NOT blind, NOT independent. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement below, with full knowledge of the source text and of the intended meaning. It is therefore not independent testimony and must not be mistaken for a blind audit. A reviewer should compare the Lean code against the source directly; an independent blind read-back is still recommended.
Fix real numbers . Assume ; , , ; , , ; and that the three Rankine–Hugoniot equalities hold, namely
\ln\frac{p_2}{p_1} - \gamma\ln\frac{\rho_2}{\rho_1} = \ln\frac{p_2}{p_1} - \gamma\ln\left(\frac{(\gamma+1)\frac{p_2}{p_1}+(\gamma-1)}{(\gamma-1)\frac{p_2}{p_1}+(\gamma+1)}\right).$$ (The left side is the definition of the entropy jump divided by .)
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.