Trilateration: sphere intersections of codimension-one center families #
A family of centers whose affine span is a hyperplane (the orthogonal complement of
the center span is one-dimensional) localizes a point to at most two candidates: the
intersection of the spheres {p | ∀ i, dist p (c i) = r i} has at most two elements.
This is the higher-dimensional analog of
EuclideanGeometry.eq_of_dist_eq_of_dist_eq_of_mem_of_finrank_eq_two (two circles
meet in at most two points), and the combinatorial heart of the branch-and-prune
algorithm for the Discretizable Molecular Distance Geometry Problem: a new vertex
localized against enough already-placed neighbours has at most two placements, so the
search tree has bounded branching.
The proof: for any two solutions p₁, p₂, equal distances to each center give
⟪c i -ᵥ c i₀, p₂ -ᵥ p₁⟫ = 0 (inner_vsub_vsub_of_dist_eq_of_dist_eq), so the
difference vector lies in Wᗮ, where W = vectorSpan ℝ (range c). When Wᗮ is
one-dimensional it cannot contain two linearly independent vectors, so any third
solution's difference vector is a scalar multiple of p₂ -ᵥ p₁; feeding that into the
distance equation through the quadratic dist_smul_vadd_eq_dist forces the third
solution to coincide with p₁ or p₂.
Main results #
DistanceGeometry.encard_setOf_forall_dist_eq_le_two: the general codimension-one statement.DistanceGeometry.trilateration_le_two: the specialization to three affinely independent centers inEuclideanSpace ℝ (Fin 3).
The intersection of the spheres of real-valued radii r about the centers c.
If some r i is negative, the intersection is empty because distances are
nonnegative.
Instances For
If the orthogonal complement of the center span is one-dimensional (the centers
span a hyperplane), the intersection of the spheres {p | ∀ i, dist p (c i) = r i}
has at most two elements.
Specialization: three affinely independent centers in EuclideanSpace ℝ (Fin 3) #
The localization set of three centers c and real-valued radii r in
EuclideanSpace ℝ (Fin 3): the intersection of the three spheres. A negative radius
makes the set empty.
Equations
Instances For
Three affinely independent centers and three radii localize a point in
EuclideanSpace ℝ (Fin 3) to at most two candidates: the intersection of the three
spheres has at most two elements. The d = 3 analog of
EuclideanGeometry.eq_of_dist_eq_of_dist_eq_of_mem_of_finrank_eq_two.