Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Birkhoff's theorem (uniqueness of the spherically symmetric vacuum solution)

Proved
CarrollGR.birkhoff

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

differential-geometrygeneral-relativitymathematical-physics

Let G>0G>0G>0, let I=(t1,t2)I=(t_1,t_2)I=(t1​,t2​) and J=(r1,r2)J=(r_1,r_2)J=(r1​,r2​) be open intervals with r1≥0r_1\ge0r1​≥0, and let A,BA,BA,B be smooth, strictly positive functions of (r,t)∈J×I(r,t)\in J\times I(r,t)∈J×I. Suppose the spherically symmetric metric

ds2=−A(r,t) dt2+B(r,t) dr2+r2(dθ2+sin⁡2θ dϕ2)ds^2=-A(r,t)\,dt^2+B(r,t)\,dr^2+r^2(d\theta^2+\sin^2\theta\,d\phi^2)ds2=−A(r,t)dt2+B(r,t)dr2+r2(dθ2+sin2θdϕ2)

satisfies the vacuum Einstein equation Rμν=0R_{\mu\nu}=0Rμν​=0 at every point with r∈Jr\in Jr∈J, t∈It\in It∈I, 0<θ<π0<\theta<\pi0<θ<π. Then there are a constant mmm and a positive function fff of ttt such that for all r∈Jr\in Jr∈J, t∈It\in It∈I

A(r,t)=f(t)(1−2Gmr),B(r,t)=(1−2Gmr)−1.A(r,t)=f(t)\left(1-\frac{2Gm}{r}\right),\qquad B(r,t)=\left(1-\frac{2Gm}{r}\right)^{-1}.A(r,t)=f(t)(1−r2Gm​),B(r,t)=(1−r2Gm​)−1.

After the time reparametrization dt′=f(t) dtdt'=\sqrt{f(t)}\,dtdt′=f(t)​dt this is exactly the Schwarzschild metric (72): the gravitational field outside any spherically symmetric distribution of matter is static and depends only on one constant.

Formalization Note Carroll's "unique" is necessarily up to the freedom of rescaling ttt, which is why the factor f(t)f(t)f(t) appears. The constant mmm is not required to be positive.

Preamble
import Mathlib
import Definitions.Def_CarrollGR_Defs

open scoped ContDiff
Formal statement
namespace CarrollGR

theorem birkhoff (GN : ℝ) (hGN : 0 < GN) (A B : ℝ → ℝ → ℝ) (r₁ r₂ t₁ t₂ : ℝ) (hr₁ : 0 ≤ r₁)
    (hA : ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => A p.1 p.2) (Set.Ioo r₁ r₂ ×ˢ Set.Ioo t₁ t₂))
    (hB : ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => B p.1 p.2) (Set.Ioo r₁ r₂ ×ˢ Set.Ioo t₁ t₂))
    (hApos : ∀ r ∈ Set.Ioo r₁ r₂, ∀ t ∈ Set.Ioo t₁ t₂, 0 < A r t)
    (hBpos : ∀ r ∈ Set.Ioo r₁ r₂, ∀ t ∈ Set.Ioo t₁ t₂, 0 < B r t)
    (hvac : ∀ x : Coord, x 1 ∈ Set.Ioo r₁ r₂ → x 0 ∈ Set.Ioo t₁ t₂ → x 2 ∈ Set.Ioo 0 Real.pi →
      ∀ μ ν : Fin 4, ricci (sphericalMetric A B) μ ν x = 0) :
    ∃ m : ℝ, ∃ f : ℝ → ℝ, ∀ r ∈ Set.Ioo r₁ r₂, ∀ t ∈ Set.Ioo t₁ t₂,
      0 < f t ∧ A r t = f t * (1 - 2 * GN * m / r) ∧ B r t = (1 - 2 * GN * m / r)⁻¹ := by sorry

