Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat(Topology/Sequences): add missing instances #13460

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Mathlib/Topology/Order.lean
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ theorem isOpen_coinduced {t : TopologicalSpace α} {s : Set β} {f : α → β}
Iff.rfl
#align is_open_coinduced isOpen_coinduced

theorem isClosed_coinduced {t : TopologicalSpace α} {s : Set β} {f : α → β} :
IsClosed[t.coinduced f] s ↔ IsClosed (f ⁻¹' s) := by
simp only [← isOpen_compl_iff, isOpen_coinduced (f := f), preimage_compl]

theorem preimage_nhds_coinduced [TopologicalSpace α] {π : α → β} {s : Set β} {a : α}
(hs : s ∈ @nhds β (TopologicalSpace.coinduced π ‹_›) (π a)) : π ⁻¹' s ∈ 𝓝 a := by
letI := TopologicalSpace.coinduced π ‹_›
Expand Down
47 changes: 45 additions & 2 deletions Mathlib/Topology/Sequences.lean
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,20 @@ instance (priority := 100) FrechetUrysohnSpace.to_sequentialSpace [FrechetUrysoh
⟨fun s hs => by rw [← closure_eq_iff_isClosed, ← seqClosure_eq_closure, hs.seqClosure_eq]⟩
#align frechet_urysohn_space.to_sequential_space FrechetUrysohnSpace.to_sequentialSpace

theorem Inducing.frechetUrysohnSpace [FrechetUrysohnSpace Y] {f : X → Y} (hf : Inducing f) :
FrechetUrysohnSpace X := by
refine ⟨fun s x hx ↦ ?_⟩
rw [hf.closure_eq_preimage_closure_image, mem_preimage, mem_closure_iff_seq_limit] at hx
rcases hx with ⟨u, hus, hu⟩
choose v hv hvu using hus
refine ⟨v, hv, ?_⟩
simpa only [hf.tendsto_nhds_iff, (· ∘ ·), hvu]

/-- Subtype of a Fréchet-Urysohn space is a Fréchet-Urysohn space. -/
instance Subtype.instFrechetUrysohnSpace [FrechetUrysohnSpace X] {p : X → Prop} :
FrechetUrysohnSpace (Subtype p) :=
inducing_subtype_val.frechetUrysohnSpace

/-- In a sequential space, a set is closed iff it's sequentially closed. -/
theorem isSeqClosed_iff_isClosed [SequentialSpace X] {M : Set X} : IsSeqClosed M ↔ IsClosed M :=
⟨IsSeqClosed.isClosed, IsClosed.isSeqClosed⟩
Expand Down Expand Up @@ -194,15 +208,44 @@ theorem continuous_iff_seqContinuous [SequentialSpace X] {f : X → Y} :
⟨Continuous.seqContinuous, SeqContinuous.continuous⟩
#align continuous_iff_seq_continuous continuous_iff_seqContinuous

theorem SequentialSpace.coinduced [SequentialSpace X] (f : X → Y) :
@SequentialSpace Y (.coinduced f ‹_›) :=
letI : TopologicalSpace Y := .coinduced f ‹_›
⟨fun s hs ↦ isClosed_coinduced.2 (hs.preimage continuous_coinduced_rng.seqContinuous).isClosed⟩

protected theorem SequentialSpace.iSup {ι : Sort*} {t : ι → TopologicalSpace X}
(h : ∀ i, @SequentialSpace X (t i)) : @SequentialSpace X (⨆ i, t i) := by
letI : TopologicalSpace X := ⨆ i, t i
refine ⟨fun s hs ↦ isClosed_iSup_iff.2 fun i ↦ ?_⟩
letI := t i
exact IsSeqClosed.isClosed fun u x hus hux ↦ hs hus <| hux.mono_right <| nhds_mono <| le_iSup _ _

protected theorem SequentialSpace.sup {t₁ t₂ : TopologicalSpace X}
(h₁ : @SequentialSpace X t₁) (h₂ : @SequentialSpace X t₂) :
@SequentialSpace X (t₁ ⊔ t₂) := by
rw [sup_eq_iSup]
exact .iSup <| Bool.forall_bool.2 ⟨h₂, h₁⟩

theorem QuotientMap.sequentialSpace [SequentialSpace X] {f : X → Y} (hf : QuotientMap f) :
SequentialSpace Y :=
⟨fun _s hs => hf.isClosed_preimage.mp <| (hs.preimage <| hf.continuous.seqContinuous).isClosed⟩
hf.2.symm ▸ .coinduced f
#align quotient_map.sequential_space QuotientMap.sequentialSpace

/-- The quotient of a sequential space is a sequential space. -/
instance [SequentialSpace X] {s : Setoid X} : SequentialSpace (Quotient s) :=
instance Quotient.instSequentialSpace [SequentialSpace X] {s : Setoid X} :
SequentialSpace (Quotient s) :=
quotientMap_quot_mk.sequentialSpace

/-- The sum (disjoint union) of two sequential spaces is a sequential space. -/
instance Sum.instSequentialSpace [SequentialSpace X] [SequentialSpace Y] :
SequentialSpace (X ⊕ Y) :=
.sup (.coinduced Sum.inl) (.coinduced Sum.inr)

/-- The disjoint union of an indexed family of sequential spaces is a sequential space. -/
instance Sigma.instSequentialSpace {ι : Type*} {X : ι → Type*}
[∀ i, TopologicalSpace (X i)] [∀ i, SequentialSpace (X i)] : SequentialSpace (Σ i, X i) :=
.iSup fun _ ↦ .coinduced _

end TopologicalSpace

section SeqCompact
Expand Down
Loading