Lean library · module TopologyByExample.Spaces.ConeLexicographicSquare

The cone over the lexicographic square

Source file

The cone over the lexicographic square L is obtained from L × [0, 1] by collapsing the top L × {1} to a single point, the apex. Since L is compact, it is the one-point compactification of L × [0, 1), and this is how we define it.

It is a compact Hausdorff space that is path connected and locally connected but not locally path connected:

  • every point (x, t) is joined to the apex along its ray {x} × [t, 1);
  • L × [0, 1) is locally connected, as a product of locally connected spaces, and the sets of points above a given height, L × (r, 1) together with the apex, form a neighbourhood base at the apex of path connected sets;
  • if the cone were locally path connected, so would be its open subspace L × [0, 1), and hence L, the image of that subspace under the open projection; but L is connected and not path connected.

It is first countable, but neither separable (it contains L × [0, 1) as an open subspace) nor completely normal. For the last we use a theorem of Katětov (TopologyByExample.not_completelyNormalSpace_prod): if X × Y is completely normal and Y contains a nontrivial convergent sequence, then every closed subset of X is a G_δ. Applied to L × [0, 1) it would make L perfectly normal, which it is not.

Paths in the cone that avoid the apex keep a constant first coordinate in L: they project to paths in L, which stay in one vertical fibre.

Main definitions

Main statements

The general facts used, TopologyByExample.locallyConnectedSpace_onePoint (the one-point compactification of a locally connected space is locally connected if the point at infinity has a base of preconnected neighbourhoods) and TopologyByExample.nhds_eq_comap_of_preimage_singleton (for a continuous map from a compact space to a Hausdorff space, the neighbourhoods of a point that is the only preimage of y are the preimages of the neighbourhoods of y), are in TopologyByExample.Operators.OnePoint and TopologyByExample.Theorems.Compactness.

References

  • M. Katětov, Complete normality of Cartesian products, Fund. Math. 35 (1948), 271–274.

Tags

cone, lexicographic order, one-point compactification, locally connected, path connected, locally path connected, completely normal

This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.

Imports

The cone

definition ConeLexicographicSquare

TopologyByExample.ConeLexicographicSquare

The cone over the lexicographic square: the one-point compactification of LexicographicSquare × [0, 1), where [0, 1) is the subtype Set.Iio 1 of unitInterval. The point at infinity is the apex of the cone.

abbrev ConeLexicographicSquare : Type
:=
  OnePoint (LexicographicSquare × Iio (1 : unitInterval))

On this site: Space: Cone over the lexicographic square

instance instLocallyCompactSpaceIio

TopologyByExample.ConeLexicographicSquare.instLocallyCompactSpaceIio

The half-open unit interval [0, 1) is locally compact, as an open subset of [0, 1].

instance instLocallyCompactSpaceIio : LocallyCompactSpace (Iio (1 : unitInterval))
Proof
:=
  isOpen_Iio.locallyCompactSpace

instance instLocallyPathConnectedSpaceIio

TopologyByExample.ConeLexicographicSquare.instLocallyPathConnectedSpaceIio

The half-open unit interval [0, 1) is locally path connected, as an open subset of the convex set [0, 1].

instance instLocallyPathConnectedSpaceIio : LocallyPathConnectedSpace (Iio (1 : unitInterval))
Proof
:=
  have : LocallyPathConnectedSpace unitInterval := UnitInterval.locallyPathConnectedSpace
  isOpen_Iio.locallyPathConnectedSpace

instance instNonemptyIio

TopologyByExample.ConeLexicographicSquare.instNonemptyIio

The half-open unit interval [0, 1) is nonempty.

instance instNonemptyIio : Nonempty (Iio (1 : unitInterval))
Proof
:=
  ⟨⟨0, show (0 : ℝ) < 1 from zero_lt_one⟩⟩

definition homeomorphUnitInterval

TopologyByExample.ConeLexicographicSquare.homeomorphUnitInterval

The one-point compactification of [0, 1) is [0, 1], the point at infinity being 1.

