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

133 declarations and 8 deprecated aliases. Mathlib docs · Source

Neighborhoods relative to a subset

This file develops API on the relative versions nhdsWithin and nhdsSetWithin of nhds and nhdsSet, which are defined in previous definition files.

Their basic properties studied in this file include the relationship between neighborhood filters relative to a set and neighborhood filters in the corresponding subtype, and are in later files used to develop relative versions ContinuousOn and ContinuousWithinAt of Continuous and ContinuousAt.

Notation

  • 𝓝 x: the filter of neighborhoods of a point x;
  • 𝓟 s: the principal filter of a set s;
  • 𝓝[s] x: the filter nhdsWithin x s of neighborhoods of a point x within a set s;
  • 𝓝ˢ[t] s: the filter nhdsSetWithin s t of neighborhoods of a set s within a set t.

Properties of the neighborhood-within filter

nhdsWithin and subtypes

The nhdsSetWithin-filter

theorem nhds_bind_nhdsWithin E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s : Set α},
  ((nhds a).bind fun x ↦ nhdsWithin x s) = nhdsWithin a s

theorem eventually_nhds_nhdsWithin E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s : Set α} {p : α → Prop},
  (∀ᶠ (y : α) in nhds a, ∀ᶠ (x : α) in nhdsWithin y s, p x) ↔ ∀ᶠ (x : α) in nhdsWithin a s, p x

theorem eventually_nhdsWithin_iff E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s : Set α} {p : α → Prop},
  (∀ᶠ (x : α) in nhdsWithin a s, p x) ↔ ∀ᶠ (x : α) in nhds a, x ∈ s → p x

theorem frequently_nhdsWithin_iff E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {z : α} {s : Set α} {p : α → Prop},
  (∃ᶠ (x : α) in nhdsWithin z s, p x) ↔ ∃ᶠ (x : α) in nhds z, p x ∧ x ∈ s

theorem mem_closure_ne_iff_frequently_within E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {z : α} {s : Set α},
  z ∈ closure (s \ {z}) ↔ ∃ᶠ (x : α) in nhdsWithin z {z}ᶜ, x ∈ s

theorem eventually_eventually_nhdsWithin E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s : Set α} {p : α → Prop},
  (∀ᶠ (y : α) in nhdsWithin a s, ∀ᶠ (x : α) in nhdsWithin y s, p x) ↔ ∀ᶠ (x : α) in nhdsWithin a s, p x

theorem eventually_mem_nhdsWithin_iff E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {x : α} {s t : Set α},
  (∀ᶠ (x' : α) in nhdsWithin x s, t ∈ nhdsWithin x' s) ↔ t ∈ nhdsWithin x s

theorem nhdsWithin_eq E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α) (s : Set α),
  nhdsWithin a s = ⨅ t ∈ {t | a ∈ t ∧ IsOpen t}, Filter.principal (t ∩ s)

theorem nhdsWithin_univ E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α), nhdsWithin a Set.univ = nhds a

theorem nhdsWithin_hasBasis E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {ι : Sort u_3} {p : ι → Prop} {s : ι → Set α} {a : α},
  (nhds a).HasBasis p s → ∀ (t : Set α), (nhdsWithin a t).HasBasis p fun i ↦ s i ∩ t

theorem nhdsWithin_basis_open E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α) (t : Set α),
  (nhdsWithin a t).HasBasis (fun u ↦ a ∈ u ∧ IsOpen u) fun u ↦ u ∩ t

theorem mem_nhdsWithin E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {t : Set α} {a : α} {s : Set α},
  t ∈ nhdsWithin a s ↔ ∃ u, IsOpen u ∧ a ∈ u ∧ u ∩ s ⊆ t

theorem mem_nhdsWithin_iff_exists_mem_nhds_inter E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {t : Set α} {a : α} {s : Set α},
  t ∈ nhdsWithin a s ↔ ∃ u ∈ nhds a, u ∩ s ⊆ t

theorem sdiff_mem_nhdsWithin_compl E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {x : α} {s : Set α}, s ∈ nhds x → ∀ (t : Set α), s \ t ∈ nhdsWithin x tᶜ

