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.LocalExtr

111 declarations and 9 deprecated aliases. Mathlib docs · Source

Local extrema of functions on topological spaces

Main definitions

This file defines special versions of Is*Filter f a l, *=Min/Max/Extr, from Mathlib/Order/Filter/Extr.lean for two kinds of filters: nhdsWithin and nhds. These versions are called IsLocal*On and IsLocal*, respectively.

Main statements

Many lemmas in this file restate those from Mathlib/Order/Filter/Extr.lean, and you can find detailed documentation there. These convenience lemmas are provided only to make the dot notation return propositions of expected types, not just Is*Filter.

Here is the list of statements specific to these two types of filters:

  • IsLocalExtr.isLocalExtrOn, IsLocalExtrOn.mono: restrict to a subset.
  • IsLocalExtrOn.inter: intersect the set with another one.
  • IsExtrOn.isLocalExtrOn: a global extremum is a local extremum too.
  • IsLocalExtrOn.isLocalExtr, IsExtrOn.isLocalExtr: an extremum restricted to some neighborhood of itself is an unrestricted extremum.

and analogous statements for the min and max predicates.

Restriction to (sub)sets

Constant

Composition with (anti)monotone functions

Composition with ContinuousAt

Pointwise addition

Pointwise negation and subtraction

Pointwise sup/inf

Pointwise min/max

Relation with eventually comparisons of two functions

def IsLocalMinOn E1 #

{α : Type u} → {β : Type v} → [TopologicalSpace α] → [Preorder β] → (α → β) → Set α → α → Prop

IsLocalMinOn f s a means that f a ≤ f x for all x ∈ s in some neighborhood of a.

def IsLocalMaxOn E1 #

{α : Type u} → {β : Type v} → [TopologicalSpace α] → [Preorder β] → (α → β) → Set α → α → Prop

IsLocalMaxOn f s a means that f x ≤ f a for all x ∈ s in some neighborhood of a.

def IsLocalExtrOn E1 #

{α : Type u} → {β : Type v} → [TopologicalSpace α] → [Preorder β] → (α → β) → Set α → α → Prop

IsLocalExtrOn f s a means IsLocalMinOn f s a ∨ IsLocalMaxOn f s a.

def IsLocalMin E1 #

{α : Type u} → {β : Type v} → [TopologicalSpace α] → [Preorder β] → (α → β) → α → Prop

IsLocalMin f a means that f a ≤ f x for all x in some neighborhood of a.

def IsLocalMax E1 #

{α : Type u} → {β : Type v} → [TopologicalSpace α] → [Preorder β] → (α → β) → α → Prop

IsLocalMax f a means that f x ≤ f a for all x in some neighborhood of a.

def IsLocalExtr E1 #

{α : Type u} → {β : Type v} → [TopologicalSpace α] → [Preorder β] → (α → β) → α → Prop

IsLocalExtr f a means IsLocalMin f a ∨ IsLocalMax f a.

theorem IsLocalExtrOn.elim E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α}
  {p : Prop}, IsLocalExtrOn f s a → (IsLocalMinOn f s a → p) → (IsLocalMaxOn f s a → p) → p

theorem IsLocalExtr.elim E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {a : α} {p : Prop},
  IsLocalExtr f a → (IsLocalMin f a → p) → (IsLocalMax f a → p) → p

theorem IsLocalMin.isLocalMinOn E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {a : α},
  IsLocalMin f a → ∀ (s : Set α), IsLocalMinOn f s a

theorem IsLocalMax.isLocalMaxOn E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {a : α},
  IsLocalMax f a → ∀ (s : Set α), IsLocalMaxOn f s a

theorem IsLocalExtr.isLocalExtrOn E3 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {a : α},
  IsLocalExtr f a → ∀ (s : Set α), IsLocalExtrOn f s a

theorem IsLocalMinOn.mono E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α}
  {t : Set α}, IsLocalMinOn f t a → s ⊆ t → IsLocalMinOn f s a

