Friedmann equations: Hubble parameter, the two Friedmann equations, fluid equation, critical density, density parameter
DefinitionFriedmannEquations_DefsBasic objects of Friedmann–Lemaître–Robertson–Walker cosmology, in units with . A scale factor , an energy density and an isotropic pressure are real functions of time; is Newton's constant, the cosmological constant and the spatial-curvature constant.
- Hubble parameter: .
- First Friedmann equation at time :
- Second Friedmann equation at time :
- Fluid (continuity) equation at time : .
- Critical density of a Hubble rate : .
- Density parameter: .
Derivatives are Mathlib's deriv; the equations are pointwise predicates, so solutions on a time interval are expressed by quantifying over the interval.
import Mathlib namespace FriedmannEquations /-- The Hubble parameter `H(t) = Ṙ(t) / R(t)` of a scale factor `R`. -/ noncomputable def hubble (R : ℝ → ℝ) (t : ℝ) : ℝ := deriv R t / R t /-- The first Friedmann equation at time `t` (units with `c = 1`): `(Ṙ/R)² = 8πGρ/3 − k/R² + Λ/3`. -/ def FirstFriedmannEq (G Λ k : ℝ) (R ρ : ℝ → ℝ) (t : ℝ) : Prop := hubble R t ^ 2 = 8 * Real.pi * G * ρ t / 3 - k / R t ^ 2 + Λ / 3 /-- The second Friedmann (acceleration) equation at time `t` (units with `c = 1`): `R̈/R = Λ/3 − (4πG/3)(ρ + 3p)`. -/ def SecondFriedmannEq (G Λ : ℝ) (R ρ p : ℝ → ℝ) (t : ℝ) : Prop := deriv (deriv R) t / R t = Λ / 3 - 4 * Real.pi * G / 3 * (ρ t + 3 * p t) /-- The fluid (continuity) equation at time `t` (units with `c = 1`): `ρ̇ = −3H(ρ + p)`. -/ def FluidEq (R ρ p : ℝ → ℝ) (t : ℝ) : Prop := deriv ρ t = -3 * hubble R t * (ρ t + p t) /-- The critical density `ρ_c = 3H² / (8πG)`. -/ noncomputable def criticalDensity (G H : ℝ) : ℝ := 3 * H ^ 2 / (8 * Real.pi * G) /-- The density parameter `Ω = ρ / ρ_c = 8πGρ / (3H²)`. -/ noncomputable def densityParameter (G H ρ : ℝ) : ℝ := ρ / criticalDensity G H end FriedmannEquations
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
NOTE — NON-BLIND READ-BACK. This read-back is not independent testimony. It was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements, with full knowledge of the source article and of the intended meaning. It was produced at the explicit request of the proposal owner. Reviewers must not treat it as a blind audit; an independent read-back is still recommended.
Throughout, all quantities are real numbers, a scale factor , a density and a pressure are arbitrary functions of time, and , , denote Mathlib's deriv (the derivative if the function is differentiable at that point, and the junk value otherwise). Division by zero returns .
The file declares, inside the namespace FriedmannEquations:
- (equal to when ).
- is the proposition
- is the proposition
where is the derivative of the function (each a deriv, so junk where not differentiable).
4. is the proposition .
5. (equal to if ).
6. (equal to if or ).
No regularity, sign or range assumption is built into any definition: in particular is an arbitrary real number (not restricted to ), may vanish or be negative, and the speed of light is set to (no appears).