theorem sdiff_mem_nhdsWithin_sdiff E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {x : α} {s t : Set α},
  s ∈ nhdsWithin x t → ∀ (t' : Set α), s \ t' ∈ nhdsWithin x (t \ t')

theorem nhds_of_nhdsWithin_of_nhds E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α} {a : α}, s ∈ nhds a → t ∈ nhdsWithin a s → t ∈ nhds a

theorem mem_nhdsWithin_iff_eventually E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α} {x : α},
  t ∈ nhdsWithin x s ↔ ∀ᶠ (y : α) in nhds x, y ∈ s → y ∈ t

theorem mem_nhdsWithin_iff_eventuallyEqSet E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α} {x : α}, t ∈ nhdsWithin x s ↔ s =ᶠ[nhds x] s ∩ t

theorem mem_nhdsWithin_inter_self E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α} {x : α}, t ∈ nhdsWithin x (s ∩ t)

theorem mem_nhdsWithin_self_inter E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α} {x : α}, s ∈ nhdsWithin x (s ∩ t)

theorem nhdsWithin_eq_iff_eventuallyEqSet E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α} {x : α}, nhdsWithin x s = nhdsWithin x t ↔ s =ᶠ[nhds x] t

theorem nhdsWithin_le_iff E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α} {x : α}, nhdsWithin x s ≤ nhdsWithin x t ↔ t ∈ nhdsWithin x s

theorem preimage_nhdsWithin_coinduced' E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {X : α → β} {s : Set β} {t : Set α} {a : α},
  a ∈ t → s ∈ nhds (X a) → X ⁻¹' s ∈ nhdsWithin a t

theorem mem_nhdsWithin_of_mem_nhds E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α} {a : α}, s ∈ nhds a → s ∈ nhdsWithin a t

theorem self_mem_nhdsWithin E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s : Set α}, s ∈ nhdsWithin a s

theorem eventually_mem_nhdsWithin E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s : Set α}, ∀ᶠ (x : α) in nhdsWithin a s, x ∈ s

theorem inter_mem_nhdsWithin E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (s : Set α) {t : Set α} {a : α}, t ∈ nhds a → s ∩ t ∈ nhdsWithin a s

theorem sdiff_mem_nhdsWithin E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (s : Set α) {t : Set α} {a : α}, tᶜ ∈ nhds a → s \ t ∈ nhdsWithin a s

theorem pure_le_nhdsWithin E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s : Set α}, a ∈ s → pure a ≤ nhdsWithin a s

theorem mem_of_mem_nhdsWithin E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s t : Set α}, a ∈ s → t ∈ nhdsWithin a s → a ∈ t

theorem Filter.Eventually.self_of_nhdsWithin E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {p : α → Prop} {s : Set α} {x : α},
  (∀ᶠ (y : α) in nhdsWithin x s, p y) → x ∈ s → p x

theorem tendsto_const_nhdsWithin E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {l : Filter β} {s : Set α} {a : α},
  a ∈ s → Filter.Tendsto (fun x ↦ a) l (nhdsWithin a s)

theorem nhdsWithin_restrict'' E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} (s : Set α) {t : Set α},
  t ∈ nhdsWithin a s → nhdsWithin a s = nhdsWithin a (s ∩ t)

theorem nhdsWithin_restrict' E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} (s : Set α) {t : Set α},
  t ∈ nhds a → nhdsWithin a s = nhdsWithin a (s ∩ t)

theorem nhdsWithin_restrict E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} (s : Set α) {t : Set α},
  a ∈ t → IsOpen t → nhdsWithin a s = nhdsWithin a (s ∩ t)

theorem nhdsWithin_le_of_mem E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s t : Set α}, s ∈ nhdsWithin a t → nhdsWithin a t ≤ nhdsWithin a s

theorem nhdsWithin_le_nhds E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s : Set α}, nhdsWithin a s ≤ nhds a

theorem nhdsWithin_eq_nhdsWithin' E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s t u : Set α},
  s ∈ nhds a → t ∩ s = u ∩ s → nhdsWithin a t = nhdsWithin a u

