The areas / V22. Affine, Euclidean and convex geometry
Mathlib.Analysis.Convex.Extreme
39 declarations and 3 deprecated aliases. Mathlib docs ยท Source
Extreme sets
This file defines extreme sets and extreme points for sets in a module.
An extreme set of A is a subset of A that is as far as it can get in any outward direction: If
point x is in it and point y โ A, then the line passing through x and y leaves A at x.
This is an analytic notion of "being on the side of". It is weaker than being exposed (see
IsExposed.isExtreme).
Main declarations
IsExtreme ๐ A B: States thatBis an extreme set ofA(in the literature,Ais often implicit).Set.extremePoints ๐ A: Set of extreme points ofA(corresponding to extreme singletons).Convex.mem_extremePoints_iff_convex_sdiff: A useful equivalent condition to being an extreme point:xis an extreme point iffA \ {x}is convex.
Implementation notes
The exact definition of extremeness has been carefully chosen so as to make as many lemmas
unconditional (in particular, the Krein-Milman theorem doesn't need the set to be convex!).
In practice, A is often assumed to be a convex set.
References
See chapter 8 of [Barry Simon, Convexity][simon2011]
TODO
Prove lemmas relating extreme sets and points to the intrinsic frontier.
structure IsExtreme E1 #
(๐ : Type u_1) โ
{E : Type u_2} โ [Semiring ๐] โ [PartialOrder ๐] โ [AddCommMonoid E] โ [SMul ๐ E] โ Set E โ Set E โ Prop
A set B is an extreme subset of A if B โ A and all points of B only belong to open
segments whose ends are in B.
Our definition only requires that the left endpoint of the segment lies in B,
but by symmetry of open segments, the right endpoint must also lie in B.
See IsExtreme.right_mem_of_mem_openSegment.
theorem isExtreme_iff E0 #
โ (๐ : Type u_1) {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] (A B : Set E),
IsExtreme ๐ A B โ B โ A โง โ โฆx : Eโฆ, x โ A โ โ โฆy : Eโฆ, y โ A โ โ โฆz : Eโฆ, z โ B โ z โ openSegment ๐ x y โ x โ B
ctor IsExtreme.mk E0 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A B : Set E},
B โ A โ (โ โฆx : Eโฆ, x โ A โ โ โฆy : Eโฆ, y โ A โ โ โฆz : Eโฆ, z โ B โ z โ openSegment ๐ x y โ x โ B) โ IsExtreme ๐ A B
theorem IsExtreme.subset E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A B : Set E}, IsExtreme ๐ A B โ B โ A
theorem IsExtreme.left_mem_of_mem_openSegment E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A B : Set E},
IsExtreme ๐ A B โ โ โฆx : Eโฆ, x โ A โ โ โฆy : Eโฆ, y โ A โ โ โฆz : Eโฆ, z โ B โ z โ openSegment ๐ x y โ x โ B
def Set.extremePoints E3 #
(๐ : Type u_1) โ {E : Type u_2} โ [Semiring ๐] โ [PartialOrder ๐] โ [AddCommMonoid E] โ [SMul ๐ E] โ Set E โ Set E
A point x is an extreme point of a set A if x belongs to no open segment with ends in
A, except for the obvious openSegment x x.
theorem IsExtreme.refl E1 #
โ (๐ : Type u_1) {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] (A : Set E), IsExtreme ๐ A A
theorem IsExtreme.rfl E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A : Set E}, IsExtreme ๐ A A
theorem IsExtreme.right_mem_of_mem_openSegment E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A B : Set E} {x : E},
IsExtreme ๐ A B โ โ {y z : E}, x โ A โ y โ A โ z โ B โ z โ openSegment ๐ x y โ y โ B
theorem IsExtreme.trans E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A B C : Set E}, IsExtreme ๐ A B โ IsExtreme ๐ B C โ IsExtreme ๐ A C
theorem IsExtreme.antisymm E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E], Std.Antisymm (IsExtreme ๐)
instance instIsPartialOrderSetIsExtreme E0 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E], IsPartialOrder (Set E) (IsExtreme ๐)
theorem IsExtreme.inter E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A B C : Set E}, IsExtreme ๐ A B โ IsExtreme ๐ A C โ IsExtreme ๐ A (B โฉ C)
theorem IsExtreme.mono E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A B C : Set E}, IsExtreme ๐ A C โ B โ A โ C โ B โ IsExtreme ๐ B C
theorem isExtreme_iInter E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A : Set E} {ฮน : Sort u_6} [Nonempty ฮน] {F : ฮน โ Set E},
(โ (i : ฮน), IsExtreme ๐ A (F i)) โ IsExtreme ๐ A (โ i, F i)
theorem isExtreme_biInter E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A : Set E} {F : Set (Set E)},
F.Nonempty โ (โ B โ F, IsExtreme ๐ A B) โ IsExtreme ๐ A (โ B โ F, B)
theorem isExtreme_sInter E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A : Set E} {F : Set (Set E)}, F.Nonempty โ (โ B โ F, IsExtreme ๐ A B) โ IsExtreme ๐ A (โโ F)
theorem mem_extremePoints E0 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A : Set E} {x : E},
x โ Set.extremePoints ๐ A โ x โ A โง โ xโ โ A, โ xโ โ A, x โ openSegment ๐ xโ xโ โ xโ = x โง xโ = x
A point x is an extreme point of a set A
iff x โ A and for any xโ, xโ such that x belongs to the open segment (xโ, xโ),
we have xโ = x and xโ = x.
We used to use the RHS as the definition of extremePoints.
However, the conclusion xโ = x is redundant,
so we changed the definition to the RHS of mem_extremePoints_iff_left.
theorem mem_extremePoints_iff_left E0 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A : Set E} {x : E},
x โ Set.extremePoints ๐ A โ x โ A โง โ xโ โ A, โ xโ โ A, x โ openSegment ๐ xโ xโ โ xโ = x
A point x is an extreme point of a set A
iff x โ A and for any xโ, xโ such that x belongs to the open segment (xโ, xโ),
we have xโ = x.
theorem isExtreme_singleton E0 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A : Set E} {x : E}, IsExtreme ๐ A {x} โ x โ Set.extremePoints ๐ A
x is an extreme point to A iff {x} is an extreme set of A.
theorem IsExtreme.mem_extremePoints E0 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A : Set E} {x : E}, IsExtreme ๐ A {x} โ x โ Set.extremePoints ๐ A
Alias of the forward direction of isExtreme_singleton.
x is an extreme point to A iff {x} is an extreme set of A.
theorem extremePoints_subset E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A : Set E}, Set.extremePoints ๐ A โ A
theorem extremePoints_empty E0 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E], Set.extremePoints ๐ โ
= โ
theorem extremePoints_singleton E0 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {x : E}, Set.extremePoints ๐ {x} = {x}
theorem inter_extremePoints_subset_extremePoints_of_subset E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A B : Set E}, B โ A โ B โฉ Set.extremePoints ๐ A โ Set.extremePoints ๐ B
theorem IsExtreme.extremePoints_subset_extremePoints E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A B : Set E}, IsExtreme ๐ A B โ Set.extremePoints ๐ B โ Set.extremePoints ๐ A
theorem IsExtreme.extremePoints_eq E0 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] {A B : Set E}, IsExtreme ๐ A B โ Set.extremePoints ๐ B = B โฉ Set.extremePoints ๐ A
theorem Set.extremePoints_eq_self E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : SMul ๐ E] [Subsingleton E] (A : Set E), Set.extremePoints ๐ A = A
theorem IsExtreme.convex_sdiff E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommGroup E]
[inst_3 : Module ๐ E] {A B : Set E} [IsOrderedRing ๐], Convex ๐ A โ IsExtreme ๐ A B โ Convex ๐ (A \ B)
theorem extremePoints_prod E0 #
โ {๐ : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommGroup E]
[inst_3 : AddCommGroup F] [inst_4 : Module ๐ E] [inst_5 : Module ๐ F] (s : Set E) (t : Set F),
Set.extremePoints ๐ (s รหข t) = Set.extremePoints ๐ s รหข Set.extremePoints ๐ t
theorem extremePoints_pi E0 #
โ {๐ : Type u_1} {ฮน : Type u_4} {M : ฮน โ Type u_5} [inst : Semiring ๐] [inst_1 : PartialOrder ๐]
[inst_2 : (i : ฮน) โ AddCommGroup (M i)] [inst_3 : (i : ฮน) โ Module ๐ (M i)] (s : (i : ฮน) โ Set (M i)),
Set.extremePoints ๐ (Set.univ.pi s) = Set.univ.pi fun i โฆ Set.extremePoints ๐ (s i)
theorem image_extremePoints E1 #
โ {๐ : Type u_1} {E : Type u_2} {F : Type u_3} {L : Type u_6} [inst : Ring ๐] [inst_1 : PartialOrder ๐]
[IsOrderedRing ๐] [inst_3 : AddCommGroup E] [inst_4 : Module ๐ E] [inst_5 : AddCommGroup F] [inst_6 : Module ๐ F]
[inst_7 : EquivLike L E F] [LinearEquivClass L ๐ E F] (f : L) (s : Set E),
โf '' Set.extremePoints ๐ s = Set.extremePoints ๐ (โf '' s)
theorem mem_extremePoints_iff_forall_segment E0 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Ring ๐] [inst_1 : LinearOrder ๐] [IsStrictOrderedRing ๐]
[inst_3 : AddCommGroup E] [inst_4 : Module ๐ E] [DenselyOrdered ๐] [Module.IsTorsionFree ๐ E] {A : Set E} {x : E},
x โ Set.extremePoints ๐ A โ x โ A โง โ xโ โ A, โ xโ โ A, x โ segment ๐ xโ xโ โ xโ = x โจ xโ = x
A useful restatement using segment: x is an extreme point iff the only (closed) segments
that contain it are those with x as one of their endpoints.
theorem Convex.mem_extremePoints_iff_convex_sdiff E3 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Ring ๐] [inst_1 : LinearOrder ๐] [IsStrictOrderedRing ๐]
[inst_3 : AddCommGroup E] [inst_4 : Module ๐ E] [DenselyOrdered ๐] [Module.IsTorsionFree ๐ E] {A : Set E} {x : E},
Convex ๐ A โ (x โ Set.extremePoints ๐ A โ x โ A โง Convex ๐ (A \ {x}))
theorem Convex.mem_extremePoints_iff_mem_sdiff_convexHull_sdiff E0 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Ring ๐] [inst_1 : LinearOrder ๐] [IsStrictOrderedRing ๐]
[inst_3 : AddCommGroup E] [inst_4 : Module ๐ E] [DenselyOrdered ๐] [Module.IsTorsionFree ๐ E] {A : Set E} {x : E},
Convex ๐ A โ (x โ Set.extremePoints ๐ A โ x โ A \ (convexHull ๐) (A \ {x}))
theorem extremePoints_convexHull_subset E1 #
โ {๐ : Type u_1} {E : Type u_2} [inst : Ring ๐] [inst_1 : LinearOrder ๐] [IsStrictOrderedRing ๐]
[inst_3 : AddCommGroup E] [inst_4 : Module ๐ E] [DenselyOrdered ๐] [Module.IsTorsionFree ๐ E] {A : Set E},
Set.extremePoints ๐ ((convexHull ๐) A) โ A
theorem star_segment E0 #
โ {๐ : Type u_6} {E : Type u_7} [inst : Semiring ๐] [inst_1 : StarRing ๐] [inst_2 : PartialOrder ๐] [StarOrderedRing ๐]
[inst_4 : AddCommMonoid E] [inst_5 : StarAddMonoid E] [inst_6 : SMul ๐ E] [StarModule ๐ E] (x y : E),
star (segment ๐ x y) = segment ๐ (star x) (star y)
theorem star_openSegment E0 #
โ {๐ : Type u_6} {E : Type u_7} [inst : Semiring ๐] [inst_1 : StarRing ๐] [inst_2 : PartialOrder ๐] [StarOrderedRing ๐]
[inst_4 : AddCommMonoid E] [inst_5 : StarAddMonoid E] [inst_6 : SMul ๐ E] [StarModule ๐ E] (x y : E),
star (openSegment ๐ x y) = openSegment ๐ (star x) (star y)
theorem star_extremePoints E0 #
โ {๐ : Type u_6} {E : Type u_7} [inst : Semiring ๐] [inst_1 : StarRing ๐] [inst_2 : PartialOrder ๐] [StarOrderedRing ๐]
[inst_4 : AddCommMonoid E] [inst_5 : StarAddMonoid E] [inst_6 : SMul ๐ E] [StarModule ๐ E] (s : Set E),
star (Set.extremePoints ๐ s) = Set.extremePoints ๐ (star s)
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Convex.mem_extremePoints_iff_convex_diff | Convex.mem_extremePoints_iff_convex_sdiff | 2026-06-03 |
Convex.mem_extremePoints_iff_mem_diff_convexHull_diff | Convex.mem_extremePoints_iff_mem_sdiff_convexHull_sdiff | 2026-06-03 |
IsExtreme.convex_diff | IsExtreme.convex_sdiff | 2026-06-03 |