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.
noncomputable def
AddTorsor.convexCombination
{R : Type u_1}
{V : Type u_2}
{P : Type u_3}
[Ring R]
[PartialOrder R]
[AddCommGroup V]
[Module R V]
[AddTorsor V P]
(s : Convexity.StdSimplex R P)
:
P
The convex combination of points in an affine space, given a probability distribution.
Equations
Instances For
theorem
AddTorsor.convexCombination_single
{R : Type u_1}
{V : Type u_2}
{P : Type u_3}
[Ring R]
[PartialOrder R]
[IsStrictOrderedRing R]
[AddCommGroup V]
[Module R V]
[AddTorsor V P]
(x : P)
:
theorem
AddTorsor.convexCombination_assoc
{R : Type u_1}
{V : Type u_2}
{P : Type u_3}
[Ring R]
[PartialOrder R]
[IsStrictOrderedRing R]
[AddCommGroup V]
[Module R V]
[AddTorsor V P]
(f : Convexity.StdSimplex R (Convexity.StdSimplex R P))
:
@[implicit_reducible]
noncomputable def
AddTorsor.toConvexSpace
{R : Type u_1}
{V : Type u_2}
{P : Type u_3}
[Ring R]
[PartialOrder R]
[IsStrictOrderedRing R]
[AddCommGroup V]
[Module R V]
[AddTorsor V P]
:
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
- AddTorsor.toConvexSpace = { sConvexComb := AddTorsor.convexCombination, sConvexComb_single := ⋯, assoc := ⋯ }
Instances For
theorem
AddTorsor.sConvexComb_eq_affineCombination
{R : Type u_1}
{V : Type u_2}
{P : Type u_3}
[Ring R]
[PartialOrder R]
[IsStrictOrderedRing R]
[AddCommGroup V]
[Module R V]
[AddTorsor V P]
(s : Convexity.StdSimplex R P)
:
ConvexSpace.sConvexComb in an affine space is the affine combination.
@[deprecated AddTorsor.sConvexComb_eq_affineCombination (since := "2026-05-15")]
theorem
AddTorsor.convexCombination_eq_affineCombination
{R : Type u_1}
{V : Type u_2}
{P : Type u_3}
[Ring R]
[PartialOrder R]
[IsStrictOrderedRing R]
[AddCommGroup V]
[Module R V]
[AddTorsor V P]
(s : Convexity.StdSimplex R P)
:
Alias of AddTorsor.sConvexComb_eq_affineCombination.
ConvexSpace.sConvexComb in an affine space is the affine combination.
theorem
AddTorsor.iConvexComb_eq_affineCombination
{R : Type u_1}
{V : Type u_2}
{P : Type u_3}
{I : Type u_4}
[Ring R]
[PartialOrder R]
[IsStrictOrderedRing R]
[AddCommGroup V]
[Module R V]
[AddTorsor V P]
(s : Convexity.StdSimplex R I)
(f : I → P)
:
theorem
AddTorsor.convexCombPair_eq_lineMap
{R : Type u_1}
{V : Type u_2}
{P : Type u_3}
[Ring R]
[PartialOrder R]
[IsStrictOrderedRing R]
[AddCommGroup V]
[Module R V]
[AddTorsor V P]
(s t : R)
(hs : 0 ≤ s)
(ht : 0 ≤ t)
(h : s + t = 1)
(x y : P)
:
convexCombPair in an affine space is the affine line map.