theorem nhdsWithin_eq_nhdsWithin E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s t u : Set α},
  a ∈ s → IsOpen s → t ∩ s = u ∩ s → nhdsWithin a t = nhdsWithin a u

theorem nhdsWithin_eq_nhds E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s : Set α}, nhdsWithin a s = nhds a ↔ s ∈ nhds a

theorem IsOpen.nhdsWithin_eq E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s : Set α}, IsOpen s → a ∈ s → nhdsWithin a s = nhds a

theorem preimage_nhds_within_coinduced E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {X : α → β} {s : Set β} {t : Set α} {a : α},
  a ∈ t → IsOpen t → s ∈ nhds (X a) → X ⁻¹' s ∈ nhds a

theorem nhdsWithin_empty E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α), nhdsWithin a ∅ = ⊥

theorem nhdsWithin_union E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α) (s t : Set α),
  nhdsWithin a (s ∪ t) = nhdsWithin a s ⊔ nhdsWithin a t

theorem nhds_eq_nhdsWithin_sup_nhdsWithin E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (b : α) {I₁ I₂ : Set α},
  Set.univ = I₁ ∪ I₂ → nhds b = nhdsWithin b I₁ ⊔ nhdsWithin b I₂

theorem inter_mem_nhdsWithin_inter E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a b c d : Set α} {x : α},
  a ∈ nhdsWithin x b → c ∈ nhdsWithin x d → a ∩ c ∈ nhdsWithin x (b ∩ d)

theorem union_mem_nhds_of_mem_nhdsWithin E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {b : α} {I₁ I₂ : Set α},
  Set.univ = I₁ ∪ I₂ → ∀ {L : Set α}, L ∈ nhdsWithin b I₁ → ∀ {R : Set α}, R ∈ nhdsWithin b I₂ → L ∪ R ∈ nhds b

If L and R are neighborhoods of b within sets whose union is Set.univ, then L ∪ R is a neighborhood of b.

theorem punctured_nhds_eq_nhdsWithin_sup_nhdsWithin E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] {x : α},
  nhdsWithin x {x}ᶜ = nhdsWithin x (Set.Iio x) ⊔ nhdsWithin x (Set.Ioi x)

Writing a punctured neighborhood filter as a sup of left and right filters.

theorem nhds_of_Ici_Iic E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] {b : α} {L : Set α},
  L ∈ nhdsWithin b (Set.Iic b) → ∀ {R : Set α}, R ∈ nhdsWithin b (Set.Ici b) → L ∩ Set.Iic b ∪ R ∩ Set.Ici b ∈ nhds b

Obtain a "predictably-sided" neighborhood of b from two one-sided neighborhoods.

theorem nhdsWithin_biUnion E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {ι : Type u_3} {I : Set ι},
  I.Finite → ∀ (s : ι → Set α) (a : α), nhdsWithin a (⋃ i ∈ I, s i) = ⨆ i ∈ I, nhdsWithin a (s i)

theorem nhdsWithin_sUnion E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {S : Set (Set α)},
  S.Finite → ∀ (a : α), nhdsWithin a (⋃₀ S) = ⨆ s ∈ S, nhdsWithin a s

theorem nhdsWithin_iUnion E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {ι : Sort u_3} [Finite ι] (s : ι → Set α) (a : α),
  nhdsWithin a (⋃ i, s i) = ⨆ i, nhdsWithin a (s i)

theorem nhdsWithin_inter E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α) (s t : Set α),
  nhdsWithin a (s ∩ t) = nhdsWithin a s ⊓ nhdsWithin a t

theorem nhdsWithin_inter' E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α) (s t : Set α),
  nhdsWithin a (s ∩ t) = nhdsWithin a s ⊓ Filter.principal t

theorem nhdsWithin_inter_of_mem E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s t : Set α},
  s ∈ nhdsWithin a t → nhdsWithin a (s ∩ t) = nhdsWithin a t

theorem nhdsWithin_inter_of_mem' E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s t : Set α},
  t ∈ nhdsWithin a s → nhdsWithin a (s ∩ t) = nhdsWithin a s

theorem nhdsWithin_singleton E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α), nhdsWithin a {a} = pure a

theorem nhdsWithin_insert E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α) (s : Set α), nhdsWithin a (insert a s) = pure a ⊔ nhdsWithin a s

