FLRW background cosmology: Friedmann, continuity and acceleration equations; density parameters; quintessence; CPL/BA; ; vacuum energy
DefinitionDarkEnergyLCDM_Defscosmologygeneral-relativitymathematical-physics
This file contains the shared vocabulary of the mission, following §§3.1–3.8 of the source. Units have . The scale factor is , and dots denote time derivatives.
- Hubble parameter: .
- Friedmann equation (2) at time : .
- Continuity equation (3) for a component : .
- Acceleration equation (7): .
- Density parameters (6): , , .
- ΛCDM background on an open interval . The interval is open and connected. The scale factor is and positive on . The radiation density and the matter density are differentiable on . The Friedmann equation holds on with total density . Radiation obeys continuity with , and matter obeys continuity with .
- Quintessence (17): and . The equation of state is .
- CPL (19): . BA (20): .
- Luminosity distance (formula after Eq. (11)). The comoving distance is , and
- Cut-off vacuum energy (10): , with .
These definitions are reused by every theorem of the mission.
Formalization Note Time derivatives are Mathlib's deriv. The luminosity distance uses the standard convention: the source prints and assigns to , which conflicts with its own . The equation of state is , whereas the source's Eq. (18) prints its reciprocal. The vacuum energy includes the zero-point factor needed for the source's .
Definition code
import Mathlib
/-!
Definitions for the mission on
R. von Marttens, J. Alcaniz, S. Carneiro,
"A energia escura e os desafios do modelo cosmológico padrão",
Cadernos de Astronomia 7(1), 62–76 (2026), DOI 10.47456/Cad.Astro.v7n1.52249.
Units with `c = 1`. Time is a real variable `t`, the scale factor is `a : ℝ → ℝ`,
and every time derivative is Mathlib's `deriv`.
-/
namespace DarkEnergyLCDM
open Real
/-- Hubble parameter `H ≡ ȧ / a` (§3.3). -/
noncomputable def hubble (a : ℝ → ℝ) (t : ℝ) : ℝ :=
deriv a t / a t
/-- Friedmann equation, Eq. (2): `H² = (8πG/3) ρ − K/a² + Λ/3`,
where `ρ` is the total energy density, `K` the spatial curvature and `Λ` the
cosmological constant. -/
def FriedmannEq (G K Λ : ℝ) (a ρ : ℝ → ℝ) (t : ℝ) : Prop :=
hubble a t ^ 2 = 8 * π * G / 3 * ρ t - K / a t ^ 2 + Λ / 3
/-- Continuity equation for one component, Eq. (3): `ρ̇ᵢ + 3H(ρᵢ + pᵢ) = 0`. -/
def ContinuityEq (a ρ p : ℝ → ℝ) (t : ℝ) : Prop :=
deriv ρ t + 3 * hubble a t * (ρ t + p t) = 0
/-- Acceleration equation, Eq. (7): `ä/a = −(4πG/3)(ρ + 3p) + Λ/3`. -/
def AccelerationEq (G Λ : ℝ) (a ρ p : ℝ → ℝ) (t : ℝ) : Prop :=
deriv (deriv a) t / a t = -(4 * π * G / 3) * (ρ t + 3 * p t) + Λ / 3
/-- Density parameter of a material component, Eq. (6): `Ωᵢ ≡ 8πG ρᵢ₀ / (3 H₀²)`. -/
noncomputable def densityParam (G H₀ ρ₀ : ℝ) : ℝ :=
8 * π * G / (3 * H₀ ^ 2) * ρ₀
/-- Curvature density parameter, Eq. (6): `Ω_k ≡ −K / H₀²`. -/
noncomputable def curvatureParam (K H₀ : ℝ) : ℝ :=
-K / H₀ ^ 2
/-- Dark-energy (cosmological-constant) density parameter, Eq. (6): `Ω_Λ ≡ Λ / (3 H₀²)`. -/
noncomputable def lambdaParam (Λ H₀ : ℝ) : ℝ :=
Λ / (3 * H₀ ^ 2)
/-- Background ΛCDM cosmology on an open time interval `I` (§3.2–3.3):
a positive, twice continuously differentiable scale factor `a`, a radiation density
`ρr` with equation of state `w_r = 1/3` and a (baryons + CDM) matter density `ρm`
with `w_m = 0`, such that the Friedmann equation (2) holds for the total density
`ρ = ρr + ρm`, and each component obeys its own continuity equation (3). -/
structure IsLCDMBackground (G K Λ : ℝ) (I : Set ℝ) (a ρr ρm : ℝ → ℝ) : Prop where
isOpen : IsOpen I
isPreconnected : IsPreconnected I
contDiff_a : ContDiffOn ℝ 2 a I
pos_a : ∀ t ∈ I, 0 < a t
diff_ρr : DifferentiableOn ℝ ρr I
diff_ρm : DifferentiableOn ℝ ρm I
friedmann : ∀ t ∈ I, FriedmannEq G K Λ a (fun s => ρr s + ρm s) t
continuity_r : ∀ t ∈ I, ContinuityEq a ρr (fun s => ρr s / 3) t
continuity_m : ∀ t ∈ I, ContinuityEq a ρm (fun _ => 0) t
/-- Quintessence energy density, Eq. (17): `ρ_ϕ = ϕ̇²/2 + V(ϕ)`. -/
noncomputable def quintessenceDensity (V : ℝ → ℝ) (ϕ : ℝ → ℝ) (t : ℝ) : ℝ :=
deriv ϕ t ^ 2 / 2 + V (ϕ t)
/-- Quintessence pressure, Eq. (17): `p_ϕ = ϕ̇²/2 − V(ϕ)`. -/
noncomputable def quintessencePressure (V : ℝ → ℝ) (ϕ : ℝ → ℝ) (t : ℝ) : ℝ :=
deriv ϕ t ^ 2 / 2 - V (ϕ t)
/-- Quintessence equation of state `w_ϕ = p_ϕ / ρ_ϕ` as a function of the kinetic
variable `ϕ̇` and the value `V` of the potential, i.e.
`w_ϕ = (ϕ̇²/2 − V)/(ϕ̇²/2 + V)` (from Eq. (17) and `wᵢ = pᵢ/ρᵢ`, §3.2). -/
noncomputable def quintessenceEOS (ϕdot V : ℝ) : ℝ :=
(ϕdot ^ 2 / 2 - V) / (ϕdot ^ 2 / 2 + V)
/-- CPL parametrization, Eq. (19): `w(a) = w₀ + (1 − a) w_a`. -/
def cplEOS (w₀ wₐ a : ℝ) : ℝ :=
w₀ + (1 - a) * wₐ
/-- BA parametrization, Eq. (20) (Ref. [39] of the source):
`w(a) = w₀ + w_a (1 − a)/(a² + (1 − a)²)`. -/
noncomputable def baEOS (w₀ wₐ a : ℝ) : ℝ :=
w₀ + wₐ * ((1 - a) / (a ^ 2 + (1 - a) ^ 2))
/-- Comoving radial distance `χ(z) = ∫₀^z dz̃ / H(z̃)` for a Hubble rate `H` given as a
function of redshift (§3.5.1). -/
noncomputable def comovingDistance (H : ℝ → ℝ) (z : ℝ) : ℝ :=
∫ z' in (0 : ℝ)..z, 1 / H z'
/-- Luminosity distance (§3.5.1, the formula below Eq. (11)), in the standard convention
`d_L = (1 + z) S_k(χ)`, where `χ` is the comoving distance and
`S_k(χ) = sinh(√Ω_k H₀ χ)/(H₀ √Ω_k)` for `Ω_k > 0`, `S_k(χ) = χ` for `Ω_k = 0`,
`S_k(χ) = sin(√|Ω_k| H₀ χ)/(H₀ √|Ω_k|)` for `Ω_k < 0`. -/
noncomputable def luminosityDistance (H : ℝ → ℝ) (H₀ Ωk z : ℝ) : ℝ :=
(1 + z) *
if 0 < Ωk then
Real.sinh (Real.sqrt Ωk * H₀ * comovingDistance H z) / (H₀ * Real.sqrt Ωk)
else if Ωk = 0 then
comovingDistance H z
else
Real.sin (Real.sqrt |Ωk| * H₀ * comovingDistance H z) / (H₀ * Real.sqrt |Ωk|)
/-- Vacuum energy density with a momentum cutoff `k_lim`, Eq. (10), including the
zero-point factor `1/2`:
`ρ_vac(k_lim) = ∫_{|k| ≤ k_lim} (1/2) √(|k|² + m²) d³k / (2π)³`. -/
noncomputable def vacuumEnergyCutoff (m klim : ℝ) : ℝ :=
∫ k in Metric.closedBall (0 : EuclideanSpace ℝ (Fin 3)) klim,
(1 / 2) * Real.sqrt (‖k‖ ^ 2 + m ^ 2) / (2 * π) ^ 3
end DarkEnergyLCDM
Source
R. von Marttens, J. Alcaniz, S. Carneiro, "A energia escura e os desafios do modelo cosmológico padrão", Cadernos de Astronomia 7(1), 62–76 (2026), https://doi.org/10.47456/Cad.Astro.v7n1.52249, pp. 63–66 and 71–72, Eqs. (2), (3), (6), (7), (10), (11), (17), (19), (20)