The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

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 that B is an extreme set of A (in the literature, A is often implicit).
  • Set.extremePoints ๐•œ A: Set of extreme points of A (corresponding to extreme singletons).
  • Convex.mem_extremePoints_iff_convex_sdiff: A useful equivalent condition to being an extreme point: x is an extreme point iff A \ {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

NameNew nameSince
Convex.mem_extremePoints_iff_convex_diffConvex.mem_extremePoints_iff_convex_sdiff2026-06-03
Convex.mem_extremePoints_iff_mem_diff_convexHull_diffConvex.mem_extremePoints_iff_mem_sdiff_convexHull_sdiff2026-06-03
IsExtreme.convex_diffIsExtreme.convex_sdiff2026-06-03