theorem mem_nhdsWithin_insert E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s t : Set α},
  t ∈ nhdsWithin a (insert a s) ↔ a ∈ t ∧ t ∈ nhdsWithin a s

theorem insert_mem_nhdsWithin_insert E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s t : Set α},
  t ∈ nhdsWithin a s → insert a t ∈ nhdsWithin a (insert a s)

theorem insert_mem_nhds_iff E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {a : α} {s : Set α}, insert a s ∈ nhds a ↔ s ∈ nhdsWithin a {a}ᶜ

theorem nhdsNE_sup_pure E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α), nhdsWithin a {a}ᶜ ⊔ pure a = nhds a

theorem pure_sup_nhdsNE E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α), pure a ⊔ nhdsWithin a {a}ᶜ = nhds a

theorem continuousAt_iff_punctured_nhds E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] [inst_1 : TopologicalSpace β] {f : α → β} {a : α},
  ContinuousAt f a ↔ Filter.Tendsto f (nhdsWithin a {a}ᶜ) (nhds (f a))

theorem nhdsWithin_prod E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] [inst_1 : TopologicalSpace β] {s u : Set α} {t v : Set β}
  {a : α} {b : β}, u ∈ nhdsWithin a s → v ∈ nhdsWithin b t → u ×ˢ v ∈ nhdsWithin (a, b) (s ×ˢ t)

theorem Filter.EventuallyEqSet.mem_interior E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {x : α} {s t : Set α}, s =ᶠ[nhds x] t → x ∈ interior s → x ∈ interior t

theorem Filter.EventuallyEqSet.mem_interior_iff E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {x : α} {s t : Set α}, s =ᶠ[nhds x] t → (x ∈ interior s ↔ x ∈ interior t)

theorem nhdsWithin_pi_eq' E1 #

∀ {ι : Type u_3} {X : ι → Type u_4} [inst : (i : ι) → TopologicalSpace (X i)] {I : Set ι},
  I.Finite →
    ∀ (s : (i : ι) → Set (X i)) (x : (i : ι) → X i),
      nhdsWithin x (I.pi s) = ⨅ i, Filter.comap (fun x ↦ x i) (nhds (x i) ⊓ ⨅ (_ : i ∈ I), Filter.principal (s i))

theorem nhdsWithin_pi_eq E0 #

∀ {ι : Type u_3} {X : ι → Type u_4} [inst : (i : ι) → TopologicalSpace (X i)] {I : Set ι},
  I.Finite →
    ∀ (s : (i : ι) → Set (X i)) (x : (i : ι) → X i),
      nhdsWithin x (I.pi s) =
        (⨅ i ∈ I, Filter.comap (fun x ↦ x i) (nhdsWithin (x i) (s i))) ⊓
          ⨅ i, ⨅ (_ : i ∉ I), Filter.comap (fun x ↦ x i) (nhds (x i))

theorem nhdsWithin_pi_univ_eq E0 #

∀ {ι : Type u_3} {X : ι → Type u_4} [inst : (i : ι) → TopologicalSpace (X i)] [Finite ι] (s : (i : ι) → Set (X i))
  (x : (i : ι) → X i), nhdsWithin x (Set.univ.pi s) = ⨅ i, Filter.comap (fun x ↦ x i) (nhdsWithin (x i) (s i))

theorem nhdsWithin_pi_eq_bot E1 #

∀ {ι : Type u_3} {X : ι → Type u_4} [inst : (i : ι) → TopologicalSpace (X i)] {I : Set ι} {s : (i : ι) → Set (X i)}
  {x : (i : ι) → X i}, nhdsWithin x (I.pi s) = ⊥ ↔ ∃ i ∈ I, nhdsWithin (x i) (s i) = ⊥

theorem nhdsWithin_pi_neBot E1 #

∀ {ι : Type u_3} {X : ι → Type u_4} [inst : (i : ι) → TopologicalSpace (X i)] {I : Set ι} {s : (i : ι) → Set (X i)}
  {x : (i : ι) → X i}, (nhdsWithin x (I.pi s)).NeBot ↔ ∀ i ∈ I, (nhdsWithin (x i) (s i)).NeBot

