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/is_locally_homeomorph): New file #10960

Closed
wants to merge 9 commits into from
Closed
Changes from 4 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
67 changes: 67 additions & 0 deletions src/topology/is_locally_homeomorph.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import topology.local_homeomorph

/-!
# Local homeomorphisms

This file defines local homeomorphisms.

## Main definitions

* `is_locally_homeomorph`: A function `f : X → Y` satisfies `is_locally_homeomorph` if
each `x : x` is contained in the source of some `e : local_homeomorph X Y`.
tb65536 marked this conversation as resolved.
Show resolved Hide resolved
-/

variables {X Y Z : Type*} [topological_space X] [topological_space Y] [topological_space Z]
(g : Y → Z) (f : X → Y)

/-- A function `f : X → Y` satisfies `is_locally_homeomorph` if
each `x : x` is contained in the source of some `e : local_homeomorph X Y`. -/
tb65536 marked this conversation as resolved.
Show resolved Hide resolved
def is_locally_homeomorph :=
∀ x : X, ∃ e : local_homeomorph X Y, x ∈ e.source ∧ f = e

namespace is_locally_homeomorph

def mk (h : ∀ x : X, ∃ e : local_homeomorph X Y, x ∈ e.source ∧ ∀ x, x ∈ e.source → f x = e x) :
tb65536 marked this conversation as resolved.
Show resolved Hide resolved
is_locally_homeomorph f :=
begin
intro x,
obtain ⟨e, hx, he⟩ := h x,
exact ⟨{ to_fun := f,
map_source' := λ x hx, by rw he x hx; exact e.map_source' hx,
left_inv' := λ x hx, by rw he x hx; exact e.left_inv' hx,
right_inv' := λ y hy, by rw he _ (e.map_target' hy); exact e.right_inv' hy,
continuous_to_fun := (continuous_on_congr he).mpr e.continuous_to_fun,
.. e }, hx, rfl⟩,
end

variables {g f}

lemma continuous (hf : is_locally_homeomorph f) : continuous f :=
tb65536 marked this conversation as resolved.
Show resolved Hide resolved
begin
refine continuous_iff_continuous_at.mpr (λ x, _),
obtain ⟨e, hx, rfl⟩ := hf x,
exact e.continuous_at hx,
end

lemma comp (hg : is_locally_homeomorph g) (hf : is_locally_homeomorph f) :
is_locally_homeomorph (g ∘ f) :=
begin
intro x,
obtain ⟨eg, hxg, rfl⟩ := hg (f x),
obtain ⟨ef, hxf, rfl⟩ := hf x,
exact ⟨ef.trans eg, ⟨hxf, hxg⟩, rfl⟩,
end

lemma is_open_map (hf : is_locally_homeomorph f) : is_open_map f :=
begin
refine is_open_map.of_nhds_le (forall_imp _ hf),
rintros x ⟨e, hx, rfl⟩,
exact ge_of_eq (e.map_nhds_eq hx),
end

end is_locally_homeomorph