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 / V16. Normed spaces and functional analysis

Mathlib.Analysis.Convex.Topology

57 declarations and 4 deprecated aliases. Mathlib docs · Source

Topological properties of convex sets

We prove the following facts:

  • Convex.interior : interior of a convex set is convex;
  • Convex.closure : closure of a convex set is convex;
  • closedConvexHull_closure_eq_closedConvexHull : the closed convex hull of the closure of a set is equal to the closed convex hull of the set;
  • Set.Finite.isCompact_convexHull : convex hull of a finite set is compact;
  • Set.Finite.isClosed_convexHull : convex hull of a finite set is closed.

Topological vector spaces

theorem Real.closedBall_eq_segment E1 #

∀ {r ε : ℝ}, 0 ≤ ε → Metric.closedBall r ε = segment ℝ (r - ε) (r + ε)

theorem Real.ball_eq_openSegment E1 #

∀ {r ε : ℝ}, 0 < ε → Metric.ball r ε = openSegment ℝ (r - ε) (r + ε)

theorem Real.convex_iff_isPreconnected E1 #

∀ {s : Set ℝ}, Convex ℝ s ↔ IsPreconnected s

theorem IsPreconnected.convex E1 #

∀ {s : Set ℝ}, IsPreconnected s → Convex ℝ s

Alias of the reverse direction of Real.convex_iff_isPreconnected.

theorem segment_subset_closure_openSegment E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Ring 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [DenselyOrdered 𝕜]
  [inst_4 : TopologicalSpace 𝕜] [OrderTopology 𝕜] [inst_6 : AddCommGroup E] [inst_7 : TopologicalSpace E]
  [ContinuousAdd E] [inst_9 : Module 𝕜 E] [ContinuousSMul 𝕜 E] {x y : E}, segment 𝕜 x y ⊆ closure (openSegment 𝕜 x y)

theorem closure_openSegment E0 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Ring 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [DenselyOrdered 𝕜]
  [inst_4 : PseudoMetricSpace 𝕜] [OrderTopology 𝕜] [ProperSpace 𝕜] [CompactIccSpace 𝕜] [inst_8 : AddCommGroup E]
  [inst_9 : TopologicalSpace E] [T2Space E] [ContinuousAdd E] [inst_12 : Module 𝕜 E] [ContinuousSMul 𝕜 E] (x y : E),
  closure (openSegment 𝕜 x y) = segment 𝕜 x y

theorem Convex.combo_interior_closure_subset_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ∀ {a b : 𝕜}, 0 < a → 0 ≤ b → a + b = 1 → a • interior s + b • closure s ⊆ interior s

If s is a convex set, then a • interior s + b • closure s ⊆ interior s for all 0 < a, 0 ≤ b, a + b = 1. See also Convex.combo_interior_self_subset_interior for a weaker version.

theorem Convex.combo_interior_self_subset_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ∀ {a b : 𝕜}, 0 < a → 0 ≤ b → a + b = 1 → a • interior s + b • s ⊆ interior s

If s is a convex set, then a • interior s + b • s ⊆ interior s for all 0 < a, 0 ≤ b, a + b = 1. See also Convex.combo_interior_closure_subset_interior for a stronger version.

theorem Convex.combo_closure_interior_subset_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ∀ {a b : 𝕜}, 0 ≤ a → 0 < b → a + b = 1 → a • closure s + b • interior s ⊆ interior s

If s is a convex set, then a • closure s + b • interior s ⊆ interior s for all 0 ≤ a, 0 < b, a + b = 1. See also Convex.combo_self_interior_subset_interior for a weaker version.

theorem Convex.combo_self_interior_subset_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ∀ {a b : 𝕜}, 0 ≤ a → 0 < b → a + b = 1 → a • s + b • interior s ⊆ interior s

If s is a convex set, then a • s + b • interior s ⊆ interior s for all 0 ≤ a, 0 < b, a + b = 1. See also Convex.combo_closure_interior_subset_interior for a stronger version.

theorem Convex.combo_interior_closure_mem_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s →
    ∀ {x y : E}, x ∈ interior s → y ∈ closure s → ∀ {a b : 𝕜}, 0 < a → 0 ≤ b → a + b = 1 → a • x + b • y ∈ interior s

theorem Convex.combo_interior_self_mem_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ∀ {x y : E}, x ∈ interior s → y ∈ s → ∀ {a b : 𝕜}, 0 < a → 0 ≤ b → a + b = 1 → a • x + b • y ∈ interior s