instance instNeBotNhdsWithinUnivPi E0 #

∀ {ι : Type u_3} {X : ι → Type u_4} [inst : (i : ι) → TopologicalSpace (X i)] {s : (i : ι) → Set (X i)}
  {x : (i : ι) → X i} [∀ (i : ι), (nhdsWithin (x i) (s i)).NeBot], (nhdsWithin x (Set.univ.pi s)).NeBot

instance Pi.instNeBotNhdsWithinIio E0 #

∀ {ι : Type u_3} {X : ι → Type u_4} [inst : (i : ι) → TopologicalSpace (X i)] [Nonempty ι]
  [inst_2 : (i : ι) → Preorder (X i)] {x : (i : ι) → X i} [∀ (i : ι), (nhdsWithin (x i) (Set.Iio (x i))).NeBot],
  (nhdsWithin x (Set.Iio x)).NeBot

instance Pi.instNeBotNhdsWithinIoi E0 #

∀ {ι : Type u_3} {X : ι → Type u_4} [inst : (i : ι) → TopologicalSpace (X i)] [Nonempty ι]
  [inst_2 : (i : ι) → Preorder (X i)] {x : (i : ι) → X i} [∀ (i : ι), (nhdsWithin (x i) (Set.Ioi (x i))).NeBot],
  (nhdsWithin x (Set.Ioi x)).NeBot

theorem Filter.Tendsto.piecewise_nhdsWithin E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f g : α → β} {t : Set α}
  [inst_1 : (x : α) → Decidable (x ∈ t)] {a : α} {s : Set α} {l : Filter β},
  Filter.Tendsto f (nhdsWithin a (s ∩ t)) l →
    Filter.Tendsto g (nhdsWithin a (s ∩ tᶜ)) l → Filter.Tendsto (t.piecewise f g) (nhdsWithin a s) l

theorem Filter.Tendsto.if_nhdsWithin E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f g : α → β} {p : α → Prop} [inst_1 : DecidablePred p]
  {a : α} {s : Set α} {l : Filter β},
  Filter.Tendsto f (nhdsWithin a (s ∩ {x | p x})) l →
    Filter.Tendsto g (nhdsWithin a (s ∩ {x | ¬p x})) l →
      Filter.Tendsto (fun x ↦ if p x then f x else g x) (nhdsWithin a s) l

theorem map_nhdsWithin E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] (f : α → β) (a : α) (s : Set α),
  Filter.map f (nhdsWithin a s) = ⨅ t ∈ {t | a ∈ t ∧ IsOpen t}, Filter.principal (f '' (t ∩ s))

theorem tendsto_nhdsWithin_mono_left E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f : α → β} {a : α} {s t : Set α} {l : Filter β},
  s ⊆ t → Filter.Tendsto f (nhdsWithin a t) l → Filter.Tendsto f (nhdsWithin a s) l

theorem tendsto_nhdsWithin_mono_right E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f : β → α} {l : Filter β} {a : α} {s t : Set α},
  s ⊆ t → Filter.Tendsto f l (nhdsWithin a s) → Filter.Tendsto f l (nhdsWithin a t)

theorem tendsto_nhdsWithin_of_tendsto_nhds E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f : α → β} {a : α} {s : Set α} {l : Filter β},
  Filter.Tendsto f (nhds a) l → Filter.Tendsto f (nhdsWithin a s) l

theorem eventually_mem_of_tendsto_nhdsWithin E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f : β → α} {a : α} {s : Set α} {l : Filter β},
  Filter.Tendsto f l (nhdsWithin a s) → ∀ᶠ (i : β) in l, f i ∈ s

theorem tendsto_nhds_of_tendsto_nhdsWithin E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f : β → α} {a : α} {s : Set α} {l : Filter β},
  Filter.Tendsto f l (nhdsWithin a s) → Filter.Tendsto f l (nhds a)

theorem nhdsWithin_neBot_of_mem E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α} {x : α}, x ∈ s → (nhdsWithin x s).NeBot

theorem IsClosed.mem_of_nhdsWithin_neBot E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α}, IsClosed s → ∀ {x : α}, (nhdsWithin x s).NeBot → x ∈ s

