Skip to content

Commit

Permalink
feat: port Topology.ContinuousOn (#1907)
Browse files Browse the repository at this point in the history
  • Loading branch information
urkud committed Jan 31, 2023
1 parent fb5f6b7 commit 195bf2a
Show file tree
Hide file tree
Showing 3 changed files with 1,289 additions and 2 deletions.
1 change: 1 addition & 0 deletions Mathlib.lean
Expand Up @@ -925,6 +925,7 @@ import Mathlib.Topology.Bornology.Basic
import Mathlib.Topology.Bornology.Constructions
import Mathlib.Topology.Bornology.Hom
import Mathlib.Topology.Constructions
import Mathlib.Topology.ContinuousOn
import Mathlib.Topology.LocallyFinite
import Mathlib.Topology.Maps
import Mathlib.Topology.NhdsSet
Expand Down
8 changes: 6 additions & 2 deletions Mathlib/Topology/Constructions.lean
Expand Up @@ -1035,10 +1035,14 @@ theorem Subtype.dense_iff {s : Set α} {t : Set s} : Dense t ↔ s ⊆ closure (
rfl
#align subtype.dense_iff Subtype.dense_iff

theorem map_nhds_subtype_coe_eq {a : α} (ha : p a) (h : ∀ᶠ x in 𝓝 a, p x) :
-- porting note: new lemma
theorem map_nhds_subtype_val {s : Set α} (a : s) : map ((↑) : s → α) (𝓝 a) = 𝓝[s] ↑a := by
rw [inducing_subtype_val.map_nhds_eq, Subtype.range_val]

theorem map_nhds_subtype_coe_eq_nhds {a : α} (ha : p a) (h : ∀ᶠ x in 𝓝 a, p x) :
map ((↑) : Subtype p → α) (𝓝 ⟨a, ha⟩) = 𝓝 a :=
map_nhds_induced_of_mem <| by rw [Subtype.range_val]; exact h
#align map_nhds_subtype_coe_eq map_nhds_subtype_coe_eq
#align map_nhds_subtype_coe_eq map_nhds_subtype_coe_eq_nhds

theorem nhds_subtype_eq_comap {a : α} {h : p a} : 𝓝 (⟨a, h⟩ : Subtype p) = comap (↑) (𝓝 a) :=
nhds_induced _ _
Expand Down

0 comments on commit 195bf2a

Please sign in to comment.