theorem IsLocalMaxOn.mono E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α}
  {t : Set α}, IsLocalMaxOn f t a → s ⊆ t → IsLocalMaxOn f s a

theorem IsLocalExtrOn.mono E3 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α}
  {t : Set α}, IsLocalExtrOn f t a → s ⊆ t → IsLocalExtrOn f s a

theorem IsLocalMinOn.inter E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsLocalMinOn f s a → ∀ (t : Set α), IsLocalMinOn f (s ∩ t) a

theorem IsLocalMaxOn.inter E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsLocalMaxOn f s a → ∀ (t : Set α), IsLocalMaxOn f (s ∩ t) a

theorem IsLocalExtrOn.inter E3 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsLocalExtrOn f s a → ∀ (t : Set α), IsLocalExtrOn f (s ∩ t) a

theorem IsMinOn.isLocalMinOn E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsMinOn f s a → IsLocalMinOn f s a

theorem IsMaxOn.isLocalMaxOn E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsMaxOn f s a → IsLocalMaxOn f s a

theorem IsExtrOn.isLocalExtrOn E3 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsExtrOn f s a → IsLocalExtrOn f s a

theorem IsLocalMinOn.isLocalMin E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsLocalMinOn f s a → s ∈ nhds a → IsLocalMin f a

theorem IsLocalMaxOn.isLocalMax E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsLocalMaxOn f s a → s ∈ nhds a → IsLocalMax f a

theorem IsLocalExtrOn.isLocalExtr E3 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsLocalExtrOn f s a → s ∈ nhds a → IsLocalExtr f a

theorem isLocalMinOn_univ_iff E0 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {a : α},
  IsLocalMinOn f Set.univ a ↔ IsLocalMin f a

theorem isLocalMaxOn_univ_iff E0 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {a : α},
  IsLocalMaxOn f Set.univ a ↔ IsLocalMax f a

theorem isLocalExtrOn_univ_iff E0 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {a : α},
  IsLocalExtrOn f Set.univ a ↔ IsLocalExtr f a

theorem IsMinOn.isLocalMin E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsMinOn f s a → s ∈ nhds a → IsLocalMin f a

theorem IsMaxOn.isLocalMax E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsMaxOn f s a → s ∈ nhds a → IsLocalMax f a

theorem IsExtrOn.isLocalExtr E3 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
  IsExtrOn f s a → s ∈ nhds a → IsLocalExtr f a

theorem IsLocalMinOn.not_nhds_le_map E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α}
  [inst_2 : TopologicalSpace β],
  IsLocalMinOn f s a → ∀ [(nhdsWithin (f a) (Set.Iio (f a))).NeBot], ¬nhds (f a) ≤ Filter.map f (nhdsWithin a s)

theorem IsLocalMaxOn.not_nhds_le_map E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α}
  [inst_2 : TopologicalSpace β],
  IsLocalMaxOn f s a → ∀ [(nhdsWithin (f a) (Set.Ioi (f a))).NeBot], ¬nhds (f a) ≤ Filter.map f (nhdsWithin a s)

theorem IsLocalExtrOn.not_nhds_le_map E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α}
  [inst_2 : TopologicalSpace β],
  IsLocalExtrOn f s a →
    ∀ [(nhdsWithin (f a) (Set.Iio (f a))).NeBot] [(nhdsWithin (f a) (Set.Ioi (f a))).NeBot],
      ¬nhds (f a) ≤ Filter.map f (nhdsWithin a s)

theorem isLocalMinOn_const E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {s : Set α} {a : α} {b : β},
  IsLocalMinOn (fun x ↦ b) s a

theorem isLocalMaxOn_const E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {s : Set α} {a : α} {b : β},
  IsLocalMaxOn (fun x ↦ b) s a

theorem isLocalExtrOn_const E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {s : Set α} {a : α} {b : β},
  IsLocalExtrOn (fun x ↦ b) s a

theorem isLocalMin_const E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {a : α} {b : β}, IsLocalMin (fun x ↦ b) a

