Lean library · module TopologyByExample.Spaces.NestedInterval
The nested interval topology
The nested interval topology on (0, 1) is generated by the intervals (0, 1 - 1/(n + 1)),
n ∈ ℕ. Its open sets are determined by the block of a point, the n with
x ∈ [n / (n + 1), (n + 1) / (n + 2)); every block has the cardinality of the continuum, so a
bijection (0, 1) ≃ ℕ × (0, 1) with the block as first component exists, and the topology is
homeomorphic to the product of the right order topology on ℕ in reverse order (ℕᵒᵈ with the
upper topology) with the indiscrete topology on (0, 1).
Main definitions
TopologyByExample.nestedIntervalTopology: the nested interval topology.TopologyByExample.NestedInterval.block: the block of a point.
Main statements
TopologyByExample.nestedIntervalTopology_eq_induced: the topology is induced by the block map intoℕᵒᵈwith the upper topology.TopologyByExample.nonempty_homeomorph_nestedIntervalTopology: the homeomorphism with the product.
Tags
nested interval topology, right order topology, indiscrete, product
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
definition block
TopologyByExample.NestedInterval.block
The block of a point x of (0, 1): the natural number ⌊x / (1 - x)⌋, which is n exactly
on [n / (n + 1), (n + 1) / (n + 2)).
noncomputable def block (x : Ioo (0 : ℝ) 1) : ℕ
:=
⌊(x : ℝ) / (1 - x)⌋₊
theorem block_lt_iff
TopologyByExample.NestedInterval.block_lt_iff
The block of x is below n exactly when x < 1 - 1/(n + 1).
theorem block_lt_iff (x : Ioo (0 : ℝ) 1) (n : ℕ) :
block x < n ↔ (x : ℝ) < 1 - 1 / ((n : ℝ) + 1)
Proof
:= by
have h1 : (0 : ℝ) < 1 - x := by linarith [x.property.2]
have hn : (0 : ℝ) < n + 1 := by positivity
rw [block, Nat.floor_lt (div_nonneg x.property.1.le h1.le), div_lt_iff₀ h1,
show (1 : ℝ) - 1 / ((n : ℝ) + 1) = n / (n + 1) by field_simp; ring, lt_div_iff₀ hn]
constructor <;> intro h <;> nlinarith
theorem mk_block_fiber
TopologyByExample.NestedInterval.mk_block_fiber
Every block has the cardinality of the continuum, like (0, 1).
theorem mk_block_fiber (n : ℕ) :
Cardinal.mk {x : Ioo (0 : ℝ) 1 // block x = n} = Cardinal.mk (Ioo (0 : ℝ) 1)
Proof
:= by
refine le_antisymm (Cardinal.mk_subtype_le _) ?_
have hn : (0 : ℝ) < n + 1 := by positivity
have hlt : (n : ℝ) / (n + 1) < (n + 1) / (n + 2) := by
rw [div_lt_div_iff₀ hn (by positivity)]
nlinarith
rw [Cardinal.mk_Ioo_real zero_lt_one, ← Cardinal.mk_Ioo_real hlt]
refine Cardinal.mk_le_of_injective (f := fun y : Ioo ((n : ℝ) / (n + 1)) ((n + 1) / (n + 2)) ↦
⟨⟨y, ?_, ?_⟩, ?_⟩) ?_
· exact lt_of_le_of_lt (by positivity) y.property.1
· refine y.property.2.trans ?_
rw [div_lt_one (by positivity)]
linarith
· have hy0 : (0 : ℝ) < y := lt_of_le_of_lt (by positivity) y.property.1
have hy1 : (y : ℝ) < 1 := by
refine y.property.2.trans ?_
rw [div_lt_one (by positivity)]
linarith
refine le_antisymm (Nat.lt_succ_iff.1 ((block_lt_iff _ _).2 ?_)) ?_
· have := y.property.2
rw [show (1 : ℝ) - 1 / ((n.succ : ℕ) + 1) = (n + 1) / (n + 2) by push_cast; field_simp; ring]
exact this
· refine not_lt.1 fun h ↦ ?_
have := (block_lt_iff ⟨y, hy0, hy1⟩ n).1 h
have := y.property.1
rw [show (1 : ℝ) - 1 / ((n : ℝ) + 1) = n / (n + 1) by field_simp; ring] at *
linarith
· intro a b hab
exact Subtype.ext (congrArg (fun z : {x : Ioo (0 : ℝ) 1 // block x = n} ↦ (z.val : ℝ)) hab)
definition blockEquiv
TopologyByExample.NestedInterval.blockEquiv
A bijection (0, 1) ≃ ℕ × (0, 1) whose first component is the block.
noncomputable def blockEquiv : Ioo (0 : ℝ) 1 ≃ ℕ × Ioo (0 : ℝ) 1
Definition
:=
(Equiv.sigmaFiberEquiv block).symm.trans <|
(Equiv.sigmaCongrRight fun n ↦ (Cardinal.eq.1 (mk_block_fiber n)).some).trans
(Equiv.sigmaEquivProd _ _)
theorem blockEquiv_fst
TopologyByExample.NestedInterval.blockEquiv_fst
The first component of blockEquiv x is the block of x.
theorem blockEquiv_fst (x : Ioo (0 : ℝ) 1) : (blockEquiv x).1 = block x
Proof
:=
rfl
definition toUpperBlock
TopologyByExample.NestedInterval.toUpperBlock
The block map to the right order topology on ℕᵒᵈ.
noncomputable def toUpperBlock (x : Ioo (0 : ℝ) 1) : Topology.WithUpper ℕᵒᵈ
:=
Topology.WithUpper.toUpper (OrderDual.toDual (block x))
definition nestedIntervalTopology
TopologyByExample.nestedIntervalTopology
The nested interval topology on (0, 1): the topology generated by the intervals
(0, 1 - 1/(n + 1)), n ∈ ℕ.
@[instance_reducible]
def nestedIntervalTopology : TopologicalSpace (Ioo (0 : ℝ) 1)
:=
.generateFrom (range fun n : ℕ ↦ {x | (x : ℝ) < 1 - 1 / ((n : ℝ) + 1)})
theorem nestedIntervalTopology_eq_induced
TopologyByExample.nestedIntervalTopology_eq_induced
The nested interval topology is induced from the right order topology on ℕᵒᵈ by the block
map.
theorem nestedIntervalTopology_eq_induced :
nestedIntervalTopology = .induced toUpperBlock inferInstance
Proof
:= by
rw [show (inferInstance : TopologicalSpace (Topology.WithUpper ℕᵒᵈ)) =
Topology.upper (Topology.WithUpper ℕᵒᵈ) from rfl, Topology.upper, induced_generateFrom_eq,
nestedIntervalTopology]
congr 1
ext s
simp only [mem_range, mem_image, mem_ofPred_eq]
constructor
· rintro ⟨n, rfl⟩
refine ⟨(Iic (Topology.WithUpper.toUpper (OrderDual.toDual n)))ᶜ, ⟨_, rfl⟩, ?_⟩
ext x
change ¬(OrderDual.toDual (block x) ≤ OrderDual.toDual n) ↔ (x : ℝ) < _
rw [← block_lt_iff, OrderDual.toDual_le_toDual, not_le]
· rintro ⟨_, ⟨a, rfl⟩, rfl⟩
refine ⟨OrderDual.ofDual (Topology.WithUpper.ofUpper a), ?_⟩
ext x
change (x : ℝ) < _ ↔ ¬(OrderDual.toDual (block x) ≤ a)
rw [← block_lt_iff]
exact not_le.symm
theorem nonempty_homeomorph_nestedIntervalTopology
TopologyByExample.nonempty_homeomorph_nestedIntervalTopology
The nested interval topology on (0, 1) is homeomorphic to the product of the right order
topology on ℕ in reverse order with the indiscrete topology on (0, 1).
theorem nonempty_homeomorph_nestedIntervalTopology :
Nonempty (WithTopology (Ioo (0 : ℝ) 1) nestedIntervalTopology ≃ₜ
Topology.WithUpper ℕᵒᵈ × WithTopology (Ioo (0 : ℝ) 1) ⊤)
Proof
:= by
rw [nestedIntervalTopology_eq_induced]
exact ⟨homeomorphProdOfIndiscrete NestedInterval.toUpperBlock
(NestedInterval.blockEquiv.trans <| Equiv.prodCongr
(OrderDual.toDual.trans Topology.WithUpper.toUpper) (WithTopology.equiv _ ⊤).symm)
fun _ ↦ rfl⟩
On this site: Countable nested interval model: The nested interval topology on \((0, 1)\)
On this site: Space: Countable nested interval model