Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Classical spacetimes on R^4, Trautman geometrization, and the categories NG1, NG2, GNG

Definition
NewtonCartan_defs

by Alien60 · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

category-theoryclassical-spacetimegeometrized-newtonian-gravitationnewton-cartanphilosophy-of-physicstheoretical-equivalence

On R4\mathbb R^4R4 (global chart, index 0 = time) with ta=dx0t_a=dx^0ta​=dx0 and hab=diag(0,1,1,1)h^{ab}=\mathrm{diag}(0,1,1,1)hab=diag(0,1,1,1): derivative operators as smooth symmetric Christoffel fields; compatibility ∇atb=0\nabla_at_b=0∇a​tb​=0, ∇ahbc=0\nabla_ah^{bc}=0∇a​hbc=0; Riemann tensor in Malament's convention, Ricci Rbc=RnbcnR_{bc}=R^n{}_{bcn}Rbc​=Rnbcn​, raised forms RabcdR^a{}_b{}^c{}_dRab​cd​, RabcdR^{ab}{}_{cd}Rabcd​; Poisson's equation hab∇a∇bφ=4πρh^{ab}\nabla_a\nabla_b\varphi=4\pi\rhohab∇a​∇b​φ=4πρ; NG objects (flat compatible ∇\nabla∇, smooth φ\varphiφ); geometrization Γ~=Γ+tbtc∇aφ\tilde\Gamma=\Gamma+t_bt_c\nabla^a\varphiΓ~=Γ+tb​tc​∇aφ; GNG objects (compatible, curvature conditions (1)-(3) for some smooth ρ\rhoρ); unit-timelike curves, geodesics and Newtonian trajectories on open intervals; diffeomorphisms preserving t,ht,ht,h and carrying one Christoffel field to another (transformation law); arrows of GNG, NG1_11​ and NG2_22​ (gauge ψ\psiψ with ∇a∇bψ=0\nabla^a\nabla^b\psi=0∇a∇bψ=0, gauge-transformed Γ−tbtc∇aψ\Gamma-t_bt_c\nabla^a\psiΓ−tb​tc​∇aψ).

Definition code
import Mathlib.Analysis.Calculus.ContDiff.Defs
import Mathlib.Analysis.Calculus.Deriv.Basic
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic

/-!
# Newtonian gravitation and geometrized Newtonian gravitation on `ℝ⁴`

Setting of J. O. Weatherall, "Are Newtonian Gravitation and Geometrized Newtonian Gravitation
Theoretically Equivalent?", Erkenntnis 81 (2016) 1073–1091, arXiv:1411.5757, §2 and §6, with the
conventions of D. Malament, *Topics in the Foundations of General Relativity and Newtonian
Gravitation Theory* (2012), Ch. 4. Spacetime is `ℝ⁴` (Weatherall, p. 3), written in one global
chart `E = Fin 4 → ℝ`; index `0` is time and `1, 2, 3` are space.

The classical metrics are the standard ones: the temporal 1-form `t_a = dx⁰` (`tt`) and the spatial
metric `h^{ab} = diag(0,1,1,1)` (`hh`). A derivative operator is a smooth field of Christoffel
symbols `Γ x a b c = Γ^a_{bc}(x)`, symmetric in `b c` (torsion-free), acting by
`∇_b ξ^a = ∂_b ξ^a + Γ^a_{bn} ξ^n` and `∇_b α_c = ∂_b α_c - Γ^n_{bc} α_n`.

* `riem Γ x a b c d` — Riemann tensor `R^a_{bcd}` in Malament's sign convention
  `ξ^b R^a_{bcd} = -2 ∇_{[c} ∇_{d]} ξ^a`; `ricci Γ x b c = R^n_{bcn}`.
* `IsNG Γ φ` — objects of NG: flat, compatible derivative operator with a smooth potential.
* `geomΓ Γ φ` — Trautman geometrization `∇̃ = (∇, C^a_{bc} = -t_b t_c ∇^a φ)`, i.e.
  `Γ̃^a_{bc} = Γ^a_{bc} + t_b t_c h^{an} ∂_n φ`.
