The areas / V22. Affine, Euclidean and convex geometry
Mathlib.Geometry.Convex.Star
18 declarations. Mathlib docs · Source
Star-convex sets
This file defines star-convex sets in a convex space.
A set is star-convex at x if every segment from x to a point in the set is contained in the set.
This is the prototypical example of a contractible set in homotopy theory (by scaling every point
towards x), but has wider uses.
Note that this has nothing to do with star rings, Star and co.
Implementation notes
Instead of saying that a set is star-convex, we say a set is star-convex at a point. This has the advantage of allowing us to talk about convexity as being "everywhere star-convexity" and of making the union of star-convex sets be star-convex.
Incidentally, this choice means we don't need to assume a set is nonempty for it to be star-convex. Concretely, the empty set is star-convex at every point.
def Convexity.IsStarConvexSet E1 #
(R : Type u_1) →
{X : Type u_2} →
[inst : Semiring R] →
[inst_1 : PartialOrder R] → [inst_2 : IsStrictOrderedRing R] → [Convexity.ConvexSpace R X] → X → Set X → Prop
A set s is star-convex at a point x if every segment from x to a point in s is
contained in s.
TODO: Replace StarConvex with this predicate.
theorem Convexity.IsStarConvexSet.empty E0 #
∀ {R : Type u_1} {X : Type u_2} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R]
[inst_3 : Convexity.ConvexSpace R X] {x : X}, Convexity.IsStarConvexSet R x ∅
theorem Convexity.IsStarConvexSet.univ E0 #
∀ {R : Type u_1} {X : Type u_2} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R]
[inst_3 : Convexity.ConvexSpace R X] {x : X}, Convexity.IsStarConvexSet R x Set.univ
theorem Convexity.IsStarConvexSet.singleton E0 #
∀ {R : Type u_1} {X : Type u_2} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R]
[inst_3 : Convexity.ConvexSpace R X] {x : X}, Convexity.IsStarConvexSet R x {x}
theorem Convexity.IsStarConvexSet.inter E1 #
∀ {R : Type u_1} {X : Type u_2} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R]
[inst_3 : Convexity.ConvexSpace R X] {x : X} {s t : Set X},
Convexity.IsStarConvexSet R x s → Convexity.IsStarConvexSet R x t → Convexity.IsStarConvexSet R x (s ∩ t)
theorem Convexity.IsStarConvexSet.union E1 #
∀ {R : Type u_1} {X : Type u_2} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R]
[inst_3 : Convexity.ConvexSpace R X] {x : X} {s t : Set X},
Convexity.IsStarConvexSet R x s → Convexity.IsStarConvexSet R x t → Convexity.IsStarConvexSet R x (s ∪ t)
theorem Convexity.IsStarConvexSet.sInter E1 #
∀ {R : Type u_1} {X : Type u_2} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R]
[inst_3 : Convexity.ConvexSpace R X] {x : X} {S : Set (Set X)},
(∀ s ∈ S, Convexity.IsStarConvexSet R x s) → Convexity.IsStarConvexSet R x (⋂₀ S)
theorem Convexity.IsStarConvexSet.iInter E1 #
∀ {R : Type u_1} {X : Type u_2} {ι : Sort u_4} [inst : Semiring R] [inst_1 : PartialOrder R]
[inst_2 : IsStrictOrderedRing R] [inst_3 : Convexity.ConvexSpace R X] {x : X} {s : ι → Set X},
(∀ (i : ι), Convexity.IsStarConvexSet R x (s i)) → Convexity.IsStarConvexSet R x (⋂ i, s i)
theorem Convexity.IsStarConvexSet.iInter₂ E1 #
∀ {R : Type u_1} {X : Type u_2} {ι : Sort u_4} {κ : ι → Sort u_5} [inst : Semiring R] [inst_1 : PartialOrder R]
[inst_2 : IsStrictOrderedRing R] [inst_3 : Convexity.ConvexSpace R X] {x : X} {s : (i : ι) → κ i → Set X},
(∀ (i : ι) (j : κ i), Convexity.IsStarConvexSet R x (s i j)) → Convexity.IsStarConvexSet R x (⋂ i, ⋂ j, s i j)
theorem Convexity.IsStarConvexSet.sUnion E1 #
∀ {R : Type u_1} {X : Type u_2} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R]
[inst_3 : Convexity.ConvexSpace R X] {x : X} {S : Set (Set X)},
(∀ s ∈ S, Convexity.IsStarConvexSet R x s) → Convexity.IsStarConvexSet R x (⋃₀ S)
theorem Convexity.IsStarConvexSet.iUnion E1 #
∀ {R : Type u_1} {X : Type u_2} {ι : Sort u_4} [inst : Semiring R] [inst_1 : PartialOrder R]
[inst_2 : IsStrictOrderedRing R] [inst_3 : Convexity.ConvexSpace R X] {x : X} {s : ι → Set X},
(∀ (i : ι), Convexity.IsStarConvexSet R x (s i)) → Convexity.IsStarConvexSet R x (⋃ i, s i)
theorem Convexity.IsStarConvexSet.iUnion₂ E1 #
∀ {R : Type u_1} {X : Type u_2} {ι : Sort u_4} {κ : ι → Sort u_5} [inst : Semiring R] [inst_1 : PartialOrder R]
[inst_2 : IsStrictOrderedRing R] [inst_3 : Convexity.ConvexSpace R X] {x : X} {s : (i : ι) → κ i → Set X},
(∀ (i : ι) (j : κ i), Convexity.IsStarConvexSet R x (s i j)) → Convexity.IsStarConvexSet R x (⋃ i, ⋃ j, s i j)
theorem Convexity.IsConvexSet.isStarConvexSet E1 #
∀ {R : Type u_1} {X : Type u_2} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R]
[inst_3 : Convexity.ConvexSpace R X] {x : X} {s : Set X},
Convexity.IsConvexSet R s → x ∈ s → Convexity.IsStarConvexSet R x s
theorem Convexity.IsStarConvexSet.mem E1 #
∀ {R : Type u_1} {X : Type u_2} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R]
[inst_3 : Convexity.ConvexSpace R X] {x : X} {s : Set X}, Convexity.IsStarConvexSet R x s → s.Nonempty → x ∈ s
theorem Convexity.IsStarConvexSet.preimage E1 #
∀ {R : Type u_1} {X : Type u_2} {Y : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R]
[inst_2 : IsStrictOrderedRing R] [inst_3 : Convexity.ConvexSpace R X] [inst_4 : Convexity.ConvexSpace R Y] {f : X → Y}
{x : X} {s : Set Y},
Convexity.IsAffineMap R f → Convexity.IsStarConvexSet R (f x) s → Convexity.IsStarConvexSet R x (f ⁻¹' s)
theorem Convexity.IsStarConvexSet.image E1 #
∀ {R : Type u_1} {X : Type u_2} {Y : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R]
[inst_2 : IsStrictOrderedRing R] [inst_3 : Convexity.ConvexSpace R X] [inst_4 : Convexity.ConvexSpace R Y] {f : X → Y}
{x : X} {s : Set X},
Convexity.IsAffineMap R f → Convexity.IsStarConvexSet R x s → Convexity.IsStarConvexSet R (f x) (f '' s)
theorem Convexity.IsStarConvexSet.prod E1 #
∀ {R : Type u_1} {X : Type u_2} {Y : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R]
[inst_2 : IsStrictOrderedRing R] [inst_3 : Convexity.ConvexSpace R X] [inst_4 : Convexity.ConvexSpace R Y] {x : X}
{s : Set X} {t : Set Y} {y : Y},
Convexity.IsStarConvexSet R x s → Convexity.IsStarConvexSet R y t → Convexity.IsStarConvexSet R (x, y) (s ×ˢ t)
theorem Convexity.IsStarConvexSet.pi E1 #
∀ {R : Type u_1} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] {ι : Type u_6}
{X : ι → Type u_7} [inst_3 : (i : ι) → Convexity.ConvexSpace R (X i)] {s : Set ι} {x : (i : ι) → X i}
{t : (i : ι) → Set (X i)}, (∀ i ∈ s, Convexity.IsStarConvexSet R (x i) (t i)) → Convexity.IsStarConvexSet R x (s.pi t)