noncomputable def homeomorphUnitInterval : OnePoint (Iio (1 : unitInterval)) ≃ₜ unitInterval
Definition
:=
  equivOfIsEmbeddingOfRangeEq 1 Subtype.val IsEmbedding.subtypeVal <| by
    ext t
    simp [lt_iff_le_and_ne, unitInterval.le_one']

theorem homeomorphUnitInterval_coe

TopologyByExample.ConeLexicographicSquare.homeomorphUnitInterval_coe

@[simp]
theorem homeomorphUnitInterval_coe (t : Iio (1 : unitInterval)) :
    homeomorphUnitInterval t = (t : unitInterval)
Proof
:=
  rfl

theorem homeomorphUnitInterval_infty

TopologyByExample.ConeLexicographicSquare.homeomorphUnitInterval_infty

@[simp]
theorem homeomorphUnitInterval_infty : homeomorphUnitInterval ∞ = 1
Proof
:=
  rfl

theorem homeomorphUnitInterval_symm_coe

TopologyByExample.ConeLexicographicSquare.homeomorphUnitInterval_symm_coe

theorem homeomorphUnitInterval_symm_coe (t : Iio (1 : unitInterval)) :
    homeomorphUnitInterval.symm (t : unitInterval) = t
Proof
:=
  homeomorphUnitInterval.symm_apply_eq.2 rfl

theorem homeomorphUnitInterval_symm_one

TopologyByExample.ConeLexicographicSquare.homeomorphUnitInterval_symm_one

theorem homeomorphUnitInterval_symm_one : homeomorphUnitInterval.symm 1 = ∞
Proof
:=
  homeomorphUnitInterval.symm_apply_eq.2 rfl

instance instCompactSpace

TopologyByExample.ConeLexicographicSquare.instCompactSpace

The cone is compact.

instance instCompactSpace : CompactSpace ConeLexicographicSquare
Proof
:= inferInstance

On this site: The cone over the lexicographic square is compact

instance instT2Space

TopologyByExample.ConeLexicographicSquare.instT2Space

The cone is Hausdorff, as the one-point compactification of a locally compact Hausdorff space.

instance instT2Space : T2Space ConeLexicographicSquare
Proof
:= inferInstance

On this site: The cone over the lexicographic square is Hausdorff

Height

definition height

TopologyByExample.ConeLexicographicSquare.height

The height of a point of the cone: the second coordinate of a point of LexicographicSquare × [0, 1), and 1 at the apex.

noncomputable def height : ConeLexicographicSquare → unitInterval
:=
  homeomorphUnitInterval ∘ OnePoint.map Prod.snd

theorem height_coe

TopologyByExample.ConeLexicographicSquare.height_coe

@[simp]
theorem height_coe (p : LexicographicSquare × Iio (1 : unitInterval)) :
    height p = (p.2 : unitInterval)
Proof
:=
  rfl

theorem height_infty

TopologyByExample.ConeLexicographicSquare.height_infty

@[simp]
theorem height_infty : height ∞ = 1
Proof
:=
  rfl

theorem continuous_height

TopologyByExample.ConeLexicographicSquare.continuous_height

The height is continuous.

theorem continuous_height : Continuous height
Proof
:= by
  refine homeomorphUnitInterval.continuous.comp (continuous_map continuous_snd ?_)
  rw [coclosedCompact_eq_cocompact, coclosedCompact_eq_cocompact]
  refine hasBasis_cocompact.tendsto_right_iff.2 fun K hK ↦ mem_cocompact.2
    ⟨univ ×ˢ K, isCompact_univ.prod hK, fun _ hp hpK ↦ hp ⟨mem_univ _, hpK⟩⟩

theorem height_preimage_one

TopologyByExample.ConeLexicographicSquare.height_preimage_one

Only the apex has height 1.

theorem height_preimage_one : height ⁻¹' {1} = {∞}
Proof
:= by
  ext z
  induction z using OnePoint.rec with
  | infty => simp
  | coe p => simpa using p.2.prop.ne

theorem nhds_infty_eq

TopologyByExample.ConeLexicographicSquare.nhds_infty_eq

The neighbourhoods of the apex are the preimages under the height of the neighbourhoods of 1.

theorem nhds_infty_eq : 𝓝 (∞ : ConeLexicographicSquare) = comap height (𝓝 1)
Proof
:=
  nhds_eq_comap_of_preimage_singleton continuous_height height_preimage_one

theorem hasBasis_nhds_infty

TopologyByExample.ConeLexicographicSquare.hasBasis_nhds_infty

The sets of points of height greater than r, for r < 1, form a neighbourhood base at the apex.

theorem hasBasis_nhds_infty :
    (𝓝 (∞ : ConeLexicographicSquare)).HasBasis (fun r : unitInterval ↦ r < 1)
      fun r ↦ height ⁻¹' Ioi r
Proof
:= by
  rw [nhds_infty_eq]
  exact (nhds_top_basis (α := unitInterval)).comap height

instance instFirstCountableTopology

TopologyByExample.ConeLexicographicSquare.instFirstCountableTopology

The cone is first countable.

instance instFirstCountableTopology : FirstCountableTopology ConeLexicographicSquare
Proof
where
  nhds_generated_countable z := by
    induction z using OnePoint.rec with
    | infty =>
      rw [nhds_infty_eq]
      infer_instance
    | coe p =>
      rw [nhds_coe_eq]
      infer_instance

On this site: The cone over the lexicographic square is first countable

Rays and paths

definition ray

TopologyByExample.ConeLexicographicSquare.ray

The ray of the cone over a point x of the lexicographic square: the map from [0, 1] (as the one-point compactification of [0, 1)) sending t to (x, t) and 1 to the apex.

noncomputable def ray (x : LexicographicSquare) :
    OnePoint (Iio (1 : unitInterval)) → ConeLexicographicSquare
:=
  OnePoint.map (Prod.mk x)

theorem continuous_ray

TopologyByExample.ConeLexicographicSquare.continuous_ray

Each ray is continuous.

theorem continuous_ray (x : LexicographicSquare) : Continuous (ray x)
Proof
:= by
  refine continuous_map (continuous_const.prodMk continuous_id) ?_
  rw [coclosedCompact_eq_cocompact, coclosedCompact_eq_cocompact]
  have hrange : range (Prod.mk x : Iio (1 : unitInterval) → _) = Prod.fst ⁻¹' {x} := by
    ext p
    exact ⟨by rintro ⟨t, rfl⟩; rfl, fun h ↦ ⟨p.2, Prod.ext h.symm rfl⟩⟩
  exact IsClosedEmbedding.tendsto_cocompact
    ⟨isEmbedding_prodMkRight x, hrange ▸ isClosed_singleton.preimage continuous_fst⟩

theorem height_ray

TopologyByExample.ConeLexicographicSquare.height_ray

@[simp]
theorem height_ray (x : LexicographicSquare) (u : OnePoint (Iio (1 : unitInterval))) :
    height (ray x u) = homeomorphUnitInterval u
Proof
:= by
  induction u using OnePoint.rec <;> rfl

definition rayPath

TopologyByExample.ConeLexicographicSquare.rayPath

The path from a point (x, t) of the cone to the apex along its ray: at time s it is at height max t s over x.

noncomputable def rayPath (p : LexicographicSquare × Iio (1 : unitInterval)) :
    Path (p : ConeLexicographicSquare) ∞
Definition
where
  toFun s := ray p.1 (homeomorphUnitInterval.symm (max (p.2 : unitInterval) s))
  continuous_toFun := (continuous_ray p.1).comp
    (homeomorphUnitInterval.symm.continuous.comp (continuous_const.max continuous_id))
  source' := by
    simp only [max_eq_left unitInterval.nonneg', homeomorphUnitInterval_symm_coe]
    rfl
  target' := by
    simp only [max_eq_right unitInterval.le_one', homeomorphUnitInterval_symm_one]
    rfl

theorem height_rayPath

TopologyByExample.ConeLexicographicSquare.height_rayPath

@[simp]
theorem height_rayPath (p : LexicographicSquare × Iio (1 : unitInterval)) (s : unitInterval) :
    height (rayPath p s) = max (p.2 : unitInterval) s
Proof
:= by
  simp [rayPath]

theorem joined_infty

TopologyByExample.ConeLexicographicSquare.joined_infty

Every point of the cone is joined to the apex by a path.

theorem joined_infty (z : ConeLexicographicSquare) : Joined z ∞
Proof
:= by
  induction z using OnePoint.rec with
  | infty => exact Joined.refl _
  | coe p => exact ⟨rayPath p⟩

theorem joined

TopologyByExample.ConeLexicographicSquare.joined

The cone is path connected: any two of its points are joined by a path.

theorem joined (z w : ConeLexicographicSquare) : Joined z w
Proof
:=
  (joined_infty z).trans (joined_infty w).symm

instance instPathConnectedSpace

TopologyByExample.ConeLexicographicSquare.instPathConnectedSpace

The cone is path connected.

instance instPathConnectedSpace : PathConnectedSpace ConeLexicographicSquare
Proof
where
  nonempty := ⟨∞⟩
  joined := joined

instance instConnectedSpace

TopologyByExample.ConeLexicographicSquare.instConnectedSpace

The cone is connected.

instance instConnectedSpace : ConnectedSpace ConeLexicographicSquare
Proof
:= inferInstance

theorem isPathConnected_height_preimage_Ioi

TopologyByExample.ConeLexicographicSquare.isPathConnected_height_preimage_Ioi

The set of points of height greater than r is path connected: each of its points is joined to the apex along its ray, without losing height.

theorem isPathConnected_height_preimage_Ioi {r : unitInterval} (hr : r < 1) :
    IsPathConnected (height ⁻¹' Ioi r)
Proof
:= by
  refine ⟨∞, by simpa using hr, fun {z} hz ↦ ?_⟩
  induction z using OnePoint.rec with
  | infty => exact JoinedIn.refl (by simpa using hr)
  | coe p =>
    exact JoinedIn.symm ⟨rayPath p, fun s ↦ by
      simp only [mem_preimage, height_rayPath, mem_Ioi]
      exact lt_of_lt_of_le hz (le_max_left _ _)⟩

theorem hasBasis_nhds_infty_isPathConnected

TopologyByExample.ConeLexicographicSquare.hasBasis_nhds_infty_isPathConnected

The apex has a neighbourhood base of path connected sets: the sets of points of height greater than r, for r < 1.

theorem hasBasis_nhds_infty_isPathConnected :
    (𝓝 (∞ : ConeLexicographicSquare)).HasBasis
      (fun s ↦ s ∈ 𝓝 (∞ : ConeLexicographicSquare) ∧ IsPathConnected s) id
Proof
:=
  hasBasis_nhds_infty.to_hasBasis
    (fun _ hr ↦ ⟨_, ⟨hasBasis_nhds_infty.mem_of_mem hr, isPathConnected_height_preimage_Ioi hr⟩,
      subset_rfl⟩)
    fun _ hs ↦ hasBasis_nhds_infty.mem_iff.1 hs.1

On this site: Cone over the lexicographic square: The apex has a neighbourhood base of path connected sets

instance instLocallyConnectedSpace

TopologyByExample.ConeLexicographicSquare.instLocallyConnectedSpace

The cone is locally connected.

instance instLocallyConnectedSpace : LocallyConnectedSpace ConeLexicographicSquare
Proof
:=
  locallyConnectedSpace_onePoint hasBasis_nhds_infty fun _ hr ↦
    (isPathConnected_height_preimage_Ioi hr).isConnected.isPreconnected

On this site: The cone over the lexicographic square is locally connected

theorem not_locallyPathConnectedSpace

TopologyByExample.ConeLexicographicSquare.not_locallyPathConnectedSpace

The cone is not locally path connected. Otherwise its open subspace LexicographicSquare × [0, 1) would be, and so would its image LexicographicSquare under the open projection; but the lexicographic square is not.

theorem not_locallyPathConnectedSpace : ¬LocallyPathConnectedSpace ConeLexicographicSquare
Proof
:=
  fun _ ↦
    have := locallyPathConnectedSpace_of_onePoint
      (X := LexicographicSquare × Iio (1 : unitInterval))
    LexicographicSquare.not_locallyPathConnectedSpace
      ((isOpenMap_fst (X := LexicographicSquare) (Y := Iio (1 : unitInterval))).isQuotientMap
        continuous_fst Prod.fst_surjective).locallyPathConnectedSpace

On this site: The cone over the lexicographic square is not locally path connected

instance instPathPreconnectedSpace

TopologyByExample.ConeLexicographicSquare.instPathPreconnectedSpace

The cone is path preconnected (any two points are joined by a path).

instance instPathPreconnectedSpace : PathPreconnectedSpace ConeLexicographicSquare
Proof
:=
  inferInstance

Disconnectedness properties

theorem infty_ne_coe

TopologyByExample.ConeLexicographicSquare.infty_ne_coe

The cone has two distinct points, the apex and any point of its base.

theorem infty_ne_coe (p : LexicographicSquare × Iio (1 : unitInterval)) :
    (∞ : ConeLexicographicSquare) ≠ p
Proof
:=
  OnePoint.infty_ne_coe p

theorem not_totallyDisconnectedSpace

TopologyByExample.ConeLexicographicSquare.not_totallyDisconnectedSpace

The cone is not totally disconnected: it is connected and has more than one point.

theorem not_totallyDisconnectedSpace : ¬TotallyDisconnectedSpace ConeLexicographicSquare
Proof
:=
  fun _ ↦ infty_ne_coe (toLex (0, 0), Classical.arbitrary _)
    (subsingleton_of_preconnected_totallyDisconnected.elim _ _)

theorem not_totallySeparatedSpace

TopologyByExample.ConeLexicographicSquare.not_totallySeparatedSpace

The cone is not totally separated, since it is not totally disconnected.

theorem not_totallySeparatedSpace : ¬TotallySeparatedSpace ConeLexicographicSquare
Proof
:=
  fun _ ↦ not_totallyDisconnectedSpace inferInstance

theorem not_zeroDimensionalSpace

TopologyByExample.ConeLexicographicSquare.not_zeroDimensionalSpace

The cone is not zero-dimensional: being T₀, it would be totally separated.

theorem not_zeroDimensionalSpace : ¬ZeroDimensionalSpace ConeLexicographicSquare
Proof
:=
  fun _ ↦ not_totallySeparatedSpace inferInstance

Paths avoiding the apex

theorem fst_eq_of_joinedIn

TopologyByExample.ConeLexicographicSquare.fst_eq_of_joinedIn

A path in the cone that avoids the apex keeps a constant first coordinate: its endpoints lie over the same vertical fibre of the lexicographic square.

theorem fst_eq_of_joinedIn {p q : LexicographicSquare × Iio (1 : unitInterval)}
    (h : JoinedIn (range ((↑) : LexicographicSquare × Iio (1 : unitInterval) →
      ConeLexicographicSquare)) p q) :
    (ofLex p.1).1 = (ofLex q.1).1
Proof
:= by
  have hp : JoinedIn univ p q := by
    rw [← isOpenEmbedding_coe.isInducing.joinedIn_image (mem_univ p) (mem_univ q), image_univ]
    exact h
  exact LexicographicSquare.fst_eq_of_joined (hp.joined.map continuous_fst)

On this site: Cone over the lexicographic square: Paths avoiding the apex keep their first coordinate

Countability and separation

theorem not_separableSpace

TopologyByExample.ConeLexicographicSquare.not_separableSpace

The cone is not separable: its open subspace LexicographicSquare × [0, 1) would be, and so would the lexicographic square, its image under the projection.

theorem not_separableSpace : ¬SeparableSpace ConeLexicographicSquare
Proof
:= fun h ↦
  have := separableSpace_onePoint_iff.1 h
  LexicographicSquare.not_separableSpace
    ((Prod.fst_surjective (α := LexicographicSquare) (β := Iio (1 : unitInterval))).denseRange
      |>.separableSpace continuous_fst)

On this site: The cone over the lexicographic square is not separable

theorem not_secondCountableTopology

TopologyByExample.ConeLexicographicSquare.not_secondCountableTopology

The cone is not second countable, since it is not separable.

theorem not_secondCountableTopology : ¬SecondCountableTopology ConeLexicographicSquare
Proof
:=
  fun _ ↦ not_separableSpace inferInstance

theorem not_metrizableSpace

TopologyByExample.ConeLexicographicSquare.not_metrizableSpace

The cone is not metrizable: a compact metrizable space is second countable.

theorem not_metrizableSpace : ¬MetrizableSpace ConeLexicographicSquare
Proof
:=
  fun _ ↦ not_secondCountableTopology inferInstance

theorem not_completelyNormalSpace

TopologyByExample.ConeLexicographicSquare.not_completelyNormalSpace

The cone is not completely normal. Otherwise its open subspace LexicographicSquare × [0, 1) would be, and by Katětov's theorem, applied with the sequence 2⁻ⁿ⁻¹ → 0 in [0, 1), every closed subset of the lexicographic square would be a G_δ; but the lexicographic square is not perfectly normal.

theorem not_completelyNormalSpace : ¬CompletelyNormalSpace ConeLexicographicSquare
Proof
:= fun _ ↦ by
  have := completelyNormalSpace_of_onePoint (X := LexicographicSquare × Iio (1 : unitInterval))
  have hle (n : ℕ) : (1 / 2 : ℝ) ^ (n + 1) ≤ 1 := pow_le_one₀ (by norm_num) (by norm_num)
  have hlt (n : ℕ) : (1 / 2 : ℝ) ^ (n + 1) < 1 :=
    pow_lt_one₀ (by norm_num) (by norm_num) n.succ_ne_zero
  let y : ℕ → Iio (1 : unitInterval) := fun n ↦
    ⟨⟨(1 / 2 : ℝ) ^ (n + 1), by positivity, hle n⟩, show _ < (1 : ℝ) from hlt n⟩
  let y₀ : Iio (1 : unitInterval) := ⟨0, show (0 : ℝ) < 1 from zero_lt_one⟩
  have hy : Tendsto y atTop (𝓝 y₀) := by
    refine tendsto_subtype_rng.2 (tendsto_subtype_rng.2 ?_)
    exact (tendsto_pow_atTop_nhds_zero_of_lt_one (by norm_num) (by norm_num)).comp
      (tendsto_add_atTop_nat 1)
  have hne (n : ℕ) : y n ≠ y₀ := fun h ↦ by
    have : (1 / 2 : ℝ) ^ (n + 1) = 0 := congrArg (fun t : Iio (1 : unitInterval) ↦ (t : ℝ)) h
    exact (pow_pos (by norm_num : (0 : ℝ) < 1 / 2) _).ne' this
  exact not_completelyNormalSpace_prod LexicographicSquare.not_perfectlyNormalSpace hy hne this

On this site: The cone over the lexicographic square is not completely normal

theorem not_perfectlyNormalSpace

TopologyByExample.ConeLexicographicSquare.not_perfectlyNormalSpace

The cone is not perfectly normal, since it is not completely normal.

theorem not_perfectlyNormalSpace : ¬PerfectlyNormalSpace ConeLexicographicSquare
Proof
:= fun _ ↦
  not_completelyNormalSpace inferInstance

The cone over the lexicographic square

theorem not_countableChainCondition

TopologyByExample.ConeLexicographicSquare.not_countableChainCondition

The cone over the lexicographic square does not satisfy the countable chain condition: it contains the product of the square with [0, 1) as an open subspace, and the square does not.

theorem not_countableChainCondition :
    ¬∀ S : Set (Set ConeLexicographicSquare), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) →
      S.PairwiseDisjoint id → S.Countable
Proof
:=
  not_countableChainCondition_of_isOpenEmbedding OnePoint.isOpenEmbedding_coe <|
    not_countableChainCondition_of_surjective continuous_fst Prod.fst_surjective
      LexicographicSquare.not_countableChainCondition

On this site: The cone over the lexicographic square does not satisfy the countable chain condition