Documentation

Lightlike.Regge.Conv3.EdgePolyTests

Trust checks for the jet polynomial of the squared edge length #

For the Euclidean metric every derivative of the metric and every Christoffel symbol vanishes, so edgePoly is |Δ|² and it reproduces the squared distance exactly (error 0). A polynomial with the leading term dropped is a wrong model, and it is rejected by the same check.

theorem Lightlike.Geodesic.edgePoly_euclid {n : ℕ} (v s Δ : Fin n → ℝ) :

Known value. For the Euclidean metric the jet polynomial is |Δ|².

theorem Lightlike.Geodesic.edgePoly_euclid_exact {n : ℕ} (v w w' : Fin n → ℝ) :
dist euclid Set.univ (v + w) (v + w') ^ 2 = edgePoly euclid v (fun (i : Fin n) => (w i + w' i) / 2) (w' - w)

Trust check (exact). In the Euclidean case the error of edge_sq_poly is exactly 0.

theorem Lightlike.Geodesic.edgePoly_euclid_wrong {n : ℕ} {v w w' : Fin n → ℝ} (h : w ≠ w') :
dist euclid Set.univ (v + w) (v + w') ^ 2 ≠ edgePoly euclid v (fun (i : Fin n) => (w i + w' i) / 2) (w' - w) - (w' - w) ⬝ᵥ (euclid v).mulVec (w' - w)

Wrong-model control. Dropping the leading term g_v(Δ, Δ) from the polynomial gives a different value from the squared distance whenever the edge is non-degenerate.