Documentation

Mathlib.Geometry.Convex.ConvexSpace.AffineSpace

Affine spaces are convex spaces #

This file shows that every affine space is a convex space.

Main results #

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
    @[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
    Instances For

      ConvexSpace.sConvexComb in an affine space is the affine combination.

      @[deprecated AddTorsor.sConvexComb_eq_affineCombination (since := "2026-05-15")]

      Alias of AddTorsor.sConvexComb_eq_affineCombination.


      ConvexSpace.sConvexComb in an affine space is the affine combination.

      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.