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] - chore(topology/continuous_function/compact): relax typeclass assumptions for metric space structure on C(X, Y) #8717

Closed
wants to merge 1 commit into from
Closed
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
16 changes: 8 additions & 8 deletions src/topology/continuous_function/compact.lean
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ open bounded_continuous_function

namespace continuous_map

variables (α : Type*) (β : Type*) [topological_space α] [compact_space α] [normed_group β]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly the docstring at the top of the file describes β as a metric space

variables (α β μ : Type*) [topological_space α] [compact_space α] [normed_group β] [metric_space μ]

/--
When `α` is compact, the bounded continuous maps `α →ᵇ 𝕜` are
equivalent to `C(α, 𝕜)`.
-/
@[simps]
def equiv_bounded_of_compact : C(α, β) ≃ (α →ᵇ β) :=
⟨mk_of_compact, forget_boundedness α β, λ f, by { ext, refl, }, λ f, by { ext, refl, }⟩
def equiv_bounded_of_compact : C(α, μ) ≃ (α →ᵇ μ) :=
⟨mk_of_compact, forget_boundedness α μ, λ f, by { ext, refl, }, λ f, by { ext, refl, }⟩

/--
When `α` is compact, the bounded continuous maps `α →ᵇ 𝕜` are
Expand All @@ -62,10 +62,10 @@ lemma add_equiv_bounded_of_compact_to_equiv :
(add_equiv_bounded_of_compact α β).to_equiv = equiv_bounded_of_compact α β :=
rfl

instance : metric_space C(α,β) :=
instance : metric_space C(α,μ) :=
metric_space.induced
(equiv_bounded_of_compact α β)
(equiv_bounded_of_compact α β).injective
(equiv_bounded_of_compact α μ)
(equiv_bounded_of_compact α μ).injective
(by apply_instance)

section
Expand Down Expand Up @@ -106,9 +106,9 @@ isometric to `C(α, β)`.
-/
@[simps]
def isometric_bounded_of_compact :
C(α, β) ≃ᵢ (α →ᵇ β) :=
C(α, μ) ≃ᵢ (α →ᵇ μ) :=
{ isometry_to_fun := λ x y, rfl,
to_equiv := equiv_bounded_of_compact α β }
to_equiv := equiv_bounded_of_compact α μ }

-- TODO at some point we will need lemmas characterising this norm!
-- At the moment the only way to reason about it is to transfer `f : C(α,β)` back to `α →ᵇ β`.
Expand Down