theorem Convex.combo_closure_interior_mem_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s →
    ∀ {x y : E}, x ∈ closure s → y ∈ interior s → ∀ {a b : 𝕜}, 0 ≤ a → 0 < b → a + b = 1 → a • x + b • y ∈ interior s

theorem Convex.combo_self_interior_mem_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ∀ {x y : E}, x ∈ s → y ∈ interior s → ∀ {a b : 𝕜}, 0 ≤ a → 0 < b → a + b = 1 → a • x + b • y ∈ interior s

theorem Convex.openSegment_interior_closure_subset_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ∀ {x y : E}, x ∈ interior s → y ∈ closure s → openSegment 𝕜 x y ⊆ interior s

theorem Convex.openSegment_image_interior_closure_preimage_subset E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] {F : Type u_3} [inst_4 : AddCommGroup F] [inst_5 : Module 𝕜 F] [inst_6 : TopologicalSpace F]
  [IsTopologicalAddGroup F] [ContinuousConstSMul 𝕜 F] {A : F →ᵃ[𝕜] E} {s : Set E},
  Convex 𝕜 s →
    ∀ {x y : F},
      x ∈ interior (⇑A ⁻¹' s) → y ∈ closure (⇑A ⁻¹' s) → openSegment 𝕜 (A x) (A y) ⊆ ⇑A '' interior (⇑A ⁻¹' s)

For a convex set s, the open segment between affine images of points in interior (A ⁻¹' s) and closure (A ⁻¹' s) is contained in the affine image of interior (A ⁻¹' s). This is the affine-map version of Convex.openSegment_interior_closure_subset_interior; taking A to be the identity gives that statement, while the assumptions on A are exactly used to make A ⁻¹' s convex and to transport open segments through A.

theorem Convex.openSegment_interior_self_subset_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ∀ {x y : E}, x ∈ interior s → y ∈ s → openSegment 𝕜 x y ⊆ interior s

theorem Convex.openSegment_closure_interior_subset_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ∀ {x y : E}, x ∈ closure s → y ∈ interior s → openSegment 𝕜 x y ⊆ interior s

theorem Convex.openSegment_self_interior_subset_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ∀ {x y : E}, x ∈ s → y ∈ interior s → openSegment 𝕜 x y ⊆ interior s

theorem Convex.add_smul_sub_mem_interior' E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E]
  [AddRightMono 𝕜] {s : Set E},
  Convex 𝕜 s → ∀ {x y : E}, x ∈ closure s → y ∈ interior s → ∀ {t : 𝕜}, t ∈ Set.Ioc 0 1 → x + t • (y - x) ∈ interior s

If x ∈ closure s and y ∈ interior s, then the segment (x, y] is included in interior s.

theorem Convex.add_smul_sub_mem_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E]
  [AddRightMono 𝕜] {s : Set E},
  Convex 𝕜 s → ∀ {x y : E}, x ∈ s → y ∈ interior s → ∀ {t : 𝕜}, t ∈ Set.Ioc 0 1 → x + t • (y - x) ∈ interior s

If x ∈ s and y ∈ interior s, then the segment (x, y] is included in interior s.

theorem Convex.add_smul_mem_interior' E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E]
  [AddRightMono 𝕜] {s : Set E},
  Convex 𝕜 s → ∀ {x y : E}, x ∈ closure s → x + y ∈ interior s → ∀ {t : 𝕜}, t ∈ Set.Ioc 0 1 → x + t • y ∈ interior s

If x ∈ closure s and x + y ∈ interior s, then x + t y ∈ interior s for t ∈ (0, 1].

theorem Convex.add_smul_mem_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E]
  [AddRightMono 𝕜] {s : Set E},
  Convex 𝕜 s → ∀ {x y : E}, x ∈ s → x + y ∈ interior s → ∀ {t : 𝕜}, t ∈ Set.Ioc 0 1 → x + t • y ∈ interior s

If x ∈ s and x + y ∈ interior s, then x + t y ∈ interior s for t ∈ (0, 1].

theorem Convex.interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E]
  [ZeroLEOneClass 𝕜] {s : Set E}, Convex 𝕜 s → Convex 𝕜 (interior s)

In a topological vector space, the interior of a convex set is convex.

theorem Convex.closure E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → Convex 𝕜 (closure s)

In a topological vector space, the closure of a convex set is convex.

theorem convexHull_interior_subset E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E]
  [ZeroLEOneClass 𝕜] (s : Set E), (convexHull 𝕜) (interior s) ⊆ interior ((convexHull 𝕜) s)

theorem IsOpen.convexHull E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E]
  [ZeroLEOneClass 𝕜] {s : Set E}, IsOpen s → IsOpen ((convexHull 𝕜) s)

