Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Minkowski metric in spherical coordinates

Proved
CarrollGR.spherical_coordinates_minkowski

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

differential-geometrygeneral-relativitymathematical-physics

Let Φ(t,r,θ,ϕ)=(t,  rsin⁡θcos⁡ϕ,  rsin⁡θsin⁡ϕ,  rcos⁡θ)\Phi(t,r,\theta,\phi)=(t,\;r\sin\theta\cos\phi,\;r\sin\theta\sin\phi,\;r\cos\theta)Φ(t,r,θ,ϕ)=(t,rsinθcosϕ,rsinθsinϕ,rcosθ) be the change to spherical coordinates on space, and let J=∂Φa/∂xμJ=\partial\Phi^a/\partial x^\muJ=∂Φa/∂xμ be its Jacobian matrix at a point x=(t,r,θ,ϕ)x=(t,r,\theta,\phi)x=(t,r,θ,ϕ). Then the components of the Minkowski metric η=diag⁡(−1,1,1,1)\eta=\operatorname{diag}(-1,1,1,1)η=diag(−1,1,1,1) in the new coordinates are

JT η J=(−1000010000r20000r2sin⁡2θ),J^{\mathsf T}\,\eta\,J=\begin{pmatrix}-1&0&0&0\\0&1&0&0\\0&0&r^2&0\\0&0&0&r^2\sin^2\theta\end{pmatrix},JTηJ=​−1000​0100​00r20​000r2sin2θ​​,

that is, ds2=−dt2+dr2+r2dθ2+r2sin⁡2θ dϕ2ds^2=-dt^2+dr^2+r^2d\theta^2+r^2\sin^2\theta\,d\phi^2ds2=−dt2+dr2+r2dθ2+r2sin2θdϕ2.

This is Carroll's example showing that a flat metric can have non-constant components in non-Cartesian coordinates, and it provides the angular part of every spherically symmetric metric used later.

Formalization Note The right-hand side is sphericalMetric with A=B=1A=B=1A=B=1. The identity is claimed at every point, including r=0r=0r=0 and sin⁡θ=0\sin\theta=0sinθ=0, where both sides are still defined.

Preamble
import Mathlib
import Definitions.Def_CarrollGR_Defs

open scoped ContDiff
Formal statement
namespace CarrollGR

theorem spherical_coordinates_minkowski (x : Coord) :
    (jacobian sphericalToCartesian x).transpose * minkowskiEta * jacobian sphericalToCartesian x
      = sphericalMetric (fun _ _ => 1) (fun _ _ => 1) x := by sorry

end CarrollGR
Source
S. M. Carroll, "A No-Nonsense Introduction to General Relativity" (lecture notes, 2001), uploaded PDF, p. 7, eqs. (18)–(20)
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.

For every point x=(x0,x1,x2,x3)∈R4x=(x^0,x^1,x^2,x^3)\in\mathbb R^4x=(x0,x1,x2,x3)∈R4 (no restriction), let JJJ be the 4×44\times44×4 matrix with entry (a,μ)(a,\mu)(a,μ) equal to ∂μΦa(x)\partial_\mu\Phi^a(x)∂μ​Φa(x), where Φ(x)=(x0,  x1sin⁡x2cos⁡x3,  x1sin⁡x2sin⁡x3,  x1cos⁡x2)\Phi(x)=(x^0,\;x^1\sin x^2\cos x^3,\;x^1\sin x^2\sin x^3,\;x^1\cos x^2)Φ(x)=(x0,x1sinx2cosx3,x1sinx2sinx3,x1cosx2) and ∂μ\partial_\mu∂μ​ is the Fréchet derivative in the μ\muμ-th coordinate direction. The statement asserts the matrix identity

JT diag(−1,1,1,1) J=diag(−1,  1,  (x1)2,  (x1)2sin⁡2x2).J^{\mathsf T}\,\mathrm{diag}(-1,1,1,1)\,J=\mathrm{diag}\big(-1,\;1,\;(x^1)^2,\;(x^1)^2\sin^2 x^2\big).JTdiag(−1,1,1,1)J=diag(−1,1,(x1)2,(x1)2sin2x2).

The right side is the definition sphericalMetric with both functions A,BA,BA,B constantly equal to 111. There are no hypotheses.

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