Distance geometry: core definitions #
This file sets up the basic objects of Euclidean distance geometry: the squared-distance matrix of a point configuration, the predicate that a given matrix is such a matrix, embeddability in a fixed dimension, and the basepoint-centered Gram matrix that underlies Schoenberg's characterization.
A configuration of points indexed by ι in k-dimensional Euclidean space is a
map x : ι → EuclideanSpace ℝ (Fin k). The squared-distance matrix sqDistMatrix x
records dist (x i) (x j) ^ 2. Schoenberg's theorem characterizes which symmetric
hollow matrices arise this way through their basepoint-centered Gram matrix.
Main definitions #
DistanceGeometry.sqDistMatrix x: the squared-distance matrix ofx.DistanceGeometry.IsSqDistMatrix D x:Dis the squared-distance matrix ofx.DistanceGeometry.EmbedsIn D k:Dembeds as a squared-distance matrix inEuclideanSpace ℝ (Fin k).DistanceGeometry.IsPreDistMatrix D: the project's symmetric-and-hollow structural predicate.DistanceGeometry.centeredGram D: the Gram matrix anchored at the base index0.
Implementation notes #
centeredGram uses the fixed base index 0 : Fin n (hence [NeZero n]) as its
origin. For a symmetric hollow matrix, changing the base index gives a congruent
Gram matrix with the same rank and positive-semidefiniteness. The Schoenberg
conditions are therefore basepoint-independent. The point index is Fin n because the
base-0 choice uses the order on Fin n; the squared-distance machinery itself
only needs Fintype and DecidableEq.
References #
- J. von Neumann and I. J. Schoenberg, Fourier integrals and metric geometry, 1941.
- I. J. Schoenberg, Remarks to Maurice Fréchet's article ..., 1935.
The squared-distance matrix of a configuration x: its (i, j) entry is the
squared Euclidean distance between x i and x j.
Instances For
A squared-distance matrix is hollow: its diagonal vanishes.
D is embeddable in dimension k when it is the squared-distance matrix of
some configuration of points in EuclideanSpace ℝ (Fin k).
Equations
- DistanceGeometry.EmbedsIn D k = ∃ (x : Fin n → EuclideanSpace ℝ (Fin k)), DistanceGeometry.IsSqDistMatrix D x
Instances For
IsPreDistMatrix is this project's name for the symmetric-and-hollow structural
predicate. It does not include entrywise nonnegativity. Every squared-distance matrix
satisfies this predicate, which supplies the structural hypothesis for the sufficiency
direction of Schoenberg's theorem.
Equations
Instances For
A matrix satisfying IsPreDistMatrix is symmetric.
A matrix satisfying IsPreDistMatrix is hollow.
Every squared-distance matrix satisfies IsPreDistMatrix.
The basepoint-centered Gram matrix of a squared-distance matrix D, anchored at
index 0 (requires n ≥ 1, i.e. [NeZero n], for the index 0 : Fin n to exist).
When D holds the squared distances of a configuration x, this matrix equals
⟪x i - x 0, x j - x 0⟫ (proved in Schoenberg.lean), hence it is the Gram matrix
of the recentred vectors x i - x 0.