The trapezoid comparison inequality in metric spaces with curvature bounded above
Among four points of a CAT(0) space, planar symmetric trapezoids make both Ptolemy's and Reshetnyak's inequalities equalities. The question is whether trapezoids remain extremal for the whole family of quadruple inequalities indexed by nondecreasing convex functions with concave derivative. A second question is how these results extend to CAT(κ) spaces with κ>0.
The trapezoid comparison inequality is reduced to an algebraic statement about six nonnegative numbers. Using a Choquet-type integral representation of the function cone, this becomes a single elementary inequality between piecewise-quadratic functions (Lemma 4.5). That inequality's interlocking case analysis is verified in Lean 4 with Mathlib, with no sorry and only the standard axioms. For CAT(κ), the authors derive variants of Reshetnyak's and Ptolemy's inequalities with an optimal curvature constant.
Symmetric trapezoids are extremal for the entire function class, and this property characterizes the class. The result recovers the known quadruple inequalities with optimal constants, which were previously known only for power functions. For CAT(κ), a trapezoid comparison holds in which the product of the bases carries an extra optimal factor R/sin(R).
