Lean library · module TopologyByExample.Theorems.ConnectedCardinality

Real-valued functions on small connected spaces

Source file

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

theorem stronglyConnectedSpace_of_preconnectedSpace_of_cardinalityLessThanContinuum

TopologyByExample.stronglyConnectedSpace_of_preconnectedSpace_of_cardinalityLessThanContinuum

A connected space smaller than continuum has only constant continuous real functions.

theorem stronglyConnectedSpace_of_preconnectedSpace_of_cardinalityLessThanContinuum
    {X : Type*} [TopologicalSpace X] [PreconnectedSpace X]
    (h : CardinalityLessThanContinuum X) : StronglyConnectedSpace X
Proof
:= by
  constructor
  intro f x y
  suffices hle : ∀ x y, f x ≤ f y from le_antisymm (hle x y) (hle y x)
  intro x y
  by_contra hxy
  have hlt : f y < f x := lt_of_not_ge hxy
  have hsub : Icc (f y) (f x) ⊆ range f :=
    (isPreconnected_range f.continuous).Icc_subset (mem_range_self y) (mem_range_self x)
  have hc : continuum ≤ #(range f) :=
    (mk_Icc_real hlt).symm ▸ mk_le_mk_of_subset hsub
  have hbound := (lift_le.mpr hc).trans (mk_range_le_lift (f := f))
  rw [lift_continuum, lift_uzero] at hbound
  exact (not_le_of_gt h) hbound

On this site: Theorem: Connected spaces smaller than continuum are strongly connected