Non-trivial tests of the coordinate curvature definitions #
Flat Minkowski space cannot detect wrong curvature definitions (any formula built from derivatives
of the metric vanishes for a constant metric). These are Lean proofs (kernel-checked, no sorry)
that the definitions in Lightlike/Spacetime/Curvature.lean and Lightlike/GR/Einstein.lean give
the textbook answers on curved metrics. Every hand-derived Christoffel symbol is proven equal to
the definition (christoffel_two, christoffel_sch, christoffel_wsch), so no hand computation is
trusted.
- (a)
sphere_scalar- round 2-sphere of radiusr: scalar curvature2/r²(plusricci_two,riemann_two_0101: full Ricci tensor andR^θ_{φθφ}of the familyA dθ² + B sin²θ dφ²,scalar_two:R = 2/A). - (b) Riemann symmetries: now library theorems in
Lightlike/Spacetime/RiemannSymmetry.lean(all four symmetries, unconditional for coordinate metrics). - (c) Schwarzschild is Ricci-flat: now library theorems in
Lightlike/GR/Schwarzschild.lean(ricci_sch,einstein_sch_exterior,sch_isVacuumSolution). - (c') wrong Schwarzschild -
g_rr = 1 - 2M/rinstead of(1 - 2M/r)⁻¹:ricci_wschgives all 16 Ricci components (R_θθ = -2M/(r - 2M)),wsch_ricci_ne_zero, andwsch_not_isVacuumSolution(it is a coordinate metric onr > 2M,isCoordMetric_wsch, but not a vacuum solution). - (d)
flipped_θθ_scalar,flipped_φφ- sign-flipped spheres: flippingg_θθchangesRto-2/r²; flippingg_φφleavesR = 2/r²(correct:R = 2/g_θθfor this family) but flipsR_φφ. - Rejection tests: the zero matrix (
zero_not_isCoordMetric) and any domain touching the Schwarzschild horizonr = 2M(sch_not_isCoordMetric_at_horizon) are rejected byIsCoordMetric, although Lean's junk conventions would give them curvature values.
Degenerate "metrics" are rejected by the predicates #
The zero matrix is not a coordinate metric on any nonempty set (n ≥ 1). Without this
check it would be a "vacuum solution": its Lean inverse is 0, so all its curvature is 0.
Rejection test. The zero matrix is not a vacuum solution on any nonempty set (it is not a
coordinate metric), although its junk Einstein tensor vanishes (zero_einsteinTensor).
…even though its Einstein tensor is identically 0 (the junk value the predicate guards
against).
Test (a) + (d): metrics diag(A, B sin²θ) on coordinates (θ, φ) #
The metric A dθ² + B sin²θ dφ² in coordinates (θ, φ).
Equations
- Lightlike.Test.twoMetric A B y = Matrix.diagonal (Lightlike.Test.twoD A B y)
Instances For
diag(A, B sin²θ) is a coordinate metric (smooth, symmetric, invertible) on 0 < θ < π.
Test (a), domain form. The round sphere is a coordinate metric on 0 < θ < π and its
scalar curvature is 2/r² at every point of that domain.
Test (d2). Flip the sign of g_φφ (a 2D Lorentzian metric): the scalar curvature is
still 2/r² (this is correct, not a bug: R = 2/g_θθ for this family), but the Ricci tensor
differs: R_φφ = -sin²θ instead of +sin²θ.
Test (b): symmetries of the Riemann tensor #
Moved to the library: Lightlike/Spacetime/RiemannSymmetry.lean proves, for every coordinate
metric, last-pair and first-pair antisymmetry, the first Bianchi identity and pair symmetry.
Schwarzschild: negative tests and signature of Minkowski #
The Schwarzschild theorems themselves are in Lightlike/GR/Schwarzschild.lean.
Minkowski components have Lorentzian signature (P = 1).
Junk trap at the horizon. Any set containing a point with r = 2M (M ≠ 0) is rejected:
there 1 - 2M/r = 0, Lean evaluates g_rr = 0⁻¹ = 0, and the matrix is singular. Without the
IsCoordMetric hypothesis, curvature at r = 2M would be silently computed from this junk.
Negative test: a wrong Schwarzschild metric is not Ricci-flat #
The wrong metric has g_rr = 1 - 2M/r instead of (1 - 2M/r)⁻¹ (wrong power). It is a genuine
coordinate metric on the exterior (isCoordMetric_wsch), so it fails the vacuum equations because
of its curvature, not because of a junk value. SymPy cross-check, with Schwarzschild as the
control: scripts/wrong_schwarzschild_check.py.
The wrong Schwarzschild metric (g_rr = 1 - 2M/r) as a matrix-valued function.
Equations
Instances For
The wrong metric is still a coordinate metric on the exterior (so the failure below is curvature, not a junk value).
Negative test, domain form. Contrast with sch_isVacuumSolution: the wrong metric is a
coordinate metric on the exterior but does not solve the vacuum Einstein equations there.