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: two missing lemmas about restricting continuous maps #6616

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 13 additions & 2 deletions Mathlib/Topology/Constructions.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1099,9 +1099,10 @@ theorem closure_subtype {x : { a // p a }} {s : Set { a // p a }} :
closure_induced
#align closure_subtype closure_subtype

@[simp]
theorem continuousAt_codRestrict_iff {f : α → β} {t : Set β} (h1 : ∀ x, f x ∈ t) {x : α} :
ADedecker marked this conversation as resolved.
Show resolved Hide resolved
ContinuousAt (codRestrict f t h1) x ↔ ContinuousAt f x := by
simp_rw [inducing_subtype_val.continuousAt_iff, Function.comp, val_codRestrict_apply]
ContinuousAt (codRestrict f t h1) x ↔ ContinuousAt f x :=
inducing_subtype_val.continuousAt_iff
#align continuous_at_cod_restrict_iff continuousAt_codRestrict_iff

alias continuousAt_codRestrict_iff ↔ _ ContinuousAt.codRestrict
Expand All @@ -1123,6 +1124,16 @@ theorem Continuous.codRestrict {f : α → β} {s : Set β} (hf : Continuous f)
hf.subtype_mk hs
#align continuous.cod_restrict Continuous.codRestrict

@[continuity]
theorem Continuous.restrict {f : α → β} {s : Set α} {t : Set β} (h1 : MapsTo f s t)
ADedecker marked this conversation as resolved.
Show resolved Hide resolved
(h2 : Continuous f) : Continuous (h1.restrict f s t) :=
(h2.comp continuous_subtype_val).codRestrict _

@[continuity]
theorem Continuous.restrictPreimage {f : α → β} {s : Set β} (h : Continuous f) :
ADedecker marked this conversation as resolved.
Show resolved Hide resolved
Continuous (s.restrictPreimage f) :=
h.restrict _

theorem Inducing.codRestrict {e : α → β} (he : Inducing e) {s : Set β} (hs : ∀ x, e x ∈ s) :
Inducing (codRestrict e s hs) :=
inducing_of_inducing_compose (he.continuous.codRestrict hs) continuous_subtype_val he
Expand Down