/-
Copyright (c) 2024 Elliot Dean Young and Jiazhen Xia. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jiazhen Xia, Elliot Dean Young
-/
module
public import Mathlib.Analysis.InnerProductSpace.PiL2
public import Mathlib.Topology.Category.TopCat.EpiMono
/-!
# Euclidean spheres
This file defines the `n`-sphere ` n`, the `n`-disk ` n`, its boundary `∂ n` and its interior
` n` as objects in `TopCat`.
-/
@[expose] public section
universe u
namespace TopCat
open CategoryTheory
/-- The `n`-disk is the set of points in ℝⁿ whose norm is at most `1`,
endowed with the subspace topology. -/
noncomputable def disk (n : ℕ) : TopCat.{u} :=
↧(ULift <| Metric.closedBall (0 : EuclideanSpace ℝ (Fin n)) 1)
/-- The boundary of the `n`-disk. -/
noncomputable def diskBoundary (n : ℕ) : TopCat.{u} :=
↧(ULift <| Metric.sphere (0 : EuclideanSpace ℝ (Fin n)) 1)
/-- The `n`-sphere is the set of points in ℝⁿ⁺¹ whose norm equals `1`,
endowed with the subspace topology. -/
noncomputable def sphere (n : ℕ) : TopCat.{u} :=
diskBoundary (n + 1)
/-- The `n`-ball is the set of points in ℝⁿ whose norm is strictly less than `1`,
endowed with the subspace topology. -/
noncomputable def ball (n : ℕ) : TopCat.{u} :=
↧(ULift <| Metric.ball (0 : EuclideanSpace ℝ (Fin n)) 1)
/-- ` n` denotes the `n`-disk. -/
scoped prefix:arg " " => disk
/-- `∂ n` denotes the boundary of the `n`-disk. -/
scoped prefix:arg "∂ " => diskBoundary
/-- ` n` denotes the `n`-sphere. -/
scoped prefix:arg " " => sphere
/-- ` n` denotes the `n`-ball, the interior of the `n`-disk. -/
scoped prefix:arg " " => ball
/-- The inclusion `∂ n ⟶ n` of the boundary of the `n`-disk. -/
def diskBoundaryInclusion (n : ℕ) : ∂ n ⟶ n :=
ofHom
{ toFun := fun ⟨p, hp⟩ ↦ ⟨p, le_of_eq hp⟩
continuous_toFun := ⟨fun t ⟨s, ⟨r, hro, hrs⟩, hst⟩ ↦ by
rw [isOpen_induced_iff, ← hst, ← hrs]
tauto⟩ }
/-- The inclusion ` n ⟶ n` of the interior of the `n`-disk. -/
def ballInclusion (n : ℕ) : n ⟶ n :=
ofHom
{ toFun := fun ⟨p, hp⟩ ↦ ⟨p, Metric.ball_subset_closedBall hp⟩
continuous_toFun := ⟨fun t ⟨s, ⟨r, hro, hrs⟩, hst⟩ ↦ by
rw [isOpen_induced_iff, ← hst, ← hrs]
tauto⟩ }
set_option backward.isDefEq.respectTransparency false in
instance {n : ℕ} : Mono (diskBoundaryInclusion n) := mono_iff_injective _ |>.mpr <| by
intro ⟨x, hx⟩ ⟨y, hy⟩ h
obtain rfl : x = y := by simpa [diskBoundaryInclusion, disk] using h
congr
set_option backward.isDefEq.respectTransparency false in
instance {n : ℕ} : Mono (ballInclusion n) := TopCat.mono_iff_injective _ |>.mpr <| by
intro ⟨x, hx⟩ ⟨y, hy⟩ h
obtain rfl : x = y := by simpa [ballInclusion, disk] using h
congr
instance (n : ℕ) : CompactSpace ( n) := by
convert! Homeomorph.compactSpace Homeomorph.ulift.symm
infer_instance
instance (n : ℕ) : CompactSpace (∂ n) := by
convert! Homeomorph.compactSpace Homeomorph.ulift.symm
infer_instance
end TopCat
¤ Dauer der Verarbeitung: 0.11 Sekunden
¤
*© Formatika GbR, Deutschland