Documentation

Mathlib.LinearAlgebra.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 : StdSimplex R P) :
P

The convex combination of points in an affine space, given a probability distribution.

Equations
Instances For
    @[implicit_reducible]
    noncomputable instance AddTorsor.instConvexSpace {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] :
    Equations
    theorem AddTorsor.convexComboPair_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) :
    convexComboPair s t hs ht h x y = (AffineMap.lineMap y x) s

    convexComboPair in an affine space is the affine line map.