Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Λ\LambdaΛ is a perfect fluid with ρvac=Λ/8πG\rho_{\mathrm{vac}}=\Lambda/8\pi Gρvac​=Λ/8πG and w=−1w=-1w=−1

Proved
EinsteinStaticUniverse.lambda_is_vacuum_energy

by LG · Sep 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

cosmologydifferential-equationsdynamical-systemsmathematical-physics

A cosmological constant is indistinguishable, at the level of the Friedmann equations, from a perfect fluid of constant energy density and negative pressure. Let G≠0G\neq0G=0 and let Λ,k\Lambda,kΛ,k be real, let ρ\rhoρ be any energy-density history, aaa any scale factor and III any set of times. Then the first Friedmann equation with cosmological constant Λ\LambdaΛ,

a˙2=8πG3ρ a2−k+Λ3a2,\dot a^{2}=\frac{8\pi G}{3}\rho\,a^{2}-k+\frac{\Lambda}{3}a^{2},a˙2=38πG​ρa2−k+3Λ​a2,

holds on III if and only if the same equation with Λ\LambdaΛ removed holds on III for the shifted density ρ+ρvac\rho+\rho_{\text{vac}}ρ+ρvac​, where

ρvac=Λ8πG,\rho_{\text{vac}}=\frac{\Lambda}{8\pi G},ρvac​=8πGΛ​,

i.e. Λ=κρvac\Lambda=\kappa\rho_{\text{vac}}Λ=κρvac​ with κ=8πG\kappa=8\pi Gκ=8πG. Moreover the pair (ρvac,pvac)(\rho_{\text{vac}},p_{\text{vac}})(ρvac​,pvac​) with pvac=−ρvacp_{\text{vac}}=-\rho_{\text{vac}}pvac​=−ρvac​ satisfies the continuity equation

ρ˙vac+3a˙a(ρvac+pvac)=0\dot\rho_{\text{vac}}+3\frac{\dot a}{a}\left(\rho_{\text{vac}}+p_{\text{vac}}\right)=0ρ˙​vac​+3aa˙​(ρvac​+pvac​)=0

for every scale factor aaa, which is the statement that a constant vacuum density is conserved precisely because its equation of state is w=−1w=-1w=−1.

This is the formal content of the standard move of shifting Λgμν\Lambda g_{\mu\nu}Λgμν​ to the right-hand side of the field equations and calling it vacuum energy; it is the identification on which the cosmological constant problem rests.

Preamble
import Mathlib
import Definitions.Def_EinsteinStaticUniverse_model
Formal statement
namespace EinsteinStaticUniverse

theorem lambda_is_vacuum_energy (G Λ k : ℝ) (hG : G ≠ 0) (ρ : ℝ → ℝ) (a : ℝ → ℝ) (I : Set ℝ) :
    (FriedmannGeneral G Λ k ρ a I ↔
      FriedmannGeneral G 0 k (fun t => ρ t + vacuumDensity G Λ) a I) ∧
    ContinuityEquation (fun _ => vacuumDensity G Λ) (fun _ => vacuumPressure G Λ) a I := by sorry

end EinsteinStaticUniverse
Source
Wikipedia, 'Cosmological constant', https://en.wikipedia.org/wiki/Cosmological_constant (sections 'History', 'Equation', 'Density parameter', 'Equation of state', 'Value', 'Predictions'); Wikipedia, 'Cosmological constant problem', https://en.wikipedia.org/wiki/Cosmological_constant_problem (sections 'History', 'Estimated values')
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.

Throughout, a:R→Ra:\mathbb R\to\mathbb Ra:R→R is an arbitrary real function of one real variable, a˙\dot aa˙ and a¨\ddot aa¨ denote its first and second derivatives in the sense of the ambient library (which returns the value 000 at a point where the function is not differentiable), and every equation is required only at the times ttt belonging to the explicitly given set I⊆RI\subseteq\mathbb RI⊆R. Division is total: a quotient with denominator 000 evaluates to 000.

Let G,Λ,kG,\Lambda,kG,Λ,k be real numbers with G≠0G\neq 0G=0, let ρ:R→R\rho:\mathbb R\to\mathbb Rρ:R→R and a:R→Ra:\mathbb R\to\mathbb Ra:R→R be arbitrary functions, and let I⊆RI\subseteq\mathbb RI⊆R be an arbitrary set of times. The statement asserts the conjunction of two claims.

First claim (an equivalence of two equations). The statement

∀ t∈I:a˙(t)2=8πG3ρ(t)a(t)2−k+Λ3a(t)2\forall\,t\in I:\quad \dot a(t)^{2}=\frac{8\pi G}{3}\rho(t)a(t)^{2}-k+\frac{\Lambda}{3}a(t)^{2}∀t∈I:a˙(t)2=38πG​ρ(t)a(t)2−k+3Λ​a(t)2

holds if and only if

∀ t∈I:a˙(t)2=8πG3(ρ(t)+Λ8πG)a(t)2−k+03a(t)2,\forall\,t\in I:\quad \dot a(t)^{2}=\frac{8\pi G}{3}\Big(\rho(t)+\frac{\Lambda}{8\pi G}\Big)a(t)^{2}-k+\frac{0}{3}a(t)^{2},∀t∈I:a˙(t)2=38πG​(ρ(t)+8πGΛ​)a(t)2−k+30​a(t)2,

i.e. the same equation with the cosmological constant set to zero and the constant Λ/(8πG)\Lambda/(8\pi G)Λ/(8πG) added to the density.

Second claim (a continuity equation). With the constant functions t↦Λ/(8πG)t\mapsto \Lambda/(8\pi G)t↦Λ/(8πG) and t↦−Λ/(8πG)t\mapsto -\Lambda/(8\pi G)t↦−Λ/(8πG) in the roles of density and pressure,

∀ t∈I:ddt(Λ8πG)+3 a˙(t)a(t)(Λ8πG−Λ8πG)=0.\forall\,t\in I:\quad \frac{d}{dt}\Big(\frac{\Lambda}{8\pi G}\Big)+3\,\frac{\dot a(t)}{a(t)}\Big(\frac{\Lambda}{8\pi G}-\frac{\Lambda}{8\pi G}\Big)=0 .∀t∈I:dtd​(8πGΛ​)+3a(t)a˙(t)​(8πGΛ​−8πGΛ​)=0.

This second claim involves aaa only through the quotient a˙(t)/a(t)\dot a(t)/a(t)a˙(t)/a(t), is asserted for the same arbitrary III, and makes no positivity or differentiability assumption on aaa; if I=∅I=\varnothingI=∅ both claims are vacuous.

Human review
  • Endorsed by Shuze Chen · Sep 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 24, 2026

    Confirmed by the mission captain (proposal self-audit).

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