A signature witness makes the metric matrix invertible
ProvedPseudoRiemannian.witness_implies_invertibleA signature witness makes the metric invertible — entry rung.
Let s be a signature vector (entries ), let B be an invertible real matrix (IsUnit B.det), and let the metric matrix at x be congruent to the signature diagonal:
Conclusion: the metric matrix is invertible: IsUnit (g x).det.
In words: the pointwise half of the source's "everywhere nondegenerate". The computation: , and since also . Invertibility of is the hinge from which nondegeneracy (next rung) follows.
Formalization note. Matrix.det_mul, Matrix.det_transpose, Matrix.det_diagonal and IsUnit of real numbers; hs gives by finite-product induction over the two cases. No smoothness or symmetry needed.
import Mathlib import Definitions.Def_PseudoRiemannian
namespace PseudoRiemannian
open Matrix
open scoped ContDiff
/-- Milestone: a signature witness makes the metric matrix invertible. If
`B` is invertible and congruent the metric matrix `g x` to the signature
diagonal `diag s` (`Bᵀ (g x) B = diag s` with `s` taking values `± 1`), then
`g x` is invertible: `det(B)² det(g x) = det(diag s) = ∏ s i = ± 1 ≠ 0`. This
is the algebraic core of the source's "everywhere nondegenerate": the carried
signature witness pins down nondegeneracy pointwise. -/
theorem witness_implies_invertible {n : ℕ} {g : Spc n → Matrix (Fin n) (Fin n) ℝ}
{s : Fin n → ℝ} (hs : IsSignVec s) {x : Spc n} {B : Matrix (Fin n) (Fin n) ℝ}
(hB : IsUnit B.det) (hcong : Bᵀ * g x * B = Matrix.diagonal s) :
IsUnit (g x).det := by
sorry
end PseudoRiemannianRead-back
What the Lean code literally says, in plain math · zai-glm-5-3-flash-vibe-free
The theorem takes a signature vector s (hs : IsSignVec s), a point x : Spc n, a matrix B : Matrix (Fin n) (Fin n) ℝ with hB : IsUnit B.det, and the congruence hcong : Bᵀ * g x * B = Matrix.diagonal s, for a metric field g : Spc n → Matrix (Fin n) (Fin n) ℝ.
Conclusion: IsUnit (g x).det — the metric matrix at x is invertible.
No hypotheses on g beyond the congruence — no symmetry, no smoothness, and x is arbitrary but fixed. The mechanism: det (Bᵀ * g x * B) = (det B)² * det (g x) (via det_mul, det_transpose) equals det (Matrix.diagonal s) = ∏ i, s i, which is ± 1 (each s i is -1 or 1 by hs, and a product of ± 1's squares to 1); with IsUnit (det B) the square det B ^ 2 is a unit and nonzero, forcing det (g x) nonzero, i.e. IsUnit (g x).det in ℝ (where nonzero = unit). This is exactly the invertibility half of "everywhere nondegenerate", extracted from the carried witness.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.