Lean library · module TopologyByExample.Spaces.DeletedOrdinalFunctions
Continuous functions near the deleted ordinal corner
Every continuous metric-valued map on the deleted ordinal square is constant on some deleted neighbourhood of its missing corner. Interlacing countable ordinal sequences first bounds oscillation on interior tails; continuity then determines the two boundary edges.
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.
definition interior
TopologyByExample.DeletedOrdinalSquare.interior
The interior square of countable ordinals, as a map into the deleted square.
def interior (p : OmegaOne × OmegaOne) : DeletedOrdinalSquare
:= left p.1 p.2
theorem continuous_interior
TopologyByExample.DeletedOrdinalSquare.continuous_interior
The inclusion of the interior square is continuous.
theorem continuous_interior : Continuous interior
Proof
:=
continuous_left.comp (continuous_fst.prodMk (WithTop.continuous_coe.comp continuous_snd))
theorem exists_forall_ge_dist_lt
TopologyByExample.DeletedOrdinalSquare.exists_forall_ge_dist_lt
The oscillation of a continuous metric-valued map is small on a sufficiently late interior quadrant.
theorem exists_forall_ge_dist_lt {Y : Type*} [PseudoMetricSpace Y]
{f : DeletedOrdinalSquare → Y} (hf : Continuous f) {ε : ℝ} (hε : 0 < ε) :
∃ a : OmegaOne, ∀ p : OmegaOne × OmegaOne, a ≤ p.1 → a ≤ p.2 →
∀ q : OmegaOne × OmegaOne, a ≤ q.1 → a ≤ q.2 →
dist (f (interior p)) (f (interior q)) < ε
Proof
:= by
by_contra! h
choose p hp₁ hp₂ q hq₁ hq₂ hpq using h
let next (a : OmegaOne) := Order.succ (max (p a).1 (max (p a).2 (max (q a).1 (q a).2)))
let t : ℕ → OmegaOne := fun n ↦ Nat.rec ⊥ (fun _ a ↦ next a) n
have h₁ (n : ℕ) : (p (t n)).1 < t (n + 1) :=
(le_max_left _ _).trans_lt (Order.lt_succ _)
have h₂ (n : ℕ) : (p (t n)).2 < t (n + 1) :=
((le_max_left _ _).trans (le_max_right _ _)).trans_lt (Order.lt_succ _)
have h₃ (n : ℕ) : (q (t n)).1 < t (n + 1) :=
(((le_max_left _ _).trans (le_max_right _ _)).trans (le_max_right _ _)).trans_lt
(Order.lt_succ _)
have h₄ (n : ℕ) : (q (t n)).2 < t (n + 1) :=
(((le_max_right _ _).trans (le_max_right _ _)).trans (le_max_right _ _)).trans_lt
(Order.lt_succ _)
have hmono : Monotone t := monotone_nat_of_le_succ fun n ↦ (hp₁ (t n)).trans (h₁ n).le
have hbdd : BddAbove (range t) := OmegaOne.bddAbove_of_countable (countable_range t)
have ht : Tendsto t atTop (𝓝 (⨆ n, t n)) := tendsto_atTop_isLUB hmono (isLUB_ciSup hbdd)
have ht' := ht.comp (tendsto_add_atTop_nat 1)
have hp₁' := tendsto_of_tendsto_of_tendsto_of_le_of_le ht ht'
(fun n ↦ hp₁ (t n)) (fun n ↦ (h₁ n).le)
have hp₂' := tendsto_of_tendsto_of_tendsto_of_le_of_le ht ht'
(fun n ↦ hp₂ (t n)) (fun n ↦ (h₂ n).le)
have hq₁' := tendsto_of_tendsto_of_tendsto_of_le_of_le ht ht'
(fun n ↦ hq₁ (t n)) (fun n ↦ (h₃ n).le)
have hq₂' := tendsto_of_tendsto_of_tendsto_of_le_of_le ht ht'
(fun n ↦ hq₂ (t n)) (fun n ↦ (h₄ n).le)
have hfp := ((hf.comp continuous_interior).tendsto _).comp (hp₁'.prodMk_nhds hp₂')
have hfq := ((hf.comp continuous_interior).tendsto _).comp (hq₁'.prodMk_nhds hq₂')
have hd : Tendsto (fun n ↦ dist (f (interior (p (t n)))) (f (interior (q (t n)))))
atTop (𝓝 0) := by simpa using hfp.dist hfq
obtain ⟨n, hn⟩ := (hd.eventually (gt_mem_nhds hε)).exists
exact (hpq (t n)).not_gt hn
theorem exists_forall_interior_eq
TopologyByExample.DeletedOrdinalSquare.exists_forall_interior_eq
A continuous metric-valued map is constant on a sufficiently late interior quadrant.
theorem exists_forall_interior_eq {Y : Type*} [MetricSpace Y]
{f : DeletedOrdinalSquare → Y} (hf : Continuous f) :
∃ a : OmegaOne, ∀ p : OmegaOne × OmegaOne, a ≤ p.1 → a ≤ p.2 →
f (interior p) = f (diagonal a)
Proof
:= by
choose a ha using fun n : ℕ ↦ exists_forall_ge_dist_lt hf (Nat.one_div_pos_of_nat (n := n))
have hbdd : BddAbove (range a) := OmegaOne.bddAbove_of_countable (countable_range a)
refine ⟨⨆ n, a n, fun p hp₁ hp₂ ↦ dist_le_zero.mp (le_of_forall_gt fun ε hε ↦ ?_)⟩
obtain ⟨n, hn⟩ := exists_nat_one_div_lt hε
have han : a n ≤ ⨆ n, a n := le_ciSup hbdd n
exact (ha n p (han.trans hp₁) (han.trans hp₂) (_, _) han han).trans hn
theorem exists_forall_tail_eq
TopologyByExample.DeletedOrdinalSquare.exists_forall_tail_eq
A continuous metric-valued map is constant on a deleted neighbourhood of the corner.
theorem exists_forall_tail_eq {Y : Type*} [MetricSpace Y]
{f : DeletedOrdinalSquare → Y} (hf : Continuous f) :
∃ a : OmegaOne, ∀ p : DeletedOrdinalSquare,
(a : WithTop OmegaOne) ≤ p.val.1 → (a : WithTop OmegaOne) ≤ p.val.2 →
f p = f (diagonal a)
Proof
:= by
obtain ⟨a, ha⟩ := exists_forall_interior_eq hf
have hleft (b : OmegaOne) (hb : a ≤ b) : f (left b ⊤) = f (diagonal a) := by
have ht : Tendsto (fun c : OmegaOne ↦ f (left b c)) atTop (𝓝 (f (left b ⊤))) :=
((hf.comp (continuous_left.comp (continuous_const.prodMk continuous_id))).tendsto
(⊤ : WithTop OmegaOne)).comp WithTop.tendsto_coe_atTop
have he : ∀ᶠ c : OmegaOne in atTop, f (left b c) = f (diagonal a) :=
(eventually_ge_atTop a).mono fun c hc ↦ ha (b, c) hb hc
exact tendsto_nhds_unique ht (tendsto_const_nhds.congr' (he.mono fun _ h ↦ h.symm))
have hright (b : OmegaOne) (hb : a ≤ b) : f (right ⊤ b) = f (diagonal a) := by
have ht : Tendsto (fun c : OmegaOne ↦ f (right c b)) atTop (𝓝 (f (right ⊤ b))) :=
((hf.comp (continuous_right.comp (continuous_id.prodMk continuous_const))).tendsto
(⊤ : WithTop OmegaOne)).comp WithTop.tendsto_coe_atTop
have he : ∀ᶠ c : OmegaOne in atTop, f (right c b) = f (diagonal a) :=
(eventually_ge_atTop a).mono fun c hc ↦ ha (c, b) hc hb
exact tendsto_nhds_unique ht (tendsto_const_nhds.congr' (he.mono fun _ h ↦ h.symm))
refine ⟨a, fun ⟨⟨x, y⟩, hxy⟩ hx hy ↦ ?_⟩
induction x using WithTop.recTopCoe with
| top =>
induction y using WithTop.recTopCoe with
| top => exact False.elim (hxy rfl)
| coe y => exact hright y (WithTop.coe_le_coe.mp hy)
| coe x =>
induction y using WithTop.recTopCoe with
| top => exact hleft x (WithTop.coe_le_coe.mp hx)
| coe y => exact ha (x, y) (WithTop.coe_le_coe.mp hx) (WithTop.coe_le_coe.mp hy)
On this site: The deleted ordinal square: Continuous metric-valued maps are constant near the missing corner
theorem not_normalSpace
TopologyByExample.DeletedOrdinalSquare.not_normalSpace
The deleted ordinal square is not normal: the diagonal and a boundary edge cannot be separated by a real-valued continuous function.
theorem not_normalSpace : ¬NormalSpace DeletedOrdinalSquare
Proof
:= by
intro h
have hD : IsClosed {p : DeletedOrdinalSquare | p.val.1 = p.val.2} :=
isClosed_eq (continuous_fst.comp continuous_subtypeVal)
(continuous_snd.comp continuous_subtypeVal)
have hE : IsClosed {p : DeletedOrdinalSquare | p.val.2 = ⊤} :=
isClosed_eq (continuous_snd.comp continuous_subtypeVal) continuous_const
have hDE : Disjoint {p : DeletedOrdinalSquare | p.val.1 = p.val.2}
{p : DeletedOrdinalSquare | p.val.2 = ⊤} := by
apply disjoint_left.mpr
intro p hp hq
exact p.property (Prod.ext (hp.trans hq) hq)
obtain ⟨f, hfD, hfE, -⟩ := exists_continuous_zero_one_of_isClosed hD hE hDE
obtain ⟨a, ha⟩ := exists_forall_tail_eq f.continuous
have heq := ha (left a ⊤) le_rfl le_top
have hz : f (diagonal a) = 0 := hfD rfl
have ho : f (left a ⊤) = 1 := hfE rfl
exact zero_ne_one (hz.symm.trans (heq.symm.trans ho))
On this site: The deleted ordinal square is not normal