theorem Convex.strictConvex' E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : AddCommGroup E] [inst_4 : Module 𝕜 E] [inst_5 : TopologicalSpace E] [IsTopologicalAddGroup E]
  [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ((s \ interior s).Pairwise fun x y ↦ ∃ c, (AffineMap.lineMap x y) c ∈ interior s) → StrictConvex 𝕜 s

A convex set s is strictly convex provided that for any two distinct points of s \ interior s, the line passing through these points has nonempty intersection with interior s.

theorem Convex.strictConvex E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : AddCommGroup E] [inst_4 : Module 𝕜 E] [inst_5 : TopologicalSpace E] [IsTopologicalAddGroup E]
  [ContinuousConstSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → ((s \ interior s).Pairwise fun x y ↦ (segment 𝕜 x y \ frontier s).Nonempty) → StrictConvex 𝕜 s

A convex set s is strictly convex provided that for any two distinct points x, y of s \ interior s, the segment with endpoints x, y has nonempty intersection with interior s.

theorem Convex.closure_interior_eq_closure_of_nonempty_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : AddCommGroup E] [inst_4 : Module 𝕜 E] [inst_5 : TopologicalSpace E] [IsTopologicalAddGroup E]
  [inst_7 : TopologicalSpace 𝕜] [OrderTopology 𝕜] [ContinuousSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → (interior s).Nonempty → closure (interior s) = closure s

theorem Convex.interior_closure_eq_interior_of_nonempty_interior E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : AddCommGroup E] [inst_4 : Module 𝕜 E] [inst_5 : TopologicalSpace E] [IsTopologicalAddGroup E]
  [inst_7 : TopologicalSpace 𝕜] [OrderTopology 𝕜] [ContinuousSMul 𝕜 E] {s : Set E},
  Convex 𝕜 s → (interior s).Nonempty → interior (closure s) = interior s

theorem convex_closed_sInter E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Semiring 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] {S : Set (Set E)},
  (∀ s ∈ S, Convex 𝕜 s ∧ IsClosed s) → Convex 𝕜 (⋂₀ S) ∧ IsClosed (⋂₀ S)

def closedConvexHull E1 #

(𝕜 : Type u_1) →
  {E : Type u_2} →
    [inst : Semiring 𝕜] →
      [PartialOrder 𝕜] → [inst_2 : AddCommGroup E] → [Module 𝕜 E] → [TopologicalSpace E] → ClosureOperator (Set E)

The convex closed hull of a set s is the minimal convex closed set that includes s.

theorem closedConvexHull_isClosed E0 #

∀ (𝕜 : Type u_1) {E : Type u_2} [inst : Semiring 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] (s : Set E),
  (closedConvexHull 𝕜).IsClosed s = (Convex 𝕜 s ∧ IsClosed s)

theorem convex_closedConvexHull E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Semiring 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] {s : Set E}, Convex 𝕜 ((closedConvexHull 𝕜) s)

theorem isClosed_closedConvexHull E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Semiring 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] {s : Set E}, IsClosed ((closedConvexHull 𝕜) s)

theorem subset_closedConvexHull E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Semiring 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] {s : Set E}, s ⊆ (closedConvexHull 𝕜) s

theorem closure_subset_closedConvexHull E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Semiring 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] {s : Set E}, closure s ⊆ (closedConvexHull 𝕜) s

theorem closedConvexHull_min E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Semiring 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] {s t : Set E},
  s ⊆ t → Convex 𝕜 t → IsClosed t → (closedConvexHull 𝕜) s ⊆ t

theorem convexHull_subset_closedConvexHull E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Semiring 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] {s : Set E}, (convexHull 𝕜) s ⊆ (closedConvexHull 𝕜) s

theorem closedConvexHull_closure_eq_closedConvexHull E0 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Semiring 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] {s : Set E},
  (closedConvexHull 𝕜) (closure s) = (closedConvexHull 𝕜) s

theorem closedConvexHull_eq_closure_convexHull E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : Field 𝕜] [inst_1 : PartialOrder 𝕜] [inst_2 : AddCommGroup E]
  [inst_3 : Module 𝕜 E] [inst_4 : TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousConstSMul 𝕜 E] {s : Set E},
  (closedConvexHull 𝕜) s = closure ((convexHull 𝕜) s)

theorem Set.Finite.isCompact_convexHull E1 #

