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 / V13. General topology

Mathlib.Topology.Order.Compact

77 declarations. Mathlib docs · Source

Compactness of a closed interval

In this file we prove that a closed interval in a conditionally complete linear ordered type with order topology (or a product of such types) is compact.

We prove the extreme value theorem (IsCompact.exists_isMinOn, IsCompact.exists_isMaxOn): a continuous function on a compact set takes its minimum and maximum values. We provide many variations of this theorem.

We also prove that the image of a closed interval under a continuous map is a closed interval, see ContinuousOn.image_Icc.

Tags

compact, extreme value theorem

Compactness of a closed interval

In this section we define a typeclass CompactIccSpace α saying that all closed intervals in α are compact. Then we provide an instance for a ConditionallyCompleteLinearOrder and prove that the product (both α × β and an indexed product) of spaces with this property inherits the property.

We also prove some simple lemmas about spaces with this property.

Extreme value theorem

Min and max elements of a compact set

Image of a closed interval

class CompactIccSpace E1 #

(α : Type u_1) → [TopologicalSpace α] → [Preorder α] → Prop

This typeclass says that all closed intervals in α are compact. This is true for all conditionally complete linear orders with order topology and products (finite or infinite) of such spaces.

ctor CompactIccSpace.mk E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : Preorder α],
  (∀ {a b : α}, IsCompact (Set.Icc a b)) → CompactIccSpace α

theorem CompactIccSpace.isCompact_Icc E1 #

∀ {α : Type u_1} {inst : TopologicalSpace α} {inst_1 : Preorder α} [self : CompactIccSpace α] {a b : α},
  IsCompact (Set.Icc a b)

A closed interval Set.Icc a b is a compact set for all a and b.

theorem CompactIccSpace.mk' E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : Preorder α],
  (∀ {a b : α}, a ≤ b → IsCompact (Set.Icc a b)) → CompactIccSpace α

theorem CompactIccSpace.mk'' E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : PartialOrder α],
  (∀ {a b : α}, a < b → IsCompact (Set.Icc a b)) → CompactIccSpace α

instance instCompactIccSpaceOrderDual E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : Preorder α] [CompactIccSpace α], CompactIccSpace αᵒᵈ

instance ConditionallyCompleteLinearOrder.toCompactIccSpace E0 #

∀ (α : Type u_2) [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α] [OrderTopology α],
  CompactIccSpace α

A closed interval in a conditionally complete linear order is compact.

instance instCompactIccSpaceForall E0 #

∀ {ι : Type u_2} {α : ι → Type u_3} [inst : (i : ι) → Preorder (α i)] [inst_1 : (i : ι) → TopologicalSpace (α i)]
  [∀ (i : ι), CompactIccSpace (α i)], CompactIccSpace ((i : ι) → α i)

instance Pi.compact_Icc_space' E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder β] [inst_1 : TopologicalSpace β] [CompactIccSpace β],
  CompactIccSpace (α → β)

instance instCompactIccSpaceProd E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder α] [inst_1 : TopologicalSpace α] [CompactIccSpace α]
  [inst_3 : Preorder β] [inst_4 : TopologicalSpace β] [CompactIccSpace β], CompactIccSpace (α × β)

theorem isCompact_uIcc E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [CompactIccSpace α] {a b : α},
  IsCompact (Set.uIcc a b)

An unordered closed interval is compact.

theorem isCompact_closure_Ioc E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : Preorder α] [OrderClosedTopology α] [CompactIccSpace α]
  {a b : α}, IsCompact (closure (Set.Ioc a b))

theorem isCompact_closure_Ico E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : Preorder α] [OrderClosedTopology α] [CompactIccSpace α]
  {a b : α}, IsCompact (closure (Set.Ico a b))

theorem isCompact_closure_Ioo E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : Preorder α] [OrderClosedTopology α] [CompactIccSpace α]
  {a b : α}, IsCompact (closure (Set.Ioo a b))

theorem isCompact_closure_uIoc E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderClosedTopology α] [CompactIccSpace α]
  {a b : α}, IsCompact (closure (Set.uIoc a b))

instance compactSpace_of_completeLinearOrder E0 #

∀ {α : Type u_2} [inst : CompleteLinearOrder α] [inst_1 : TopologicalSpace α] [OrderTopology α], CompactSpace α

A complete linear order is a compact space.