theorem isLocalMax_const E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {a : α} {b : β}, IsLocalMax (fun x ↦ b) a

theorem isLocalExtr_const E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {a : α} {b : β}, IsLocalExtr (fun x ↦ b) a

theorem IsLocalMin.comp_mono E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {a : α}, IsLocalMin f a → ∀ {g : β → γ}, Monotone g → IsLocalMin (g ∘ f) a

theorem IsLocalMax.comp_mono E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {a : α}, IsLocalMax f a → ∀ {g : β → γ}, Monotone g → IsLocalMax (g ∘ f) a

theorem IsLocalExtr.comp_mono E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {a : α}, IsLocalExtr f a → ∀ {g : β → γ}, Monotone g → IsLocalExtr (g ∘ f) a

theorem IsLocalMin.comp_antitone E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {a : α}, IsLocalMin f a → ∀ {g : β → γ}, Antitone g → IsLocalMax (g ∘ f) a

theorem IsLocalMax.comp_antitone E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {a : α}, IsLocalMax f a → ∀ {g : β → γ}, Antitone g → IsLocalMin (g ∘ f) a

theorem IsLocalExtr.comp_antitone E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {a : α}, IsLocalExtr f a → ∀ {g : β → γ}, Antitone g → IsLocalExtr (g ∘ f) a

theorem IsLocalMinOn.comp_mono E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {s : Set α} {a : α}, IsLocalMinOn f s a → ∀ {g : β → γ}, Monotone g → IsLocalMinOn (g ∘ f) s a

theorem IsLocalMaxOn.comp_mono E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {s : Set α} {a : α}, IsLocalMaxOn f s a → ∀ {g : β → γ}, Monotone g → IsLocalMaxOn (g ∘ f) s a

theorem IsLocalExtrOn.comp_mono E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {s : Set α} {a : α}, IsLocalExtrOn f s a → ∀ {g : β → γ}, Monotone g → IsLocalExtrOn (g ∘ f) s a

theorem IsLocalMinOn.comp_antitone E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {s : Set α} {a : α}, IsLocalMinOn f s a → ∀ {g : β → γ}, Antitone g → IsLocalMaxOn (g ∘ f) s a

theorem IsLocalMaxOn.comp_antitone E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {s : Set α} {a : α}, IsLocalMaxOn f s a → ∀ {g : β → γ}, Antitone g → IsLocalMinOn (g ∘ f) s a

theorem IsLocalExtrOn.comp_antitone E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} [inst : TopologicalSpace α] [inst_1 : Preorder β] [inst_2 : Preorder γ]
  {f : α → β} {s : Set α} {a : α}, IsLocalExtrOn f s a → ∀ {g : β → γ}, Antitone g → IsLocalExtrOn (g ∘ f) s a

theorem IsLocalMin.bicomp_mono E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β]
  [inst_2 : Preorder γ] {f : α → β} {a : α} [inst_3 : Preorder δ] {op : β → γ → δ},
  Relator.LiftFun (fun x1 x2 ↦ x1 ≤ x2) (Relator.LiftFun (fun x1 x2 ↦ x1 ≤ x2) fun x1 x2 ↦ x1 ≤ x2) op op →
    IsLocalMin f a → ∀ {g : α → γ}, IsLocalMin g a → IsLocalMin (fun x ↦ op (f x) (g x)) a

theorem IsLocalMax.bicomp_mono E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β]
  [inst_2 : Preorder γ] {f : α → β} {a : α} [inst_3 : Preorder δ] {op : β → γ → δ},
  Relator.LiftFun (fun x1 x2 ↦ x1 ≤ x2) (Relator.LiftFun (fun x1 x2 ↦ x1 ≤ x2) fun x1 x2 ↦ x1 ≤ x2) op op →
    IsLocalMax f a → ∀ {g : α → γ}, IsLocalMax g a → IsLocalMax (fun x ↦ op (f x) (g x)) a

