Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

FLRW background cosmology: Friedmann, continuity and acceleration equations; density parameters; quintessence; CPL/BA; dLd_LdL​; vacuum energy

Definition
DarkEnergyLCDM_Defs

by Lucas · Oct 11, 2026 · Mathlib 0df444a (Lean v4.33.1)

cosmologygeneral-relativitymathematical-physics

This file contains the shared vocabulary of the mission, following §§3.1–3.8 of the source. Units have c=1c=1c=1. The scale factor is a:R→Ra:\mathbb R\to\mathbb Ra:R→R, and dots denote time derivatives.

  1. Hubble parameter: H(t)=a˙(t)/a(t)H(t) = \dot a(t)/a(t)H(t)=a˙(t)/a(t).
  2. Friedmann equation (2) at time ttt: H2=8πG3ρ−Ka2+Λ3H^2 = \frac{8\pi G}{3}\rho - \frac{K}{a^2} + \frac{\Lambda}{3}H2=38πG​ρ−a2K​+3Λ​.
  3. Continuity equation (3) for a component (ρi,pi)(\rho_i, p_i)(ρi​,pi​): ρ˙i+3H(ρi+pi)=0\dot\rho_i + 3H(\rho_i+p_i) = 0ρ˙​i​+3H(ρi​+pi​)=0.
  4. Acceleration equation (7): a¨/a=−4πG3(ρ+3p)+Λ3\ddot a / a = -\frac{4\pi G}{3}(\rho+3p) + \frac{\Lambda}{3}a¨/a=−34πG​(ρ+3p)+3Λ​.
  5. Density parameters (6): Ωi=8πG3H02ρi0\Omega_i = \frac{8\pi G}{3H_0^2}\rho_{i0}Ωi​=3H02​8πG​ρi0​, Ωk=−K/H02\Omega_k = -K/H_0^2Ωk​=−K/H02​, ΩΛ=Λ/(3H02)\Omega_\Lambda = \Lambda/(3H_0^2)ΩΛ​=Λ/(3H02​).
  6. ΛCDM background on an open interval III. The interval is open and connected. The scale factor aaa is C2C^2C2 and positive on III. The radiation density ρr\rho_rρr​ and the matter density ρm\rho_mρm​ are differentiable on III. The Friedmann equation holds on III with total density ρr+ρm\rho_r+\rho_mρr​+ρm​. Radiation obeys continuity with pr=ρr/3p_r = \rho_r/3pr​=ρr​/3, and matter obeys continuity with pm=0p_m = 0pm​=0.
  7. Quintessence (17): ρϕ=ϕ˙2/2+V(ϕ)\rho_\phi = \dot\phi^2/2 + V(\phi)ρϕ​=ϕ˙​2/2+V(ϕ) and pϕ=ϕ˙2/2−V(ϕ)p_\phi = \dot\phi^2/2 - V(\phi)pϕ​=ϕ˙​2/2−V(ϕ). The equation of state is wϕ(ϕ˙,V)=ϕ˙2/2−Vϕ˙2/2+Vw_\phi(\dot\phi, V) = \frac{\dot\phi^2/2 - V}{\dot\phi^2/2 + V}wϕ​(ϕ˙​,V)=ϕ˙​2/2+Vϕ˙​2/2−V​.
  8. CPL (19): w(a)=w0+(1−a)waw(a) = w_0 + (1-a)w_aw(a)=w0​+(1−a)wa​. BA (20): w(a)=w0+wa1−aa2+(1−a)2w(a) = w_0 + w_a\frac{1-a}{a^2+(1-a)^2}w(a)=w0​+wa​a2+(1−a)21−a​.
  9. Luminosity distance (formula after Eq. (11)). The comoving distance is χ(z)=∫0zdz~/H(z~)\chi(z) = \int_0^z d\tilde z/H(\tilde z)χ(z)=∫0z​dz~/H(z~), and
dL=(1+z){sinh⁡(ΩkH0χ)H0Ωk,Ωk>0,χ,Ωk=0,sin⁡(∣Ωk∣H0χ)H0∣Ωk∣,Ωk<0.d_L = (1+z)\begin{cases}\dfrac{\sinh(\sqrt{\Omega_k}H_0\chi)}{H_0\sqrt{\Omega_k}}, & \Omega_k>0,\\ \chi, & \Omega_k = 0,\\ \dfrac{\sin(\sqrt{|\Omega_k|}H_0\chi)}{H_0\sqrt{|\Omega_k|}}, & \Omega_k<0.\end{cases}dL​=(1+z)⎩⎨⎧​H0​Ωk​​sinh(Ωk​​H0​χ)​,χ,H0​∣Ωk​∣​sin(∣Ωk​∣​H0​χ)​,​Ωk​>0,Ωk​=0,Ωk​<0.​
  1. Cut-off vacuum energy (10): ρvac(klim⁡)=∫∣k∣≤klim⁡12∣k∣2+m2 d3k(2π)3\rho_{\rm vac}(k_{\lim}) = \int_{|k|\le k_{\lim}} \tfrac12\sqrt{|k|^2+m^2}\,\frac{d^3k}{(2\pi)^3}ρvac​(klim​)=∫∣k∣≤klim​​21​∣k∣2+m2​(2π)3d3k​, with k∈R3k \in \mathbb R^3k∈R3.

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 1/(1+z)1/(1+z)1/(1+z) and assigns sin⁡\sinsin to Ωk>0\Omega_k>0Ωk​>0, which conflicts with its own Ωk=−K/H02\Omega_k=-K/H_0^2Ωk​=−K/H02​. The equation of state wϕw_\phiwϕ​ is pϕ/ρϕp_\phi/\rho_\phipϕ​/ρϕ​, whereas the source's Eq. (18) prints its reciprocal. The vacuum energy includes the zero-point factor 1/21/21/2 needed for the source's klim⁡4/(16π2)k_{\lim}^4/(16\pi^2)klim4​/(16π2).

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)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me