Lean library · module TopologyByExample.Theorems.MichaelProductDiscreteGraph
A closed discrete subgraph in the Michael product
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 mul_tail
TopologyByExample.MichaelLineTimesIrrationals.mul_tail
private theorem mul_tail (n : ℕ) (f : ℕ → ℕ) :
(digit f n : ℝ) * tail n f = 1 + tail (n+1) f
Proof
:= by
rw [tail_eq n f, ← mul_assoc, mul_inv_cancel₀, one_mul]
have := three_le_digit f n
positivity
theorem unequal_tails
TopologyByExample.MichaelLineTimesIrrationals.unequal_tails
private theorem unequal_tails {n : ℕ} {f g : ℕ → ℕ} (hf : f n = 0) (hg : g n = 3) :
tail n f ≠ tail n g
definition binaryInputs
TopologyByExample.MichaelLineTimesIrrationals.binaryInputs
private def binaryInputs : Set (ℕ → ℕ)
:= {f | ∀ n, f n = 0 ∨ f n = 3}
theorem engel_injOn_binary
TopologyByExample.MichaelLineTimesIrrationals.engel_injOn_binary
private theorem engel_injOn_binary : binaryInputs.InjOn engel
Proof
:= by
intro f hf g hg h
have step (n : ℕ) (he : tail n f = tail n g) :
f n = g n ∧ tail (n+1) f = tail (n+1) g := by
have heq : f n = g n := by
rcases hf n with hf₀ | hf₃ <;> rcases hg n with hg₀ | hg₃
· exact hf₀.trans hg₀.symm
· exact (unequal_tails hf₀ hg₃ he).elim
· exact (unequal_tails hg₀ hf₃ he.symm).elim
· exact hf₃.trans hg₃.symm
refine ⟨heq, ?_⟩
have hd : digit f n = digit g n := by simp only [digit, heq]
have h₁ := mul_tail n f
rw [he, hd, mul_tail] at h₁
linarith
have all_tails (n : ℕ) : tail n f = tail n g := by
induction n with
| zero => exact h
| succ n ih => exact (step n ih).2
exact funext fun n ↦ (step n (all_tails n)).1
theorem exists_closed_discrete_continuum_le
TopologyByExample.MichaelLineTimesIrrationals.exists_closed_discrete_continuum_le
Restricting the graph of the Engel series to inputs with entries zero or three gives a closed discrete subset of cardinality at least continuum.
theorem exists_closed_discrete_continuum_le :
∃ s : Set (MichaelLine × (ℕ → ℕ)), IsClosed s ∧ IsDiscrete s ∧ 𝔠 ≤ #s
Proof
:= by
let G := {z : MichaelLine × (ℕ → ℕ) | MichaelLine.toReal z.1 = engel z.2 ∧ z.2 ∈ binaryInputs}
have hC : IsClosed binaryInputs := by
have he : binaryInputs = ⋂ n : ℕ, (fun f : ℕ → ℕ ↦ f n) ⁻¹' ({0, 3} : Set ℕ) := by
ext f
simp [binaryInputs]
rw [he]
exact isClosed_iInter fun n ↦ (Set.toFinite _).isClosed.preimage (continuous_apply n)
refine ⟨G, isClosed_graph.inter (hC.preimage continuous_snd), ?_, ?_⟩
· apply isDiscrete_iff_forall_mem_exists_isOpen.2
intro z hz
have hi : Irrational (MichaelLine.toReal z.1) := hz.1 ▸ irrational_engel z.2
refine ⟨Prod.fst ⁻¹' {z.1}, (MichaelLine.isOpen_singleton hi).preimage continuous_fst, ?_⟩
ext w
change (w.1 = z.1 ∧ w ∈ G) ↔ w = z
refine ⟨fun hw ↦ Prod.ext hw.1 (engel_injOn_binary hw.2.2 hz.2 ?_),
by rintro rfl; exact ⟨rfl, hz⟩⟩
exact hw.2.1.symm.trans ((congrArg MichaelLine.toReal hw.1).trans hz.1)
· let bits (b : ℕ → Bool) (n : ℕ) : ℕ := if b n then 3 else 0
let f (b : ℕ → Bool) : G := ⟨graphPoint (bits b), rfl, by
intro n
cases h : b n <;> simp [graphPoint, bits, h]⟩
have hf : Function.Injective f := by
intro a b he
funext n
have e := congrArg (fun z : G ↦ z.val.2 n) he
change bits a n = bits b n at e
cases ha : a n <;> cases hb : b n <;> simp_all [bits]
have hc := Cardinal.mk_le_of_injective hf
simpa [Cardinal.mk_arrow, Cardinal.mk_bool, Cardinal.mk_nat] using hc
On this site: Michael line times the irrationals has a closed discrete subset of cardinality \(\mathfrak{c}\)