theorem IsLocalMinOn.bicomp_mono E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β]
  [inst_2 : Preorder γ] {f : α → β} {s : Set α} {a : α} [inst_3 : Preorder δ] {op : β → γ → δ},
  Relator.LiftFun (fun x1 x2 ↦ x1 ≤ x2) (Relator.LiftFun (fun x1 x2 ↦ x1 ≤ x2) fun x1 x2 ↦ x1 ≤ x2) op op →
    IsLocalMinOn f s a → ∀ {g : α → γ}, IsLocalMinOn g s a → IsLocalMinOn (fun x ↦ op (f x) (g x)) s a

theorem IsLocalMaxOn.bicomp_mono E1 #

∀ {α : Type u} {β : Type v} {γ : Type w} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β]
  [inst_2 : Preorder γ] {f : α → β} {s : Set α} {a : α} [inst_3 : Preorder δ] {op : β → γ → δ},
  Relator.LiftFun (fun x1 x2 ↦ x1 ≤ x2) (Relator.LiftFun (fun x1 x2 ↦ x1 ≤ x2) fun x1 x2 ↦ x1 ≤ x2) op op →
    IsLocalMaxOn f s a → ∀ {g : α → γ}, IsLocalMaxOn g s a → IsLocalMaxOn (fun x ↦ op (f x) (g x)) s a

theorem IsLocalMin.comp_continuous E1 #

∀ {α : Type u} {β : Type v} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β}
  [inst_2 : TopologicalSpace δ] {g : δ → α} {b : δ}, IsLocalMin f (g b) → ContinuousAt g b → IsLocalMin (f ∘ g) b

theorem IsLocalMax.comp_continuous E1 #

∀ {α : Type u} {β : Type v} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β}
  [inst_2 : TopologicalSpace δ] {g : δ → α} {b : δ}, IsLocalMax f (g b) → ContinuousAt g b → IsLocalMax (f ∘ g) b

theorem IsLocalExtr.comp_continuous E1 #

∀ {α : Type u} {β : Type v} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β}
  [inst_2 : TopologicalSpace δ] {g : δ → α} {b : δ}, IsLocalExtr f (g b) → ContinuousAt g b → IsLocalExtr (f ∘ g) b

theorem IsLocalMin.comp_continuousOn E1 #

∀ {α : Type u} {β : Type v} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β}
  [inst_2 : TopologicalSpace δ] {s : Set δ} {g : δ → α} {b : δ},
  IsLocalMin f (g b) → ContinuousOn g s → b ∈ s → IsLocalMinOn (f ∘ g) s b

theorem IsLocalMax.comp_continuousOn E1 #

∀ {α : Type u} {β : Type v} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β}
  [inst_2 : TopologicalSpace δ] {s : Set δ} {g : δ → α} {b : δ},
  IsLocalMax f (g b) → ContinuousOn g s → b ∈ s → IsLocalMaxOn (f ∘ g) s b

theorem IsLocalExtr.comp_continuousOn E1 #

∀ {α : Type u} {β : Type v} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β}
  [inst_2 : TopologicalSpace δ] {s : Set δ} (g : δ → α) {b : δ},
  IsLocalExtr f (g b) → ContinuousOn g s → b ∈ s → IsLocalExtrOn (f ∘ g) s b

theorem IsLocalMinOn.comp_continuousOn E1 #

∀ {α : Type u} {β : Type v} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β}
  [inst_2 : TopologicalSpace δ] {t : Set α} {s : Set δ} {g : δ → α} {b : δ},
  IsLocalMinOn f t (g b) → s ⊆ g ⁻¹' t → ContinuousOn g s → b ∈ s → IsLocalMinOn (f ∘ g) s b

theorem IsLocalMaxOn.comp_continuousOn E1 #

∀ {α : Type u} {β : Type v} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β}
  [inst_2 : TopologicalSpace δ] {t : Set α} {s : Set δ} {g : δ → α} {b : δ},
  IsLocalMaxOn f t (g b) → s ⊆ g ⁻¹' t → ContinuousOn g s → b ∈ s → IsLocalMaxOn (f ∘ g) s b