∀ {E : Type u_2} (𝕜 : Type u_3) [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : TopologicalSpace 𝕜] [OrderClosedTopology 𝕜] [CompactIccSpace 𝕜] [IsTopologicalRing 𝕜]
  [inst_7 : AddCommGroup E] [inst_8 : Module 𝕜 E] [inst_9 : TopologicalSpace E] [IsTopologicalAddGroup E]
  [ContinuousSMul 𝕜 E] {s : Set E}, s.Finite → IsCompact ((convexHull 𝕜) s)

Convex hull of a finite set is compact.

theorem Set.Finite.isClosed_convexHull E1 #

∀ {E : Type u_2} (𝕜 : Type u_3) [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : TopologicalSpace 𝕜] [OrderClosedTopology 𝕜] [CompactIccSpace 𝕜] [IsTopologicalRing 𝕜]
  [inst_7 : AddCommGroup E] [inst_8 : Module 𝕜 E] [inst_9 : TopologicalSpace E] [IsTopologicalAddGroup E]
  [ContinuousSMul 𝕜 E] [T2Space E] {s : Set E}, s.Finite → IsClosed ((convexHull 𝕜) s)

Convex hull of a finite set is closed.

theorem Convex.closure_subset_image_homothety_interior_of_one_lt E1 #

∀ {E : Type u_2} [inst : AddCommGroup E] [inst_1 : Module ℝ E] [inst_2 : TopologicalSpace E] [IsTopologicalAddGroup E]
  [ContinuousSMul ℝ E] {s : Set E},
  Convex ℝ s → ∀ {x : E}, x ∈ interior s → ∀ (t : ℝ), 1 < t → closure s ⊆ ⇑(AffineMap.homothety x t) '' interior s

If we dilate the interior of a convex set about a point in its interior by a scale t > 1, the result includes the closure of the original set.

TODO Generalise this from convex sets to sets that are balanced / star-shaped about x.

theorem Convex.closure_subset_interior_image_homothety_of_one_lt E1 #

∀ {E : Type u_2} [inst : AddCommGroup E] [inst_1 : Module ℝ E] [inst_2 : TopologicalSpace E] [IsTopologicalAddGroup E]
  [ContinuousSMul ℝ E] {s : Set E},
  Convex ℝ s → ∀ {x : E}, x ∈ interior s → ∀ (t : ℝ), 1 < t → closure s ⊆ interior (⇑(AffineMap.homothety x t) '' s)

If we dilate a convex set about a point in its interior by a scale t > 1, the interior of the result includes the closure of the original set.

TODO Generalise this from convex sets to sets that are balanced / star-shaped about x.

theorem Convex.subset_interior_image_homothety_of_one_lt E1 #

∀ {E : Type u_2} [inst : AddCommGroup E] [inst_1 : Module ℝ E] [inst_2 : TopologicalSpace E] [IsTopologicalAddGroup E]
  [ContinuousSMul ℝ E] {s : Set E},
  Convex ℝ s → ∀ {x : E}, x ∈ interior s → ∀ (t : ℝ), 1 < t → s ⊆ interior (⇑(AffineMap.homothety x t) '' s)

If we dilate a convex set about a point in its interior by a scale t > 1, the interior of the result includes the closure of the original set.

TODO Generalise this from convex sets to sets that are balanced / star-shaped about x.

theorem Convex.nontrivial_iff_nonempty_interior E1 #

∀ {𝕜 : Type u_3} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [inst_3 : TopologicalSpace 𝕜]
  [OrderTopology 𝕜] {s : Set 𝕜}, Convex 𝕜 s → (s.Nontrivial ↔ (interior s).Nonempty)

theorem Convex.Ioo_subset_of_mem_closure E1 #

∀ {𝕜 : Type u_3} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [inst_3 : TopologicalSpace 𝕜]
  [OrderTopology 𝕜] {s : Set 𝕜}, Convex 𝕜 s → ∀ {a b : 𝕜}, a ∈ closure s → b ∈ closure s → Set.Ioo a b ⊆ s

theorem Convex.nhdsWithin_inter_Iio_eq_nhdsLT E1 #

∀ {𝕜 : Type u_3} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [inst_3 : TopologicalSpace 𝕜]
  [OrderTopology 𝕜] {s : Set 𝕜},
  Convex 𝕜 s →
    ∀ {a : 𝕜}, a ∈ closure s → (s ∩ Set.Iio a).Nonempty → nhdsWithin a (s ∩ Set.Iio a) = nhdsWithin a (Set.Iio a)

theorem Convex.nhdsWithin_inter_Ioi_eq_nhdsGT E1 #

