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.Normed.Order.UpperLower

28 declarations and 6 deprecated aliases. Mathlib docs · Source

Upper/lower/order-connected sets in normed groups

The topological closure and interior of an upper/lower/order-connected set is an upper/lower/order-connected set (with the notable exception of the closure of an order-connected set).

We also prove lemmas specific to ℝⁿ. Those are helpful to prove that order-connected sets in ℝⁿ are measurable.

ℝⁿ

Note

The closure and frontier of an antichain might not be antichains. Take for example the union of the open segments from (0, 2) to (1, 1) and from (2, 1) to (3, 0). (1, 1) and (2, 1) are comparable and both in the closure/frontier.

theorem IsUpperSet.thickening' E1 #

∀ {α : Type u_1} [inst : NormedCommGroup α] [inst_1 : Preorder α] [IsOrderedMonoid α] {s : Set α},
  IsUpperSet s → ∀ (ε : ℝ), IsUpperSet (Metric.thickening ε s)

theorem IsUpperSet.thickening E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Preorder α] [IsOrderedAddMonoid α] {s : Set α},
  IsUpperSet s → ∀ (ε : ℝ), IsUpperSet (Metric.thickening ε s)

theorem IsLowerSet.thickening E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Preorder α] [IsOrderedAddMonoid α] {s : Set α},
  IsLowerSet s → ∀ (ε : ℝ), IsLowerSet (Metric.thickening ε s)

theorem IsLowerSet.thickening' E1 #

∀ {α : Type u_1} [inst : NormedCommGroup α] [inst_1 : Preorder α] [IsOrderedMonoid α] {s : Set α},
  IsLowerSet s → ∀ (ε : ℝ), IsLowerSet (Metric.thickening ε s)

theorem IsUpperSet.cthickening' E1 #

∀ {α : Type u_1} [inst : NormedCommGroup α] [inst_1 : Preorder α] [IsOrderedMonoid α] {s : Set α},
  IsUpperSet s → ∀ (ε : ℝ), IsUpperSet (Metric.cthickening ε s)

theorem IsUpperSet.cthickening E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Preorder α] [IsOrderedAddMonoid α] {s : Set α},
  IsUpperSet s → ∀ (ε : ℝ), IsUpperSet (Metric.cthickening ε s)

theorem IsLowerSet.cthickening E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Preorder α] [IsOrderedAddMonoid α] {s : Set α},
  IsLowerSet s → ∀ (ε : ℝ), IsLowerSet (Metric.cthickening ε s)

theorem IsLowerSet.cthickening' E1 #

∀ {α : Type u_1} [inst : NormedCommGroup α] [inst_1 : Preorder α] [IsOrderedMonoid α] {s : Set α},
  IsLowerSet s → ∀ (ε : ℝ), IsLowerSet (Metric.cthickening ε s)

theorem upperClosure_interior_subset' E1 #

∀ {α : Type u_1} [inst : NormedCommGroup α] [inst_1 : Preorder α] [IsOrderedMonoid α] (s : Set α),
  ↑(upperClosure (interior s)) ⊆ interior ↑(upperClosure s)

theorem upperClosure_interior_subset E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Preorder α] [IsOrderedAddMonoid α] (s : Set α),
  ↑(upperClosure (interior s)) ⊆ interior ↑(upperClosure s)

theorem lowerClosure_interior_subset' E1 #

∀ {α : Type u_1} [inst : NormedCommGroup α] [inst_1 : Preorder α] [IsOrderedMonoid α] (s : Set α),
  ↑(lowerClosure (interior s)) ⊆ interior ↑(lowerClosure s)

theorem lowerClosure_interior_subset E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Preorder α] [IsOrderedAddMonoid α] (s : Set α),
  ↑(lowerClosure (interior s)) ⊆ interior ↑(lowerClosure s)

theorem IsUpperSet.mem_interior_of_forall_lt E0 #

∀ {ι : Type u_2} [Finite ι] {s : Set (ι → ℝ)} {x y : ι → ℝ},
  IsUpperSet s → x ∈ closure s → (∀ (i : ι), x i < y i) → y ∈ interior s

theorem IsLowerSet.mem_interior_of_forall_lt E0 #