end CarrollGR
Source
S. M. Carroll, "A No-Nonsense Introduction to General Relativity" (lecture notes, 2001), uploaded PDF, p. 17, eqs. (71)–(72) and the paragraph following (72) (Birkhoff's theorem)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) - same agent as the drafter; non-blind

Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statement, with full knowledge of the source text and of the intended meaning. It is not a blind audit by an independent reader and must not be treated as one; reviewers should compare the Lean code against the source themselves.

Throughout: a point is x=(x0,x1,x2,x3)∈R4x=(x^0,x^1,x^2,x^3)\in\mathbb R^4x=(x0,x1,x2,x3)∈R4; a two-index field TTT assigns to every point a real 4×44\times44×4 matrix Tμν(x)T_{\mu\nu}(x)Tμν​(x), defined at every point of R4\mathbb R^4R4; ∂μf(x)\partial_\mu f(x)∂μ​f(x) is the Fréchet derivative of fff at xxx applied to the μ\muμ-th standard basis vector, which is defined to be 000 when fff is not differentiable at xxx; gμν(x)g^{\mu\nu}(x)gμν(x) is the matrix inverse of gμν(x)g_{\mu\nu}(x)gμν​(x), which is defined to be the zero matrix when gμν(x)g_{\mu\nu}(x)gμν​(x) is singular. Γ\GammaΓ, RσμαβR^\sigma{}_{\mu\alpha\beta}Rσμαβ​, RμνR_{\mu\nu}Rμν​, RRR, GμνG_{\mu\nu}Gμν​ are given by the literal formulas of the definition file CarrollGR_Defs (Carroll eqs. (36), (44), (45), (46), (50)); indices run over {0,1,2,3}\{0,1,2,3\}{0,1,2,3} and repeated indices are summed.

Statement. For every real G>0G>0G>0, all functions A,B:R×R→RA,B:\mathbb R\times\mathbb R\to\mathbb RA,B:R×R→R (arguments (r,t)(r,t)(r,t)) and all reals r1,r2,t1,t2r_1,r_2,t_1,t_2r1​,r2​,t1​,t2​ with r1≥0r_1\ge0r1​≥0, assume:

  1. (r,t)↦A(r,t)(r,t)\mapsto A(r,t)(r,t)↦A(r,t) and (r,t)↦B(r,t)(r,t)\mapsto B(r,t)(r,t)↦B(r,t) are C∞C^\inftyC∞ on the open rectangle (r1,r2)×(t1,t2)(r_1,r_2)\times(t_1,t_2)(r1​,r2​)×(t1​,t2​);
  2. A(r,t)>0A(r,t)>0A(r,t)>0 and B(r,t)>0B(r,t)>0B(r,t)>0 for all r∈(r1,r2)r\in(r_1,r_2)r∈(r1​,r2​), t∈(t1,t2)t\in(t_1,t_2)t∈(t1​,t2​);
  3. for every x∈R4x\in\mathbb R^4x∈R4 with x1∈(r1,r2)x^1\in(r_1,r_2)x1∈(r1​,r2​), x0∈(t1,t2)x^0\in(t_1,t_2)x0∈(t1​,t2​), 0<x2<π0<x^2<\pi0<x2<π (any x3x^3x3) and all μ,ν\mu,\nuμ,ν, the Ricci tensor of the field g(x)=diag(−A(x1,x0), B(x1,x0), (x1)2, (x1)2sin⁡2x2)g(x)=\mathrm{diag}\big(-A(x^1,x^0),\,B(x^1,x^0),\,(x^1)^2,\,(x^1)^2\sin^2x^2\big)g(x)=diag(−A(x1,x0),B(x1,x0),(x1)2,(x1)2sin2x2) vanishes: Rμν(x)=0R_{\mu\nu}(x)=0Rμν​(x)=0.

Then there exist a real number mmm and a function f:R→Rf:\mathbb R\to\mathbb Rf:R→R such that for all r∈(r1,r2)r\in(r_1,r_2)r∈(r1​,r2​) and t∈(t1,t2)t\in(t_1,t_2)t∈(t1​,t2​):

f(t)>0,A(r,t)=f(t)(1−2Gmr),B(r,t)=(1−2Gmr)−1.f(t)>0,\qquad A(r,t)=f(t)\Big(1-\frac{2Gm}{r}\Big),\qquad B(r,t)=\Big(1-\frac{2Gm}{r}\Big)^{-1}.f(t)>0,A(r,t)=f(t)(1−r2Gm​),B(r,t)=(1−r2Gm​)−1.

If either interval is empty the hypotheses and conclusion are vacuous. Nothing is asserted about fff outside (t1,t2)(t_1,t_2)(t1​,t2​).

Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Oct 8, 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