theorem DenseRange.nhdsWithin_neBot E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {ι : Type u_3} {f : ι → α},
  DenseRange f → ∀ (x : α), (nhdsWithin x (Set.range f)).NeBot

theorem mem_closure_pi E0 #

∀ {ι : Type u_3} {α : ι → Type u_4} [inst : (i : ι) → TopologicalSpace (α i)] {I : Set ι} {s : (i : ι) → Set (α i)}
  {x : (i : ι) → α i}, x ∈ closure (I.pi s) ↔ ∀ i ∈ I, x i ∈ closure (s i)

theorem closure_pi_set E1 #

∀ {ι : Type u_3} {α : ι → Type u_4} [inst : (i : ι) → TopologicalSpace (α i)] (I : Set ι) (s : (i : ι) → Set (α i)),
  closure (I.pi s) = I.pi fun i ↦ closure (s i)

theorem dense_pi E1 #

∀ {ι : Type u_3} {α : ι → Type u_4} [inst : (i : ι) → TopologicalSpace (α i)] {s : (i : ι) → Set (α i)} (I : Set ι),
  (∀ i ∈ I, Dense (s i)) → Dense (I.pi s)

theorem DenseRange.piMap E1 #

∀ {ι : Type u_3} {X : ι → Type u_4} {Y : ι → Type u_5} [inst : (i : ι) → TopologicalSpace (Y i)]
  {f : (i : ι) → X i → Y i}, (∀ (i : ι), DenseRange (f i)) → DenseRange (Pi.map f)

theorem eventuallyEq_nhdsWithin_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f g : α → β} {s : Set α} {a : α},
  f =ᶠ[nhdsWithin a s] g ↔ ∀ᶠ (x : α) in nhds a, x ∈ s → f x = g x

theorem eventuallyEq_nhds_of_eventuallyEq_nhdsNE E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f g : α → β} {a : α},
  f =ᶠ[nhdsWithin a {a}ᶜ] g → f a = g a → f =ᶠ[nhds a] g

Two functions agree on a neighborhood of x if they agree at x and in a punctured neighborhood.

theorem eventuallyEq_nhdsWithin_of_eqOn E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f g : α → β} {s : Set α} {a : α},
  Set.EqOn f g s → f =ᶠ[nhdsWithin a s] g

theorem Set.EqOn.eventuallyEq_nhdsWithin E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f g : α → β} {s : Set α} {a : α},
  Set.EqOn f g s → f =ᶠ[nhdsWithin a s] g

theorem tendsto_nhdsWithin_congr E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f g : α → β} {s : Set α} {a : α} {l : Filter β},
  (∀ x ∈ s, f x = g x) → Filter.Tendsto f (nhdsWithin a s) l → Filter.Tendsto g (nhdsWithin a s) l

theorem eventually_nhdsWithin_of_forall E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α} {a : α} {p : α → Prop},
  (∀ x ∈ s, p x) → ∀ᶠ (x : α) in nhdsWithin a s, p x

theorem tendsto_nhdsWithin_of_tendsto_nhds_of_eventually_within E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {a : α} {l : Filter β} {s : Set α} (f : β → α),
  Filter.Tendsto f l (nhds a) → (∀ᶠ (x : β) in l, f x ∈ s) → Filter.Tendsto f l (nhdsWithin a s)

theorem tendsto_nhdsWithin_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {a : α} {l : Filter β} {s : Set α} {f : β → α},
  Filter.Tendsto f l (nhdsWithin a s) ↔ Filter.Tendsto f l (nhds a) ∧ ∀ᶠ (n : β) in l, f n ∈ s

theorem tendsto_nhdsWithin_range E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {a : α} {l : Filter β} {f : β → α},
  Filter.Tendsto f l (nhdsWithin a (Set.range f)) ↔ Filter.Tendsto f l (nhds a)

theorem eventually_nhdsWithin_of_eventually_nhds E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α} {a : α} {p : α → Prop},
  (∀ᶠ (x : α) in nhds a, p x) → ∀ᶠ (x : α) in nhdsWithin a s, p x