theorem IsLocalExtrOn.comp_continuousOn E1 #

∀ {α : Type u} {β : Type v} {δ : Type x} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f : α → β}
  [inst_2 : TopologicalSpace δ] {t : Set α} {s : Set δ} (g : δ → α) {b : δ},
  IsLocalExtrOn f t (g b) → s ⊆ g ⁻¹' t → ContinuousOn g s → b ∈ s → IsLocalExtrOn (f ∘ g) s b

theorem IsLocalMin.add E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommMonoid β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f g : α → β} {a : α}, IsLocalMin f a → IsLocalMin g a → IsLocalMin (fun x ↦ f x + g x) a

theorem IsLocalMax.add E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommMonoid β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f g : α → β} {a : α}, IsLocalMax f a → IsLocalMax g a → IsLocalMax (fun x ↦ f x + g x) a

theorem IsLocalMinOn.add E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommMonoid β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMinOn f s a → IsLocalMinOn g s a → IsLocalMinOn (fun x ↦ f x + g x) s a

theorem IsLocalMaxOn.add E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommMonoid β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMaxOn f s a → IsLocalMaxOn g s a → IsLocalMaxOn (fun x ↦ f x + g x) s a

theorem IsLocalMin.neg E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommGroup β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f : α → β} {a : α}, IsLocalMin f a → IsLocalMax (fun x ↦ -f x) a

theorem IsLocalMax.neg E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommGroup β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f : α → β} {a : α}, IsLocalMax f a → IsLocalMin (fun x ↦ -f x) a

theorem IsLocalExtr.neg E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommGroup β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f : α → β} {a : α}, IsLocalExtr f a → IsLocalExtr (fun x ↦ -f x) a

theorem IsLocalMinOn.neg E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommGroup β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f : α → β} {a : α} {s : Set α}, IsLocalMinOn f s a → IsLocalMaxOn (fun x ↦ -f x) s a

theorem IsLocalMaxOn.neg E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommGroup β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f : α → β} {a : α} {s : Set α}, IsLocalMaxOn f s a → IsLocalMinOn (fun x ↦ -f x) s a

theorem IsLocalExtrOn.neg E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommGroup β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f : α → β} {a : α} {s : Set α}, IsLocalExtrOn f s a → IsLocalExtrOn (fun x ↦ -f x) s a

theorem IsLocalMin.sub E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommGroup β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f g : α → β} {a : α}, IsLocalMin f a → IsLocalMax g a → IsLocalMin (fun x ↦ f x - g x) a

theorem IsLocalMax.sub E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommGroup β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f g : α → β} {a : α}, IsLocalMax f a → IsLocalMin g a → IsLocalMax (fun x ↦ f x - g x) a

theorem IsLocalMinOn.sub E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommGroup β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMinOn f s a → IsLocalMaxOn g s a → IsLocalMinOn (fun x ↦ f x - g x) s a

theorem IsLocalMaxOn.sub E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : AddCommGroup β] [inst_2 : PartialOrder β]
  [IsOrderedAddMonoid β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMaxOn f s a → IsLocalMinOn g s a → IsLocalMaxOn (fun x ↦ f x - g x) s a

theorem IsLocalMin.sup E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : SemilatticeSup β] {f g : α → β} {a : α},
  IsLocalMin f a → IsLocalMin g a → IsLocalMin (fun x ↦ f x ⊔ g x) a

theorem IsLocalMax.sup E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : SemilatticeSup β] {f g : α → β} {a : α},
  IsLocalMax f a → IsLocalMax g a → IsLocalMax (fun x ↦ f x ⊔ g x) a

theorem IsLocalMinOn.sup E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : SemilatticeSup β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMinOn f s a → IsLocalMinOn g s a → IsLocalMinOn (fun x ↦ f x ⊔ g x) s a

