Rankine–Hugoniot shock relations for a perfect gas (Ogilvie 2016, eqs. 6.30–6.31)
ProvedAstrophysicalFluidDynamics.rankine_hugoniot_shock_relationsConsider a normal, non-magnetic shock at rest in a perfect gas with adiabatic exponent . Let the upstream state be and the downstream state , with all densities, normal velocities and pressures positive, related by the Rankine–Hugoniot relations
and suppose the two states are different (a genuine discontinuity). Let and be the upstream and downstream Mach numbers, where . Then
These are the jump conditions that determine the post-shock state of a gas from the pre-shock state and the shock Mach number; they are used throughout astrophysics, for example in the supernova blast-wave problem.
Formalization Note The hypothesis that the two states differ excludes the trivial solution (identical states), for which the Rankine–Hugoniot relations hold for every Mach number.
import Definitions.Def_AstrophysicalFluidDynamics_ShockDefs import Mathlib open Filter Topology
namespace AstrophysicalFluidDynamics
theorem rankine_hugoniot_shock_relations
(γ ρ₁ 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₂)
(hshock : (ρ₂, u₂, p₂) ≠ (ρ₁, u₁, p₁)) :
ρ₂ / ρ₁ = shockDensityRatio γ (machNumber γ ρ₁ u₁ p₁) ∧
u₁ / u₂ = shockDensityRatio γ (machNumber γ ρ₁ u₁ p₁) ∧
p₂ / p₁ = shockPressureRatio γ (machNumber γ ρ₁ u₁ p₁) ∧
(machNumber γ ρ₂ u₂ p₂) ^ 2 = shockDownstreamMachSq γ (machNumber γ ρ₁ u₁ p₁) := 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
Assume moreover that the triple $(\rho_2,u_2,p_2)$ is not equal to the triple $(\rho_1,u_1,p_1)$ (at least one component differs). Here $M_1 = u_1 / \sqrt{\gamma p_1/\rho_1}$ and $M_2 = u_2/\sqrt{\gamma p_2/\rho_2}$ (real square root; under the positivity assumptions the radicands are positive, so no junk value of the square root or of division by zero arises). Conclusion: all four of the following equalities hold:\frac{\rho_2}{\rho_1} = D(M_1),\qquad \frac{u_1}{u_2} = D(M_1),\qquad \frac{p_2}{p_1} = P(M_1),\qquad M_2^2 = Q(M_1),
where $D(M) = \dfrac{(\gamma+1)M^2}{(\gamma-1)M^2+2}$, $P(M) = \dfrac{2\gamma M^2-(\gamma-1)}{\gamma+1}$ and $Q(M) = \dfrac{2+(\gamma-1)M^2}{2\gamma M^2-(\gamma-1)}$ (with $Q(M) = 0$ if its denominator is $0$).Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.