Convex spaces with compatible metric structure #
A convex space has a compatible metric structure if dist(∑ tᵢ xᵢ, ∑ tᵢ yᵢ) ≤ ∑ tᵢ dist(xᵢ, yᵢ).
This is what one would expect from the triangle inequality.
Note that there is a separate notion of convex metric spaces in the literature that has little to do with this definition.
Main results #
Convexity.IsConvexDist: The (Prop-valued) class of convex spaces with compatible metric structure.Convexity.continuous_convexCombPair: Binary convex combination is continuous.Convexity.IsConvexDist.of_convex: Convex subspaces of normed spaces are convex metric spaces.
TODO #
- Equip
StdSimplexwith a topology and show the analogous continuity result for n-ary convex combinations. - Tidy up the imports with
Mathlib.Geometric.Convex.ConvexSpace.AffineSpace. - Define convex functions with domain a convex space, and redefine
IsConvexDistas saying thatdist : X × X → ℝis convex.
A convex metric space is a real convex space with a compatible metric structure.
Concretely, we ask for dist(∑ tᵢ xᵢ, ∑ tᵢ yᵢ) ≤ ∑ tᵢ dist(xᵢ, yᵢ),
which is what one would expect from the triangle inequality.
In particular, convex subsets of normed affine spaces are convex metric spaces.
Note that there is a separate notion of convex metric spaces in the literature that has little to do with this definition.
- dist_iConvexComb_fst_snd_le (f : StdSimplex ℝ (X × X)) : dist (iConvexComb f Prod.fst) (iConvexComb f Prod.snd) ≤ iConvexComb f fun (x : X × X) => dist x.1 x.2
Use
dist_iConvexComb_leinstead.
Instances
Alias of Convexity.IsConvexDist.
A convex metric space is a real convex space with a compatible metric structure.
Concretely, we ask for dist(∑ tᵢ xᵢ, ∑ tᵢ yᵢ) ≤ ∑ tᵢ dist(xᵢ, yᵢ),
which is what one would expect from the triangle inequality.
In particular, convex subsets of normed affine spaces are convex metric spaces.
Note that there is a separate notion of convex metric spaces in the literature that has little to do with this definition.
Instances For
dist(∑ tᵢ xᵢ, ∑ tᵢ yᵢ) ≤ ∑ tᵢ dist(xᵢ, yᵢ)
Alias of Convexity.dist_iConvexComb_le.
dist(∑ tᵢ xᵢ, ∑ tᵢ yᵢ) ≤ ∑ tᵢ dist(xᵢ, yᵢ)
dist(sx + (1-s)y, s'x + (1-s')y) = |s - s'| dist(x, y).
See dist_convexCombPair_convexCombPair_le
for the version where the weights are fixed and the points change.
dist(sx + (1-s)y, sx' + (1-s)y') ≤ s dist(x, x') + (1-s) dist(y, y').
See dist_convexCombPair_convexCombPair
for the version where the points are fixed and the weights change.
The convex combination (t, p, q) ↦ t • p + (1 - t) • q is continuous on [0, 1] × X × X
for a convex metric space X.
Alias of Convexity.continuous_convexCombPair.
The convex combination (t, p, q) ↦ t • p + (1 - t) • q is continuous on [0, 1] × X × X
for a convex metric space X.
When X is a bounded convex metric space, to check continuity of
t ↦ f(t) • x(t) + (1 - f(t)) • y(t) it suffices to show that f is continuous,
x is continuous away from f(t) = 0, and y is continuous away from f(t) = 1.
Alias of Convexity.continuous_convexCombPair'.
When X is a bounded convex metric space, to check continuity of
t ↦ f(t) • x(t) + (1 - f(t)) • y(t) it suffices to show that f is continuous,
x is continuous away from f(t) = 0, and y is continuous away from f(t) = 1.