theorem IsLocalMaxOn.sup E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : SemilatticeSup β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMaxOn f s a → IsLocalMaxOn g s a → IsLocalMaxOn (fun x ↦ f x ⊔ g x) s a

theorem IsLocalMin.inf E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : SemilatticeInf β] {f g : α → β} {a : α},
  IsLocalMin f a → IsLocalMin g a → IsLocalMin (fun x ↦ f x ⊓ g x) a

theorem IsLocalMax.inf E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : SemilatticeInf β] {f g : α → β} {a : α},
  IsLocalMax f a → IsLocalMax g a → IsLocalMax (fun x ↦ f x ⊓ g x) a

theorem IsLocalMinOn.inf E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : SemilatticeInf β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMinOn f s a → IsLocalMinOn g s a → IsLocalMinOn (fun x ↦ f x ⊓ g x) s a

theorem IsLocalMaxOn.inf E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : SemilatticeInf β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMaxOn f s a → IsLocalMaxOn g s a → IsLocalMaxOn (fun x ↦ f x ⊓ g x) s a

theorem IsLocalMin.min E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder β] {f g : α → β} {a : α},
  IsLocalMin f a → IsLocalMin g a → IsLocalMin (fun x ↦ min (f x) (g x)) a

theorem IsLocalMax.min E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder β] {f g : α → β} {a : α},
  IsLocalMax f a → IsLocalMax g a → IsLocalMax (fun x ↦ min (f x) (g x)) a

theorem IsLocalMinOn.min E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMinOn f s a → IsLocalMinOn g s a → IsLocalMinOn (fun x ↦ min (f x) (g x)) s a

theorem IsLocalMaxOn.min E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMaxOn f s a → IsLocalMaxOn g s a → IsLocalMaxOn (fun x ↦ min (f x) (g x)) s a

theorem IsLocalMin.max E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder β] {f g : α → β} {a : α},
  IsLocalMin f a → IsLocalMin g a → IsLocalMin (fun x ↦ max (f x) (g x)) a

theorem IsLocalMax.max E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder β] {f g : α → β} {a : α},
  IsLocalMax f a → IsLocalMax g a → IsLocalMax (fun x ↦ max (f x) (g x)) a

theorem IsLocalMinOn.max E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMinOn f s a → IsLocalMinOn g s a → IsLocalMinOn (fun x ↦ max (f x) (g x)) s a

theorem IsLocalMaxOn.max E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder β] {f g : α → β} {a : α} {s : Set α},
  IsLocalMaxOn f s a → IsLocalMaxOn g s a → IsLocalMaxOn (fun x ↦ max (f x) (g x)) s a

theorem Filter.EventuallyLE.isLocalMaxOn E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {s : Set α} {f g : α → β} {a : α},
  g ≤ᶠ[nhdsWithin a s] f → f a = g a → IsLocalMaxOn f s a → IsLocalMaxOn g s a

theorem IsLocalMaxOn.congr E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {s : Set α} {f g : α → β} {a : α},
  IsLocalMaxOn f s a → f =ᶠ[nhdsWithin a s] g → a ∈ s → IsLocalMaxOn g s a

theorem Filter.EventuallyEq.isLocalMaxOn_iff E0 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {s : Set α} {f g : α → β} {a : α},
  f =ᶠ[nhdsWithin a s] g → a ∈ s → (IsLocalMaxOn f s a ↔ IsLocalMaxOn g s a)

theorem Filter.EventuallyLE.isLocalMinOn E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {s : Set α} {f g : α → β} {a : α},
  f ≤ᶠ[nhdsWithin a s] g → f a = g a → IsLocalMinOn f s a → IsLocalMinOn g s a

theorem IsLocalMinOn.congr E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {s : Set α} {f g : α → β} {a : α},
  IsLocalMinOn f s a → f =ᶠ[nhdsWithin a s] g → a ∈ s → IsLocalMinOn g s a

