Ptolemy's inequality
ProvedFamousTheorems.ptolemy_inequalityPtolemy's inequality. For any four points in a Euclidean (real inner product) space,
Equality holds for a convex cyclic quadrilateral , which is Ptolemy's theorem on the diagonals of a cyclic quadrilateral. The inequality characterises inner product spaces among normed spaces, and it is a standard tool in metric geometry, for example in the definition of Ptolemaic and CAT(0)-type spaces.
Formalization note. Mathlib's EuclideanGeometry.mul_dist_le_mul_dist_add_mul_dist, proved by inversion. The points lie in a metric space P that is a torsor over a real inner product space V, so the result holds in Euclidean spaces of any dimension, including infinite dimension.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem ptolemy_inequality {V P : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [MetricSpace P] [NormedAddTorsor V P] (a b c d : P) :
dist a c * dist b d ≤ dist a b * dist c d + dist b c * dist a d := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `EuclideanGeometry.mul_dist_le_mul_dist_add_mul_dist`. Proof here reduces to that Mathlib result.