Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Einstein's equation in trace-reversed form

Proved
CarrollGR.einstein_eq_iff_trace_reversed

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

differential-geometrygeneral-relativitymathematical-physics

Let gμν(x)g_{\mu\nu}(x)gμν​(x) have signature (−+++)(-+++)(−+++) at a point xxx, let GGG be a real constant and TμνT_{\mu\nu}Tμν​ any two-index field, with trace T=gμνTμνT=g^{\mu\nu}T_{\mu\nu}T=gμνTμν​. Then Einstein's equation holds at xxx if and only if

Rμν=8πG(Tμν−12T gμν)for all μ,ν.R_{\mu\nu}=8\pi G\left(T_{\mu\nu}-\tfrac12T\,g_{\mu\nu}\right)\qquad\text{for all }\mu,\nu .Rμν​=8πG(Tμν​−21​Tgμν​)for all μ,ν.

The trace-reversed form is the convenient one for vacuum problems, where it reduces to Rμν=0R_{\mu\nu}=0Rμν​=0.

Formalization Note Carroll derives (68) from (57); the equivalence (both directions) is stated here, which is what "we can rewrite Einstein's equations as" asserts.

Preamble
import Mathlib
import Definitions.Def_CarrollGR_Defs

open scoped ContDiff
Formal statement
namespace CarrollGR

theorem einstein_eq_iff_trace_reversed (g T : TensorField2) (GN : ℝ) (x : Coord)
    (hg : IsLorentzian (g x)) :
    EinsteinEq g GN T x ↔
      ∀ μ ν : Fin 4, ricci g μ ν x
        = 8 * Real.pi * GN * (T x μ ν - (1 / 2 : ℝ) * metricTrace g T x * g x μ ν) := by sorry

end CarrollGR
Source
S. M. Carroll, "A No-Nonsense Introduction to General Relativity" (lecture notes, 2001), uploaded PDF, p. 16, eq. (68)
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 all fields g,Tg,Tg,T, every real GGG and every point xxx such that g(x)g(x)g(x) is Lorentzian, the following are equivalent:

  1. for all μ,ν\mu,\nuμ,ν: Rμν(x)−12R(x)gμν(x)=8πG Tμν(x)R_{\mu\nu}(x)-\frac12R(x)g_{\mu\nu}(x)=8\pi G\,T_{\mu\nu}(x)Rμν​(x)−21​R(x)gμν​(x)=8πGTμν​(x);
  2. for all μ,ν\mu,\nuμ,ν: Rμν(x)=8πG(Tμν(x)−12 τ gμν(x))R_{\mu\nu}(x)=8\pi G\big(T_{\mu\nu}(x)-\frac12\,\tau\,g_{\mu\nu}(x)\big)Rμν​(x)=8πG(Tμν​(x)−21​τgμν​(x)), where τ=∑α,βgαβ(x)Tαβ(x)\tau=\sum_{\alpha,\beta}g^{\alpha\beta}(x)T_{\alpha\beta}(x)τ=∑α,β​gαβ(x)Tαβ​(x).

No smoothness is assumed; GGG is any real number.

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