Lean library · module TopologyByExample.Spaces.FiniteRealIntervalSums
Finite interval sums in the closure–complement example
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
definition twoOpen
TopologyByExample.FiniteRealIntervalSums.twoOpen
Two ordered open intervals, even with touching omitted endpoints, form two real lines.
def twoOpen (a b c d : ℝ) (hab : a < b) (hbc : b ≤ c) (hcd : c < d) :
(Ioo a b ∪ Ioo c d : Set ℝ) ≃ₜ ℝ ⊕ ℝ
Definition
:=
(cutHomeomorph (Ioo a b) (Ioo c d) ((b + c) / 2)
(by intro x hx; change x < (b + c) / 2; linarith [hx.2])
(by intro x hx; change (b + c) / 2 < x; linarith [hx.1])).trans
((intervalReal a b hab).sumCongr (intervalReal c d hcd))
definition threeOpen
TopologyByExample.FiniteRealIntervalSums.threeOpen
Three ordered open intervals form three real lines.
def threeOpen (a b c d e f : ℝ) (hab : a < b) (hbc : b ≤ c) (hcd : c < d)
(hde : d ≤ e) (hef : e < f) :
((Ioo a b ∪ Ioo c d) ∪ Ioo e f : Set ℝ) ≃ₜ (ℝ ⊕ ℝ) ⊕ ℝ
Definition
:=
(cutHomeomorph (Ioo a b ∪ Ioo c d) (Ioo e f) ((d + e) / 2)
(by
rintro x (hx | hx) <;> change x < (d + e) / 2 <;> linarith [hx.2])
(by intro x hx; change (d + e) / 2 < x; linarith [hx.1])).trans
((twoOpen a b c d hab hbc hcd).sumCongr (intervalReal e f hef))
definition twoClosed
TopologyByExample.FiniteRealIntervalSums.twoClosed
Two separated nondegenerate closed intervals form two unit intervals.
def twoClosed (a b c d : ℝ) (hab : a < b) (hbc : b < c) (hcd : c < d) :
(Icc a b ∪ Icc c d : Set ℝ) ≃ₜ unitInterval ⊕ unitInterval
Definition
:=
(cutHomeomorph (Icc a b) (Icc c d) ((b + c) / 2)
(by intro x hx; change x < (b + c) / 2; linarith [hx.2])
(by intro x hx; change (b + c) / 2 < x; linarith [hx.1])).trans
((iccHomeoI a b hab).sumCongr (iccHomeoI c d hcd))
definition threeClosed
TopologyByExample.FiniteRealIntervalSums.threeClosed
Three separated nondegenerate closed intervals form three unit intervals.
def threeClosed (a b c d e f : ℝ) (hab : a < b) (hbc : b < c) (hcd : c < d)
(hde : d < e) (hef : e < f) :
((Icc a b ∪ Icc c d) ∪ Icc e f : Set ℝ) ≃ₜ
(unitInterval ⊕ unitInterval) ⊕ unitInterval
Definition
:=
(cutHomeomorph (Icc a b ∪ Icc c d) (Icc e f) ((d + e) / 2)
(by
rintro x (hx | hx) <;> change x < (d + e) / 2 <;> linarith [hx.2])
(by intro x hx; change (d + e) / 2 < x; linarith [hx.1])).trans
((twoClosed a b c d hab hbc hcd).sumCongr (iccHomeoI e f hef))
definition interiorHomeomorph
TopologyByExample.FiniteRealIntervalSums.interiorHomeomorph
The interior of the original subset is three real lines.
def interiorHomeomorph : interior original ≃ₜ (ℝ ⊕ ℝ) ⊕ ℝ
Definition
:=
(Homeomorph.setCongr interior_original).trans
(threeOpen 2 3 3 4 5 6 (by norm_num) (by norm_num) (by norm_num)
(by norm_num) (by norm_num))
On this site: Sum of three real lines: The corresponding closure–complement subset is a finite interval sum
definition interiorClosureHomeomorph
TopologyByExample.FiniteRealIntervalSums.interiorClosureHomeomorph
The interior of the closure is also three real lines.
def interiorClosureHomeomorph : interior (closure original) ≃ₜ (ℝ ⊕ ℝ) ⊕ ℝ
Definition
:=
(Homeomorph.setCongr interior_closure_original).trans
(threeOpen 2 4 5 6 7 8 (by norm_num) (by norm_num) (by norm_num)
(by norm_num) (by norm_num))
On this site: Sum of three real lines: The interior of the closure gives the same three-real-line sum
definition closureInteriorHomeomorph
TopologyByExample.FiniteRealIntervalSums.closureInteriorHomeomorph
Closing the interior gives two closed intervals.
def closureInteriorHomeomorph : closure (interior original) ≃ₜ unitInterval ⊕ unitInterval
:=
(Homeomorph.setCongr closure_interior_original).trans
(twoClosed 2 4 5 6 (by norm_num) (by norm_num) (by norm_num))
On this site: Sum of two closed intervals: The corresponding closure–complement subset is a finite interval sum
definition closureInteriorClosureHomeomorph
TopologyByExample.FiniteRealIntervalSums.closureInteriorClosureHomeomorph
Closing the interior of the closure gives three closed intervals.
def closureInteriorClosureHomeomorph : closure (interior (closure original)) ≃ₜ
(unitInterval ⊕ unitInterval) ⊕ unitInterval
Definition
:=
(Homeomorph.setCongr closure_interior_closure_original).trans
(threeClosed 2 4 5 6 7 8 (by norm_num) (by norm_num) (by norm_num)
(by norm_num) (by norm_num))
On this site: Sum of three closed intervals: The corresponding closure–complement subset is a finite interval sum
definition interiorClosureInteriorHomeomorph
TopologyByExample.FiniteRealIntervalSums.interiorClosureInteriorHomeomorph
The interior of the closed interior is the existing two-real-line type.
def interiorClosureInteriorHomeomorph : interior (closure (interior original)) ≃ₜ ℝ ⊕ ℝ
:=
(Homeomorph.setCongr interior_closure_interior_original).trans
(twoOpen 2 4 5 6 (by norm_num) (by norm_num) (by norm_num))
On this site: Punctured open interval: The interior of the closed interior gives two real lines
On this site: Space: Sum of two closed intervals; Space: Sum of three closed intervals; Space: Sum of three real lines