* `IsGNG Γ` — objects of GNG: compatible derivative operators obeying conditions (1)–(3).
* `IsGNGArrow`, `IsNG1Arrow`, `IsNG2Arrow` — arrows of Weatherall's categories GNG, NG₁, NG₂ (§6),
  on the diffeomorphism level (`f : E ≃ E`, smooth with smooth inverse).
-/

open scoped ContDiff

namespace NewtonCartan

/-- Spacetime `ℝ⁴` in a global chart; coordinate `0` is time. -/
abbrev E := Fin 4 → ℝ

/-- Partial derivative `∂_b f (x)` of a scalar field. -/
noncomputable def pd (f : E → ℝ) (b : Fin 4) (x : E) : ℝ := fderiv ℝ f x (Pi.single b 1)

/-- Second partial derivative `∂_b ∂_c f (x)`. -/
noncomputable def pd2 (f : E → ℝ) (b c : Fin 4) (x : E) : ℝ := pd (fun y => pd f c y) b x

/-- The temporal metric 1-form `t_a = dx⁰` (components). -/
def tt (a : Fin 4) : ℝ := if a = 0 then 1 else 0

/-- The spatial metric `h^{ab} = diag(0,1,1,1)`. -/
def hh (a b : Fin 4) : ℝ := if a = b ∧ a ≠ 0 then 1 else 0

/-- A field of Christoffel symbols `Γ x a b c = Γ^a_{bc}(x)`. -/
abbrev Conn := E → Fin 4 → Fin 4 → Fin 4 → ℝ

/-- A (Malament) derivative operator: smooth and torsion-free. -/
def IsDerivOp (Γ : Conn) : Prop :=
  ContDiff ℝ ∞ Γ ∧ ∀ x a b c, Γ x a b c = Γ x a c b

/-- Compatibility with the classical metrics: `∇_b t_c = 0` and `∇_a h^{bc} = 0`. -/
def Compatible (Γ : Conn) : Prop :=
  (∀ x b c, ∑ n, Γ x n b c * tt n = 0) ∧
  (∀ x a b c, ∑ n, (Γ x b a n * hh n c + Γ x c a n * hh b n) = 0)

/-- A classical spacetime `(ℝ⁴, t_a, h^{ab}, ∇)`. -/
def IsClassical (Γ : Conn) : Prop := IsDerivOp Γ ∧ Compatible Γ

