Lean library · module TopologyByExample.Theorems.ArcTransfers
Products of arc connected spaces
Injectivity of one coordinate path makes a product path injective. No separation assumption or nonemptiness condition is required. Projection does not preserve injectivity, so no converse is asserted.
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.
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
instance arcConnectedSpace_prod
TopologyByExample.arcConnectedSpace_prod
Products of two arc connected spaces are arc connected.
instance (priority := 100) arcConnectedSpace_prod [ArcConnectedSpace X] [ArcConnectedSpace Y] :
ArcConnectedSpace (X × Y)
Proof
:= by
constructor
intro a b hab
by_cases hx : a.1 = b.1
· have hy : a.2 ≠ b.2 := fun h ↦ hab (Prod.ext hx h)
obtain ⟨q, hq⟩ := ArcConnectedSpace.exists_injective_path a.2 b.2 hy
obtain ⟨p⟩ := PathPreconnectedSpace.joined a.1 b.1
exact ⟨p.prod q, fun _ _ h ↦ hq (congrArg Prod.snd h)⟩
· obtain ⟨p, hp⟩ := ArcConnectedSpace.exists_injective_path a.1 b.1 hx
obtain ⟨q⟩ := PathPreconnectedSpace.joined a.2 b.2
exact ⟨p.prod q, fun _ _ h ↦ hp (congrArg Prod.fst h)⟩
instance arcConnectedSpace_pi
TopologyByExample.arcConnectedSpace_pi
Arbitrary products of arc connected spaces are arc connected.
instance (priority := 100) arcConnectedSpace_pi {ι : Type*} {Z : ι → Type*}
[∀ i, TopologicalSpace (Z i)] [∀ i, ArcConnectedSpace (Z i)] :
ArcConnectedSpace (∀ i, Z i)
Proof
:= by
classical
constructor
intro a b hab
have hi : ∃ i, a i ≠ b i := by
by_contra h
push Not at h
exact hab (funext h)
obtain ⟨i, hi⟩ := hi
choose p hp using fun j (h : a j ≠ b j) ↦ ArcConnectedSpace.exists_injective_path (a j) (b j) h
let q : ∀ j, Path (a j) (b j) := fun j ↦
if h : a j = b j then h ▸ Path.refl (a j) else p j h
refine ⟨Path.pi q, fun s t h ↦ ?_⟩
have he : q i s = q i t := congrFun h i
simp only [q, dite_eq_right hi] at he
exact hp i hi he
instance locallyArcConnectedSpace_prod
TopologyByExample.locallyArcConnectedSpace_prod
Products of locally arc connected spaces are locally arc connected.
instance (priority := 100) locallyArcConnectedSpace_prod
[LocallyArcConnectedSpace X] [LocallyArcConnectedSpace Y] :
LocallyArcConnectedSpace (X × Y)
Proof
:= by
constructor
intro x U hU hx
obtain ⟨A, B, hAo, hBo, hxA, hxB, hAB⟩ := isOpen_prod_iff.mp hU x.1 x.2 hx
obtain ⟨C, hCo, hxC, hCA, hC⟩ := LocallyArcConnectedSpace.exists_open x.1 A hAo hxA
obtain ⟨D, hDo, hxD, hDB, hD⟩ := LocallyArcConnectedSpace.exists_open x.2 B hBo hxB
let := hC
let := hD
refine ⟨C ×ˢ D, hCo.prod hDo, ⟨hxC, hxD⟩, (prod_mono hCA hDB).trans hAB, ?_⟩
exact (Homeomorph.arcConnectedSpace_iff (Homeomorph.Set.prod C D)).mpr inferInstance