We do not register an instance for a [CompactIccSpace α] because this would only add instances for products (indexed or not) of complete linear orders, and we have instances with higher priority that cover these cases.

instance compactSpace_Icc E0 #

∀ {α : Type u_2} [inst : Preorder α] [inst_1 : TopologicalSpace α] [CompactIccSpace α] (a b : α),
  CompactSpace ↑(Set.Icc a b)

theorem isCompact_Ico_iff E0 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [OrderTopology α] [DenselyOrdered α] {a b : α},
  IsCompact (Set.Ico a b) ↔ b ≤ a

Set.Ico a b is only compact if it is empty.

theorem isCompact_Ioc_iff E0 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [OrderTopology α] [DenselyOrdered α] {a b : α},
  IsCompact (Set.Ioc a b) ↔ b ≤ a

Set.Ioc a b is only compact if it is empty.

theorem isCompact_Ioo_iff E0 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [OrderTopology α] [DenselyOrdered α] {a b : α},
  IsCompact (Set.Ioo a b) ↔ b ≤ a

Set.Ioo a b is only compact if it is empty.

theorem IsCompact.exists_isLeast E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIicTopology α] {s : Set α},
  IsCompact s → s.Nonempty → ∃ x, IsLeast s x

theorem IsCompact.exists_isGreatest E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIciTopology α] {s : Set α},
  IsCompact s → s.Nonempty → ∃ x, IsGreatest s x

theorem IsCompact.exists_isGLB E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIicTopology α] {s : Set α},
  IsCompact s → s.Nonempty → ∃ x ∈ s, IsGLB s x

theorem IsCompact.exists_isLUB E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIciTopology α] {s : Set α},
  IsCompact s → s.Nonempty → ∃ x ∈ s, IsLUB s x

theorem cocompact_le_atBot_atTop E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [CompactIccSpace α],
  Filter.cocompact α ≤ Filter.atBot ⊔ Filter.atTop

theorem cocompact_le_atBot E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [OrderTop α] [CompactIccSpace α],
  Filter.cocompact α ≤ Filter.atBot

theorem cocompact_le_atTop E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [OrderBot α] [CompactIccSpace α],
  Filter.cocompact α ≤ Filter.atTop

theorem atBot_le_cocompact E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [NoMinOrder α] [ClosedIicTopology α],
  Filter.atBot ≤ Filter.cocompact α

theorem atTop_le_cocompact E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [NoMaxOrder α] [ClosedIciTopology α],
  Filter.atTop ≤ Filter.cocompact α

theorem atBot_atTop_le_cocompact E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [NoMinOrder α] [NoMaxOrder α]
  [OrderClosedTopology α], Filter.atBot ⊔ Filter.atTop ≤ Filter.cocompact α

theorem cocompact_eq_atBot_atTop E0 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [NoMaxOrder α] [NoMinOrder α]
  [OrderClosedTopology α] [CompactIccSpace α], Filter.cocompact α = Filter.atBot ⊔ Filter.atTop

theorem cocompact_eq_atBot E0 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [NoMinOrder α] [OrderTop α] [ClosedIicTopology α]
  [CompactIccSpace α], Filter.cocompact α = Filter.atBot

theorem cocompact_eq_atTop E0 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [NoMaxOrder α] [OrderBot α] [ClosedIciTopology α]
  [CompactIccSpace α], Filter.cocompact α = Filter.atTop

theorem IsCompact.exists_isMinOn E3 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] {s : Set β}, IsCompact s → s.Nonempty → ∀ {f : β → α}, ContinuousOn f s → ∃ x ∈ s, IsMinOn f s x

The extreme value theorem: a continuous function realizes its minimum on a compact set.

theorem IsCompact.exists_forall_le' E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] [NoMaxOrder α] {f : β → α} {s : Set β},
  IsCompact s → ContinuousOn f s → ∀ {a : α}, (∀ b ∈ s, a < f b) → ∃ a', a < a' ∧ ∀ b ∈ s, a' ≤ f b

If a continuous function lies strictly above a on a compact set, it has a lower bound strictly above a.

theorem IsCompact.exists_isMaxOn E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIciTopology α] {s : Set β}, IsCompact s → s.Nonempty → ∀ {f : β → α}, ContinuousOn f s → ∃ x ∈ s, IsMaxOn f s x

The extreme value theorem: a continuous function realizes its maximum on a compact set.

