Friedmann model for dust with a cosmological constant
DefinitionEinsteinStaticUniverse_modelThis file fixes the kinematic and dynamical model used by every statement of the mission: a spatially homogeneous, isotropic universe filled with pressureless matter ("dust") and a cosmological constant , in geometrized units with .
A universe is described by a scale factor , a real function of cosmic time. Dust dilutes with volume, so its energy density at scale factor is
with reference constants (a density) and (a scale factor). A cosmological constant is equivalently described as a vacuum fluid of constant density and pressure , that is, equation of state .
The dynamics are the two Friedmann equations. For a fluid of density , curvature constant and cosmological constant , the first Friedmann equation on a set of times is
and the acceleration equation for dust is
The file also defines the continuity equation , the Hubble parameter , the critical density , and the three density parameters
These definitions are the common vocabulary of the mission: the Einstein static universe, its instability, the vacuum-energy reading of and the density-parameter identity are all phrased in terms of them, so that every statement commits to the same sign conventions and to the same meaning of "solution".
Formalization Note. Each equation is a predicate on a scale factor and an explicit set of times, so a statement can require it on all of , on , on a bounded interval, or on a general open set. The acceleration function is separated out as a function of the scale factor alone, which is what makes the equilibrium analysis possible.
import Mathlib
namespace EinsteinStaticUniverse
open Real
/-- Energy density of pressureless matter ("dust") at scale factor `a`, normalised by the
reference values `ρ₀` (density) and `a₀` (scale factor): `ρ(a) = ρ₀ (a₀ / a)³`. -/
noncomputable def dustDensity (ρ₀ a₀ a : ℝ) : ℝ := ρ₀ * (a₀ / a) ^ 3
/-- The vacuum energy density equivalent to a cosmological constant `Λ`,
`ρ_vac = Λ / (8πG)`, i.e. `Λ = κ ρ_vac` with `κ = 8πG` in units with `c = 1`. -/
noncomputable def vacuumDensity (G Λ : ℝ) : ℝ := Λ / (8 * π * G)
/-- The pressure of the vacuum fluid equivalent to a cosmological constant `Λ`:
`p_vac = -ρ_vac`, i.e. equation of state `w = -1`. -/
noncomputable def vacuumPressure (G Λ : ℝ) : ℝ := -(Λ / (8 * π * G))
/-- The first Friedmann equation for a homogeneous isotropic universe filled with a fluid of
energy density `ρ t`, with curvature constant `k` and cosmological constant `Λ`:
`(ȧ)² = (8πG/3) ρ a² - k + (Λ/3) a²`, required at every time of the set `I`. -/
def FriedmannGeneral (G Λ k : ℝ) (ρ : ℝ → ℝ) (a : ℝ → ℝ) (I : Set ℝ) : Prop :=
∀ t ∈ I, (deriv a t) ^ 2 = (8 * π * G / 3) * ρ t * (a t) ^ 2 - k + (Λ / 3) * (a t) ^ 2
/-- The first Friedmann equation for a dust-filled universe with curvature constant `k` and
cosmological constant `Λ`. -/
def FriedmannI (G Λ k ρ₀ a₀ : ℝ) (a : ℝ → ℝ) (I : Set ℝ) : Prop :=
FriedmannGeneral G Λ k (fun t => dustDensity ρ₀ a₀ (a t)) a I
/-- The right-hand side of the acceleration equation for dust, as a function of the scale
factor: `F(x) = -(4πG/3) ρ(x) x + (Λ/3) x = -(4πG/3) ρ₀ a₀³ / x² + (Λ/3) x`. -/
noncomputable def accel (G Λ ρ₀ a₀ : ℝ) (x : ℝ) : ℝ :=
-(4 * π * G / 3) * dustDensity ρ₀ a₀ x * x + (Λ / 3) * x
/-- The second (acceleration) Friedmann equation for pressureless matter with cosmological
constant `Λ`: `ä = -(4πG/3) ρ a + (Λ/3) a`, required at every time of the set `I`. -/
def FriedmannII (G Λ ρ₀ a₀ : ℝ) (a : ℝ → ℝ) (I : Set ℝ) : Prop :=
∀ t ∈ I, deriv (deriv a) t = accel G Λ ρ₀ a₀ (a t)
/-- The continuity (energy conservation) equation for a fluid of energy density `ρ` and
pressure `p` in a universe with scale factor `a`: `ρ̇ + 3 (ȧ/a) (ρ + p) = 0` on `I`. -/
def ContinuityEquation (ρ p : ℝ → ℝ) (a : ℝ → ℝ) (I : Set ℝ) : Prop :=
∀ t ∈ I, deriv ρ t + 3 * (deriv a t / a t) * (ρ t + p t) = 0
/-- The Hubble parameter `H = ȧ / a`. -/
noncomputable def hubbleParameter (a : ℝ → ℝ) (t : ℝ) : ℝ := deriv a t / a t
/-- The critical density `ρ_c = 3H² / (8πG)`. -/
noncomputable def criticalDensity (G H : ℝ) : ℝ := 3 * H ^ 2 / (8 * π * G)
/-- The matter density parameter `Ω_m = ρ / ρ_c`. -/
noncomputable def omegaM (G H ρ : ℝ) : ℝ := ρ / criticalDensity G H
/-- The dark-energy density parameter `Ω_Λ = Λ / (3H²)`. -/
noncomputable def omegaLambda (Λ H : ℝ) : ℝ := Λ / (3 * H ^ 2)
/-- The curvature density parameter `Ω_k = -k / (a²H²)`. -/
noncomputable def omegaK (k a H : ℝ) : ℝ := -k / (a ^ 2 * H ^ 2)
end EinsteinStaticUniverse
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Disclosure — non-blind read-back. This read-back was not produced by an independent blind auditor. It was written by the same agent that drafted this Lean statement, with full knowledge of the intended meaning, the mission pitch and the source material, so it is not independent testimony and no reviewer should mistake it for such. It was written and uploaded at the explicit instruction of the proposal owner.
This file introduces, for real parameters, the following notions.
Dust density. . No positivity of , or is required; at the quotient is , so the value is .
Vacuum density and pressure. and ; at both are .
First Friedmann equation, general fluid. For , a density function , a function and a set , the proposition asserts
Nothing is assumed about , , (it may be empty, in which case the proposition holds vacuously), the signs of , , , or the differentiability of .
First Friedmann equation, dust. The special case where the density at time is .
Acceleration function. , a function of a real variable (again total, with value at ).
Second Friedmann (acceleration) equation. , where means the derivative of the function .
Continuity equation. For functions and a set : .
Hubble parameter. .
Critical density and density parameters. ; ; ; . Each is a plain arithmetic expression in real numbers, evaluating to whenever the denominator vanishes.
All of these are definitions only: no claim is asserted, and no relation between them is imposed.