Affine spaces are convex spaces #
This file shows that every affine space is a convex space.
Main results #
AddTorsor.toConvexSpace: An affine space over a module is a convex space.AddTorsor.sConvexComb_eq_affineCombination: The convex combination equals the affine combination.AddTorsor.convexCombPair_eq_lineMap: Binary convex combinations are given bylineMap.
The convex combination of points in an affine space, given a probability distribution.
Equations
Instances For
Any affine space is a convex space.
This is not an instance because its convex combination operation is defined through the choice of an arbitrary basepoint, which makes it very diamond-prone.
Equations
- Convexity.ConvexSpace.ofAddTorsor = { sConvexComb := AddTorsor.convexCombination, sConvexComb_single := ⋯, assoc := ⋯ }
Instances For
Alias of Convexity.ConvexSpace.ofAddTorsor.
Any affine space is a convex space.
This is not an instance because its convex combination operation is defined through the choice of an arbitrary basepoint, which makes it very diamond-prone.
Instances For
Typeclass for a convex space structure on an affine space to be given by affine combinations.
ConvexSpace.sConvexCombin an affine space is the affine combination.
Instances
ConvexSpace.sConvexComb in an affine space is the affine combination.
Alias of AddTorsor.sConvexComb_eq_affineCombination.
ConvexSpace.sConvexComb in an affine space is the affine combination.
convexCombPair in an affine space is the affine line map.