Lean library · module TopologyByExample.Operators.Product
Separation axioms and connectedness properties of binary products
For the separation axioms T₀, R₀, T₁, T₂ (Hausdorff), T₂½ (Urysohn), regularity and complete
regularity, and for metrizability, the product X × Y of two nonempty spaces has the property if
and only if both factors do. Mathlib has every instance except T₂½, added here (also for arbitrary
products ∀ i, Z i). Normality, complete normality and perfect normality pass from the product to
a nonempty factor's companion (a factor is a retract and a subspace of the product), but not in
general from the factors to the product.
The same holds for connectedness (PreconnectedSpace), path connectedness
(TopologyByExample.PathPreconnectedSpace), local connectedness, local path connectedness, total
disconnectedness, total separatedness, zero-dimensionality and discreteness. The direction from
the factors to the product holds for all spaces, empty or not. Mathlib has it for every property
except path preconnectedness, total separatedness and zero-dimensionality, which are added here,
also for arbitrary products ∀ i, Z i. The direction from the product to X needs Y nonempty,
since X × ∅ is empty and has all these properties whatever X is. For Y nonempty, the
projection X × Y → X is a continuous open surjection, which carries the first four properties
from the product to X, and X embeds in the product as X × {y}, which carries the others
(they pass to subspaces, and even back along continuous injections).
Main statements
TopologyByExample.t0Space_prod_iff,TopologyByExample.r0Space_prod_iff,TopologyByExample.t1Space_prod_iff,TopologyByExample.t2Space_prod_iff,TopologyByExample.t25Space_prod_iff,TopologyByExample.regularSpace_prod_iff,TopologyByExample.completelyRegularSpace_prod_iff,TopologyByExample.metrizableSpace_prod_iff;TopologyByExample.normalSpace_of_normalSpace_prod_left,TopologyByExample.completelyNormalSpace_of_completelyNormalSpace_prod_left,TopologyByExample.perfectlyNormalSpace_of_perfectlyNormalSpace_prod_leftand their_rightforms;TopologyByExample.preconnectedSpace_prod_iff,TopologyByExample.pathPreconnectedSpace_prod_iff,TopologyByExample.locallyConnectedSpace_prod_iff,TopologyByExample.locallyPathConnectedSpace_prod_iff,TopologyByExample.totallyDisconnectedSpace_prod_iff,TopologyByExample.totallySeparatedSpace_prod_iff,TopologyByExample.zeroDimensionalSpace_prod_iff,TopologyByExample.discreteTopology_prod_iff: the connectedness properties, for nonempty factors, each (but the last) with its one-directional forms_of_prod_leftand_of_prod_right.- The further properties:
TopologyByExample.functionallyHausdorffSpace_prod_iff,TopologyByExample.locallyRelativelyCompactSpace_prod_iff,TopologyByExample.pseudocompactSpace_of_prod_left,TopologyByExample.isCompletelyMetrizableSpace_prod_iff,TopologyByExample.not_isMeagre_univ_of_prod_left,TopologyByExample.preirreducibleSpace_prod_iff,TopologyByExample.ultraconnectedSpace_prod_iff,TopologyByExample.stronglyConnectedSpace_prod_iff,TopologyByExample.scatteredSpace_prod_iff,TopologyByExample.totallyPathDisconnectedSpace_prod_iff,TopologyByExample.ccc_of_ccc_prod_left, with instances for binary and arbitrary products where the property is preserved.
Tags
product, separation axiom, Urysohn, regular, normal, connected, path connected, locally connected, totally disconnected, totally separated, zero-dimensional
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
T₂½ for products
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
instance
The product of two T₂½ spaces is T₂½.
instance [T25Space X] [T25Space Y] : T25Space (X × Y)
Proof
:= by
refine t25Space_of_exists_nhds_disjoint_closure fun a b hab ↦ ?_
rcases not_and_or.1 (mt Prod.ext_iff.2 hab) with h | h
· obtain ⟨s, hs, t, ht, hst⟩ := exists_nhds_disjoint_closure h
refine ⟨Prod.fst ⁻¹' s, continuous_fst.continuousAt hs, Prod.fst ⁻¹' t,
continuous_fst.continuousAt ht, ?_⟩
exact (hst.preimage _).mono (continuous_fst.closure_preimage_subset _)
(continuous_fst.closure_preimage_subset _)
· obtain ⟨s, hs, t, ht, hst⟩ := exists_nhds_disjoint_closure h
refine ⟨Prod.snd ⁻¹' s, continuous_snd.continuousAt hs, Prod.snd ⁻¹' t,
continuous_snd.continuousAt ht, ?_⟩
exact (hst.preimage _).mono (continuous_snd.closure_preimage_subset _)
(continuous_snd.closure_preimage_subset _)
instance
A product of T₂½ spaces is T₂½.
instance {ι : Type*} {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)] [∀ i, T25Space (Z i)] :
T25Space (∀ i, Z i)
Proof
:= by
refine t25Space_of_exists_nhds_disjoint_closure fun a b hab ↦ ?_
obtain ⟨i, hi⟩ := Function.ne_iff.1 hab
obtain ⟨s, hs, t, ht, hst⟩ := exists_nhds_disjoint_closure hi
refine ⟨Function.eval i ⁻¹' s, (continuous_apply i).continuousAt hs, Function.eval i ⁻¹' t,
(continuous_apply i).continuousAt ht, ?_⟩
exact (hst.preimage _).mono ((continuous_apply i).closure_preimage_subset _)
((continuous_apply i).closure_preimage_subset _)
Binary products
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
theorem t0Space_prod_iff
TopologyByExample.t0Space_prod_iff
A product of nonempty spaces is T₀ if and only if both factors are.
theorem t0Space_prod_iff [Nonempty X] [Nonempty Y] :
T0Space (X × Y) ↔ T0Space X ∧ T0Space Y
Proof
:=
⟨fun _ ↦ ⟨(isEmbedding_prodMkLeft (Classical.arbitrary Y)).t0Space,
(isEmbedding_prodMkRight (Classical.arbitrary X)).t0Space⟩, fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is T₀ iff both factors are
theorem r0Space_prod_iff
TopologyByExample.r0Space_prod_iff
A product of nonempty spaces is R₀ if and only if both factors are.
theorem r0Space_prod_iff [Nonempty X] [Nonempty Y] :
R0Space (X × Y) ↔ R0Space X ∧ R0Space Y
Proof
:=
⟨fun _ ↦ ⟨(isEmbedding_prodMkLeft (Classical.arbitrary Y)).isInducing.r0Space,
(isEmbedding_prodMkRight (Classical.arbitrary X)).isInducing.r0Space⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is R₀ iff both factors are
theorem t1Space_prod_iff
TopologyByExample.t1Space_prod_iff
A product of nonempty spaces is T₁ if and only if both factors are.
theorem t1Space_prod_iff [Nonempty X] [Nonempty Y] :
T1Space (X × Y) ↔ T1Space X ∧ T1Space Y
Proof
:=
⟨fun _ ↦ ⟨(isEmbedding_prodMkLeft (Classical.arbitrary Y)).t1Space,
(isEmbedding_prodMkRight (Classical.arbitrary X)).t1Space⟩, fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is T₁ iff both factors are
theorem t2Space_prod_iff
TopologyByExample.t2Space_prod_iff
A product of nonempty spaces is Hausdorff if and only if both factors are.
theorem t2Space_prod_iff [Nonempty X] [Nonempty Y] :
T2Space (X × Y) ↔ T2Space X ∧ T2Space Y
Proof
:=
⟨fun _ ↦ ⟨(isEmbedding_prodMkLeft (Classical.arbitrary Y)).t2Space,
(isEmbedding_prodMkRight (Classical.arbitrary X)).t2Space⟩, fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is Hausdorff iff both factors are
theorem t25Space_prod_iff
TopologyByExample.t25Space_prod_iff
A product of nonempty spaces is T₂½ if and only if both factors are.
theorem t25Space_prod_iff [Nonempty X] [Nonempty Y] :
T25Space (X × Y) ↔ T25Space X ∧ T25Space Y
Proof
:=
⟨fun _ ↦ ⟨(isEmbedding_prodMkLeft (Classical.arbitrary Y)).t25Space,
(isEmbedding_prodMkRight (Classical.arbitrary X)).t25Space⟩, fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is Urysohn iff both factors are
theorem regularSpace_prod_iff
TopologyByExample.regularSpace_prod_iff
A product of nonempty spaces is regular if and only if both factors are.
theorem regularSpace_prod_iff [Nonempty X] [Nonempty Y] :
RegularSpace (X × Y) ↔ RegularSpace X ∧ RegularSpace Y
Proof
:=
⟨fun _ ↦ ⟨(isEmbedding_prodMkLeft (Classical.arbitrary Y)).isInducing.regularSpace,
(isEmbedding_prodMkRight (Classical.arbitrary X)).isInducing.regularSpace⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is regular iff both factors are
theorem completelyRegularSpace_prod_iff
TopologyByExample.completelyRegularSpace_prod_iff
A product of nonempty spaces is completely regular if and only if both factors are.
theorem completelyRegularSpace_prod_iff [Nonempty X] [Nonempty Y] :
CompletelyRegularSpace (X × Y) ↔ CompletelyRegularSpace X ∧ CompletelyRegularSpace Y
Proof
:=
⟨fun _ ↦ ⟨(isEmbedding_prodMkLeft (Classical.arbitrary Y)).isInducing.completelyRegularSpace,
(isEmbedding_prodMkRight (Classical.arbitrary X)).isInducing.completelyRegularSpace⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is completely regular iff both factors are
theorem metrizableSpace_prod_iff
TopologyByExample.metrizableSpace_prod_iff
A product of nonempty spaces is metrizable if and only if both factors are.
theorem metrizableSpace_prod_iff [Nonempty X] [Nonempty Y] :
MetrizableSpace (X × Y) ↔ MetrizableSpace X ∧ MetrizableSpace Y
Proof
:=
⟨fun _ ↦ ⟨(isEmbedding_prodMkLeft (Classical.arbitrary Y)).metrizableSpace,
(isEmbedding_prodMkRight (Classical.arbitrary X)).metrizableSpace⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is metrizable iff both factors are
theorem normalSpace_of_normalSpace_prod_left
TopologyByExample.normalSpace_of_normalSpace_prod_left
If X × Y is normal and Y is nonempty, then X is normal: it is a retract of the
product.
theorem normalSpace_of_normalSpace_prod_left [Nonempty Y] [NormalSpace (X × Y)] :
NormalSpace X
Proof
:=
normalSpace_of_leftInverse (continuous_id.prodMk continuous_const) continuous_fst
(f := fun x ↦ (x, Classical.arbitrary Y)) fun _ ↦ rfl
On this site: Theorem: If a product is normal and its second factor is nonempty, its first factor is normal
theorem normalSpace_of_normalSpace_prod_right
TopologyByExample.normalSpace_of_normalSpace_prod_right
If X × Y is normal and X is nonempty, then Y is normal: it is a retract of the
product.
theorem normalSpace_of_normalSpace_prod_right [Nonempty X] [NormalSpace (X × Y)] :
NormalSpace Y
Proof
:=
normalSpace_of_leftInverse (continuous_const.prodMk continuous_id) continuous_snd
(f := fun y ↦ (Classical.arbitrary X, y)) fun _ ↦ rfl
On this site: Theorem: If a product is normal and its first factor is nonempty, its second factor is normal
theorem completelyNormalSpace_of_completelyNormalSpace_prod_left
TopologyByExample.completelyNormalSpace_of_completelyNormalSpace_prod_left
If X × Y is completely normal and Y is nonempty, then X is completely normal.
theorem completelyNormalSpace_of_completelyNormalSpace_prod_left [Nonempty Y]
[CompletelyNormalSpace (X × Y)] : CompletelyNormalSpace X
Proof
:=
(isEmbedding_prodMkLeft (Classical.arbitrary Y)).isInducing.completelyNormalSpace
On this site: Theorem: If a product is completely normal and its second factor is nonempty, its first factor is completely normal
theorem completelyNormalSpace_of_completelyNormalSpace_prod_right
TopologyByExample.completelyNormalSpace_of_completelyNormalSpace_prod_right
If X × Y is completely normal and X is nonempty, then Y is completely normal.
theorem completelyNormalSpace_of_completelyNormalSpace_prod_right [Nonempty X]
[CompletelyNormalSpace (X × Y)] : CompletelyNormalSpace Y
Proof
:=
(isEmbedding_prodMkRight (Classical.arbitrary X)).isInducing.completelyNormalSpace
On this site: Theorem: If a product is completely normal and its first factor is nonempty, its second factor is completely normal
theorem perfectlyNormalSpace_of_perfectlyNormalSpace_prod_left
TopologyByExample.perfectlyNormalSpace_of_perfectlyNormalSpace_prod_left
If X × Y is perfectly normal and Y is nonempty, then X is perfectly normal.
theorem perfectlyNormalSpace_of_perfectlyNormalSpace_prod_left [Nonempty Y]
[PerfectlyNormalSpace (X × Y)] : PerfectlyNormalSpace X
Proof
:=
(isEmbedding_prodMkLeft (Classical.arbitrary Y)).isInducing.perfectlyNormalSpace
On this site: Theorem: If a product is perfectly normal and its second factor is nonempty, its first factor is perfectly normal
theorem perfectlyNormalSpace_of_perfectlyNormalSpace_prod_right
TopologyByExample.perfectlyNormalSpace_of_perfectlyNormalSpace_prod_right
If X × Y is perfectly normal and X is nonempty, then Y is perfectly normal.
theorem perfectlyNormalSpace_of_perfectlyNormalSpace_prod_right [Nonempty X]
[PerfectlyNormalSpace (X × Y)] : PerfectlyNormalSpace Y
Proof
:=
(isEmbedding_prodMkRight (Classical.arbitrary X)).isInducing.perfectlyNormalSpace
On this site: Theorem: If a product is perfectly normal and its first factor is nonempty, its second factor is perfectly normal
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
Connectedness properties: from the factors to the product
instance
The product of two path preconnected spaces is path preconnected.
instance [PathPreconnectedSpace X] [PathPreconnectedSpace Y] :
PathPreconnectedSpace (X × Y)
Proof
:=
⟨fun a b ↦ (PathPreconnectedSpace.joined a.1 b.1).prod (PathPreconnectedSpace.joined a.2 b.2)⟩
instance
A product of path preconnected spaces is path preconnected.
instance {ι : Type*} {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, PathPreconnectedSpace (Z i)] : PathPreconnectedSpace (∀ i, Z i)
Proof
:=
⟨fun a b ↦ Joined.pi fun i ↦ PathPreconnectedSpace.joined (a i) (b i)⟩
instance
The product of two totally separated spaces is totally separated.
instance [TotallySeparatedSpace X] [TotallySeparatedSpace Y] :
TotallySeparatedSpace (X × Y)
Proof
:=
totallySeparatedSpace_iff_exists_isClopen.2 fun a b hab ↦ by
rcases not_and_or.1 (mt Prod.ext_iff.2 hab) with h | h
· obtain ⟨U, hU, ha, hb⟩ := exists_isClopen_of_totally_separated h
exact ⟨Prod.fst ⁻¹' U, hU.preimage continuous_fst, ha, hb⟩
· obtain ⟨U, hU, ha, hb⟩ := exists_isClopen_of_totally_separated h
exact ⟨Prod.snd ⁻¹' U, hU.preimage continuous_snd, ha, hb⟩
instance
A product of totally separated spaces is totally separated.
instance {ι : Type*} {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, TotallySeparatedSpace (Z i)] : TotallySeparatedSpace (∀ i, Z i)
Proof
:=
totallySeparatedSpace_iff_exists_isClopen.2 fun a b hab ↦ by
obtain ⟨i, hi⟩ := Function.ne_iff.1 hab
obtain ⟨U, hU, ha, hb⟩ := exists_isClopen_of_totally_separated hi
exact ⟨Function.eval i ⁻¹' U, hU.preimage (continuous_apply i), ha, hb⟩
instance
The product of two zero-dimensional spaces is zero-dimensional: the products of clopen sets form a base.
instance [ZeroDimensionalSpace X] [ZeroDimensionalSpace Y] : ZeroDimensionalSpace (X × Y)
Proof
:=
.of_isTopologicalBasis (by rintro _ ⟨s, hs, t, ht, rfl⟩; exact IsClopen.prod hs ht)
(isTopologicalBasis_isClopen.prod isTopologicalBasis_isClopen)
instance
A product of zero-dimensional spaces is zero-dimensional: the boxes over finitely many coordinates with clopen sides form a base.
instance {ι : Type*} {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, ZeroDimensionalSpace (Z i)] : ZeroDimensionalSpace (∀ i, Z i)
Proof
:=
.of_isTopologicalBasis
(by
rintro _ ⟨U, F, hU, rfl⟩
exact ⟨isClosed_set_pi fun i hi ↦ (hU i hi).isClosed,
isOpen_set_pi F.finite_toSet fun i hi ↦ (hU i hi).isOpen⟩)
(isTopologicalBasis_pi fun _ ↦ isTopologicalBasis_isClopen)
Connectedness properties: from the product to the factors
theorem preconnectedSpace_of_prod_left
TopologyByExample.preconnectedSpace_of_prod_left
If X × Y is preconnected and Y is nonempty, then X is preconnected.
theorem preconnectedSpace_of_prod_left [Nonempty Y] [PreconnectedSpace (X × Y)] :
PreconnectedSpace X
Proof
:=
preconnectedSpace_of_surjective (f := (Prod.fst : X × Y → X)) Prod.fst_surjective
continuous_fst
theorem preconnectedSpace_of_prod_right
TopologyByExample.preconnectedSpace_of_prod_right
If X × Y is preconnected and X is nonempty, then Y is preconnected.
theorem preconnectedSpace_of_prod_right [Nonempty X] [PreconnectedSpace (X × Y)] :
PreconnectedSpace Y
Proof
:=
preconnectedSpace_of_surjective (f := (Prod.snd : X × Y → Y)) Prod.snd_surjective
continuous_snd
theorem preconnectedSpace_prod_iff
TopologyByExample.preconnectedSpace_prod_iff
A product of nonempty spaces is preconnected if and only if both factors are.
theorem preconnectedSpace_prod_iff [Nonempty X] [Nonempty Y] :
PreconnectedSpace (X × Y) ↔ PreconnectedSpace X ∧ PreconnectedSpace Y
Proof
:=
⟨fun _ ↦
⟨preconnectedSpace_of_prod_left (Y := Y), preconnectedSpace_of_prod_right (X := X)⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is connected iff both factors are
theorem pathPreconnectedSpace_of_prod_left
TopologyByExample.pathPreconnectedSpace_of_prod_left
If X × Y is path preconnected and Y is nonempty, then X is path preconnected.
theorem pathPreconnectedSpace_of_prod_left [Nonempty Y] [PathPreconnectedSpace (X × Y)] :
PathPreconnectedSpace X
Proof
:=
pathPreconnectedSpace_of_surjective (f := (Prod.fst : X × Y → X)) Prod.fst_surjective
continuous_fst
theorem pathPreconnectedSpace_of_prod_right
TopologyByExample.pathPreconnectedSpace_of_prod_right
If X × Y is path preconnected and X is nonempty, then Y is path preconnected.
theorem pathPreconnectedSpace_of_prod_right [Nonempty X] [PathPreconnectedSpace (X × Y)] :
PathPreconnectedSpace Y
Proof
:=
pathPreconnectedSpace_of_surjective (f := (Prod.snd : X × Y → Y)) Prod.snd_surjective
continuous_snd
theorem pathPreconnectedSpace_prod_iff
TopologyByExample.pathPreconnectedSpace_prod_iff
A product of nonempty spaces is path preconnected if and only if both factors are.
theorem pathPreconnectedSpace_prod_iff [Nonempty X] [Nonempty Y] :
PathPreconnectedSpace (X × Y) ↔ PathPreconnectedSpace X ∧ PathPreconnectedSpace Y
Proof
:=
⟨fun _ ↦
⟨pathPreconnectedSpace_of_prod_left (Y := Y), pathPreconnectedSpace_of_prod_right (X := X)⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is path connected iff both factors are
theorem locallyConnectedSpace_of_prod_left
TopologyByExample.locallyConnectedSpace_of_prod_left
If X × Y is locally connected and Y is nonempty, then X is locally connected.
theorem locallyConnectedSpace_of_prod_left [Nonempty Y] [LocallyConnectedSpace (X × Y)] :
LocallyConnectedSpace X
Proof
:=
(isQuotientMap_fst (X := X) (Y := Y)).isCoinducing.locallyConnectedSpace
theorem locallyConnectedSpace_of_prod_right
TopologyByExample.locallyConnectedSpace_of_prod_right
If X × Y is locally connected and X is nonempty, then Y is locally connected.
theorem locallyConnectedSpace_of_prod_right [Nonempty X] [LocallyConnectedSpace (X × Y)] :
LocallyConnectedSpace Y
Proof
:=
(isQuotientMap_snd (X := X) (Y := Y)).isCoinducing.locallyConnectedSpace
theorem locallyConnectedSpace_prod_iff
TopologyByExample.locallyConnectedSpace_prod_iff
A product of nonempty spaces is locally connected if and only if both factors are.
theorem locallyConnectedSpace_prod_iff [Nonempty X] [Nonempty Y] :
LocallyConnectedSpace (X × Y) ↔ LocallyConnectedSpace X ∧ LocallyConnectedSpace Y
Proof
:=
⟨fun _ ↦
⟨locallyConnectedSpace_of_prod_left (Y := Y), locallyConnectedSpace_of_prod_right (X := X)⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is locally connected iff both factors are
theorem locallyPathConnectedSpace_of_prod_left
TopologyByExample.locallyPathConnectedSpace_of_prod_left
If X × Y is locally path connected and Y is nonempty, then X is locally path
connected.
theorem locallyPathConnectedSpace_of_prod_left [Nonempty Y]
[LocallyPathConnectedSpace (X × Y)] : LocallyPathConnectedSpace X
Proof
:=
(isQuotientMap_fst (X := X) (Y := Y)).locallyPathConnectedSpace
theorem locallyPathConnectedSpace_of_prod_right
TopologyByExample.locallyPathConnectedSpace_of_prod_right
If X × Y is locally path connected and X is nonempty, then Y is locally path
connected.
theorem locallyPathConnectedSpace_of_prod_right [Nonempty X]
[LocallyPathConnectedSpace (X × Y)] : LocallyPathConnectedSpace Y
Proof
:=
(isQuotientMap_snd (X := X) (Y := Y)).locallyPathConnectedSpace
theorem locallyPathConnectedSpace_prod_iff
TopologyByExample.locallyPathConnectedSpace_prod_iff
A product of nonempty spaces is locally path connected if and only if both factors are.
theorem locallyPathConnectedSpace_prod_iff [Nonempty X] [Nonempty Y] :
LocallyPathConnectedSpace (X × Y) ↔
LocallyPathConnectedSpace X ∧ LocallyPathConnectedSpace Y
Proof
:=
⟨fun _ ↦
⟨locallyPathConnectedSpace_of_prod_left (Y := Y),
locallyPathConnectedSpace_of_prod_right (X := X)⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is locally path connected iff both factors are
theorem totallyDisconnectedSpace_of_prod_left
TopologyByExample.totallyDisconnectedSpace_of_prod_left
If X × Y is totally disconnected and Y is nonempty, then X is totally disconnected.
theorem totallyDisconnectedSpace_of_prod_left [Nonempty Y] [TotallyDisconnectedSpace (X × Y)] :
TotallyDisconnectedSpace X
Proof
:=
let e := isEmbedding_prodMkLeft (X := X) (Classical.arbitrary Y)
totallyDisconnectedSpace_of_injective e.continuous e.injective
theorem totallyDisconnectedSpace_of_prod_right
TopologyByExample.totallyDisconnectedSpace_of_prod_right
If X × Y is totally disconnected and X is nonempty, then Y is totally disconnected.
theorem totallyDisconnectedSpace_of_prod_right [Nonempty X] [TotallyDisconnectedSpace (X × Y)] :
TotallyDisconnectedSpace Y
Proof
:=
let e := isEmbedding_prodMkRight (Y := Y) (Classical.arbitrary X)
totallyDisconnectedSpace_of_injective e.continuous e.injective
theorem totallyDisconnectedSpace_prod_iff
TopologyByExample.totallyDisconnectedSpace_prod_iff
A product of nonempty spaces is totally disconnected if and only if both factors are.
theorem totallyDisconnectedSpace_prod_iff [Nonempty X] [Nonempty Y] :
TotallyDisconnectedSpace (X × Y) ↔ TotallyDisconnectedSpace X ∧ TotallyDisconnectedSpace Y
Proof
:=
⟨fun _ ↦
⟨totallyDisconnectedSpace_of_prod_left (Y := Y),
totallyDisconnectedSpace_of_prod_right (X := X)⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is totally disconnected iff both factors are
theorem totallySeparatedSpace_of_prod_left
TopologyByExample.totallySeparatedSpace_of_prod_left
If X × Y is totally separated and Y is nonempty, then X is totally separated.
theorem totallySeparatedSpace_of_prod_left [Nonempty Y] [TotallySeparatedSpace (X × Y)] :
TotallySeparatedSpace X
Proof
:=
let e := isEmbedding_prodMkLeft (X := X) (Classical.arbitrary Y)
totallySeparatedSpace_of_injective e.continuous e.injective
theorem totallySeparatedSpace_of_prod_right
TopologyByExample.totallySeparatedSpace_of_prod_right
If X × Y is totally separated and X is nonempty, then Y is totally separated.
theorem totallySeparatedSpace_of_prod_right [Nonempty X] [TotallySeparatedSpace (X × Y)] :
TotallySeparatedSpace Y
Proof
:=
let e := isEmbedding_prodMkRight (Y := Y) (Classical.arbitrary X)
totallySeparatedSpace_of_injective e.continuous e.injective
theorem totallySeparatedSpace_prod_iff
TopologyByExample.totallySeparatedSpace_prod_iff
A product of nonempty spaces is totally separated if and only if both factors are.
theorem totallySeparatedSpace_prod_iff [Nonempty X] [Nonempty Y] :
TotallySeparatedSpace (X × Y) ↔ TotallySeparatedSpace X ∧ TotallySeparatedSpace Y
Proof
:=
⟨fun _ ↦
⟨totallySeparatedSpace_of_prod_left (Y := Y), totallySeparatedSpace_of_prod_right (X := X)⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is totally separated iff both factors are
theorem zeroDimensionalSpace_of_prod_left
TopologyByExample.zeroDimensionalSpace_of_prod_left
If X × Y is zero-dimensional and Y is nonempty, then X is zero-dimensional.
theorem zeroDimensionalSpace_of_prod_left [Nonempty Y] [ZeroDimensionalSpace (X × Y)] :
ZeroDimensionalSpace X
Proof
:=
zeroDimensionalSpace_of_isInducing (isEmbedding_prodMkLeft (Classical.arbitrary Y)).isInducing
theorem zeroDimensionalSpace_of_prod_right
TopologyByExample.zeroDimensionalSpace_of_prod_right
If X × Y is zero-dimensional and X is nonempty, then Y is zero-dimensional.
theorem zeroDimensionalSpace_of_prod_right [Nonempty X] [ZeroDimensionalSpace (X × Y)] :
ZeroDimensionalSpace Y
Proof
:=
zeroDimensionalSpace_of_isInducing (isEmbedding_prodMkRight (Classical.arbitrary X)).isInducing
theorem zeroDimensionalSpace_prod_iff
TopologyByExample.zeroDimensionalSpace_prod_iff
A product of nonempty spaces is zero-dimensional if and only if both factors are.
theorem zeroDimensionalSpace_prod_iff [Nonempty X] [Nonempty Y] :
ZeroDimensionalSpace (X × Y) ↔ ZeroDimensionalSpace X ∧ ZeroDimensionalSpace Y
Proof
:=
⟨fun _ ↦
⟨zeroDimensionalSpace_of_prod_left (Y := Y), zeroDimensionalSpace_of_prod_right (X := X)⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is zero-dimensional iff both factors are
theorem discreteTopology_prod_iff
TopologyByExample.discreteTopology_prod_iff
A product of nonempty spaces is discrete if and only if both factors are.
theorem discreteTopology_prod_iff [Nonempty X] [Nonempty Y] :
DiscreteTopology (X × Y) ↔ DiscreteTopology X ∧ DiscreteTopology Y
Proof
:=
⟨fun _ ↦ ⟨(isEmbedding_prodMkLeft (Classical.arbitrary Y)).discreteTopology,
(isEmbedding_prodMkRight (Classical.arbitrary X)).discreteTopology⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
Functional Hausdorffness and semiregularity
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
instance
A product of functionally Hausdorff spaces is functionally Hausdorff: two distinct points differ in some coordinate.
instance {ι : Type*} {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, FunctionallyHausdorffSpace (Z i)] : FunctionallyHausdorffSpace (∀ i, Z i)
Proof
:=
⟨fun x y hxy ↦ by
obtain ⟨i, hi⟩ := Function.ne_iff.1 hxy
obtain ⟨f, hx, hy⟩ := FunctionallyHausdorffSpace.exists_continuousMap _ _ hi
exact ⟨f.comp ⟨fun z : ∀ j, Z j ↦ z i, continuous_apply i⟩, hx, hy⟩⟩
instance
The product of two functionally Hausdorff spaces is functionally Hausdorff.
instance [FunctionallyHausdorffSpace X] [FunctionallyHausdorffSpace Y] :
FunctionallyHausdorffSpace (X × Y)
Proof
:=
⟨fun x y hxy ↦ by
by_cases h : x.1 = y.1
· obtain ⟨f, hx, hy⟩ := FunctionallyHausdorffSpace.exists_continuousMap x.2 y.2
fun h' ↦ hxy (Prod.ext h h')
exact ⟨f.comp ⟨Prod.snd, continuous_snd⟩, hx, hy⟩
· obtain ⟨f, hx, hy⟩ := FunctionallyHausdorffSpace.exists_continuousMap _ _ h
exact ⟨f.comp ⟨Prod.fst, continuous_fst⟩, hx, hy⟩⟩
theorem functionallyHausdorffSpace_prod_iff
TopologyByExample.functionallyHausdorffSpace_prod_iff
A product of nonempty spaces is functionally Hausdorff if and only if both factors are.
theorem functionallyHausdorffSpace_prod_iff [Nonempty X] [Nonempty Y] :
FunctionallyHausdorffSpace (X × Y) ↔
FunctionallyHausdorffSpace X ∧ FunctionallyHausdorffSpace Y
Proof
:=
⟨fun _ ↦ ⟨.of_injective_continuous (f := fun x ↦ (x, Classical.arbitrary Y))
(fun _ _ h ↦ congrArg Prod.fst h) (continuous_id.prodMk continuous_const),
.of_injective_continuous (f := fun y ↦ (Classical.arbitrary X, y))
(fun _ _ h ↦ congrArg Prod.snd h) (continuous_const.prodMk continuous_id)⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is functionally Hausdorff iff both factors are
instance
The product of two semiregular spaces is semiregular: products of regular open sets are regular open and form a base.
instance [SemiregularSpace X] [SemiregularSpace Y] : SemiregularSpace (X × Y)
Proof
:= by
rw [semiregularSpace_iff_isRegularOpen]
refine ((semiregularSpace_iff_isRegularOpen.1 ‹SemiregularSpace X›).prod
(semiregularSpace_iff_isRegularOpen.1 ‹SemiregularSpace Y›)).of_isOpen_of_subset
(fun _ hs ↦ IsRegularOpen.isOpen hs) ?_
rintro _ ⟨s, hs, t, ht, rfl⟩
exact IsRegularOpen.prod hs ht
instance
A product of semiregular spaces is semiregular: the products of regular open sets over finitely many coordinates are regular open and form a base.
instance {ι : Type*} {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, SemiregularSpace (Z i)] : SemiregularSpace (∀ i, Z i)
Proof
:= by
rw [semiregularSpace_iff_isRegularOpen]
refine (isTopologicalBasis_pi (T := fun i ↦ {s : Set (Z i) | IsRegularOpen s})
fun i ↦ semiregularSpace_iff_isRegularOpen.1 inferInstance).of_isOpen_of_subset
(fun _ hs ↦ IsRegularOpen.isOpen hs) ?_
rintro _ ⟨U, F, hU, rfl⟩
exact IsRegularOpen.pi F.finite_toSet fun i hi ↦ hU i hi
Limit point compactness, pseudocompactness and local relative compactness
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
theorem pseudocompactSpace_of_prod_left
TopologyByExample.pseudocompactSpace_of_prod_left
If a product with a nonempty space is pseudocompact, so is the first factor.
theorem pseudocompactSpace_of_prod_left [Nonempty Y] [PseudocompactSpace (X × Y)] :
PseudocompactSpace X
Proof
:=
.of_surjective (X := X × Y) continuous_fst Prod.fst_surjective
On this site: Theorem: If a product is pseudocompact and its second factor is nonempty, its first factor is pseudocompact
theorem pseudocompactSpace_of_prod_right
TopologyByExample.pseudocompactSpace_of_prod_right
If a product with a nonempty space is pseudocompact, so is the second factor.
theorem pseudocompactSpace_of_prod_right [Nonempty X] [PseudocompactSpace (X × Y)] :
PseudocompactSpace Y
Proof
:=
.of_surjective (X := X × Y) continuous_snd Prod.snd_surjective
On this site: Theorem: If a product is pseudocompact and its first factor is nonempty, its second factor is pseudocompact
instance
A product of two locally relatively compact spaces is locally relatively compact.
instance [LocallyRelativelyCompactSpace X] [LocallyRelativelyCompactSpace Y] :
LocallyRelativelyCompactSpace (X × Y)
Proof
:=
⟨fun ⟨x, y⟩ ↦
let ⟨U, hU, hx, hc⟩ := LocallyRelativelyCompactSpace.exists_isOpen_isCompact_closure x
let ⟨V, hV, hy, hd⟩ := LocallyRelativelyCompactSpace.exists_isOpen_isCompact_closure y
⟨U ×ˢ V, hU.prod hV, ⟨hx, hy⟩, by rw [closure_prod_eq]; exact hc.prod hd⟩⟩
theorem locallyRelativelyCompactSpace_of_prod_left
TopologyByExample.locallyRelativelyCompactSpace_of_prod_left
If a product with a nonempty space is locally relatively compact, so is the first factor: a basic open set inside an open set with compact closure has compact closure, and so does its first side.
theorem locallyRelativelyCompactSpace_of_prod_left [Nonempty Y]
[LocallyRelativelyCompactSpace (X × Y)] : LocallyRelativelyCompactSpace X
Proof
:= by
refine ⟨fun x ↦ ?_⟩
obtain ⟨y⟩ := ‹Nonempty Y›
obtain ⟨W, hW, hxy, hc⟩ := LocallyRelativelyCompactSpace.exists_isOpen_isCompact_closure (x, y)
obtain ⟨U, V, hU, hV, hx, hy, hUV⟩ := isOpen_prod_iff.1 hW x y hxy
have : IsCompact (closure U ×ˢ closure V) := by
rw [← closure_prod_eq]
exact hc.of_isClosed_subset isClosed_closure (closure_mono hUV)
have := this.image continuous_fst
rw [fst_image_prod _ ⟨y, subset_closure hy⟩] at this
exact ⟨U, hU, hx, this⟩
theorem locallyRelativelyCompactSpace_of_prod_right
TopologyByExample.locallyRelativelyCompactSpace_of_prod_right
If a product with a nonempty space is locally relatively compact, so is the second factor.
theorem locallyRelativelyCompactSpace_of_prod_right [Nonempty X]
[LocallyRelativelyCompactSpace (X × Y)] : LocallyRelativelyCompactSpace Y
Proof
:= by
refine ⟨fun y ↦ ?_⟩
obtain ⟨x⟩ := ‹Nonempty X›
obtain ⟨W, hW, hxy, hc⟩ := LocallyRelativelyCompactSpace.exists_isOpen_isCompact_closure (x, y)
obtain ⟨U, V, hU, hV, hx, hy, hUV⟩ := isOpen_prod_iff.1 hW x y hxy
have : IsCompact (closure U ×ˢ closure V) := by
rw [← closure_prod_eq]
exact hc.of_isClosed_subset isClosed_closure (closure_mono hUV)
have := this.image continuous_snd
rw [snd_image_prod ⟨x, subset_closure hx⟩] at this
exact ⟨V, hV, hy, this⟩
theorem locallyRelativelyCompactSpace_prod_iff
TopologyByExample.locallyRelativelyCompactSpace_prod_iff
A product of two nonempty spaces is locally relatively compact if and only if both factors are.
theorem locallyRelativelyCompactSpace_prod_iff [Nonempty X] [Nonempty Y] :
LocallyRelativelyCompactSpace (X × Y) ↔
LocallyRelativelyCompactSpace X ∧ LocallyRelativelyCompactSpace Y
Proof
:=
⟨fun _ ↦ ⟨locallyRelativelyCompactSpace_of_prod_left (Y := Y),
locallyRelativelyCompactSpace_of_prod_right (X := X)⟩, fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is locally relatively compact iff both factors are
Complete metrizability and second category
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
theorem isCompletelyMetrizableSpace_prod_iff
TopologyByExample.isCompletelyMetrizableSpace_prod_iff
A product of two nonempty spaces is completely metrizable if and only if both factors are.
theorem isCompletelyMetrizableSpace_prod_iff [Nonempty X] [Nonempty Y] :
IsCompletelyMetrizableSpace (X × Y) ↔
IsCompletelyMetrizableSpace X ∧ IsCompletelyMetrizableSpace Y
Proof
:= by
refine ⟨fun _ ↦ ?_, fun ⟨_, _⟩ ↦ inferInstance⟩
obtain ⟨x₀⟩ := ‹Nonempty X›
obtain ⟨y₀⟩ := ‹Nonempty Y›
have : MetrizableSpace X := (isEmbedding_prodMkLeft y₀).metrizableSpace
have : MetrizableSpace Y := (isEmbedding_prodMkRight x₀).metrizableSpace
refine ⟨IsClosedEmbedding.IsCompletelyMetrizableSpace ⟨isEmbedding_prodMkLeft y₀, ?_⟩,
IsClosedEmbedding.IsCompletelyMetrizableSpace ⟨isEmbedding_prodMkRight x₀, ?_⟩⟩
· have : range (fun x : X ↦ (x, y₀)) = Prod.snd ⁻¹' {y₀} := by
ext ⟨x, y⟩
simp [eq_comm]
rw [this]
exact isClosed_singleton.preimage continuous_snd
· have : range (Prod.mk x₀ : Y → X × Y) = Prod.fst ⁻¹' {x₀} := by
ext ⟨x, y⟩
simp [eq_comm]
rw [this]
exact isClosed_singleton.preimage continuous_fst
On this site: Theorem: A product of two nonempty spaces is completely metrizable iff both factors are
theorem not_isMeagre_univ_of_prod_left
TopologyByExample.not_isMeagre_univ_of_prod_left
If a product is of second category in itself, so is its first factor.
theorem not_isMeagre_univ_of_prod_left (h : ¬IsMeagre (univ : Set (X × Y))) :
¬IsMeagre (univ : Set X)
Proof
:= fun hX ↦
h (by simpa using hX.preimage_of_isOpenMap continuous_fst isOpenMap_fst)
On this site: Theorem: If a product is of second category, so are both factors
theorem not_isMeagre_univ_of_prod_right
TopologyByExample.not_isMeagre_univ_of_prod_right
If a product is of second category in itself, so is its second factor.
theorem not_isMeagre_univ_of_prod_right (h : ¬IsMeagre (univ : Set (X × Y))) :
¬IsMeagre (univ : Set Y)
Proof
:= fun hY ↦
h (by simpa using hY.preimage_of_isOpenMap continuous_snd isOpenMap_snd)
Hyperconnectedness, ultraconnectedness and strong connectedness
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
Products
instance preirreducibleSpace_prod
TopologyByExample.preirreducibleSpace_prod
A product of two hyperconnected spaces is hyperconnected: two nonempty open sets contain open boxes, whose sides meet in each factor.
instance preirreducibleSpace_prod [PreirreducibleSpace X] [PreirreducibleSpace Y] :
PreirreducibleSpace (X × Y)
Proof
:= by
refine .of_forall_nonempty_inter fun U V hU hV ⟨a, ha⟩ ⟨b, hb⟩ ↦ ?_
obtain ⟨U₁, U₂, hU₁, hU₂, ha₁, ha₂, hU'⟩ := isOpen_prod_iff.1 hU a.1 a.2 ha
obtain ⟨V₁, V₂, hV₁, hV₂, hb₁, hb₂, hV'⟩ := isOpen_prod_iff.1 hV b.1 b.2 hb
obtain ⟨x, hxU, hxV⟩ := nonempty_preirreducible_inter hU₁ hV₁ ⟨_, ha₁⟩ ⟨_, hb₁⟩
obtain ⟨y, hyU, hyV⟩ := nonempty_preirreducible_inter hU₂ hV₂ ⟨_, ha₂⟩ ⟨_, hb₂⟩
exact ⟨(x, y), hU' ⟨hxU, hyU⟩, hV' ⟨hxV, hyV⟩⟩
instance preirreducibleSpace_pi
TopologyByExample.preirreducibleSpace_pi
A product of hyperconnected spaces is hyperconnected: two nonempty open sets contain basic open sets, which restrict finitely many coordinates, and these restrictions are compatible in each factor.
instance preirreducibleSpace_pi {ι : Type*} {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, PreirreducibleSpace (Z i)] : PreirreducibleSpace (∀ i, Z i)
Proof
:= by
refine .of_forall_nonempty_inter fun U V hU hV ⟨a, ha⟩ ⟨b, hb⟩ ↦ ?_
obtain ⟨I, u, hu, hIU⟩ := isOpen_pi_iff.1 hU a ha
obtain ⟨J, v, hv, hJV⟩ := isOpen_pi_iff.1 hV b hb
have key : ∀ i, ∃ c : Z i, (i ∈ I → c ∈ u i) ∧ (i ∈ J → c ∈ v i) := by
intro i
have hu' : IsOpen {x : Z i | i ∈ I → x ∈ u i} := by
by_cases h : i ∈ I
· simpa [h] using (hu i h).1
· simp [h]
have hv' : IsOpen {x : Z i | i ∈ J → x ∈ v i} := by
by_cases h : i ∈ J
· simpa [h] using (hv i h).1
· simp [h]
exact nonempty_preirreducible_inter hu' hv' ⟨a i, fun h ↦ (hu i h).2⟩
⟨b i, fun h ↦ (hv i h).2⟩
choose c hc using key
exact ⟨c, hIU fun i hi ↦ (hc i).1 hi, hJV fun i hi ↦ (hc i).2 hi⟩
theorem preirreducibleSpace_of_prod_left
TopologyByExample.preirreducibleSpace_of_prod_left
If a product with a nonempty right factor is hyperconnected, so is its left factor.
theorem preirreducibleSpace_of_prod_left [Nonempty Y] [PreirreducibleSpace (X × Y)] :
PreirreducibleSpace X
Proof
:=
(Prod.fst_surjective (α := X) (β := Y)).preirreducibleSpace continuous_fst
theorem preirreducibleSpace_of_prod_right
TopologyByExample.preirreducibleSpace_of_prod_right
If a product with a nonempty left factor is hyperconnected, so is its right factor.
theorem preirreducibleSpace_of_prod_right [Nonempty X] [PreirreducibleSpace (X × Y)] :
PreirreducibleSpace Y
Proof
:=
(Prod.snd_surjective (α := X) (β := Y)).preirreducibleSpace continuous_snd
theorem preirreducibleSpace_prod_iff
TopologyByExample.preirreducibleSpace_prod_iff
A product of nonempty spaces is hyperconnected if and only if both factors are.
theorem preirreducibleSpace_prod_iff [Nonempty X] [Nonempty Y] :
PreirreducibleSpace (X × Y) ↔ PreirreducibleSpace X ∧ PreirreducibleSpace Y
Proof
:=
⟨fun _ ↦ ⟨preirreducibleSpace_of_prod_left (Y := Y), preirreducibleSpace_of_prod_right (X := X)⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is hyperconnected iff both factors are
instance ultraconnectedSpace_prod
TopologyByExample.ultraconnectedSpace_prod
A product of two ultraconnected spaces is ultraconnected, coordinatewise.
instance ultraconnectedSpace_prod [UltraconnectedSpace X] [UltraconnectedSpace Y] :
UltraconnectedSpace (X × Y)
Proof
:=
ultraconnectedSpace_iff_exists_specializes.2 fun a b ↦ by
obtain ⟨z, hz, hz'⟩ := UltraconnectedSpace.exists_specializes a.1 b.1
obtain ⟨w, hw, hw'⟩ := UltraconnectedSpace.exists_specializes a.2 b.2
exact ⟨(z, w), specializes_prod.2 ⟨hz, hw⟩, specializes_prod.2 ⟨hz', hw'⟩⟩
instance ultraconnectedSpace_pi
TopologyByExample.ultraconnectedSpace_pi
A product of ultraconnected spaces is ultraconnected, coordinatewise.
instance ultraconnectedSpace_pi {ι : Type*} {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, UltraconnectedSpace (Z i)] : UltraconnectedSpace (∀ i, Z i)
Proof
:=
ultraconnectedSpace_iff_exists_specializes.2 fun x y ↦ by
choose z hx hy using fun i ↦ UltraconnectedSpace.exists_specializes (x i) (y i)
exact ⟨z, specializes_pi.2 hx, specializes_pi.2 hy⟩
theorem ultraconnectedSpace_of_prod_left
TopologyByExample.ultraconnectedSpace_of_prod_left
If a product with a nonempty right factor is ultraconnected, so is its left factor.
theorem ultraconnectedSpace_of_prod_left [Nonempty Y] [UltraconnectedSpace (X × Y)] :
UltraconnectedSpace X
Proof
:=
ultraconnectedSpace_of_surjective (Prod.fst_surjective (α := X) (β := Y))
continuous_fst
theorem ultraconnectedSpace_of_prod_right
TopologyByExample.ultraconnectedSpace_of_prod_right
If a product with a nonempty left factor is ultraconnected, so is its right factor.
theorem ultraconnectedSpace_of_prod_right [Nonempty X] [UltraconnectedSpace (X × Y)] :
UltraconnectedSpace Y
Proof
:=
ultraconnectedSpace_of_surjective (Prod.snd_surjective (α := X) (β := Y))
continuous_snd
theorem ultraconnectedSpace_prod_iff
TopologyByExample.ultraconnectedSpace_prod_iff
A product of nonempty spaces is ultraconnected if and only if both factors are.
theorem ultraconnectedSpace_prod_iff [Nonempty X] [Nonempty Y] :
UltraconnectedSpace (X × Y) ↔ UltraconnectedSpace X ∧ UltraconnectedSpace Y
Proof
:=
⟨fun _ ↦ ⟨ultraconnectedSpace_of_prod_left (Y := Y), ultraconnectedSpace_of_prod_right (X := X)⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is ultraconnected iff both factors are
instance stronglyConnectedSpace_prod
TopologyByExample.stronglyConnectedSpace_prod
A product of two strongly connected spaces is strongly connected: a continuous real function
f satisfies f (x, y) = f (x', y) = f (x', y').
instance stronglyConnectedSpace_prod [StronglyConnectedSpace X] [StronglyConnectedSpace Y] :
StronglyConnectedSpace (X × Y)
Proof
:=
⟨fun f a b ↦ by
have h₁ := StronglyConnectedSpace.apply_eq_apply
(f.comp ⟨fun x ↦ (x, a.2), by fun_prop⟩) a.1 b.1
have h₂ := StronglyConnectedSpace.apply_eq_apply
(f.comp ⟨fun y ↦ (b.1, y), by fun_prop⟩) a.2 b.2
exact h₁.trans h₂⟩
instance stronglyConnectedSpace_pi
TopologyByExample.stronglyConnectedSpace_pi
A product of strongly connected spaces is strongly connected. A continuous real function f
is unchanged when one coordinate of its argument is changed, so f b = f a whenever b differs
from a in finitely many coordinates; these points are dense, so f is constant.
instance stronglyConnectedSpace_pi {ι : Type*} {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, StronglyConnectedSpace (Z i)] : StronglyConnectedSpace (∀ i, Z i)
Proof
:= by
classical
refine ⟨fun f a b ↦ ?_⟩
have key : ∀ I : Finset ι, f (I.piecewise b a) = f a := by
intro I
induction I using Finset.induction_on with
| empty => simp
| insert i I hi ih =>
rw [Finset.piecewise_insert, ← ih]
have := StronglyConnectedSpace.apply_eq_apply
(f.comp ⟨fun t ↦ Function.update (I.piecewise b a) i t,
continuous_const.update i continuous_id⟩) (b i) (I.piecewise b a i)
simpa using this
have hb : b ∈ closure {z | f z = f a} := by
rw [mem_closure_iff]
intro U hU hbU
obtain ⟨I, u, hu, hIU⟩ := isOpen_pi_iff.1 hU b hbU
refine ⟨I.piecewise b a, hIU fun i hi ↦ ?_, key I⟩
rw [Finset.piecewise_eq_of_mem _ _ _ hi]
exact (hu i hi).2
exact ((isClosed_eq f.continuous continuous_const).closure_subset hb).symm
theorem stronglyConnectedSpace_of_prod_left
TopologyByExample.stronglyConnectedSpace_of_prod_left
If a product with a nonempty right factor is strongly connected, so is its left factor.
theorem stronglyConnectedSpace_of_prod_left [Nonempty Y] [StronglyConnectedSpace (X × Y)] :
StronglyConnectedSpace X
Proof
:=
stronglyConnectedSpace_of_surjective (Prod.fst_surjective (α := X) (β := Y))
continuous_fst
theorem stronglyConnectedSpace_of_prod_right
TopologyByExample.stronglyConnectedSpace_of_prod_right
If a product with a nonempty left factor is strongly connected, so is its right factor.
theorem stronglyConnectedSpace_of_prod_right [Nonempty X] [StronglyConnectedSpace (X × Y)] :
StronglyConnectedSpace Y
Proof
:=
stronglyConnectedSpace_of_surjective (Prod.snd_surjective (α := X) (β := Y))
continuous_snd
theorem stronglyConnectedSpace_prod_iff
TopologyByExample.stronglyConnectedSpace_prod_iff
A product of nonempty spaces is strongly connected if and only if both factors are.
theorem stronglyConnectedSpace_prod_iff [Nonempty X] [Nonempty Y] :
StronglyConnectedSpace (X × Y) ↔ StronglyConnectedSpace X ∧ StronglyConnectedSpace Y
Proof
:=
⟨fun _ ↦ ⟨stronglyConnectedSpace_of_prod_left (Y := Y),
stronglyConnectedSpace_of_prod_right (X := X)⟩,
fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is strongly connected iff both factors are
Discreteness, scatteredness, extremal disconnectedness and total path disconnectedness
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
Products
instance
The product of two scattered spaces is scattered. Given a nonempty set s, take a point x
isolated in its first projection and then a point y isolated in the slice of s over x; the
point (x, y) is isolated in s.
instance [ScatteredSpace X] [ScatteredSpace Y] : ScatteredSpace (X × Y)
Proof
:= by
refine scatteredSpace_iff_exists_isolated.2 fun s hs ↦ ?_
obtain ⟨_, ⟨⟨x, y'⟩, hs', rfl⟩, U, hU, hUs⟩ := ScatteredSpace.exists_isolated (hs.image Prod.fst)
obtain ⟨y, hy, V, hV, hVs⟩ := ScatteredSpace.exists_isolated (s := Prod.mk x ⁻¹' s) ⟨y', hs'⟩
refine ⟨(x, y), hy, U ×ˢ V, prod_mem_nhds hU hV, ?_⟩
rintro ⟨a, b⟩ ⟨⟨haU, hbV⟩, hab⟩
have ha : a = x := hUs ⟨haU, mem_image_of_mem Prod.fst hab⟩
subst ha
have hb : b = y := hVs ⟨hbV, hab⟩
subst hb
rfl
theorem scatteredSpace_prod_iff
TopologyByExample.scatteredSpace_prod_iff
A product of nonempty spaces is scattered if and only if both factors are.
theorem scatteredSpace_prod_iff [Nonempty X] [Nonempty Y] :
ScatteredSpace (X × Y) ↔ ScatteredSpace X ∧ ScatteredSpace Y
Proof
:=
⟨fun _ ↦ ⟨ScatteredSpace.of_injective (f := fun x ↦ (x, Classical.arbitrary Y))
(fun _ _ h ↦ congrArg Prod.fst h) (by fun_prop),
ScatteredSpace.of_injective (f := fun y ↦ (Classical.arbitrary X, y))
(fun _ _ h ↦ congrArg Prod.snd h) (by fun_prop)⟩, fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is scattered iff both factors are
instance
The product of two totally path disconnected spaces is totally path disconnected.
instance [TotallyPathDisconnectedSpace X] [TotallyPathDisconnectedSpace Y] :
TotallyPathDisconnectedSpace (X × Y)
Proof
:=
⟨fun _ _ h ↦ Prod.ext (TotallyPathDisconnectedSpace.eq_of_joined _ _ (h.map continuous_fst))
(TotallyPathDisconnectedSpace.eq_of_joined _ _ (h.map continuous_snd))⟩
instance
A product of totally path disconnected spaces is totally path disconnected.
instance {ι : Type*} {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, TotallyPathDisconnectedSpace (Z i)] : TotallyPathDisconnectedSpace (∀ i, Z i)
Proof
:=
⟨fun _ _ h ↦ funext fun i ↦
TotallyPathDisconnectedSpace.eq_of_joined _ _ (h.map (continuous_apply i))⟩
theorem totallyPathDisconnectedSpace_prod_iff
TopologyByExample.totallyPathDisconnectedSpace_prod_iff
A product of nonempty spaces is totally path disconnected if and only if both factors are.
theorem totallyPathDisconnectedSpace_prod_iff [Nonempty X] [Nonempty Y] :
TotallyPathDisconnectedSpace (X × Y) ↔
TotallyPathDisconnectedSpace X ∧ TotallyPathDisconnectedSpace Y
Proof
:=
⟨fun _ ↦ ⟨TotallyPathDisconnectedSpace.of_injective (f := fun x ↦ (x, Classical.arbitrary Y))
(fun _ _ h ↦ congrArg Prod.fst h) (by fun_prop),
TotallyPathDisconnectedSpace.of_injective (f := fun y ↦ (Classical.arbitrary X, y))
(fun _ _ h ↦ congrArg Prod.snd h) (by fun_prop)⟩, fun ⟨_, _⟩ ↦ inferInstance⟩
On this site: Theorem: A product of two nonempty spaces is totally path disconnected iff both factors are
Paracompactness, countable paracompactness and the countable chain condition
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
theorem ccc_of_ccc_prod_left
TopologyByExample.ccc_of_ccc_prod_left
If a product with a nonempty second factor satisfies the countable chain condition, so does its first factor.
theorem ccc_of_ccc_prod_left [Nonempty Y]
(h : ∀ S : Set (Set (X × Y)), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id →
S.Countable) :
∀ S : Set (Set X), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id →
S.Countable
Proof
:=
ccc_of_continuous_surjective continuous_fst Prod.fst_surjective h
On this site: Theorem: If a product satisfies the countable chain condition and its second factor is nonempty, its first factor satisfies it
theorem ccc_of_ccc_prod_right
TopologyByExample.ccc_of_ccc_prod_right
If a product with a nonempty first factor satisfies the countable chain condition, so does its second factor.
theorem ccc_of_ccc_prod_right [Nonempty X]
(h : ∀ S : Set (Set (X × Y)), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id →
S.Countable) :
∀ S : Set (Set Y), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id →
S.Countable
Proof
:=
ccc_of_continuous_surjective continuous_snd Prod.snd_surjective h
On this site: Theorem: If a product satisfies the countable chain condition and its first factor is nonempty, its second factor satisfies it