theorem Filter.EventuallyEq.isLocalMinOn_iff E0 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {s : Set α} {f g : α → β} {a : α},
  f =ᶠ[nhdsWithin a s] g → a ∈ s → (IsLocalMinOn f s a ↔ IsLocalMinOn g s a)

theorem IsLocalExtrOn.congr E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {s : Set α} {f g : α → β} {a : α},
  IsLocalExtrOn f s a → f =ᶠ[nhdsWithin a s] g → a ∈ s → IsLocalExtrOn g s a

theorem Filter.EventuallyEq.isLocalExtrOn_iff E0 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {s : Set α} {f g : α → β} {a : α},
  f =ᶠ[nhdsWithin a s] g → a ∈ s → (IsLocalExtrOn f s a ↔ IsLocalExtrOn g s a)

theorem Filter.EventuallyLE.isLocalMax E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f g : α → β} {a : α},
  g ≤ᶠ[nhds a] f → f a = g a → IsLocalMax f a → IsLocalMax g a

theorem IsLocalMax.congr E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f g : α → β} {a : α},
  IsLocalMax f a → f =ᶠ[nhds a] g → IsLocalMax g a

theorem Filter.EventuallyEq.isLocalMax_iff E0 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f g : α → β} {a : α},
  f =ᶠ[nhds a] g → (IsLocalMax f a ↔ IsLocalMax g a)

theorem Filter.EventuallyLE.isLocalMin E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f g : α → β} {a : α},
  f ≤ᶠ[nhds a] g → f a = g a → IsLocalMin f a → IsLocalMin g a

theorem IsLocalMin.congr E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f g : α → β} {a : α},
  IsLocalMin f a → f =ᶠ[nhds a] g → IsLocalMin g a

theorem Filter.EventuallyEq.isLocalMin_iff E0 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f g : α → β} {a : α},
  f =ᶠ[nhds a] g → (IsLocalMin f a ↔ IsLocalMin g a)

theorem IsLocalExtr.congr E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f g : α → β} {a : α},
  IsLocalExtr f a → f =ᶠ[nhds a] g → IsLocalExtr g a

theorem Filter.EventuallyEq.isLocalExtr_iff E0 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : Preorder β] {f g : α → β} {a : α},
  f =ᶠ[nhds a] g → (IsLocalExtr f a ↔ IsLocalExtr g a)

theorem isLocalMax_of_mono_anti' E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] {β : Type u_2} [inst_2 : Preorder β] {b : α}
  {f : α → β} {a : Set α},
  a ∈ nhdsWithin b (Set.Iic b) →
    ∀ {c : Set α}, c ∈ nhdsWithin b (Set.Ici b) → MonotoneOn f a → AntitoneOn f c → IsLocalMax f b

If f is monotone to the left and antitone to the right, then it has a local maximum.

theorem isLocalMin_of_anti_mono' E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] {β : Type u_2} [inst_2 : Preorder β] {b : α}
  {f : α → β} {a : Set α},
  a ∈ nhdsWithin b (Set.Iic b) →
    ∀ {c : Set α}, c ∈ nhdsWithin b (Set.Ici b) → AntitoneOn f a → MonotoneOn f c → IsLocalMin f b

If f is antitone to the left and monotone to the right, then it has a local minimum.

Deprecated aliases

NameNew nameSince
IsExtrOn.localizeIsExtrOn.isLocalExtrOn2026-07-17
IsLocalExtr.onIsLocalExtr.isLocalExtrOn2026-07-17
IsLocalExtrOn.on_subsetIsLocalExtrOn.mono2026-07-17
IsLocalMax.onIsLocalMax.isLocalMaxOn2026-07-17
IsLocalMaxOn.on_subsetIsLocalMaxOn.mono2026-07-17
IsLocalMin.onIsLocalMin.isLocalMinOn2026-07-17
IsLocalMinOn.on_subsetIsLocalMinOn.mono2026-07-17
IsMaxOn.localizeIsMaxOn.isLocalMaxOn2026-07-17
IsMinOn.localizeIsMinOn.isLocalMinOn2026-07-17