Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The Schwarzschild metric solves the vacuum Einstein equation

Proved
CarrollGR.schwarzschild_ricci_zero

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

differential-geometrygeneral-relativitymathematical-physics

Let G>0G>0G>0 and m>0m>0m>0. The Schwarzschild metric

ds2=−(1−2Gmr)dt2+(1−2Gmr)−1dr2+r2(dθ2+sin⁡2θ dϕ2)ds^2=-\left(1-\frac{2Gm}{r}\right)dt^2+\left(1-\frac{2Gm}{r}\right)^{-1}dr^2+r^2(d\theta^2+\sin^2\theta\,d\phi^2)ds2=−(1−r2Gm​)dt2+(1−r2Gm​)−1dr2+r2(dθ2+sin2θdϕ2)

has vanishing Ricci tensor, Rμν=0R_{\mu\nu}=0Rμν​=0, at every point (t,r,θ,ϕ)(t,r,\theta,\phi)(t,r,θ,ϕ) with r>0r>0r>0, r≠2Gmr\neq2Gmr=2Gm and 0<θ<π0<\theta<\pi0<θ<π — both outside (r>2Gmr>2Gmr>2Gm) and inside (0<r<2Gm0<r<2Gm0<r<2Gm) the event horizon.

This is the existence half of Carroll's statement that (72) is the solution of the vacuum equation (69) with spherical symmetry.

Formalization Note The points r=0r=0r=0, r=2Gmr=2Gmr=2Gm where the components blow up, and sin⁡θ=0\sin\theta=0sinθ=0 where the coordinates degenerate, are excluded.

Preamble
import Mathlib
import Definitions.Def_CarrollGR_Defs

open scoped ContDiff
Formal statement
namespace CarrollGR

theorem schwarzschild_ricci_zero (GN m : ℝ) (hGN : 0 < GN) (hm : 0 < m) (x : Coord)
    (hr : 0 < x 1) (hr' : x 1 ≠ 2 * GN * m) (hθ : x 2 ∈ Set.Ioo 0 Real.pi) (μ ν : Fin 4) :
    ricci (schwarzschild GN m) μ ν x = 0 := by sorry

end CarrollGR
Source
S. M. Carroll, "A No-Nonsense Introduction to General Relativity" (lecture notes, 2001), uploaded PDF, p. 17, eq. (72) (with eq. (69), p. 16)
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. Let ggg be the field g(x)=diag(−(1−2Gm/x1),  (1−2Gm/x1)−1,  (x1)2,  (x1)2sin⁡2x2)g(x)=\mathrm{diag}\big(-(1-2Gm/x^1),\;(1-2Gm/x^1)^{-1},\;(x^1)^2,\;(x^1)^2\sin^2x^2\big)g(x)=diag(−(1−2Gm/x1),(1−2Gm/x1)−1,(x1)2,(x1)2sin2x2) (defined at every point, with a/0=0a/0=0a/0=0 and 0−1=00^{-1}=00−1=0). For all real G>0G>0G>0, m>0m>0m>0, every point xxx with x1>0x^1>0x1>0, x1≠2Gmx^1\neq2Gmx1=2Gm and 0<x2<π0<x^2<\pi0<x2<π (no condition on x0,x3x^0,x^3x0,x3), and all μ,ν\mu,\nuμ,ν:

Rμν(x)=0.R_{\mu\nu}(x)=0 .Rμν​(x)=0.
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