Perfect gas:
ProvedCosmologyEOS.perfect_gas_eos_parameterConsider a perfect gas with mass density , particular gas constant and temperature with , and let be the speed of light. Its pressure is with thermal speed , and its energy density is . Then both expressions of the pressure give
This is the identity behind the statement that a cold gas () has .
Formalization Note The approximation is not formalized; only the exact identity is.
import Mathlib import Definitions.Def_CosmologyEOS_Defs open Real Filter Topology
namespace CosmologyEOS
theorem perfect_gas_eos_parameter (ρ R T c : ℝ) (hρ : ρ ≠ 0) (hc : c ≠ 0)
(hRT : 0 ≤ R * T) :
eosParameter (ρ * R * T) (ρ * c ^ 2) = (Real.sqrt (R * T)) ^ 2 / c ^ 2 ∧
eosParameter (ρ * (Real.sqrt (R * T)) ^ 2) (ρ * c ^ 2) = (Real.sqrt (R * T)) ^ 2 / c ^ 2 := by
sorry
end CosmologyEOSRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; NON-BLIND
NON-BLIND READ-BACK — NOT INDEPENDENT TESTIMONY. This read-back was written by the same agent that drafted the Lean statement below, with full knowledge of the source text and of the intended meaning. It was not produced by a blind, independent auditor, so it must not be mistaken for independent testimony; reviewers should compare the Lean code with the source themselves.
For all real numbers with , and , both of the following hold:
- ;
- ,
where the left-hand sides are the equation-of-state parameter evaluated at (resp. ) and , and is the real square root (equal to on negative inputs; here is assumed). Nothing is asserted when , or .