Skip to content

Commit a872b9c

Browse files
ADedeckerReemMelamed
authored andcommitted
chore: move IsOpenQuotientMap.baireSpace to Baire.Lemmas (leanprover-community#40713)
This makes the import tree a bit cleaner, so that importing `OpenQuotient` is cheaper.
1 parent 63dd3c9 commit a872b9c

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

Mathlib/Topology/Baire/Lemmas.lean

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ Authors: Sébastien Gouëzel
66
module
77

88
public import Mathlib.Data.Fintype.Powerset
9-
public import Mathlib.Topology.GDelta.Basic
109
public import Mathlib.Topology.Constructions
10+
public import Mathlib.Topology.GDelta.Basic
11+
public import Mathlib.Topology.Maps.OpenQuotient
1112
public import Mathlib.Tactic.CrossRefAttribute
1213

1314
/-!
@@ -111,6 +112,15 @@ theorem Topology.IsOpenEmbedding.baireSpace {Y : Type*} [TopologicalSpace Y] {p
111112
theorem IsOpen.baireSpace {s : Set X} (hO : IsOpen s) : BaireSpace s :=
112113
hO.isOpenEmbedding_subtypeVal.baireSpace
113114

115+
/-- If `f` is an open quotient map and `X` is Baire, then `Y` is Baire. -/
116+
theorem IsOpenQuotientMap.baireSpace {Y : Type*} [TopologicalSpace Y] {f : X → Y}
117+
(hf : IsOpenQuotientMap f) : BaireSpace Y := by
118+
constructor
119+
intro u hou hdu
120+
have := dense_iInter_of_isOpen_nat (fun n => hf.continuous.isOpen_preimage (u n) (hou n))
121+
(fun n => (IsOpenQuotientMap.dense_preimage_iff hf).mpr (hdu n))
122+
simp_all [← preimage_iInter, IsOpenQuotientMap.dense_preimage_iff]
123+
114124
/-- Baire theorem: a countable intersection of dense open sets is dense. Formulated here with ⋂₀. -/
115125
theorem dense_sInter_of_isOpen {S : Set (Set X)} (ho : ∀ s ∈ S, IsOpen s) (hS : S.Countable)
116126
(hd : ∀ s ∈ S, Dense s) : Dense (⋂₀ S) := by

Mathlib/Topology/Homeomorph/Lemmas.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public import Mathlib.Logic.Equiv.Fin.Basic
99
public import Mathlib.Topology.Connected.LocallyConnected
1010
public import Mathlib.Topology.DenseEmbedding
1111
public import Mathlib.Topology.Connected.TotallyDisconnected
12+
public import Mathlib.Topology.Baire.Lemmas
1213

1314
/-!
1415
# Further properties of homeomorphisms

Mathlib/Topology/Maps/OpenQuotient.lean

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Authors: Yury Kudryashov
66
module
77

88
public import Mathlib.Topology.Maps.Basic
9-
public import Mathlib.Topology.Baire.Lemmas
109

1110
/-!
1211
# Open quotient maps
@@ -65,15 +64,6 @@ theorem dense_preimage_iff (h : IsOpenQuotientMap f) {s : Set Y} : Dense (f ⁻
6564
fun hs ↦ h.surjective.denseRange.dense_of_mapsTo h.continuous hs (mapsTo_preimage _ _),
6665
fun hs ↦ hs.preimage h.isOpenMap⟩
6766

68-
/-- If `f` is an open quotient map and `X` is Baire, then `Y` is Baire. -/
69-
theorem baireSpace {f : X → Y} [BaireSpace X] (hf : IsOpenQuotientMap f) :
70-
BaireSpace Y := by
71-
constructor
72-
intro u hou hdu
73-
have := dense_iInter_of_isOpen_nat (fun n => hf.continuous.isOpen_preimage (u n) (hou n))
74-
(fun n => (IsOpenQuotientMap.dense_preimage_iff hf).mpr (hdu n))
75-
simp_all [← preimage_iInter, IsOpenQuotientMap.dense_preimage_iff]
76-
7767
end IsOpenQuotientMap
7868

7969
theorem Topology.IsInducing.isOpenQuotientMap_of_surjective (ind : IsInducing f)

Mathlib/Topology/Order/IsLUB.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
55
-/
66
module
77

8+
public import Mathlib.Order.Filter.CountableInter
89
public import Mathlib.Topology.Order.LeftRightNhds
910

1011
/-!

0 commit comments

Comments
 (0)