theorem ContinuousOn.exists_isMinOn' E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] {s : Set β} {f : β → α},
  ContinuousOn f s →
    IsClosed s →
      ∀ {x₀ : β}, x₀ ∈ s → (∀ᶠ (x : β) in Filter.cocompact β ⊓ Filter.principal s, f x₀ ≤ f x) → ∃ x ∈ s, IsMinOn f s x

The extreme value theorem: if a function f is continuous on a closed set s and it is larger than a value in its image away from compact sets, then it has a minimum on this set.

theorem ContinuousOn.exists_isMaxOn' E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIciTopology α] {s : Set β} {f : β → α},
  ContinuousOn f s →
    IsClosed s →
      ∀ {x₀ : β}, x₀ ∈ s → (∀ᶠ (x : β) in Filter.cocompact β ⊓ Filter.principal s, f x ≤ f x₀) → ∃ x ∈ s, IsMaxOn f s x

The extreme value theorem: if a function f is continuous on a closed set s and it is smaller than a value in its image away from compact sets, then it has a maximum on this set.

theorem Continuous.exists_forall_le' E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] {f : β → α},
  Continuous f → ∀ (x₀ : β), (∀ᶠ (x : β) in Filter.cocompact β, f x₀ ≤ f x) → ∃ x, ∀ (y : β), f x ≤ f y

The extreme value theorem: if a continuous function f is larger than a value in its range away from compact sets, then it has a global minimum.

theorem Continuous.exists_forall_ge' E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIciTopology α] {f : β → α},
  Continuous f → ∀ (x₀ : β), (∀ᶠ (x : β) in Filter.cocompact β, f x ≤ f x₀) → ∃ x, ∀ (y : β), f y ≤ f x

The extreme value theorem: if a continuous function f is smaller than a value in its range away from compact sets, then it has a global maximum.

theorem Continuous.exists_forall_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] [Nonempty β] {f : β → α},
  Continuous f → Filter.Tendsto f (Filter.cocompact β) Filter.atTop → ∃ x, ∀ (y : β), f x ≤ f y

The extreme value theorem: if a continuous function f tends to infinity away from compact sets, then it has a global minimum.

theorem Continuous.exists_forall_ge E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIciTopology α] [Nonempty β] {f : β → α},
  Continuous f → Filter.Tendsto f (Filter.cocompact β) Filter.atBot → ∃ x, ∀ (y : β), f y ≤ f x

The extreme value theorem: if a continuous function f tends to negative infinity away from compact sets, then it has a global maximum.

theorem Continuous.exists_forall_le_of_hasCompactMulSupport E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] [Nonempty β] [inst_5 : One α] {f : β → α},
  Continuous f → HasCompactMulSupport f → ∃ x, ∀ (y : β), f x ≤ f y

A continuous function with compact support has a global minimum.

theorem Continuous.exists_forall_le_of_hasCompactSupport E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] [Nonempty β] [inst_5 : Zero α] {f : β → α},
  Continuous f → HasCompactSupport f → ∃ x, ∀ (y : β), f x ≤ f y

A continuous function with compact support has a global minimum.

theorem Continuous.exists_forall_ge_of_hasCompactMulSupport E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIciTopology α] [Nonempty β] [inst_5 : One α] {f : β → α},
  Continuous f → HasCompactMulSupport f → ∃ x, ∀ (y : β), f y ≤ f x

A continuous function with compact support has a global maximum.

theorem Continuous.exists_forall_ge_of_hasCompactSupport E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIciTopology α] [Nonempty β] [inst_5 : Zero α] {f : β → α},
  Continuous f → HasCompactSupport f → ∃ x, ∀ (y : β), f y ≤ f x

A continuous function with compact support has a global maximum.

theorem IsCompact.bddBelow E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIicTopology α] [Nonempty α] {s : Set α},
  IsCompact s → BddBelow s

A compact set is bounded below

theorem IsCompact.bddAbove E1 #

∀ {α : Type u_2} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIciTopology α] [Nonempty α] {s : Set α},
  IsCompact s → BddAbove s

A compact set is bounded above

theorem IsCompact.bddBelow_image E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] [Nonempty α] {f : β → α} {K : Set β}, IsCompact K → ContinuousOn f K → BddBelow (f '' K)

A continuous function is bounded below on a compact set.

theorem IsCompact.bddAbove_image E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIciTopology α] [Nonempty α] {f : β → α} {K : Set β}, IsCompact K → ContinuousOn f K → BddAbove (f '' K)

