The areas / V16. Normed spaces and functional analysis
Mathlib.Analysis.Convex.Star
51 declarations. Mathlib docs Β· Source
Star-convex sets
This file defines star-convex sets (aka star domains, star-shaped set, radially convex set).
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.
Main declarations
StarConvex π x s:sis star-convex atxwith scalarsπ.
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.
TODO
The closure of a star-convex set is star-convex.
A nonempty open star-convex set in β^n is diffeomorphic to the entire space.
Replace with Convexity.IsStarConvexSet.
Star-convex sets in an ordered space
Relates starConvex and Set.ordConnected.
def StarConvex E1 #
(π : Type u_4) β {E : Type u_5} β [Semiring π] β [PartialOrder π] β [AddCommMonoid E] β [SMul π E] β E β Set E β Prop
Star-convexity of sets. s is star-convex at x if every segment from x to a point in s is
contained in s.
theorem starConvex_iff_segment_subset E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {s : Set E}, StarConvex π x s β β β¦y : Eβ¦, y β s β segment π x y β s
theorem StarConvex.segment_subset E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {s : Set E}, StarConvex π x s β β {y : E}, y β s β segment π x y β s
theorem StarConvex.openSegment_subset E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {s : Set E}, StarConvex π x s β β {y : E}, y β s β openSegment π x y β s
theorem starConvex_iff_pointwise_add_subset E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {s : Set E},
StarConvex π x s β β β¦a b : πβ¦, 0 β€ a β 0 β€ b β a + b = 1 β a β’ {x} + b β’ s β s
Alternative definition of star-convexity, in terms of pointwise set operations.
theorem starConvex_empty E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] (x : E), StarConvex π x β
theorem starConvex_univ E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] (x : E), StarConvex π x Set.univ
theorem StarConvex.inter E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {s t : Set E}, StarConvex π x s β StarConvex π x t β StarConvex π x (s β© t)
theorem starConvex_sInter E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {S : Set (Set E)}, (β s β S, StarConvex π x s) β StarConvex π x (ββ S)
theorem starConvex_iInter E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {ΞΉ : Sort u_4} {s : ΞΉ β Set E},
(β (i : ΞΉ), StarConvex π x (s i)) β StarConvex π x (β i, s i)
theorem starConvex_iInterβ E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {ΞΉ : Sort u_4} {ΞΊ : ΞΉ β Sort u_5} {s : (i : ΞΉ) β ΞΊ i β Set E},
(β (i : ΞΉ) (j : ΞΊ i), StarConvex π x (s i j)) β StarConvex π x (β i, β j, s i j)
theorem StarConvex.union E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {s t : Set E}, StarConvex π x s β StarConvex π x t β StarConvex π x (s βͺ t)
theorem starConvex_iUnion E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {ΞΉ : Sort u_4} {s : ΞΉ β Set E},
(β (i : ΞΉ), StarConvex π x (s i)) β StarConvex π x (β i, s i)
theorem starConvex_iUnionβ E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {ΞΉ : Sort u_4} {ΞΊ : ΞΉ β Sort u_5} {s : (i : ΞΉ) β ΞΊ i β Set E},
(β (i : ΞΉ) (j : ΞΊ i), StarConvex π x (s i j)) β StarConvex π x (β i, β j, s i j)
theorem starConvex_sUnion E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : SMul π E] {x : E} {S : Set (Set E)}, (β s β S, StarConvex π x s) β StarConvex π x (ββ S)
theorem StarConvex.prod E1 #
β {π : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : AddCommMonoid F] [inst_4 : SMul π E] [inst_5 : SMul π F] {x : E} {y : F} {s : Set E} {t : Set F},
StarConvex π x s β StarConvex π y t β StarConvex π (x, y) (s ΓΛ’ t)
theorem starConvex_pi E1 #
β {π : Type u_1} [inst : Semiring π] [inst_1 : PartialOrder π] {ΞΉ : Type u_4} {E : ΞΉ β Type u_5}
[inst_2 : (i : ΞΉ) β AddCommMonoid (E i)] [inst_3 : (i : ΞΉ) β SMul π (E i)] {x : (i : ΞΉ) β E i} {s : Set ΞΉ}
{t : (i : ΞΉ) β Set (E i)}, (β β¦i : ΞΉβ¦, i β s β StarConvex π (x i) (t i)) β StarConvex π x (s.pi t)
theorem StarConvex.mem E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x : E} {s : Set E} [ZeroLEOneClass π], StarConvex π x s β s.Nonempty β x β s
theorem starConvex_iff_forall_pos E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x : E} {s : Set E},
x β s β (StarConvex π x s β β β¦y : Eβ¦, y β s β β β¦a b : πβ¦, 0 < a β 0 < b β a + b = 1 β a β’ x + b β’ y β s)
theorem starConvex_iff_forall_ne_pos E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x : E} {s : Set E},
x β s β (StarConvex π x s β β β¦y : Eβ¦, y β s β x β y β β β¦a b : πβ¦, 0 < a β 0 < b β a + b = 1 β a β’ x + b β’ y β s)
theorem starConvex_iff_openSegment_subset E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x : E} {s : Set E} [ZeroLEOneClass π],
x β s β (StarConvex π x s β β β¦y : Eβ¦, y β s β openSegment π x y β s)
theorem starConvex_singleton E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] (x : E), StarConvex π x {x}
theorem StarConvex.linear_image E1 #
β {π : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : AddCommMonoid F] [inst_4 : Module π E] [inst_5 : Module π F] {x : E} {s : Set E},
StarConvex π x s β β (f : E ββ[π] F), StarConvex π (f x) (βf '' s)
theorem StarConvex.is_linear_image E1 #
β {π : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : AddCommMonoid F] [inst_4 : Module π E] [inst_5 : Module π F] {x : E} {s : Set E},
StarConvex π x s β β {f : E β F}, IsLinearMap π f β StarConvex π (f x) (f '' s)
theorem StarConvex.linear_preimage E1 #
β {π : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : AddCommMonoid F] [inst_4 : Module π E] [inst_5 : Module π F] {x : E} {s : Set F} (f : E ββ[π] F),
StarConvex π (f x) s β StarConvex π x (βf β»ΒΉ' s)
theorem StarConvex.is_linear_preimage E1 #
β {π : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : AddCommMonoid F] [inst_4 : Module π E] [inst_5 : Module π F] {x : E} {s : Set F} {f : E β F},
StarConvex π (f x) s β IsLinearMap π f β StarConvex π x (f β»ΒΉ' s)
theorem StarConvex.add E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x y : E} {s t : Set E}, StarConvex π x s β StarConvex π y t β StarConvex π (x + y) (s + t)
theorem StarConvex.add_left E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x : E} {s : Set E}, StarConvex π x s β β (z : E), StarConvex π (z + x) ((fun x β¦ z + x) '' s)
theorem StarConvex.add_right E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x : E} {s : Set E}, StarConvex π x s β β (z : E), StarConvex π (x + z) ((fun x β¦ x + z) '' s)
theorem StarConvex.preimage_add_right E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x z : E} {s : Set E}, StarConvex π (z + x) s β StarConvex π x ((fun x β¦ z + x) β»ΒΉ' s)
The translation of a star-convex set is also star-convex.
theorem StarConvex.preimage_add_left E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x z : E} {s : Set E}, StarConvex π (x + z) s β StarConvex π x ((fun x β¦ x + z) β»ΒΉ' s)
The translation of a star-convex set is also star-convex.
theorem StarConvex.sub' E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommGroup E]
[inst_3 : Module π E] {x y : E} {s : Set (E Γ E)},
StarConvex π (x, y) s β StarConvex π (x - y) ((fun x β¦ x.1 - x.2) '' s)
theorem StarConvex.smul E1 #
β {π : Type u_1} {E : Type u_2} [inst : CommSemiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x : E} {s : Set E}, StarConvex π x s β β (c : π), StarConvex π (c β’ x) (c β’ s)
theorem StarConvex.zero_smul E1 #
β {π : Type u_1} {E : Type u_2} [inst : CommSemiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {s : Set E}, StarConvex π 0 s β β (c : π), StarConvex π 0 (c β’ s)
theorem StarConvex.preimage_smul E1 #
β {π : Type u_1} {E : Type u_2} [inst : CommSemiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x : E} {s : Set E} {c : π}, StarConvex π (c β’ x) s β StarConvex π x ((fun z β¦ c β’ z) β»ΒΉ' s)
theorem StarConvex.affinity E1 #
β {π : Type u_1} {E : Type u_2} [inst : CommSemiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : Module π E] {x : E} {s : Set E},
StarConvex π x s β β (z : E) (c : π), StarConvex π (z + c β’ x) ((fun x β¦ z + c β’ x) '' s)
theorem starConvex_zero_iff E0 #
β {π : Type u_1} {E : Type u_2} [inst : Ring π] [inst_1 : PartialOrder π] [AddRightMono π] [inst_3 : AddCommMonoid E]
[inst_4 : SMulWithZero π E] {s : Set E}, StarConvex π 0 s β β β¦x : Eβ¦, x β s β β β¦a : πβ¦, 0 β€ a β a β€ 1 β a β’ x β s
theorem StarConvex.add_smul_mem E1 #
β {π : Type u_1} {E : Type u_2} [inst : Ring π] [inst_1 : PartialOrder π] [AddRightMono π] [inst_3 : AddCommGroup E]
[inst_4 : Module π E] {x y : E} {s : Set E}, StarConvex π x s β x + y β s β β {t : π}, 0 β€ t β t β€ 1 β x + t β’ y β s
theorem StarConvex.smul_mem E1 #
β {π : Type u_1} {E : Type u_2} [inst : Ring π] [inst_1 : PartialOrder π] [AddRightMono π] [inst_3 : AddCommGroup E]
[inst_4 : Module π E] {x : E} {s : Set E}, StarConvex π 0 s β x β s β β {t : π}, 0 β€ t β t β€ 1 β t β’ x β s
theorem StarConvex.add_smul_sub_mem E1 #
β {π : Type u_1} {E : Type u_2} [inst : Ring π] [inst_1 : PartialOrder π] [AddRightMono π] [inst_3 : AddCommGroup E]
[inst_4 : Module π E] {x y : E} {s : Set E}, StarConvex π x s β y β s β β {t : π}, 0 β€ t β t β€ 1 β x + t β’ (y - x) β s
theorem StarConvex.affine_preimage E1 #
β {π : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Ring π] [inst_1 : PartialOrder π] [inst_2 : AddCommGroup E]
[inst_3 : AddCommGroup F] [inst_4 : Module π E] [inst_5 : Module π F] {x : E} (f : E βα΅[π] F) {s : Set F},
StarConvex π (f x) s β StarConvex π x (βf β»ΒΉ' s)
The preimage of a star-convex set under an affine map is star-convex.
theorem StarConvex.affine_image E1 #
β {π : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Ring π] [inst_1 : PartialOrder π] [inst_2 : AddCommGroup E]
[inst_3 : AddCommGroup F] [inst_4 : Module π E] [inst_5 : Module π F] {x : E} (f : E βα΅[π] F) {s : Set E},
StarConvex π x s β StarConvex π (f x) (βf '' s)
The image of a star-convex set under an affine map is star-convex.
theorem StarConvex.neg E1 #
β {π : Type u_1} {E : Type u_2} [inst : Ring π] [inst_1 : PartialOrder π] [inst_2 : AddCommGroup E]
[inst_3 : Module π E] {x : E} {s : Set E}, StarConvex π x s β StarConvex π (-x) (-s)
theorem StarConvex.sub E1 #
β {π : Type u_1} {E : Type u_2} [inst : Ring π] [inst_1 : PartialOrder π] [inst_2 : AddCommGroup E]
[inst_3 : Module π E] {x y : E} {s t : Set E}, StarConvex π x s β StarConvex π y t β StarConvex π (x - y) (s - t)
theorem starConvex_compl_Iic E1 #
β {π : Type u_1} {E : Type u_2} [inst : Ring π] [inst_1 : PartialOrder π] [inst_2 : AddCommGroup E]
[inst_3 : PartialOrder E] [IsOrderedAddMonoid E] [inst_5 : Module π E] [IsStrictOrderedModule π E]
[PosSMulReflectLT π E] {x y : E}, x < y β StarConvex π y (Set.Iic x)αΆ
If x < y, then (Set.Iic x)αΆ is star convex at y.
theorem starConvex_compl_Ici E1 #
β {π : Type u_1} {E : Type u_2} [inst : Ring π] [inst_1 : PartialOrder π] [inst_2 : AddCommGroup E]
[inst_3 : PartialOrder E] [IsOrderedAddMonoid E] [inst_5 : Module π E] [IsStrictOrderedModule π E]
[PosSMulReflectLT π E] {x y : E}, x < y β StarConvex π x (Set.Ici y)αΆ
If x < y, then (Set.Ici y)αΆ is star convex at x.
theorem starConvex_iff_div E1 #
β {π : Type u_1} {E : Type u_2} [inst : Field π] [inst_1 : LinearOrder π] [IsStrictOrderedRing π]
[inst_3 : AddCommGroup E] [inst_4 : Module π E] {x : E} {s : Set E},
StarConvex π x s β
β β¦y : Eβ¦, y β s β β β¦a b : πβ¦, 0 β€ a β 0 β€ b β 0 < a + b β (a / (a + b)) β’ x + (b / (a + b)) β’ y β s
Alternative definition of star-convexity, using division.
theorem StarConvex.mem_smul E0 #
β {π : Type u_1} {E : Type u_2} [inst : Field π] [inst_1 : LinearOrder π] [IsStrictOrderedRing π]
[inst_3 : AddCommGroup E] [inst_4 : Module π E] {x : E} {s : Set E},
StarConvex π 0 s β x β s β β {t : π}, 1 β€ t β x β t β’ s
theorem Set.OrdConnected.starConvex E1 #
β {π : Type u_1} {E : Type u_2} [inst : Semiring π] [inst_1 : PartialOrder π] [inst_2 : AddCommMonoid E]
[inst_3 : PartialOrder E] [IsOrderedAddMonoid E] [inst_5 : Module π E] [PosSMulMono π E] {x : E} {s : Set E},
s.OrdConnected β x β s β (β y β s, x β€ y β¨ y β€ x) β StarConvex π x s
If s is an order-connected set in an ordered module over an ordered semiring
and all elements of s are comparable with x β s, then s is StarConvex at x.
theorem starConvex_iff_ordConnected E1 #
β {π : Type u_1} [inst : Field π] [inst_1 : LinearOrder π] [IsStrictOrderedRing π] {x : π} {s : Set π},
x β s β (StarConvex π x s β s.OrdConnected)
theorem StarConvex.ordConnected E1 #
β {π : Type u_1} [inst : Field π] [inst_1 : LinearOrder π] [IsStrictOrderedRing π] {x : π} {s : Set π},
x β s β StarConvex π x s β s.OrdConnected
Alias of the forward direction of starConvex_iff_ordConnected.