G2 — Finite squared-distance realization
Provedapf_t0_negative_type_iff_squared_distanceA finite real symmetric zero-diagonal array has negative type exactly when it is the array of squared Euclidean distances of n vectors in real n-space. Zero distances and coincident vectors are allowed; n=0 is included. The target does not assert an injective realization or select physical dimension or scalar field.
import Definitions.Def_APFTheoremZero_CostGeometry set_option autoImplicit false open BigOperators APFTheoremZero universe u
theorem apf_t0_negative_type_iff_squared_distance
{n : ℕ} (D : Matrix (Fin n) (Fin n) ℝ)
(hsym : ∀ i j, D i j = D j i) (hdiag : ∀ i, D i i = 0) :
NegativeType D ↔ ∃ v : Fin n → EuclideanSpace ℝ (Fin n),
∀ i j, D i j = ‖v i - v j‖ ^ 2 := by sorry
Read-back
What the Lean code literally says, in plain math · Independent source-informed reader /root/theorem_zero_readback; exact model unavailable
For every natural number and every real matrix satisfying for all and for every index , the following are equivalent: for every real vector with ; and there exists a family of vectors in the standard real Euclidean space such that for every pair of indices. The norm is the usual Euclidean norm. No injectivity, uniqueness, specified origin, nonzero-vector condition or spanning condition is required of this family; vectors with different indices may coincide. There is no separately assumed entrywise nonnegativity of . The statement includes , with the empty family in the zero-dimensional Euclidean space and no pairwise equations, and includes , with zero diagonal and an unrestricted single vector.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.