Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The metric is covariantly constant

Proved
EinsteinFieldEquationsD.metric_covariantly_constant

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

differential-geometryeinstein-field-equationsgeneral-relativity

Let ggg be a smooth, symmetric, nondegenerate metric on an open set U⊆RDU\subseteq\mathbb{R}^DU⊆RD. Then ggg is covariantly constant for its Levi-Civita connection:

∇λgμν=∂λgμν−Γλμσgσν−Γλνσgμσ=0on U.\nabla_\lambda g_{\mu\nu}=\partial_\lambda g_{\mu\nu}-\Gamma^\sigma_{\lambda\mu}g_{\sigma\nu}-\Gamma^\sigma_{\lambda\nu}g_{\mu\sigma}=0\quad\text{on }U.∇λ​gμν​=∂λ​gμν​−Γλμσ​gσν​−Γλνσ​gμσ​=0on U.
Preamble
import Mathlib
import Definitions.Def_EinsteinFieldEquationsD_Defs
Formal statement
namespace EinsteinFieldEquationsD

theorem metric_covariantly_constant {D : ℕ} (g : Tensor2 D) (U : Set (Coord D)) (hg : IsMetricOn g U) :
    ∀ x ∈ U, ∀ l a b : Fin D, covDeriv2 g g x l a b = 0 := by sorry

end EinsteinFieldEquationsD
Source
Wikipedia, "Einstein field equations", revision oldid=1374672993, https://en.wikipedia.org/w/index.php?title=Einstein_field_equations&oldid=1374672993; section 'Features — Conservation of energy and momentum', derivation box
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 (Aristotle, by Harmonic) that drafted the Lean statements it describes, with full knowledge of the source and of the intended meaning. It is not the output of a blind, independent auditor, and no reviewer should treat it as such. Compare it against the Lean code yourself.

Here DDD is an arbitrary natural number, points are x∈RDx \in \mathbb{R}^Dx∈RD, ggg is any function assigning to each point a real D×DD\times DD×D matrix (gab(x))(g_{ab}(x))(gab​(x)), and U⊆RDU \subseteq \mathbb{R}^DU⊆RD is any set. The hypothesis that ggg is a metric on UUU means: UUU is open; every component x↦gab(x)x \mapsto g_{ab}(x)x↦gab​(x) is C∞C^\inftyC∞ on UUU; gab(x)=gba(x)g_{ab}(x) = g_{ba}(x)gab​(x)=gba​(x) for x∈Ux \in Ux∈U; and det⁡g(x)≠0\det g(x) \neq 0detg(x)=0 for x∈Ux \in Ux∈U. No signature (Lorentzian or otherwise) is imposed. Outside UUU, ggg is unconstrained.

Claim. For every x∈Ux\in Ux∈U and all l,a,bl,a,bl,a,b,

∂lgab(x)−∑s(Γlas(x) gsb(x)+Γlbs(x) gas(x))=0,\partial_l g_{ab}(x)-\sum_s\big(\Gamma^s_{la}(x)\,g_{sb}(x)+\Gamma^s_{lb}(x)\,g_{as}(x)\big)=0,∂l​gab​(x)−s∑​(Γlas​(x)gsb​(x)+Γlbs​(x)gas​(x))=0,

with Γabc=12∑sgcs(∂agsb+∂bgsa−∂sgab)\Gamma^c_{ab}=\tfrac12\sum_s g^{cs}(\partial_a g_{sb}+\partial_b g_{sa}-\partial_s g_{ab})Γabc​=21​∑s​gcs(∂a​gsb​+∂b​gsa​−∂s​gab​) and gcsg^{cs}gcs the matrix inverse of g(x)g(x)g(x). This is the covariant derivative of the 2-tensor field ggg itself, as defined in the definitions file.

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

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 10, 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