theorem Set.MapsTo.preimage_mem_nhdsWithin E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {f : α → β} {s : Set α} {t : Set β} {x : α},
  Set.MapsTo f s t → f ⁻¹' t ∈ nhdsWithin x s

theorem mem_nhdsWithin_subtype E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α} {a : { x // x ∈ s }} {t u : Set { x // x ∈ s }},
  t ∈ nhdsWithin a u ↔ t ∈ Filter.comap Subtype.val (nhdsWithin (↑a) (Subtype.val '' u))

theorem nhdsWithin_subtype E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (s : Set α) (a : { x // x ∈ s }) (t : Set { x // x ∈ s }),
  nhdsWithin a t = Filter.comap Subtype.val (nhdsWithin (↑a) (Subtype.val '' t))

theorem nhdsWithin_eq_map_subtypeVal E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α} {a : α} (h : a ∈ s),
  nhdsWithin a s = Filter.map Subtype.val (nhds ⟨a, h⟩)

theorem mem_nhds_subtype_iff_nhdsWithin E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α} {a : ↑s} {t : Set ↑s},
  t ∈ nhds a ↔ Subtype.val '' t ∈ nhdsWithin (↑a) s

theorem preimage_coe_mem_nhds_subtype E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α} {a : ↑s}, Subtype.val ⁻¹' t ∈ nhds a ↔ t ∈ nhdsWithin (↑a) s

theorem eventually_nhds_subtype_iff E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (s : Set α) (a : ↑s) (P : α → Prop),
  (∀ᶠ (x : ↑s) in nhds a, P ↑x) ↔ ∀ᶠ (x : α) in nhdsWithin (↑a) s, P x

theorem frequently_nhds_subtype_iff E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (s : Set α) (a : ↑s) (P : α → Prop),
  (∃ᶠ (x : ↑s) in nhds a, P ↑x) ↔ ∃ᶠ (x : α) in nhdsWithin (↑a) s, P x

theorem tendsto_nhdsWithin_iff_subtype E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {s : Set α} {a : α} (h : a ∈ s) (f : α → β) (l : Filter β),
  Filter.Tendsto f (nhdsWithin a s) l ↔ Filter.Tendsto (s.domRestrict f) (nhds ⟨a, h⟩) l

theorem tendsto_nhdsWithin_inter_iff_subtype E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] {s t : Set α} {a : α} (h : a ∈ s) (f : α → β)
  (l : Filter β),
  Filter.Tendsto f (nhdsWithin a (s ∩ t)) l ↔ Filter.Tendsto (s.domRestrict f) (nhdsWithin ⟨a, h⟩ (Subtype.val ⁻¹' t)) l

theorem clusterPt_principal_subtype_iff_frequently E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α},
  s ⊆ t →
    ∀ {J : Set ↑s} {a : ↑s},
      ClusterPt a (Filter.principal J) ↔ ∃ᶠ (x : α) in nhdsWithin (↑a) t, ∃ (h : x ∈ s), ⟨x, h⟩ ∈ J

theorem nhdsSetWithin_mono_left E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s s' t : Set α}, s ⊆ s' → nhdsSetWithin s t ≤ nhdsSetWithin s' t

theorem nhdsSetWithin_mono_right E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t t' : Set α}, t ⊆ t' → nhdsSetWithin s t ≤ nhdsSetWithin s t'

theorem nhdsSetWithin_hasBasis E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {ι : Sort u_3} {p : ι → Prop} {s' : ι → Set α} {s : Set α},
  (nhdsSet s).HasBasis p s' → ∀ (t : Set α), (nhdsSetWithin s t).HasBasis p fun i ↦ s' i ∩ t

theorem nhdsSetWithin_basis_open E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] (s t : Set α),
  (nhdsSetWithin s t).HasBasis (fun u ↦ IsOpen u ∧ s ⊆ u) fun u ↦ u ∩ t

theorem mem_nhdsSetWithin E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t u : Set α}, u ∈ nhdsSetWithin s t ↔ ∃ v, IsOpen v ∧ s ⊆ v ∧ v ∩ t ⊆ u

theorem mem_nhdsSetWithin_iff_forall E0 #

