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 Convexity.ConvexSpace.ofAddTorsor {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
      @[implicit_reducible, deprecated Convexity.ConvexSpace.ofAddTorsor (since := "2026-07-02")]

      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.

      Equations
      Instances For
        class Convexity.IsAffineConvexSpace (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] [ConvexSpace R P] :

        Typeclass for a convex space structure on an affine space to be given by affine combinations.

        Instances

          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] [Convexity.ConvexSpace R P] [Convexity.IsAffineConvexSpace R 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.