Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Jacobian of the spherical-to-Cartesian map, entrywise as genuine derivatives

Proved
ExactVacuumAtlas.Minkowski.R4.hasDerivAt_toCart

by He Wang · Oct 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

coordinate-geometrycoordinate-transformationderivativeexact-vacuum-atlasgeneral-relativityminkowski-spacespherical-coordinates

Let Φ(t,r,θ,φ)=(t, rsin⁡θcos⁡φ, rsin⁡θsin⁡φ, rcos⁡θ)\Phi(t,r,\theta,\varphi)=(t,\ r\sin\theta\cos\varphi,\ r\sin\theta\sin\varphi,\ r\cos\theta)Φ(t,r,θ,φ)=(t, rsinθcosφ, rsinθsinφ, rcosθ) and

J(x)=(10000sin⁡θcos⁡φrcos⁡θcos⁡φ−rsin⁡θsin⁡φ0sin⁡θsin⁡φrcos⁡θsin⁡φrsin⁡θcos⁡φ0cos⁡θ−rsin⁡θ0).J(x)=\begin{pmatrix}1&0&0&0\\0&\sin\theta\cos\varphi&r\cos\theta\cos\varphi&-r\sin\theta\sin\varphi\\0&\sin\theta\sin\varphi&r\cos\theta\sin\varphi&r\sin\theta\cos\varphi\\0&\cos\theta&-r\sin\theta&0\end{pmatrix}.J(x)=​1000​0sinθcosφsinθsinφcosθ​0rcosθcosφrcosθsinφ−rsinθ​0−rsinθsinφrsinθcosφ0​​.

For every x∈R4x\in\mathbb R^4x∈R4 and all indices k,i∈{0,1,2,3}k,i\in\{0,1,2,3\}k,i∈{0,1,2,3}, the one-variable function u↦Φ(x[xi:=u])ku\mapsto\Phi(x[x_i:=u])_ku↦Φ(x[xi​:=u])k​ has derivative J(x)kiJ(x)_{ki}J(x)ki​ at u=xiu=x_iu=xi​.

Jacobian obligation of relation R4, stated without any domain restriction; det⁡J=r2sin⁡θ\det J=r^2\sin\thetadetJ=r2sinθ.

Formalization Note Row kkk is the output component, column iii the input coordinate; each entry is a HasDerivAt statement.

Preamble
import Mathlib
import Definitions.Def_Atlas_Core_Basic
import Definitions.Def_Atlas_Core_Certificate
import Definitions.Def_Atlas_Minkowski_Cartesian
import Definitions.Def_Atlas_Minkowski_R4
import Definitions.Def_Atlas_Minkowski_Spherical
import Definitions.Def_Atlas_Schwarzschild_Defs
import Definitions.Def_Atlas_Schwarzschild_Domain
import Definitions.Def_Atlas_Schwarzschild_StdParts
import Definitions.Def_KerrBL_CoordGeometry
import Definitions.Def_KerrBL_Kerr_Metric
open Real
open scoped ContDiff
open ExactVacuumAtlas ExactVacuumAtlas.Minkowski
open ExactVacuumAtlas
open ExactVacuumAtlas.Minkowski
open ExactVacuumAtlas.Minkowski.R4
set_option maxHeartbeats 4000000
set_option linter.unusedSimpArgs false
Formal statement
theorem ExactVacuumAtlas.Minkowski.R4.hasDerivAt_toCart (x : Pt 4) (k i : Fin 4) :
    HasDerivAt (fun u => toCart (Function.update x i u) k) (jac x k i) (x i) := by sorry
Source
elementary spherical coordinates on R^3 (standard); Lean source: repository ExactVacuumAtlas (private repository, not publicly accessible; GitHub remote pending (no GitHub identity on the build server)), commit 35f26e6a22f5d72380094fa94edc72dea667df53, Atlas/Minkowski/R4.lean#L330-L392 (module Atlas.Minkowski.R4, file sha256 a1fc97dfc0dd15a14ffbb8dfbee1cfe1421e5f3119a6b8607bb683d8caafc495; uploaded stub = platform_mirror/Theorems/Thm_ExactVacuumAtlas_Minkowski_R4_hasDerivAt_toCart.lean)
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

  • Endorsed by He Wang · Oct 14, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me