Lean library · module TopologyByExample.Theorems.PointAttachment
Attaching an open point above a specified point
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.
definition PointAttachment
TopologyByExample.PointAttachment
Attach one open point to X, specializing to p.
def PointAttachment {X : Type*} (p : X)
:=
{z : X × Prop // z.2 → z.1 = p}
variable {X : Type*} [TopologicalSpace X] (p : X)
instance
instance : TopologicalSpace (PointAttachment p)
Proof
:= inferInstanceAs (TopologicalSpace
{z : X × Prop // z.2 → z.1 = p})
definition base
TopologyByExample.PointAttachment.base
The original copy of the space.
def base (x : X) : PointAttachment p
:= ⟨(x, False), False.elim⟩
definition point
TopologyByExample.PointAttachment.point
The attached point.
def point : PointAttachment p
:= ⟨(p, True), fun _ ↦ rfl⟩
definition retract
TopologyByExample.PointAttachment.retract
Collapse the new point to its attachment point.
def retract (z : PointAttachment p) : X
:= z.val.1
definition fibre
TopologyByExample.PointAttachment.fibre
The two-point fibre over the attachment point.
def fibre (b : Prop) : PointAttachment p
:= ⟨(p, b), fun _ ↦ rfl⟩
theorem continuous_base
TopologyByExample.PointAttachment.continuous_base
The original inclusion is continuous.
theorem continuous_base : Continuous (base p)
Proof
:=
(continuous_id.prodMk continuous_const).subtype_mk _
theorem continuous_retract
TopologyByExample.PointAttachment.continuous_retract
The collapse map is continuous.
theorem continuous_retract : Continuous (retract p)
Proof
:=
continuous_fst.comp continuous_subtypeVal
theorem continuous_fibre
TopologyByExample.PointAttachment.continuous_fibre
The fibre inclusion is continuous.
theorem continuous_fibre : Continuous (fibre p)
Proof
:=
(continuous_const.prodMk continuous_id).subtype_mk _
omit [TopologicalSpace X] in
theorem eq_base_or_point
TopologyByExample.PointAttachment.eq_base_or_point
Every point is old or is the attached point.
theorem eq_base_or_point (z : PointAttachment p) :
(∃ x, z = base p x) ∨ z = point p
Proof
:= by
rcases Classical.propComplete z.val.2 with h | h
· right
apply Subtype.ext
exact Prod.ext (z.property (h.mpr trivial)) h
· left
exact ⟨z.val.1, Subtype.ext (Prod.ext rfl h)⟩
theorem point_specializes_base
TopologyByExample.PointAttachment.point_specializes_base
The new point specializes to the old attachment point.
theorem point_specializes_base : point p ⤳ base p p
Proof
:= by
apply (subtype_specializes_iff _ _).mpr
exact specializes_rfl.prod (Sierpinski.true_specializes False)
theorem not_t1Space
TopologyByExample.PointAttachment.not_t1Space
The attachment is never T₁.
theorem not_t1Space : ¬ T1Space (PointAttachment p)
Proof
:= by
intro _
have h := (point_specializes_base p).eq
have := congrArg (fun z : PointAttachment p ↦ z.val.2) h
exact true_ne_false this
instance
Attaching this point preserves connectedness.
instance [PreconnectedSpace X] : PreconnectedSpace (PointAttachment p)
Proof
where
isPreconnected_univ := by
let : PathPreconnectedSpace Prop := Sierpinski.pathPreconnectedSpace
have hc := (isPreconnected_range (continuous_base p)).union (base p p)
(mem_range_self p) (show base p p ∈ range (fibre p) from ⟨False, rfl⟩)
(isPreconnected_range (continuous_fibre p))
have he : range (base p) ∪ range (fibre p) = univ := by
apply eq_univ_of_forall
intro z
rcases eq_base_or_point p z with ⟨x, rfl⟩ | rfl
· exact Or.inl (mem_range_self x)
· exact Or.inr ⟨True, rfl⟩
rwa [he] at hc
omit [TopologicalSpace X] in
theorem retract_surjective
TopologyByExample.PointAttachment.retract_surjective
The collapse map is onto.
theorem retract_surjective : Function.Surjective (retract p)
Proof
:=
fun x ↦ ⟨base p x, rfl⟩
theorem stronglyConnectedSpace_base
TopologyByExample.PointAttachment.stronglyConnectedSpace_base
Strong connectedness of the attachment would imply it for the base.
theorem stronglyConnectedSpace_base [StronglyConnectedSpace (PointAttachment p)] :
StronglyConnectedSpace X
Proof
:=
stronglyConnectedSpace_of_surjective (retract_surjective p) (continuous_retract p)
theorem pathPreconnectedSpace_base
TopologyByExample.PointAttachment.pathPreconnectedSpace_base
Path connectedness of the attachment would imply it for the base.
theorem pathPreconnectedSpace_base [PathPreconnectedSpace (PointAttachment p)] :
PathPreconnectedSpace X
Proof
:=
pathPreconnectedSpace_of_surjective (retract_surjective p) (continuous_retract p)
theorem isOpen_point
TopologyByExample.PointAttachment.isOpen_point
The added point is open.
theorem isOpen_point : IsOpen ({point p} : Set (PointAttachment p))
Proof
:= by
have he : ({point p} : Set (PointAttachment p)) =
(fun z : PointAttachment p ↦ z.val.2) ⁻¹' {True} := by
ext z
change z = point p ↔ z.val.2 = True
constructor
· rintro rfl
rfl
· intro h
exact Subtype.ext (Prod.ext (z.property (h.mpr trivial)) h)
rw [he]
exact isOpen_singleton_true.preimage (continuous_snd.comp continuous_subtypeVal)
theorem isTotallyDisconnected_compl_base
TopologyByExample.PointAttachment.isTotallyDisconnected_compl_base
A dispersion point remains a dispersion point after the attachment.
theorem isTotallyDisconnected_compl_base [T1Space X]
(hp : IsTotallyDisconnected ({p}ᶜ : Set X)) :
IsTotallyDisconnected ({base p p}ᶜ : Set (PointAttachment p))
Proof
:= by
intro s hs hc
let v : Set (PointAttachment p) := retract p ⁻¹' ({p}ᶜ : Set X)
have hv : IsOpen v := isClosed_singleton.isOpen_compl.preimage (continuous_retract p)
have hd : Disjoint ({point p} : Set (PointAttachment p)) v := by
rw [Set.disjoint_singleton_left]
change ¬ p ≠ p
exact not_not_intro rfl
have hcov : s ⊆ {point p} ∪ v := by
intro z hz
rcases eq_base_or_point p z with ⟨x, rfl⟩ | rfl
· right
change x ≠ p
intro h
subst x
exact hs hz rfl
· exact Or.inl rfl
by_cases hn : point p ∈ s
· have h := hc.subset_left_of_subset_union (isOpen_point p) hv hd hcov
⟨point p, hn, rfl⟩
intro a ha b hb
exact (show a = point p from h ha).trans (show b = point p from h hb).symm
· have himg : retract p '' s ⊆ ({p}ᶜ : Set X) := by
rintro _ ⟨z, hz, rfl⟩
exact (hcov hz).resolve_left (fun h ↦ hn (h ▸ hz))
have hsub := hp _ himg (hc.image _ (continuous_retract p).continuousOn)
intro a ha b hb
have hab := hsub (mem_image_of_mem _ ha) (mem_image_of_mem _ hb)
rcases eq_base_or_point p a with ⟨x, rfl⟩ | rfl
· rcases eq_base_or_point p b with ⟨y, rfl⟩ | rfl
· exact congrArg (base p) hab
· exact (hn hb).elim
· exact (hn ha).elim
theorem hasDispersionPoint
TopologyByExample.PointAttachment.hasDispersionPoint
The old dispersion point witnesses dispersion in the attachment.
theorem hasDispersionPoint [T1Space X] [PreconnectedSpace X]
(hp : IsTotallyDisconnected ({p}ᶜ : Set X)) :
HasDispersionPoint (PointAttachment p)
Proof
where
exists_point := ⟨base p p, isTotallyDisconnected_compl_base p hp⟩
theorem specializes_base_retract
TopologyByExample.PointAttachment.specializes_base_retract
Every point specializes to its image in the old copy.
theorem specializes_base_retract (z : PointAttachment p) :
z ⤳ base p (retract p z)
Proof
:= by
rcases eq_base_or_point p z with ⟨x, rfl⟩ | rfl
· exact specializes_rfl
· exact point_specializes_base p
theorem isClosedEmbedding_base
TopologyByExample.PointAttachment.isClosedEmbedding_base
The base is embedded as a closed subspace.
theorem isClosedEmbedding_base : IsClosedEmbedding (base p)
Proof
:= by
refine ⟨Function.LeftInverse.isEmbedding (show Function.LeftInverse (retract p)
(base p) from fun _ ↦ rfl) (continuous_retract p) (continuous_base p), ?_⟩
have he : range (base p) = ({point p} : Set (PointAttachment p))ᶜ := by
ext z
constructor
· rintro ⟨x, rfl⟩ h
have hh := congrArg (fun z : PointAttachment p ↦ z.val.2) h
exact false_ne_true hh
· intro h
rcases eq_base_or_point p z with ⟨x, rfl⟩ | rfl
· exact mem_range_self x
· exact (h rfl).elim
rw [he]
exact (isOpen_point p).isClosed_compl
instance
Paracompact refinements lift through the retraction.
instance [ParacompactSpace X] : ParacompactSpace (PointAttachment p)
Proof
where
locallyFinite_refinement ι u huo huc := by
have hbc : ⋃ i, base p ⁻¹' u i = univ := by
rw [← preimage_iUnion, huc, preimage_univ]
obtain ⟨v, hvo, hvc, hvf, hvu⟩ := precise_refinement (fun i ↦ base p ⁻¹' u i)
(fun i ↦ (huo i).preimage (continuous_base p)) hbc
refine ⟨ι, fun i ↦ retract p ⁻¹' v i,
fun i ↦ (hvo i).preimage (continuous_retract p), ?_,
hvf.preimage_continuous (continuous_retract p), ?_⟩
· rw [← preimage_iUnion, hvc, preimage_univ]
· intro i
refine ⟨i, fun z hz ↦ ?_⟩
exact (specializes_base_retract p z).mem_open (huo i) (hvu i hz)
instance
Normal separation lifts from the original space.
instance [NormalSpace X] : NormalSpace (PointAttachment p)
Proof
where
normal s t hs ht hd := by
obtain ⟨u, v, hu, hv, hsu, htv, huv⟩ := normal_separation
(hs.preimage (continuous_base p)) (ht.preimage (continuous_base p))
(hd.preimage (base p))
refine ⟨retract p ⁻¹' u, retract p ⁻¹' v,
hu.preimage (continuous_retract p), hv.preimage (continuous_retract p),
?_, ?_, huv.preimage (retract p)⟩
· intro z hz
exact hsu ((specializes_base_retract p z).mem_closed hs hz)
· intro z hz
exact htv ((specializes_base_retract p z).mem_closed ht hz)
theorem separatedNhds_of_point_left
TopologyByExample.PointAttachment.separatedNhds_of_point_left
private theorem separatedNhds_of_point_left [T1Space X]
{s t : Set (PointAttachment p)} (ht : point p ∉ t) (hpt : base p p ∉ t)
(h : SeparatedNhds (base p ⁻¹' s) (base p ⁻¹' t)) : SeparatedNhds s t
Proof
:= by
obtain ⟨u, v, hu, hv, hsu, htv, huv⟩ := h
refine ⟨retract p ⁻¹' u ∪ {point p}, retract p ⁻¹' (v \ {p}),
(hu.preimage (continuous_retract p)).union (isOpen_point p),
(hv.sdiff isClosed_singleton).preimage (continuous_retract p), ?_, ?_, ?_⟩
· intro z hz
rcases eq_base_or_point p z with ⟨x, rfl⟩ | rfl
· exact Or.inl (hsu hz)
· exact Or.inr rfl
· intro z hz
rcases eq_base_or_point p z with ⟨x, rfl⟩ | rfl
· refine ⟨htv hz, ?_⟩
intro hxp
change x = p at hxp
subst x
exact hpt hz
· exact (ht hz).elim
· apply Set.disjoint_left.mpr
intro z hz hzv
rcases hz with hzu | rfl
· exact Set.disjoint_left.mp huv hzu hzv.1
· exact hzv.2 rfl
instance
Complete normality is preserved for a T₁ original space.
instance [T1Space X] [CompletelyNormalSpace X] :
CompletelyNormalSpace (PointAttachment p)
Proof
where
completely_normal {s t} hst hts := by
have hbase : SeparatedNhds (base p ⁻¹' s) (base p ⁻¹' t) := by
apply separatedNhds_iff_disjoint.mpr
apply completely_normal
· exact (hst.preimage (base p)).mono_left ((continuous_base p).closure_preimage_subset s)
· exact (hts.preimage (base p)).mono_right ((continuous_base p).closure_preimage_subset t)
apply separatedNhds_iff_disjoint.mp
by_cases hps : point p ∈ s
· apply separatedNhds_of_point_left p ?_ ?_ hbase
· exact fun hpt ↦ Set.disjoint_left.mp hst (subset_closure hps) hpt
· intro hpt
exact Set.disjoint_left.mp hst
((specializes_base_retract p (point p)).mem_closed isClosed_closure
(subset_closure hps)) hpt
· by_cases hpt : point p ∈ t
· apply SeparatedNhds.symm
apply separatedNhds_of_point_left p hps ?_ hbase.symm
intro hsp
exact Set.disjoint_left.mp hts hsp
((specializes_base_retract p (point p)).mem_closed isClosed_closure
(subset_closure hpt))
· obtain ⟨u, v, hu, hv, hsu, htv, huv⟩ := hbase
refine ⟨retract p ⁻¹' u, retract p ⁻¹' v,
hu.preimage (continuous_retract p), hv.preimage (continuous_retract p),
?_, ?_, huv.preimage (retract p)⟩
· intro z hz
rcases eq_base_or_point p z with ⟨x, rfl⟩ | rfl
· exact hsu hz
· exact (hps hz).elim
· intro z hz
rcases eq_base_or_point p z with ⟨x, rfl⟩ | rfl
· exact htv hz
· exact (hpt hz).elim
instance
The attachment is T₀ when the original space is T₀.
instance [T0Space X] : T0Space (PointAttachment p)
Proof
:=
inferInstanceAs (T0Space {z : X × Prop // z.2 → z.1 = p})
instance
A countable base restricts from the product with the Sierpiński space.
instance [SecondCountableTopology X] : SecondCountableTopology (PointAttachment p)
Proof
:= by
let : SecondCountableTopology Prop := inferInstance
let : SecondCountableTopology (X × Prop) := inferInstance
exact TopologicalSpace.Subtype.secondCountableTopology {z : X × Prop | z.2 → z.1 = p}
theorem isQuotientMap_retract
TopologyByExample.PointAttachment.isQuotientMap_retract
The retraction is a quotient map, using its continuous section.
theorem isQuotientMap_retract : IsQuotientMap (retract p)
Proof
:=
IsQuotientMap.of_inverse (continuous_base p) (continuous_retract p) (fun _ ↦ rfl)
theorem locallyConnectedSpace_base
TopologyByExample.PointAttachment.locallyConnectedSpace_base
Local connectedness of the attachment implies it for the original space.
theorem locallyConnectedSpace_base [LocallyConnectedSpace (PointAttachment p)] :
LocallyConnectedSpace X
Proof
:= (isQuotientMap_retract p).isCoinducing.locallyConnectedSpace
theorem limitPointCompact_base
TopologyByExample.PointAttachment.limitPointCompact_base
Limit point compactness restricts to the old closed copy.
theorem limitPointCompact_base
(h : ∀ s : Set (PointAttachment p), s.Infinite → ∃ z, AccPt z (𝓟 s)) :
∀ s : Set X, s.Infinite → ∃ x, AccPt x (𝓟 s)
Proof
:= by
intro s hs
let e := isClosedEmbedding_base p
obtain ⟨z, hz⟩ := h (base p '' s) (hs.image e.injective.injOn)
have hr : z ∈ range (base p) :=
closure_minimal (image_subset_range _ _) e.isClosed_range
(hz.clusterPt.mem_closure_of_mem _ (mem_principal_self _))
obtain ⟨x, rfl⟩ := hr
refine ⟨x, accPt_iff_nhds.mpr ?_⟩
intro u hu
rw [e.isInducing.nhds_eq_comap] at hu
obtain ⟨v, hv, hvu⟩ := hu
obtain ⟨z, ⟨hzv, y, hys, rfl⟩, hyx⟩ := accPt_iff_nhds.mp hz v hv
exact ⟨y, ⟨hvu hzv, hys⟩, fun hxy ↦ hyx (congrArg (base p) hxy)⟩
theorem isRegularOpen_point
TopologyByExample.PointAttachment.isRegularOpen_point
The added singleton is regular open when the old point is not isolated.
theorem isRegularOpen_point [T1Space X] (hp : ¬ IsOpen ({p} : Set X)) :
IsRegularOpen ({point p} : Set (PointAttachment p))
Proof
:= by
have hc : closure ({point p} : Set (PointAttachment p)) ⊆ retract p ⁻¹' {p} := by
apply closure_minimal
· rintro z rfl
rfl
· exact isClosed_singleton.preimage (continuous_retract p)
apply isRegularOpen_iff.mpr
apply subset_antisymm ?_ (isOpen_point p).subset_interior_closure
intro z hz
rcases eq_base_or_point p z with ⟨x, rfl⟩ | rfl
· have hxp : x = p := hc (interior_subset hz)
subst x
exfalso
apply hp
have he : base p ⁻¹' interior (closure ({point p} : Set (PointAttachment p))) = {p} := by
apply subset_antisymm
· intro x hx
exact hc (interior_subset hx)
· rintro x rfl
exact hz
exact he ▸ isOpen_interior.preimage (continuous_base p)
· rfl
theorem semiregularSpace
TopologyByExample.PointAttachment.semiregularSpace
A regular T₁ original space gives a semiregular attachment at a nonisolated point.
theorem semiregularSpace [RegularSpace X] [T1Space X] (hp : ¬ IsOpen ({p} : Set X)) :
SemiregularSpace (PointAttachment p)
Proof
:= by
rw [semiregularSpace_iff_isRegularOpen]
refine isTopologicalBasis_of_isOpen_of_nhds (fun _ hs ↦ IsRegularOpen.isOpen hs)
fun z u hz hu ↦ ?_
rcases eq_base_or_point p z with ⟨x, rfl⟩ | rfl
· obtain ⟨t, ht, htc, htu⟩ := exists_mem_nhds_isClosed_subset
((hu.preimage (continuous_base p)).mem_nhds hz)
let v : Set (PointAttachment p) := retract p ⁻¹' interior t
have hv : IsOpen v := isOpen_interior.preimage (continuous_retract p)
refine ⟨interior (closure v), isRegularOpen_interior_closure _, ?_, ?_⟩
· exact hv.subset_interior_closure (mem_interior_iff_mem_nhds.mpr ht)
· have hcv : closure v ⊆ retract p ⁻¹' t :=
closure_minimal (preimage_mono interior_subset)
(htc.preimage (continuous_retract p))
intro z hz
exact (specializes_base_retract p z).mem_open hu (htu (hcv (interior_subset hz)))
· exact ⟨{point p}, isRegularOpen_point p hp, rfl, singleton_subset_iff.mpr hz⟩