A continuous function is bounded above on a compact set.

theorem Continuous.bddBelow_range_of_hasCompactMulSupport E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] [inst_4 : One α] {f : β → α}, Continuous f → HasCompactMulSupport f → BddBelow (Set.range f)

A continuous function with compact support is bounded below.

theorem Continuous.bddBelow_range_of_hasCompactSupport E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] [inst_4 : Zero α] {f : β → α}, Continuous f → HasCompactSupport f → BddBelow (Set.range f)

A continuous function with compact support is bounded below.

theorem Continuous.bddAbove_range_of_hasCompactMulSupport E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIciTopology α] [inst_4 : One α] {f : β → α}, Continuous f → HasCompactMulSupport f → BddAbove (Set.range f)

A continuous function with compact support is bounded above.

theorem Continuous.bddAbove_range_of_hasCompactSupport E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIciTopology α] [inst_4 : Zero α] {f : β → α}, Continuous f → HasCompactSupport f → BddAbove (Set.range f)

A continuous function with compact support is bounded above.

theorem IsCompact.sSup_lt_iff_of_continuous E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [inst_2 : TopologicalSpace β] [ClosedIciTopology α] {f : β → α} {K : Set β},
  IsCompact K → K.Nonempty → ContinuousOn f K → ∀ (y : α), sSup (f '' K) < y ↔ ∀ x ∈ K, f x < y

theorem IsCompact.lt_sInf_iff_of_continuous E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [inst_2 : TopologicalSpace β] [ClosedIicTopology α] {f : β → α} {K : Set β},
  IsCompact K → K.Nonempty → ContinuousOn f K → ∀ (y : α), y < sInf (f '' K) ↔ ∀ x ∈ K, y < f x

theorem IsCompact.sInf_mem E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIicTopology α]
  {s : Set α}, IsCompact s → s.Nonempty → sInf s ∈ s

theorem IsCompact.sSup_mem E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIciTopology α]
  {s : Set α}, IsCompact s → s.Nonempty → sSup s ∈ s

theorem IsCompact.isGLB_sInf E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIicTopology α]
  {s : Set α}, IsCompact s → s.Nonempty → IsGLB s (sInf s)

theorem IsCompact.isLUB_sSup E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIciTopology α]
  {s : Set α}, IsCompact s → s.Nonempty → IsLUB s (sSup s)

theorem IsCompact.isLeast_sInf E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIicTopology α]
  {s : Set α}, IsCompact s → s.Nonempty → IsLeast s (sInf s)

theorem IsCompact.isGreatest_sSup E1 #

∀ {α : Type u_2} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α] [ClosedIciTopology α]
  {s : Set α}, IsCompact s → s.Nonempty → IsGreatest s (sSup s)

theorem IsCompact.exists_sInf_image_eq_and_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [inst_2 : TopologicalSpace β] [ClosedIicTopology α] {s : Set β},
  IsCompact s → s.Nonempty → ∀ {f : β → α}, ContinuousOn f s → ∃ x ∈ s, sInf (f '' s) = f x ∧ ∀ y ∈ s, f x ≤ f y

theorem IsCompact.exists_sSup_image_eq_and_ge E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [inst_2 : TopologicalSpace β] [ClosedIciTopology α] {s : Set β},
  IsCompact s → s.Nonempty → ∀ {f : β → α}, ContinuousOn f s → ∃ x ∈ s, sSup (f '' s) = f x ∧ ∀ y ∈ s, f y ≤ f x

theorem IsCompact.exists_sInf_image_eq E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [inst_2 : TopologicalSpace β] [ClosedIicTopology α] {s : Set β},
  IsCompact s → s.Nonempty → ∀ {f : β → α}, ContinuousOn f s → ∃ x ∈ s, sInf (f '' s) = f x

theorem IsCompact.exists_sSup_image_eq E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [inst_2 : TopologicalSpace β] [ClosedIciTopology α] {s : Set β},
  IsCompact s → s.Nonempty → ∀ {f : β → α}, ContinuousOn f s → ∃ x ∈ s, sSup (f '' s) = f x

theorem IsCompact.exists_isMinOn_mem_subset E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] {f : β → α} {s t : Set β} {z : β},
  IsCompact t → ContinuousOn f t → z ∈ t → (∀ z' ∈ t \ s, f z < f z') → ∃ x ∈ s, IsMinOn f t x

