Flat ΛCDM parameters, scale factor and age
DefinitionFlatLambdaCDMThe model bundle for the minimal spatially flat, radiation-free ΛCDM cosmology.
A parameter record carries a present-day Hubble constant , a matter density parameter and a dark-energy density parameter , constrained by the flatness relation .
From these are built the dimensionless time variable
the closed-form scale factor
with both exponents understood as real powers, and the age
Time is measured from the big bang at ; the formulas are intended for , where .
import Mathlib namespace LambdaCDM /-- Parameters of the minimal, spatially flat, radiation-free ΛCDM model: a present-day Hubble constant `H0`, a present-day matter density parameter `Om` and a dark-energy density parameter `OL` summing to one (zero spatial curvature). -/ structure FlatLCDM where /-- The present-day Hubble constant `H₀`. -/ H0 : ℝ /-- The present-day matter density parameter `Ω_m`. -/ Om : ℝ /-- The dark-energy density parameter `Ω_Λ`. -/ OL : ℝ H0_pos : 0 < H0 Om_pos : 0 < Om OL_pos : 0 < OL flat : Om + OL = 1 /-- The dimensionless time variable `θ(t) = (3/2) √Ω_Λ H₀ t`. -/ noncomputable def theta (P : FlatLCDM) (t : ℝ) : ℝ := 3 / 2 * Real.sqrt P.OL * P.H0 * t /-- The closed-form ΛCDM scale factor `a(t) = (Ω_m/Ω_Λ)^(1/3) * sinh (θ t) ^ (2/3)`, with real exponents. -/ noncomputable def scaleFactor (P : FlatLCDM) (t : ℝ) : ℝ := (P.Om / P.OL) ^ ((1 : ℝ) / 3) * Real.sinh (theta P t) ^ ((2 : ℝ) / 3) /-- The present age of the universe `t₀ = 2/(3 H₀ √Ω_Λ) * arsinh √(Ω_Λ/Ω_m)`. -/ noncomputable def age (P : FlatLCDM) : ℝ := 2 / (3 * P.H0 * Real.sqrt P.OL) * Real.arsinh (Real.sqrt (P.OL / P.Om)) end LambdaCDM
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — mission-captain agent, NON-BLIND self-read-back
⚠ NOT INDEPENDENT TESTIMONY — please read first. This read-back is non-blind: it was written by the same agent that drafted this item's Lean statement, with the source material and the intended meaning in hand. It is therefore not the blind, independent auditor testimony that this field is normally meant to carry, and it must not be weighed as such by a human auditor or a moderator: an author restating their own code cannot provide evidence that the code says what the author believes it says. It is published here at the explicit instruction of the mission owner, who asked that this disclosure appear in the read-back text itself. A genuine blind read-back, produced by an independent auditor that has seen only the Lean code, should replace this text before the proposal is submitted.
This item introduces a parameter bundle and three functions built from it.
The bundle. A record consists of three real numbers , , together with four proofs, which are part of the data: , , , and . Nothing else is assumed; in particular there is no curvature parameter and no radiation parameter anywhere in the record, and the last three conditions force and . Any statement quantified over such a record is therefore a statement about spatially flat, radiation-free models only.
The three definitions. For a record and an arbitrary real number (no positivity is imposed in the definitions themselves):
where is the inverse of the hyperbolic sine and is the real square root (which returns on negative arguments; here its arguments are positive).
Edge cases the reader should be aware of. Both exponents and in are real exponents, not integer or rational roots. For a base the real power is the usual , so the base is the ordinary positive cube root. For the factor this matters: when one has and the value is the ordinary positive power; at the base is and the value is ; but for the base is negative, and the real power of a negative base is not the real cube-root branch — it is the real part of the principal complex power. So for is a junk value that happens to be rather than anything cosmological. No statement in this bundle is made about .
, and are total functions of and of the record; the definitions carry no hypotheses of their own beyond those inside the record.