# Convex independence #

This file defines convex independent families of points.

Convex independence is closely related to affine independence. In both cases, no point can be written as a combination of others. When the combination is affine (that is, any coefficients), this yields affine independence. When the combination is convex (that is, all coefficients are nonnegative), then this yields convex independence. In particular, affine independence implies convex independence.

## Main declarations #

• ConvexIndependent p: Convex independence of the indexed family p : ΞΉ β E. Every point of the family only belongs to convex hulls of sets of the family containing it.
• convexIndependent_iff_finset: CarathΓ©odory's theorem allows us to only check finsets to conclude convex independence.
• Convex.convexIndependent_extremePoints: Extreme points of a convex set are convex independent.

## TODO #

Prove AffineIndependent.convexIndependent. This requires some glue between affineCombination and Finset.centerMass.

## Tags #

independence, convex position

def ConvexIndependent (π : Type u_1) {E : Type u_2} {ΞΉ : Type u_3} [OrderedSemiring π] [] [Module π E] (p : ΞΉ β E) :

An indexed family is said to be convex independent if every point only belongs to convex hulls of sets containing it.

Equations
Instances For
theorem Subsingleton.convexIndependent {π : Type u_1} {E : Type u_2} {ΞΉ : Type u_3} [OrderedSemiring π] [] [Module π E] [] (p : ΞΉ β E) :

A family with at most one point is convex independent.

theorem ConvexIndependent.injective {π : Type u_1} {E : Type u_2} {ΞΉ : Type u_3} [OrderedSemiring π] [] [Module π E] {p : ΞΉ β E} (hc : ConvexIndependent π p) :

A convex independent family is injective.

theorem ConvexIndependent.comp_embedding {π : Type u_1} {E : Type u_2} {ΞΉ : Type u_3} [OrderedSemiring π] [] [Module π E] {ΞΉ' : Type u_4} (f : ΞΉ' βͺ ΞΉ) {p : ΞΉ β E} (hc : ConvexIndependent π p) :
ConvexIndependent π (p β βf)

If a family is convex independent, so is any subfamily given by composition of an embedding into index type with the original family.

theorem ConvexIndependent.subtype {π : Type u_1} {E : Type u_2} {ΞΉ : Type u_3} [OrderedSemiring π] [] [Module π E] {p : ΞΉ β E} (hc : ConvexIndependent π p) (s : Set ΞΉ) :
ConvexIndependent π fun (i : βs) => p βi

If a family is convex independent, so is any subfamily indexed by a subtype of the index type.

theorem ConvexIndependent.range {π : Type u_1} {E : Type u_2} {ΞΉ : Type u_3} [OrderedSemiring π] [] [Module π E] {p : ΞΉ β E} (hc : ConvexIndependent π p) :
ConvexIndependent π Subtype.val

If an indexed family of points is convex independent, so is the corresponding set of points.

theorem ConvexIndependent.mono {π : Type u_1} {E : Type u_2} [OrderedSemiring π] [] [Module π E] {s : Set E} {t : Set E} (hc : ConvexIndependent π Subtype.val) (hs : s β t) :
ConvexIndependent π Subtype.val

A subset of a convex independent set of points is convex independent as well.

theorem Function.Injective.convexIndependent_iff_set {π : Type u_1} {E : Type u_2} {ΞΉ : Type u_3} [OrderedSemiring π] [] [Module π E] {p : ΞΉ β E} (hi : ) :
ConvexIndependent π Subtype.val β ConvexIndependent π p

The range of an injective indexed family of points is convex independent iff that family is.

@[simp]
theorem ConvexIndependent.mem_convexHull_iff {π : Type u_1} {E : Type u_2} {ΞΉ : Type u_3} [OrderedSemiring π] [] [Module π E] {p : ΞΉ β E} (hc : ConvexIndependent π p) (s : Set ΞΉ) (i : ΞΉ) :
p i β (convexHull π) (p '' s) β i β s

If a family is convex independent, a point in the family is in the convex hull of some of the points given by a subset of the index type if and only if the point's index is in this subset.

theorem convexIndependent_iff_not_mem_convexHull_diff {π : Type u_1} {E : Type u_2} {ΞΉ : Type u_3} [OrderedSemiring π] [] [Module π E] {p : ΞΉ β E} :
ConvexIndependent π p β β (i : ΞΉ) (s : Set ΞΉ), p i β (convexHull π) (p '' (s \ {i}))

If a family is convex independent, a point in the family is not in the convex hull of the other points. See convexIndependent_set_iff_not_mem_convexHull_diff for the Set version.

theorem convexIndependent_set_iff_inter_convexHull_subset {π : Type u_1} {E : Type u_2} [OrderedSemiring π] [] [Module π E] {s : Set E} :
ConvexIndependent π Subtype.val β β t β s, s β© (convexHull π) t β t
theorem convexIndependent_set_iff_not_mem_convexHull_diff {π : Type u_1} {E : Type u_2} [OrderedSemiring π] [] [Module π E] {s : Set E} :
ConvexIndependent π Subtype.val β β x β s, x β (convexHull π) (s \ {x})

If a set is convex independent, a point in the set is not in the convex hull of the other points. See convexIndependent_iff_not_mem_convexHull_diff for the indexed family version.

theorem convexIndependent_iff_finset {π : Type u_1} {E : Type u_2} {ΞΉ : Type u_3} [] [] [Module π E] {p : ΞΉ β E} :
ConvexIndependent π p β β (s : Finset ΞΉ) (x : ΞΉ), p x β (convexHull π) β() β x β s

To check convex independence, one only has to check finsets thanks to CarathΓ©odory's theorem.

### Extreme points #

theorem Convex.convexIndependent_extremePoints {π : Type u_1} {E : Type u_2} [] [] [Module π E] {s : Set E} (hs : Convex π s) :
ConvexIndependent π Subtype.val