Lean library · module TopologyByExample.Theorems.RightOrderSourceRepresentatives

Further right order representatives

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 interval_not_wellFoundedGT

TopologyByExample.RightOrderSourceRepresentatives.interval_not_wellFoundedGT

The unit interval is not conversely well ordered.

theorem interval_not_wellFoundedGT (K : Type*) [Field K] [LinearOrder K]
    [IsStrictOrderedRing K] : ¬ WellFoundedGT (Icc (0 : K) 1)
Proof
:= by
  intro h
  obtain ⟨x, hx, hmax⟩ := WellFounded.has_min h
    {x : Icc (0 : K) 1 | (x : K) < 1}
    ⟨⟨0, le_rfl, zero_le_one⟩, zero_lt_one⟩
  change (x : K) < 1 at hx
  let y : Icc (0 : K) 1 := ⟨((x : K) + 1) / 2, by constructor <;> linarith [x.property.1]⟩
  exact hmax y (by change ((x : K) + 1) / 2 < 1; linarith)
    (by change (x : K) < ((x : K) + 1) / 2; linarith)

theorem countable_embeds_real

TopologyByExample.RightOrderSourceRepresentatives.countable_embeds_real

Any countable linear order embeds in the real line.

theorem countable_embeds_real (X : Type*) [LinearOrder X] [Countable X] :
    ∃ f : X → ℝ, StrictMono f
Proof
:= by
  obtain ⟨f⟩ := Order.embedding_from_countable_to_dense X ℝ
  exact ⟨f, f.strictMono⟩

theorem interval_cardinality

TopologyByExample.RightOrderSourceRepresentatives.interval_cardinality

The right order unit interval has continuum cardinality.

theorem interval_cardinality :
    CardinalityContinuum (Topology.WithUpper (Icc (0 : ℝ) 1))
Proof
:= by
  change #(Icc (0 : ℝ) 1) = 𝔠
  exact mk_Icc_real (by norm_num)

On this site: The right order topology on closed real interval \([0,1]\) has cardinality equal to \(\mathfrak{c}\)

theorem rational_interval_countable

TopologyByExample.RightOrderSourceRepresentatives.rational_interval_countable

The rational unit interval is countable.

theorem rational_interval_countable : Countable (Topology.WithUpper (Icc (0 : ℚ) 1))
Proof
:= by
  change Countable (Icc (0 : ℚ) 1)
  infer_instance

On this site: The right order topology on rational interval \([0,1]\cap\mathbb{Q}\) is countable

definition JoinedOrder

TopologyByExample.RightOrderSourceRepresentatives.JoinedOrder

The order omega plus one plus reverse omega.

abbrev JoinedOrder
:= WithTop ℕ ⊕ₗ ℕᵒᵈ

theorem joined_not_wellFoundedGT

TopologyByExample.RightOrderSourceRepresentatives.joined_not_wellFoundedGT

This countable concatenation is not conversely well ordered.

theorem joined_not_wellFoundedGT : ¬ WellFoundedGT JoinedOrder
Proof
:= by
  intro h
  let f : ℕ → JoinedOrder := fun n => toLex (Sum.inl (n : WithTop ℕ))
  obtain ⟨_, ⟨n, rfl⟩, hmax⟩ := WellFounded.has_min h (range f) (range_nonempty _)
  apply hmax (f (n + 1)) (mem_range_self _)
  change Sum.Lex (· < ·) (· < ·) (Sum.inl (n : WithTop ℕ))
    (Sum.inl ((n + 1 : ℕ) : WithTop ℕ))
  exact Sum.Lex.inl (WithTop.coe_lt_coe.mpr n.lt_succ_self)

theorem joined_countable

TopologyByExample.RightOrderSourceRepresentatives.joined_countable

The concatenation is countable.

theorem joined_countable : Countable (Topology.WithUpper JoinedOrder)
Proof
:= by
  change Countable (WithTop ℕ ⊕ ℕ)
  infer_instance

On this site: The right order topology on order \(\omega+1+\omega^*\) is countable

theorem joined_embeds_real

TopologyByExample.RightOrderSourceRepresentatives.joined_embeds_real

The concatenation embeds in the real line.

theorem joined_embeds_real : ∃ f : JoinedOrder → ℝ, StrictMono f
Proof
:= by
  let : Countable JoinedOrder := joined_countable
  exact countable_embeds_real _

On this site: Space: Right order topology on closed real interval \([0,1]\); Space: Right order topology on rational interval \([0,1]\cap\mathbb{Q}\); Space: Right order topology on order \(\omega+1+\omega^*\)