Existence and uniqueness of the circumcentre
ProvedFamousTheorems.circumsphere_exists_unique_6bExistence and uniqueness of the circumcentre. Let be affinely independent points in a Euclidean affine space. Then there is exactly one sphere whose centre lies in the affine span of and which passes through all the points.
For a triangle this says that there is a unique circumcircle, and its centre is the intersection of the perpendicular bisectors of the sides. In general it defines the circumcentre and circumradius of a simplex. Circumcentres are used in Delaunay triangulations and, for triangles, in the Euler line and the nine-point circle.
Formalization note. Mathlib's AffineIndependent.existsUnique_dist_eq, for a finite nonempty affinely independent family . EuclideanGeometry.Sphere P is a pair consisting of a centre and a radius, and the condition says that every lies at distance cs.radius from cs.center.
import Mathlib
namespace FamousTheorems
theorem circumsphere_exists_unique_6b {V P : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [MetricSpace P] [NormedAddTorsor V P]
{ι : Type*} [Nonempty ι] [Finite ι] {p : ι → P} (hp : AffineIndependent ℝ p) :
∃! cs : EuclideanGeometry.Sphere P,
cs.center ∈ affineSpan ℝ (Set.range p) ∧ Set.range p ⊆ Metric.sphere cs.center cs.radius := by sorry
end FamousTheorems