theorem IsCompact.exists_isMaxOn_mem_subset E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIciTopology α] {f : β → α} {s t : Set β} {z : β},
  IsCompact t → ContinuousOn f t → z ∈ t → (∀ z' ∈ t \ s, f z' < f z) → ∃ x ∈ s, IsMaxOn f t x

theorem IsCompact.exists_isLocalMin_mem_open E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIicTopology α] {f : β → α} {s t : Set β} {z : β},
  IsCompact t → s ⊆ t → ContinuousOn f t → z ∈ t → (∀ z' ∈ t \ s, f z < f z') → IsOpen s → ∃ x ∈ s, IsLocalMin f x

theorem IsCompact.exists_isLocalMax_mem_open E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : TopologicalSpace α] [inst_2 : TopologicalSpace β]
  [ClosedIciTopology α] {f : β → α} {s t : Set β} {z : β},
  IsCompact t → s ⊆ t → ContinuousOn f t → z ∈ t → (∀ z' ∈ t \ s, f z' < f z) → IsOpen s → ∃ x ∈ s, IsLocalMax f x

theorem IsCompact.continuous_sSup E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [OrderTopology α] [inst_3 : TopologicalSpace β] [inst_4 : TopologicalSpace γ] {f : γ → β → α} {K : Set β},
  IsCompact K → Continuous ↿f → Continuous fun x ↦ sSup (f x '' K)

If f : γ → β → α is a function that is continuous as a function on γ × β, α is a conditionally complete linear order, and K : Set β is a compact set, then fun x ↦ sSup (f x '' K) is a continuous function.

theorem IsCompact.continuous_sInf E1 #

∀ {α : Type u_2} {β : Type u_3} {γ : Type u_4} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [OrderTopology α] [inst_3 : TopologicalSpace β] [inst_4 : TopologicalSpace γ] {f : γ → β → α} {K : Set β},
  IsCompact K → Continuous ↿f → Continuous fun x ↦ sInf (f x '' K)

theorem ContinuousOn.image_Icc E3 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [OrderTopology α] [inst_3 : TopologicalSpace β] [DenselyOrdered α] [inst_5 : ConditionallyCompleteLinearOrder β]
  [OrderTopology β] {f : α → β} {a b : α},
  a ≤ b → ContinuousOn f (Set.Icc a b) → f '' Set.Icc a b = Set.Icc (sInf (f '' Set.Icc a b)) (sSup (f '' Set.Icc a b))

theorem ContinuousOn.image_uIcc_eq_Icc E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [OrderTopology α] [inst_3 : TopologicalSpace β] [DenselyOrdered α] [inst_5 : ConditionallyCompleteLinearOrder β]
  [OrderTopology β] {f : α → β} {a b : α},
  ContinuousOn f (Set.uIcc a b) → f '' Set.uIcc a b = Set.Icc (sInf (f '' Set.uIcc a b)) (sSup (f '' Set.uIcc a b))

theorem ContinuousOn.image_uIcc E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [OrderTopology α] [inst_3 : TopologicalSpace β] [DenselyOrdered α] [inst_5 : ConditionallyCompleteLinearOrder β]
  [OrderTopology β] {f : α → β} {a b : α},
  ContinuousOn f (Set.uIcc a b) → f '' Set.uIcc a b = Set.uIcc (sInf (f '' Set.uIcc a b)) (sSup (f '' Set.uIcc a b))

theorem ContinuousOn.sInf_image_Icc_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [OrderTopology α] [inst_3 : TopologicalSpace β] [DenselyOrdered α] [inst_5 : ConditionallyCompleteLinearOrder β]
  [OrderTopology β] {f : α → β} {a b c : α},
  ContinuousOn f (Set.Icc a b) → c ∈ Set.Icc a b → sInf (f '' Set.Icc a b) ≤ f c

theorem ContinuousOn.le_sSup_image_Icc E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : ConditionallyCompleteLinearOrder α] [inst_1 : TopologicalSpace α]
  [OrderTopology α] [inst_3 : TopologicalSpace β] [DenselyOrdered α] [inst_5 : ConditionallyCompleteLinearOrder β]
  [OrderTopology β] {f : α → β} {a b c : α},
  ContinuousOn f (Set.Icc a b) → c ∈ Set.Icc a b → f c ≤ sSup (f '' Set.Icc a b)