∀ {𝕜 : Type u_3} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [inst_3 : TopologicalSpace 𝕜]
  [OrderTopology 𝕜] {s : Set 𝕜},
  Convex 𝕜 s →
    ∀ {a : 𝕜}, a ∈ closure s → (s ∩ Set.Ioi a).Nonempty → nhdsWithin a (s ∩ Set.Ioi a) = nhdsWithin a (Set.Ioi a)

theorem Convex.nhdsWithin_sdiff_eq_nhdsNE E1 #

∀ {𝕜 : Type u_3} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [inst_3 : TopologicalSpace 𝕜]
  [OrderTopology 𝕜] {s : Set 𝕜},
  Convex 𝕜 s →
    ∀ {a : 𝕜},
      a ∈ closure s → (s ∩ Set.Iio a).Nonempty → (s ∩ Set.Ioi a).Nonempty → nhdsWithin a (s \ {a}) = nhdsWithin a {a}ᶜ

theorem Convex.nhdsWithin_sdiff_eq_nhdsLT E1 #

∀ {𝕜 : Type u_3} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [inst_3 : TopologicalSpace 𝕜]
  [OrderTopology 𝕜] {s : Set 𝕜},
  Convex 𝕜 s →
    ∀ {a : 𝕜},
      a ∈ closure s → (s ∩ Set.Iio a).Nonempty → s ∩ Set.Ioi a = ∅ → nhdsWithin a (s \ {a}) = nhdsWithin a (Set.Iio a)

theorem Convex.nhdsWithin_sdiff_eq_nhdsGT E1 #

∀ {𝕜 : Type u_3} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [inst_3 : TopologicalSpace 𝕜]
  [OrderTopology 𝕜] {s : Set 𝕜},
  Convex 𝕜 s →
    ∀ {a : 𝕜},
      a ∈ closure s → s ∩ Set.Iio a = ∅ → (s ∩ Set.Ioi a).Nonempty → nhdsWithin a (s \ {a}) = nhdsWithin a (Set.Ioi a)

theorem Convex.sdiff_singleton_eventually_mem_nhds E1 #

∀ {𝕜 : Type u_3} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜] [inst_3 : TopologicalSpace 𝕜]
  [OrderTopology 𝕜] {s : Set 𝕜}, Convex 𝕜 s → ∀ (a : 𝕜), ∀ᶠ (x : 𝕜) in nhdsWithin a (s \ {a}), s \ {a} ∈ nhds x

theorem Affine.Simplex.isCompact_closedInterior E1 #

∀ {𝕜 : Type u_3} {V : Type u_4} {P : Type u_5} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : TopologicalSpace 𝕜] [OrderClosedTopology 𝕜] [CompactIccSpace 𝕜] [IsTopologicalRing 𝕜]
  [inst_7 : AddCommGroup V] [inst_8 : TopologicalSpace V] [IsTopologicalAddGroup V] [inst_10 : Module 𝕜 V]
  [ContinuousSMul 𝕜 V] [inst_12 : AddTorsor V P] [inst_13 : TopologicalSpace P] [IsTopologicalAddTorsor P] {n : ℕ}
  (s : Affine.Simplex 𝕜 P n), IsCompact s.closedInterior

The closed interior of a simplex is compact.

theorem Affine.Simplex.isClosed_closedInterior E1 #

∀ {𝕜 : Type u_3} {V : Type u_4} {P : Type u_5} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : TopologicalSpace 𝕜] [OrderClosedTopology 𝕜] [CompactIccSpace 𝕜] [IsTopologicalRing 𝕜]
  [inst_7 : AddCommGroup V] [inst_8 : TopologicalSpace V] [IsTopologicalAddGroup V] [inst_10 : Module 𝕜 V]
  [ContinuousSMul 𝕜 V] [inst_12 : AddTorsor V P] [inst_13 : TopologicalSpace P] [IsTopologicalAddTorsor P] [T2Space P]
  {n : ℕ} (s : Affine.Simplex 𝕜 P n), IsClosed s.closedInterior

The closed interior of a simplex is a closed set.

Deprecated aliases

NameNew nameSince
Convex.diff_singleton_eventually_mem_nhdsConvex.sdiff_singleton_eventually_mem_nhds2026-06-03
Convex.nhdsWithin_diff_eq_nhdsGTConvex.nhdsWithin_sdiff_eq_nhdsGT2026-06-03
Convex.nhdsWithin_diff_eq_nhdsLTConvex.nhdsWithin_sdiff_eq_nhdsLT2026-06-03
Convex.nhdsWithin_diff_eq_nhdsNEConvex.nhdsWithin_sdiff_eq_nhdsNE2026-06-03