∀ {X : Type u_3} [inst : TopologicalSpace X] {s t u : Set X}, u ∈ nhdsSetWithin s t ↔ ∀ x ∈ s, u ∈ nhdsWithin x t

theorem nhdsSetWithin_singleton E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {x : α} {s : Set α}, nhdsSetWithin {x} s = nhdsWithin x s

theorem nhdsSetWithin_univ E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α}, nhdsSetWithin s Set.univ = nhdsSet s

theorem mem_nhdsSet E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α}, s ∈ nhdsSet t ↔ ∃ u ⊆ s, IsOpen u ∧ t ⊆ u

theorem nhdsSetWithin_univ' E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α}, nhdsSetWithin Set.univ s = Filter.principal s

theorem nhdsSetWithin_self E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α}, nhdsSetWithin s s = Filter.principal s

theorem nhdsSetWithin_eq_principal_of_subset E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α}, t ⊆ s → nhdsSetWithin s t = Filter.principal t

theorem nhdsSetWithin_empty E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α}, nhdsSetWithin s ∅ = ⊥

theorem nhdsSetWithin_empty' E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α}, nhdsSetWithin ∅ s = ⊥

theorem principal_inter_le_nhdsSetWithin E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s t : Set α}, Filter.principal (s ∩ t) ≤ nhdsSetWithin s t

theorem nhdsSetWithin_prod_le E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] [inst_1 : TopologicalSpace β] {s s' : Set α} {t t' : Set β},
  nhdsSetWithin (s ×ˢ t) (s' ×ˢ t') ≤ nhdsSetWithin s s' ×ˢ nhdsSetWithin t t'

theorem mem_nhdsSet_induced E0 #

∀ {α : Type u_3} {β : Type u_4} {t : TopologicalSpace β} (f : α → β) (s u : Set α),
  u ∈ nhdsSet s ↔ ∃ v ∈ nhdsSet (f '' s), f ⁻¹' v ⊆ u

theorem nhdsSet_induced E1 #

∀ {α : Type u_3} {β : Type u_4} {t : TopologicalSpace β} (f : α → β) (s : Set α),
  nhdsSet s = Filter.comap f (nhdsSet (f '' s))

theorem map_nhdsSet_induced_eq E0 #

∀ {α : Type u_3} {β : Type u_4} {t : TopologicalSpace β} {f : α → β} (s : Set α),
  Filter.map f (nhdsSet s) = nhdsSetWithin (f '' s) (Set.range f)

theorem Topology.IsInducing.map_nhdsSet_eq E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : TopologicalSpace α] [inst_1 : TopologicalSpace β] {f : α → β},
  Topology.IsInducing f → ∀ (s : Set α), Filter.map f (nhdsSet s) = nhdsSetWithin (f '' s) (Set.range f)

theorem map_nhdsSet_subtypeVal E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α} (t : Set ↑s),
  Filter.map Subtype.val (nhdsSet t) = nhdsSetWithin (Subtype.val '' t) s

theorem mem_nhdsSet_subtype_iff_nhdsSetWithin E0 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {s : Set α} {t u : Set ↑s},
  u ∈ nhdsSet t ↔ Subtype.val '' u ∈ nhdsSetWithin (Subtype.val '' t) s

Deprecated aliases

NameNew nameSince
Filter.EventuallyEq.mem_interiorFilter.EventuallyEqSet.mem_interior2026-08-14
Filter.EventuallyEq.mem_interior_iffFilter.EventuallyEqSet.mem_interior_iff2026-08-14
diff_mem_nhdsWithin_complsdiff_mem_nhdsWithin_compl2026-06-03
diff_mem_nhdsWithin_diffsdiff_mem_nhdsWithin_sdiff2026-06-03
map_nhdsSet_subtype_valmap_nhdsSet_subtypeVal2026-11-10
mem_nhdsWithin_iff_eventuallyEqmem_nhdsWithin_iff_eventuallyEqSet2026-08-14
nhdsWithin_eq_iff_eventuallyEqnhdsWithin_eq_iff_eventuallyEqSet2026-08-14
nhdsWithin_eq_map_subtype_coenhdsWithin_eq_map_subtypeVal2026-11-10