Lean library · module TopologyByExample.Spaces.HyperbolicRegion
The closed hyperbolic region
This file was written by Codex (OpenAI's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
Imports
definition hyperbolicRegionSet
TopologyByExample.hyperbolicRegionSet
The closed region bounded by the two branches of the hyperbola xy = 1.
def hyperbolicRegionSet : Set (ℝ × ℝ)
:= {p | 1 ≤ p.1 * p.2}
definition HyperbolicRegion
TopologyByExample.HyperbolicRegion
The hyperbolic region with its Euclidean subspace topology.
abbrev HyperbolicRegion
:= ↥hyperbolicRegionSet
On this site: Space: Closed hyperbolic region
theorem isClosed_set
TopologyByExample.HyperbolicRegion.isClosed_set
The region is closed in the plane.
theorem isClosed_set : IsClosed hyperbolicRegionSet
Proof
:=
isClosed_le continuous_const (continuous_fst.mul continuous_snd)
On this site: Closed hyperbolic region: The hyperbolic region is closed
instance
The region is locally compact.
instance : LocallyCompactSpace HyperbolicRegion
Proof
:= isClosed_set.locallyCompactSpace
theorem fst_ne_zero
TopologyByExample.HyperbolicRegion.fst_ne_zero
The first coordinate of a point of the region cannot vanish.
theorem fst_ne_zero (p : HyperbolicRegion) : p.val.1 ≠ 0
Proof
:= by
intro h
have hp := p.property
change 1 ≤ p.val.1 * p.val.2 at hp
rw [h, zero_mul] at hp
norm_num at hp
definition productHomeomorph
TopologyByExample.HyperbolicRegion.productHomeomorph
Multiplying the second coordinate by the first straightens the hyperbolic boundary.
def productHomeomorph : HyperbolicRegion ≃ₜ ({x : ℝ | x ≠ 0} × Ici (1 : ℝ))
Definition
where
toFun p := (⟨p.val.1, fst_ne_zero p⟩, ⟨p.val.1 * p.val.2, p.property⟩)
invFun p := ⟨(p.1.val, p.2.val / p.1.val), by
change 1 ≤ p.1.val * (p.2.val / p.1.val)
rw [mul_div_cancel₀ _ p.1.property]
exact p.2.property⟩
left_inv p := by
apply Subtype.ext
apply Prod.ext
· rfl
· exact mul_div_cancel_left₀ _ (fst_ne_zero p)
right_inv p := by
apply Prod.ext
· rfl
· apply Subtype.ext
exact mul_div_cancel₀ _ p.1.property
continuous_toFun := ((continuous_fst.comp continuous_subtypeVal).subtype_mk _).prodMk
(((continuous_fst.comp continuous_subtypeVal).mul
(continuous_snd.comp continuous_subtypeVal)).subtype_mk _)
continuous_invFun :=
((continuous_subtypeVal.comp continuous_fst).prodMk
((continuous_subtypeVal.comp continuous_snd).div
(continuous_subtypeVal.comp continuous_fst) (fun p ↦ p.1.property))).subtype_mk
(fun p ↦ by
change 1 ≤ p.1.val * (p.2.val / p.1.val)
rw [mul_div_cancel₀ _ p.1.property]
exact p.2.property)
On this site: Closed hyperbolic region: Straightening the hyperbolic boundary
instance
The region has locally arc-connected neighbourhoods.
instance : LocallyArcConnectedSpace HyperbolicRegion
Proof
:= by
let : LocallyArcConnectedSpace ℝ := locallyArcConnectedSpace_of_normedSpace
let : LocallyArcConnectedSpace {x : ℝ | x ≠ 0} :=
locallyArcConnectedSpace_open isOpen_compl_singleton
let : LocallyArcConnectedSpace (Ici (1 : ℝ)) :=
locallyArcConnectedSpace_of_convex (convex_Ici 1)
exact (Homeomorph.locallyArcConnectedSpace_iff productHomeomorph).mpr inferInstance
theorem image_fst
TopologyByExample.HyperbolicRegion.image_fst
The first projection of the region is the punctured real line.
theorem image_fst : Prod.fst '' hyperbolicRegionSet = ({0}ᶜ : Set ℝ)
Proof
:= by
ext x
constructor
· rintro ⟨p, hp, rfl⟩
exact fst_ne_zero ⟨p, hp⟩
· intro hx
refine ⟨(x, 1 / x), ?_, rfl⟩
change 1 ≤ x * (1 / x)
rw [mul_one_div_cancel hx]
theorem not_isClosed_image_fst
TopologyByExample.HyperbolicRegion.not_isClosed_image_fst
The image of this closed set under the first projection is not closed.
theorem not_isClosed_image_fst : ¬ IsClosed (Prod.fst '' hyperbolicRegionSet)
Proof
:= by
rw [image_fst, isClosed_compl_iff]
exact not_isOpen_singleton (0 : ℝ)
theorem not_isClosedMap_fst
TopologyByExample.HyperbolicRegion.not_isClosedMap_fst
The projection from the Euclidean plane is not a closed map.
theorem not_isClosedMap_fst : ¬ IsClosedMap (Prod.fst : ℝ × ℝ → ℝ)
Proof
:=
fun h ↦ not_isClosed_image_fst (h hyperbolicRegionSet isClosed_set)
On this site: Closed hyperbolic region: The first projection of the plane is not closed
theorem not_compactSpace
TopologyByExample.HyperbolicRegion.not_compactSpace
The region is not compact.
theorem not_compactSpace : ¬ CompactSpace HyperbolicRegion
Proof
:= by
intro h
apply not_isClosed_image_fst
have hc := (isCompact_range (continuous_fst.comp
(continuous_subtypeVal : Continuous (Subtype.val : HyperbolicRegion → ℝ × ℝ)))).isClosed
have he : range (fun p : HyperbolicRegion ↦ p.val.1) = Prod.fst '' hyperbolicRegionSet := by
ext x
constructor
· rintro ⟨p, rfl⟩; exact ⟨p.val, p.property, rfl⟩
· rintro ⟨p, hp, rfl⟩; exact ⟨⟨p, hp⟩, rfl⟩
change IsClosed (range (fun p : HyperbolicRegion ↦ p.val.1)) at hc
rwa [he] at hc
On this site: The closed hyperbolic region is not compact