Given six non-negative real numbers \( d_{ij} \in \mathbb{R}_{\geq 0} \), representing pairwise edge lengths between four distinct vertices \( \{v_0, v_1, v_2, v_3\} \), we test whether these edge lengths correspond to a realizable tetrahedron in Euclidean 3-space \( \mathbb{R}^3 \).
Define the edge set:
The Cayley-Menger determinant provides a necessary and sufficient condition for the embeddability of this edge configuration as a non-degenerate tetrahedron. Construct the \(5 \times 5\) symmetric matrix \( M \):
Let \( \mathrm{CM}(E) = \det(M) \) be the Cayley-Menger determinant. The squared volume \( V^2 \) of the corresponding 3-simplex is given by:
The tetrahedron is geometrically valid (i.e., can be embedded in \( \mathbb{R}^3 \) with positive volume) if and only if \( \mathrm{CM}(E) > 0 \). A result of zero indicates a degenerate configuration (coplanar or flat), and a negative determinant implies an infeasible edge configuration violating triangle inequalities or metric embeddability.
This determinant-based test operates purely on edge lengths and requires no coordinate embedding, making it a robust tool for applications in discrete geometry, combinatorics, and stochastic sampling of geometric configurations.