∀ {ι : Type u_2} [Finite ι] {s : Set (ι → ℝ)} {x y : ι → ℝ},
  IsLowerSet s → x ∈ closure s → (∀ (i : ι), y i < x i) → y ∈ interior s

theorem dist_inf_sup E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Lattice α] [IsOrderedAddMonoid α] [HasSolidNorm α] (x y : α),
  dist (x ⊓ y) (x ⊔ y) = dist x y

theorem dist_mono_left E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Lattice α] [IsOrderedAddMonoid α] [HasSolidNorm α] {y : α},
  MonotoneOn (fun x ↦ dist x y) (Set.Ici y)

theorem dist_mono_right E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Lattice α] [IsOrderedAddMonoid α] [HasSolidNorm α] {x : α},
  MonotoneOn (dist x) (Set.Ici x)

theorem dist_anti_left E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Lattice α] [IsOrderedAddMonoid α] [HasSolidNorm α] {y : α},
  AntitoneOn (fun x ↦ dist x y) (Set.Iic y)

theorem dist_anti_right E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Lattice α] [IsOrderedAddMonoid α] [HasSolidNorm α] {x : α},
  AntitoneOn (dist x) (Set.Iic x)

theorem dist_le_dist_of_le E1 #

∀ {α : Type u_1} [inst : NormedAddCommGroup α] [inst_1 : Lattice α] [IsOrderedAddMonoid α] [HasSolidNorm α]
  {a₁ a₂ b₁ b₂ : α}, a₂ ≤ a₁ → a₁ ≤ b₁ → b₁ ≤ b₂ → dist a₁ b₁ ≤ dist a₂ b₂

theorem IsUpperSet.exists_subset_ball E1 #

∀ {ι : Type u_2} [inst : Fintype ι] {s : Set (ι → ℝ)} {x : ι → ℝ} {δ : ℝ},
  IsUpperSet s →
    x ∈ closure s →
      0 < δ → ∃ y, Metric.closedBall y (δ / 4) ⊆ Metric.closedBall x δ ∧ Metric.closedBall y (δ / 4) ⊆ interior s

theorem IsLowerSet.exists_subset_ball E1 #

∀ {ι : Type u_2} [inst : Fintype ι] {s : Set (ι → ℝ)} {x : ι → ℝ} {δ : ℝ},
  IsLowerSet s →
    x ∈ closure s →
      0 < δ → ∃ y, Metric.closedBall y (δ / 4) ⊆ Metric.closedBall x δ ∧ Metric.closedBall y (δ / 4) ⊆ interior s

theorem IsClosed.upperClosure_pi E1 #

∀ {ι : Type u_2} [Finite ι] {s : Set (ι → ℝ)}, IsClosed s → BddBelow s → IsClosed ↑(upperClosure s)

theorem IsClosed.lowerClosure_pi E1 #

∀ {ι : Type u_2} [Finite ι] {s : Set (ι → ℝ)}, IsClosed s → BddAbove s → IsClosed ↑(lowerClosure s)

theorem IsClopen.upperClosure_pi E1 #

∀ {ι : Type u_2} [Finite ι] {s : Set (ι → ℝ)}, IsClopen s → BddBelow s → IsClopen ↑(upperClosure s)

theorem IsClopen.lowerClosure_pi E1 #

∀ {ι : Type u_2} [Finite ι] {s : Set (ι → ℝ)}, IsClopen s → BddAbove s → IsClopen ↑(lowerClosure s)

theorem closure_upperClosure_comm_pi E1 #

∀ {ι : Type u_2} [Finite ι] {s : Set (ι → ℝ)}, BddBelow s → closure ↑(upperClosure s) = ↑(upperClosure (closure s))

theorem closure_lowerClosure_comm_pi E1 #

∀ {ι : Type u_2} [Finite ι] {s : Set (ι → ℝ)}, BddAbove s → closure ↑(lowerClosure s) = ↑(lowerClosure (closure s))

Deprecated aliases

NameNew nameSince
dist_anti_left_pidist_anti_left2026-10-02
dist_anti_right_pidist_anti_right2026-10-02
dist_inf_sup_pidist_inf_sup2026-10-02
dist_le_dist_of_le_pidist_le_dist_of_le2026-10-02
dist_mono_left_pidist_mono_left2026-10-02
dist_mono_right_pidist_mono_right2026-10-02