/-- Riemann tensor `R^a_{bcd}` (Malament's convention `ξ^b R^a_{bcd} = -2∇_{[c}∇_{d]}ξ^a`). -/
noncomputable def riem (Γ : Conn) (x : E) (a b c d : Fin 4) : ℝ :=
  pd (fun y => Γ y a c b) d x - pd (fun y => Γ y a d b) c x
    + ∑ e, (Γ x a d e * Γ x e c b - Γ x a c e * Γ x e d b)

/-- Ricci tensor `R_{bc} = R^n_{bcn}`. -/
noncomputable def ricci (Γ : Conn) (x : E) (b c : Fin 4) : ℝ := ∑ n, riem Γ x n b c n

/-- `R^a{}_b{}^c{}_d = R^a_{bnd} h^{nc}`. -/
noncomputable def riemUp3 (Γ : Conn) (x : E) (a b c d : Fin 4) : ℝ :=
  ∑ n, riem Γ x a b n d * hh n c

/-- `R^{ab}{}_{cd} = R^a_{ncd} h^{nb}`. -/
noncomputable def riemUp2 (Γ : Conn) (x : E) (a b c d : Fin 4) : ℝ :=
  ∑ n, riem Γ x a n c d * hh n b

/-- Flatness `R^a_{bcd} = 0`. -/
def IsFlat (Γ : Conn) : Prop := ∀ x a b c d, riem Γ x a b c d = 0

/-- Second covariant derivative of a scalar, `∇_a ∇_b φ = ∂_a∂_b φ - Γ^n_{ab} ∂_n φ`. -/
noncomputable def hess (Γ : Conn) (φ : E → ℝ) (x : E) (a b : Fin 4) : ℝ :=
  pd2 φ a b x - ∑ n, Γ x n a b * pd φ n x

/-- `∇^a ∇_a φ = h^{ab} ∇_a ∇_b φ`. -/
noncomputable def lap (Γ : Conn) (φ : E → ℝ) (x : E) : ℝ :=
  ∑ a, ∑ b, hh a b * hess Γ φ x a b

/-- Poisson's equation `∇^a ∇_a φ = 4πρ`. -/
def Poisson (Γ : Conn) (φ ρ : E → ℝ) : Prop := ∀ x, lap Γ φ x = 4 * Real.pi * ρ x

/-- `∇^a φ = h^{an} ∂_n φ`. -/
noncomputable def gradUp (φ : E → ℝ) (x : E) (a : Fin 4) : ℝ := ∑ n, hh a n * pd φ n x

/-- Objects of NG (both NG₁ and NG₂): a flat classical spacetime with a smooth gravitational
potential `φ`. The mass density is `ρ = ∇^a∇_a φ / 4π`. -/
def IsNG (Γ : Conn) (φ : E → ℝ) : Prop := IsClassical Γ ∧ IsFlat Γ ∧ ContDiff ℝ ∞ φ

/-- Trautman geometrization `∇̃ = (∇, -t_b t_c ∇^a φ)`: `Γ̃^a_{bc} = Γ^a_{bc} + t_b t_c ∇^a φ`. -/
noncomputable def geomΓ (Γ : Conn) (φ : E → ℝ) : Conn :=
  fun x a b c => Γ x a b c + tt b * tt c * gradUp φ x a

/-- The curvature conditions of Prop. 2.1: (1) `R_{ab} = 4πρ t_a t_b`,
(2) `R^a{}_b{}^c{}_d = R^c{}_d{}^a{}_b`, (3) `R^{ab}{}_{cd} = 0`. -/
def CurvConds (Γ : Conn) (ρ : E → ℝ) : Prop :=
  (∀ x a b, ricci Γ x a b = 4 * Real.pi * ρ x * tt a * tt b) ∧
  (∀ x a b c d, riemUp3 Γ x a b c d = riemUp3 Γ x c d a b) ∧
  (∀ x a b c d, riemUp2 Γ x a b c d = 0)

/-- Objects of GNG: classical spacetimes satisfying (1)–(3) for some smooth mass density. -/
def IsGNG (Γ : Conn) : Prop := IsClassical Γ ∧ ∃ ρ : E → ℝ, ContDiff ℝ ∞ ρ ∧ CurvConds Γ ρ

/-! ### Curves -/

/-- Acceleration `ξ^n ∇_n ξ^a` of a curve `γ` at parameter `s` (with `ξ = γ'`). -/
noncomputable def accel (Γ : Conn) (γ : ℝ → E) (s : ℝ) (a : Fin 4) : ℝ :=
  deriv (deriv γ) s a + ∑ b, ∑ c, Γ (γ s) a b c * deriv γ s b * deriv γ s c

/-- A smooth timelike curve on the open interval `(s₀, s₁)`, parametrized by elapsed time:
its tangent `ξ^a` has unit temporal length, `t_a ξ^a = 1` (the unit tangent of a massive body). -/
def IsTimelikeOn (γ : ℝ → E) (s₀ s₁ : ℝ) : Prop :=
  s₀ < s₁ ∧ ContDiffOn ℝ ∞ γ (Set.Ioo s₀ s₁) ∧ ∀ s ∈ Set.Ioo s₀ s₁, deriv γ s 0 = 1

/-- `ξ^n ∇_n ξ^a = 0` along `γ` on `(s₀, s₁)`. -/
def IsGeodesicOn (Γ : Conn) (γ : ℝ → E) (s₀ s₁ : ℝ) : Prop :=
  ∀ s ∈ Set.Ioo s₀ s₁, ∀ a, accel Γ γ s a = 0

/-- Newton's law `ξ^n ∇_n ξ^a = -∇^a φ` along `γ` on `(s₀, s₁)`. -/
def IsNewtonianOn (Γ : Conn) (φ : E → ℝ) (γ : ℝ → E) (s₀ s₁ : ℝ) : Prop :=
  ∀ s ∈ Set.Ioo s₀ s₁, ∀ a, accel Γ γ s a = -gradUp φ (γ s) a

/-- Empirical agreement: the timelike geodesics of `Γ'` are exactly the Newtonian trajectories
of `(Γ, φ)`. -/
def SameTrajectories (Γ : Conn) (φ : E → ℝ) (Γ' : Conn) : Prop :=
  ∀ γ s₀ s₁, IsTimelikeOn γ s₀ s₁ → (IsGeodesicOn Γ' γ s₀ s₁ ↔ IsNewtonianOn Γ φ γ s₀ s₁)

/-! ### Diffeomorphisms and arrows -/

/-- A diffeomorphism of `ℝ⁴`: a bijection, smooth with smooth inverse. -/
def IsDiffeo (f : E ≃ E) : Prop := ContDiff ℝ ∞ f ∧ ContDiff ℝ ∞ f.symm

/-- `f` preserves the classical metrics: `f*(t_a) = t_a` and `f_*(h^{ab}) = h^{ab}`. -/
def PreservesMetrics (f : E ≃ E) : Prop :=
  (∀ x b, ∑ a, tt a * pd (fun y => f y a) b x = tt b) ∧
  (∀ x a b, ∑ c, ∑ d, pd (fun y => f y a) c x * pd (fun y => f y b) d x * hh c d = hh a b)

/-- `f` maps the derivative operator `Γ` to `Γ'` (`f_* ∇ = ∇'`), via the transformation law
`∂_b∂_c f^a + Γ'^a_{de}(f x) ∂_b f^d ∂_c f^e = ∂_n f^a Γ^n_{bc}(x)`. -/
def MapsConn (f : E ≃ E) (Γ Γ' : Conn) : Prop :=
  ∀ x a b c, pd2 (fun y => f y a) b c x
      + ∑ d, ∑ e, Γ' (f x) a d e * pd (fun y => f y d) b x * pd (fun y => f y e) c x
    = ∑ n, pd (fun y => f y a) n x * Γ x n b c

/-- Arrows of GNG: diffeomorphisms preserving `t_a`, `h^{ab}` and the derivative operator. -/
def IsGNGArrow (Γ Γ' : Conn) (f : E ≃ E) : Prop :=
  IsDiffeo f ∧ PreservesMetrics f ∧ MapsConn f Γ Γ'

/-- Arrows of NG₁ (Option 1): diffeomorphisms preserving the metrics, `∇` and `φ`. -/
def IsNG1Arrow (Γ : Conn) (φ : E → ℝ) (Γ' : Conn) (φ' : E → ℝ) (f : E ≃ E) : Prop :=
  IsGNGArrow Γ Γ' f ∧ ∀ x, φ' (f x) = φ x

/-- Gauge functions: smooth `ψ` with `∇^a ∇^b ψ = 0`. -/
def IsGauge (Γ : Conn) (ψ : E → ℝ) : Prop :=
  ContDiff ℝ ∞ ψ ∧ ∀ x a b, ∑ m, ∑ n, hh a m * hh b n * hess Γ ψ x m n = 0

/-- Gauge-transformed derivative operator `(∇, t_b t_c ∇^a ψ)`: `Γ^a_{bc} - t_b t_c ∇^a ψ`. -/
noncomputable def gaugeΓ (Γ : Conn) (ψ : E → ℝ) : Conn :=
  fun x a b c => Γ x a b c - tt b * tt c * gradUp ψ x a

/-- Arrows `(f, ψ)` of NG₂ (Option 2): `ψ` a gauge function and `f` a diffeomorphism preserving
the metrics and carrying `(∇, φ)` gauge transformed by `ψ` to `(∇', φ')`. -/
def IsNG2Arrow (Γ : Conn) (φ : E → ℝ) (Γ' : Conn) (φ' : E → ℝ) (f : E ≃ E) (ψ : E → ℝ) :
    Prop :=
  IsGauge Γ ψ ∧ IsGNGArrow (gaugeΓ Γ ψ) Γ' f ∧ ∀ x, φ' (f x) = φ x + ψ x

end NewtonCartan
Source
J. O. Weatherall, Are Newtonian Gravitation and Geometrized Newtonian Gravitation Theoretically Equivalent?, Erkenntnis 81 (2016) 1073-1091, https://arxiv.org/abs/1411.5757, Sections 2 and 6; D. B. Malament, Topics in the Foundations of General Relativity and Newtonian Gravitation Theory (2012), Ch. 4
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

All objects live on E=R4E=\mathbb R^4E=R4 (coordinates x0,…,x3x^0,\dots,x^3x0,…,x3, index 000 = time). For a scalar field fff, ∂bf(x)\partial_b f(x)∂b​f(x) is the Fréchet derivative of fff at xxx applied to the bbb-th basis vector (it is 000 by convention wherever fff is not differentiable), and ∂b∂cf=∂b(∂cf)\partial_b\partial_c f=\partial_b(\partial_c f)∂b​∂c​f=∂b​(∂c​f). The temporal form is ta=δa0t_a=\delta_a^0ta​=δa0​ and the spatial metric is hab=diag(0,1,1,1)h^{ab}=\mathrm{diag}(0,1,1,1)hab=diag(0,1,1,1). A connection is any function Γ:E→R4×4×4\Gamma:E\to\mathbb R^{4\times4\times4}Γ:E→R4×4×4, x↦Γabc(x)x\mapsto\Gamma^a{}_{bc}(x)x↦Γabc​(x). Derivative operator: Γ\GammaΓ is C∞C^\inftyC∞ and Γabc=Γacb\Gamma^a{}_{bc}=\Gamma^a{}_{cb}Γabc​=Γacb​. Compatible: (i) Γ0bc=∑nΓnbctn=0\Gamma^0{}_{bc}=\sum_n\Gamma^n{}_{bc}t_n=0Γ0bc​=∑n​Γnbc​tn​=0 for all x,b,cx,b,cx,b,c; (ii) ∑n(Γbanhnc+Γcanhbn)=0\sum_n(\Gamma^b{}_{an}h^{nc}+\Gamma^c{}_{an}h^{bn})=0∑n​(Γban​hnc+Γcan​hbn)=0 for all x,a,b,cx,a,b,cx,a,b,c. Classical = derivative operator and compatible.

Curvature (note the sign):

Rabcd=∂dΓacb−∂cΓadb+∑e(ΓadeΓecb−ΓaceΓedb),R^a{}_{bcd}=\partial_d\Gamma^a{}_{cb}-\partial_c\Gamma^a{}_{db}+\sum_e\big(\Gamma^a{}_{de}\Gamma^e{}_{cb}-\Gamma^a{}_{ce}\Gamma^e{}_{db}\big),Rabcd​=∂d​Γacb​−∂c​Γadb​+e∑​(Γade​Γecb​−Γace​Γedb​),

which is the negative of the MTW convention ∂cΓadb−…\partial_c\Gamma^a{}_{db}-\dots∂c​Γadb​−…; Rbc=∑nRnbcnR_{bc}=\sum_nR^n{}_{bcn}Rbc​=∑n​Rnbcn​ (equal to the MTW Ricci tensor). Also Rabcd=∑nRabndhncR^a{}_b{}^c{}_d=\sum_nR^a{}_{bnd}h^{nc}Rab​cd​=∑n​Rabnd​hnc, Rabcd=∑nRancdhnbR^{ab}{}_{cd}=\sum_nR^a{}_{ncd}h^{nb}Rabcd​=∑n​Rancd​hnb. Flat: Rabcd(x)=0R^a{}_{bcd}(x)=0Rabcd​(x)=0 for all x,a,b,c,dx,a,b,c,dx,a,b,c,d. Hessian ∇a∇bϕ=∂a∂bϕ−∑nΓnab∂nϕ\nabla_a\nabla_b\phi=\partial_a\partial_b\phi-\sum_n\Gamma^n{}_{ab}\partial_n\phi∇a​∇b​ϕ=∂a​∂b​ϕ−∑n​Γnab​∂n​ϕ; ∇a∇aϕ:=∑a,bhab∇a∇bϕ\nabla^a\nabla_a\phi:=\sum_{a,b}h^{ab}\nabla_a\nabla_b\phi∇a∇a​ϕ:=∑a,b​hab∇a​∇b​ϕ; Poisson(Γ,ϕ,ρ\Gamma,\phi,\rhoΓ,ϕ,ρ): ∇a∇aϕ=4πρ\nabla^a\nabla_a\phi=4\pi\rho∇a∇a​ϕ=4πρ at every point (no smoothness of ϕ,ρ\phi,\rhoϕ,ρ is part of this predicate). ∇aϕ=∑nhan∂nϕ\nabla^a\phi=\sum_nh^{an}\partial_n\phi∇aϕ=∑n​han∂n​ϕ.

IsNG(Γ,ϕ\Gamma,\phiΓ,ϕ): Γ\GammaΓ classical, flat, and ϕ\phiϕ is C∞C^\inftyC∞ (no ρ\rhoρ involved). Geometrization: Γ~abc=Γabc+tbtc∇aϕ\tilde\Gamma^a{}_{bc}=\Gamma^a{}_{bc}+t_bt_c\nabla^a\phiΓ~abc​=Γabc​+tb​tc​∇aϕ (plus sign; the docstring's "(∇,−tbtc∇aϕ)(\nabla,-t_bt_c\nabla^a\phi)(∇,−tb​tc​∇aϕ)" is Malament's (∇,C)(\nabla,C)(∇,C) notation, which here means Γ−C\Gamma - CΓ−C; code is self-consistent with Newton's law below). CurvConds(Γ,ρ\Gamma,\rhoΓ,ρ): (1) Rab=4πρ tatbR_{ab}=4\pi\rho\,t_at_bRab​=4πρta​tb​; (2) Rabcd=RcdabR^a{}_b{}^c{}_d=R^c{}_d{}^a{}_bRab​cd​=Rcd​ab​; (3) Rabcd=0R^{ab}{}_{cd}=0Rabcd​=0, all pointwise. IsGNG(Γ\GammaΓ): classical and there is a C∞C^\inftyC∞ ρ\rhoρ with CurvConds.

Curves: accela=γ¨a+∑b,cΓabc(γ)γ˙bγ˙c\mathrm{accel}^a=\ddot\gamma^a+\sum_{b,c}\Gamma^a{}_{bc}(\gamma)\dot\gamma^b\dot\gamma^caccela=γ¨​a+∑b,c​Γabc​(γ)γ˙​bγ˙​c. Timelike on (s0,s1)(s_0,s_1)(s0​,s1​): s0<s1s_0<s_1s0​<s1​, γ\gammaγ is C∞C^\inftyC∞ on the open interval, and γ˙0=1\dot\gamma^0=1γ˙​0=1 there (spatial velocity unrestricted). Geodesic on interval: accel =0=0=0; Newtonian(Γ,ϕ\Gamma,\phiΓ,ϕ): accela=−∇aϕ(γ)^a=-\nabla^a\phi(\gamma)a=−∇aϕ(γ). SameTrajectories(Γ,ϕ,Γ′\Gamma,\phi,\Gamma'Γ,ϕ,Γ′): for every curve and every interval (s0,s1)(s_0,s_1)(s0​,s1​) with γ\gammaγ timelike there, γ\gammaγ is a Γ′\Gamma'Γ′-geodesic iff it is (Γ,ϕ)(\Gamma,\phi)(Γ,ϕ)-Newtonian. Γ′\Gamma'Γ′ is arbitrary here (not required to be a derivative operator).

IsDiffeo(fff): bijection E→EE\to EE→E, C∞C^\inftyC∞ with C∞C^\inftyC∞ inverse. PreservesMetrics: ∑ata∂bfa=tb\sum_at_a\partial_bf^a=t_b∑a​ta​∂b​fa=tb​ and ∑c,d∂cfa∂dfbhcd=hab\sum_{c,d}\partial_cf^a\partial_df^bh^{cd}=h^{ab}∑c,d​∂c​fa∂d​fbhcd=hab for all xxx. MapsConn(f,Γ,Γ′f,\Gamma,\Gamma'f,Γ,Γ′): ∂b∂cfa+∑d,eΓ′ade(f(x))∂bfd∂cfe=∑n∂nfa Γnbc(x)\partial_b\partial_cf^a+\sum_{d,e}\Gamma'^a{}_{de}(f(x))\partial_bf^d\partial_cf^e=\sum_n\partial_nf^a\,\Gamma^n{}_{bc}(x)∂b​∂c​fa+∑d,e​Γ′ade​(f(x))∂b​fd∂c​fe=∑n​∂n​faΓnbc​(x) for all x,a,b,cx,a,b,cx,a,b,c (i.e. f∗∇=∇′f_*\nabla=\nabla'f∗​∇=∇′). IsGNGArrow(Γ,Γ′,f\Gamma,\Gamma',fΓ,Γ′,f) = diffeo, preserves metrics, MapsConn. IsNG1Arrow = GNG-arrow plus ϕ′(f(x))=ϕ(x)\phi'(f(x))=\phi(x)ϕ′(f(x))=ϕ(x). IsGauge(Γ,ψ\Gamma,\psiΓ,ψ): ψ∈C∞\psi\in C^\inftyψ∈C∞ and ∑m,nhamhbn∇m∇nψ=0\sum_{m,n}h^{am}h^{bn}\nabla_m\nabla_n\psi=0∑m,n​hamhbn∇m​∇n​ψ=0 (only the spatial-spatial Hessian block). gaugeΓ=Γabc−tbtc∇aψ\mathrm{gauge}\Gamma=\Gamma^a{}_{bc}-t_bt_c\nabla^a\psigaugeΓ=Γabc​−tb​tc​∇aψ. IsNG2Arrow(Γ,ϕ,Γ′,ϕ′,f,ψ\Gamma,\phi,\Gamma',\phi',f,\psiΓ,ϕ,Γ′,ϕ′,f,ψ): ψ\psiψ gauge for Γ\GammaΓ, fff is a GNG-arrow from gaugeΓ\mathrm{gauge}\GammagaugeΓ to Γ′\Gamma'Γ′, and ϕ′(f(x))=ϕ(x)+ψ(x)\phi'(f(x))=\phi(x)+\psi(x)ϕ′(f(x))=ϕ(x)+ψ(x).

Flags: (a) docstring "(∇,−tbtc∇aϕ)(\nabla,-t_bt_c\nabla^a\phi)(∇,−tb​tc​∇aϕ)" vs code Γ+tbtc∇aϕ\Gamma+t_bt_c\nabla^a\phiΓ+tb​tc​∇aϕ is notation only (verified: geodesics of Γ~\tilde\GammaΓ~ are γ¨+Γγ˙γ˙=−∇aϕ\ddot\gamma+\Gamma\dot\gamma\dot\gamma=-\nabla^a\phiγ¨​+Γγ˙​γ˙​=−∇aϕ, and geom(gaugeΓψ,ϕ+ψ)=geom(Γ,ϕ)\mathrm{geom}(\mathrm{gauge}\Gamma\psi,\phi+\psi)=\mathrm{geom}(\Gamma,\phi)geom(gaugeΓψ,ϕ+ψ)=geom(Γ,ϕ), consistent). (b) Riemann sign is opposite to MTW; Ricci contraction compensates so Rab=+4πρtatbR_{ab}=+4\pi\rho t_at_bRab​=+4πρta​tb​ is correct. (c) No category structure (identities, composition, NG2 composition law) is defined anywhere, though docstrings speak of categories. (d) Derivatives use total-function junk value 000; harmless only because every use is on smooth data. (e) Only global flat chart R4\mathbb R^4R4; ∞\infty∞ means C∞C^\inftyC∞ (not analytic).

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

    Confirmed by the moderator at approval.

  • Endorsed by Alien60 · Oct 21, 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