Lean library · module TopologyByExample.Operators.CountablePower
Countable powers
This file collects how the countable power ℕ → X of a space X inherits, or fails to inherit,
countability and compactness properties.
A product of nonempty spaces that is weakly locally compact has only finitely many non-compact
factors: a compact neighbourhood of a point contains a basic open set, which constrains only
finitely many coordinates, and so projects onto every other factor. In particular a countable
power ℕ → X is weakly locally compact if and only if X is compact.
A product of nonempty spaces that is σ-compact also has only finitely many non-compact factors,
by a diagonal argument: given compact sets K₀, K₁, … and distinct non-compact factors
Y i₀, Y i₁, …, the projection of Kₙ to Y iₙ is compact, so it misses some point yₙ, and a
point of the product with coordinate yₙ at iₙ lies in no Kₙ. In particular ℕ → X is
σ-compact if and only if X is compact.
The diagonal map X → (ℕ → X) is a closed embedding, so ℕ → X is first countable, second
countable, metrizable or Hausdorff if and only if X is; and the projection to a coordinate is a
continuous surjection when X is nonempty, so ℕ → X is separable or sequentially compact if
and only if X is, and X is Lindelöf or countably compact if ℕ → X is.
Main statements
TopologyByExample.finite_setOf_not_compactSpace_of_weaklyLocallyCompactSpace_pi: if a product of nonempty spaces is weakly locally compact, all but finitely many of its factors are compact.TopologyByExample.weaklyLocallyCompactSpace_pi_nat_iff: a countable powerℕ → Xis weakly locally compact if and only ifXis compact.TopologyByExample.finite_setOf_not_compactSpace_of_sigmaCompactSpace_pi: if a product of nonempty spaces is σ-compact, all but finitely many of its factors are compact.TopologyByExample.sigmaCompactSpace_pi_nat_iff: a countable powerℕ → Xis σ-compact if and only ifXis compact.TopologyByExample.firstCountableTopology_pi_nat_iff,TopologyByExample.secondCountableTopology_pi_nat_iff,TopologyByExample.separableSpace_pi_nat_iff,TopologyByExample.metrizableSpace_pi_nat_iff,TopologyByExample.t2Space_pi_nat_iff,TopologyByExample.seqCompactSpace_pi_nat_iff:ℕ → Xhas each of these properties if and only ifXhas it.TopologyByExample.lindelofSpace_of_lindelofSpace_pi_nat,TopologyByExample.countablyCompactSpace_of_countablyCompactSpace_pi_nat: the Lindelöf property and countable compactness pass fromℕ → Xdown toX.
(The companion statement for compactness, TopologyByExample.compactSpace_pi_nat_iff, is in
TopologyByExample.Theorems.Compactness.)
* The further properties: TopologyByExample.functionallyHausdorffSpace_pi_nat_iff,
TopologyByExample.semiregularSpace_pi_nat,
TopologyByExample.pseudocompactSpace_of_pseudocompactSpace_pi_nat,
TopologyByExample.isCompletelyMetrizableSpace_pi_nat_iff,
TopologyByExample.not_isMeagre_univ_of_pi_nat,
TopologyByExample.preirreducibleSpace_pi_nat_iff (and its ultraconnected and strongly connected
relatives), TopologyByExample.scatteredSpace_pi_nat_iff,
TopologyByExample.discreteTopology_pi_nat_iff,
TopologyByExample.totallyPathDisconnectedSpace_pi_nat_iff,
TopologyByExample.ccc_of_ccc_pi_nat.
Separation axioms
The countable power ℕ → X is T₀, R₀, T₁, T₂½, regular or completely regular if and only if X
is (TopologyByExample.t0Space_pi_nat_iff, ...,
TopologyByExample.completelyRegularSpace_pi_nat_iff);
normality, complete normality and perfect normality pass from the power to X
(TopologyByExample.normalSpace_of_normalSpace_pi_nat, ...), a retract and a subspace.
Connectedness properties
ℕ → X is connected, path connected, totally disconnected, totally separated or
zero-dimensional if and only if X is (TopologyByExample.preconnectedSpace_pi_nat_iff, ...,
TopologyByExample.zeroDimensionalSpace_pi_nat_iff). It is locally connected if and only if X
is locally connected and connected, and locally path connected if and only if X is locally
path connected and path connected (TopologyByExample.locallyConnectedSpace_pi_nat_iff,
TopologyByExample.locallyPathConnectedSpace_pi_nat_iff), by Mathlib's criteria for arbitrary
products: all but finitely many factors must be connected. None of these needs X nonempty.
Tags
weakly locally compact, σ-compact, product, countable power, Tychonoff, diagonal argument
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
- Mathlib.Topology.Compactness.CountablyCompact
- Mathlib.Topology.Compactness.LocallyCompact
- Mathlib.Topology.Compactness.SigmaCompact
- Mathlib.Topology.Constructions
- Mathlib.Topology.MetricSpace.PiNat
- TopologyByExample.Operators.Product
- TopologyByExample.Theorems.Compactness
- TopologyByExample.Theorems.SeqCompactProduct
theorem finite_setOf_not_compactSpace_of_weaklyLocallyCompactSpace_pi
TopologyByExample.finite_setOf_not_compactSpace_of_weaklyLocallyCompactSpace_pi
If a product of nonempty spaces is weakly locally compact, then all but finitely many of the factors are compact.
theorem finite_setOf_not_compactSpace_of_weaklyLocallyCompactSpace_pi {ι : Type*}
{Y : ι → Type*} [∀ i, TopologicalSpace (Y i)] [∀ i, Nonempty (Y i)]
[WeaklyLocallyCompactSpace (∀ i, Y i)] : {i | ¬CompactSpace (Y i)}.Finite
Proof
:= by
classical
let x : ∀ i, Y i := fun _ ↦ Classical.arbitrary _
obtain ⟨N, hN, hNx⟩ := exists_compact_mem_nhds x
rw [nhds_pi, Filter.mem_pi] at hNx
obtain ⟨I, hI, t, ht, hIt⟩ := hNx
refine hI.subset fun i hi ↦ by_contra fun hiI ↦ hi <| isCompact_univ_iff.1 ?_
have : Function.eval i '' N = univ := eq_univ_of_forall fun y ↦
⟨Function.update x i y, hIt fun j hj ↦ by
rw [Function.update_of_ne (ne_of_mem_of_not_mem hj hiI)]
exact mem_of_mem_nhds (ht j), by simp⟩
exact this ▸ hN.image (continuous_apply i)
On this site: Theorem: A weakly locally compact product of nonempty spaces has only finitely many non-compact factors
variable {X : Type*} [TopologicalSpace X]
theorem weaklyLocallyCompactSpace_pi_nat_iff
TopologyByExample.weaklyLocallyCompactSpace_pi_nat_iff
A countable power ℕ → X is weakly locally compact if and only if X is compact.
theorem weaklyLocallyCompactSpace_pi_nat_iff :
WeaklyLocallyCompactSpace (ℕ → X) ↔ CompactSpace X
Proof
:= by
refine ⟨fun _ ↦ ?_, fun _ ↦ inferInstance⟩
rcases isEmpty_or_nonempty X with hX | hX
· infer_instance
· by_contra h
exact infinite_univ (finite_setOf_not_compactSpace_of_weaklyLocallyCompactSpace_pi
(Y := fun _ : ℕ ↦ X) |>.subset fun _ _ ↦ h)
On this site: Theorem: A countable power is weakly locally compact iff the space is compact
theorem finite_setOf_not_compactSpace_of_sigmaCompactSpace_pi
TopologyByExample.finite_setOf_not_compactSpace_of_sigmaCompactSpace_pi
If a product of nonempty spaces is σ-compact, then all but finitely many of the factors are compact.
theorem finite_setOf_not_compactSpace_of_sigmaCompactSpace_pi {ι : Type*}
{Y : ι → Type*} [∀ i, TopologicalSpace (Y i)] [∀ i, Nonempty (Y i)]
[SigmaCompactSpace (∀ i, Y i)] : {i | ¬CompactSpace (Y i)}.Finite
Proof
:= by
classical
set S := {i | ¬CompactSpace (Y i)}
by_contra hS
let e : ℕ ↪ S := Set.Infinite.natEmbedding S hS
let n : ι → ℕ := Function.invFun fun k ↦ (e k : ι)
have hn (k : ℕ) : n (e k) = k :=
Function.leftInverse_invFun (fun _ _ h ↦ e.injective (Subtype.ext h)) k
-- The projection of a compact set to a non-compact factor is not the whole factor.
have key (i : ι) (hi : i ∈ S) (k : ℕ) :
∃ y : Y i, y ∉ Function.eval i '' compactCovering (∀ i, Y i) k := by
by_contra! h
exact hi <| isCompact_univ_iff.1 <| (eq_univ_of_forall h) ▸
(isCompact_compactCovering _ k).image (continuous_apply i)
let x : ∀ i, Y i := fun i ↦
if hi : i ∈ S then (key i hi (n i)).choose else Classical.arbitrary _
have hx (i : ι) (hi : i ∈ S) : x i ∉ Function.eval i '' compactCovering (∀ i, Y i) (n i) := by
simpa only [x, hi, dite_true] using (key i hi (n i)).choose_spec
obtain ⟨k, hk⟩ := mem_iUnion.1 (iUnion_compactCovering (∀ i, Y i) ▸ mem_univ x)
have := hx (e k) (e k).property
rw [hn k] at this
exact this ⟨x, hk, rfl⟩
On this site: Theorem: A σ-compact product of nonempty spaces has only finitely many non-compact factors
theorem sigmaCompactSpace_pi_nat_iff
TopologyByExample.sigmaCompactSpace_pi_nat_iff
A countable power ℕ → X is σ-compact if and only if X is compact.
theorem sigmaCompactSpace_pi_nat_iff : SigmaCompactSpace (ℕ → X) ↔ CompactSpace X
Proof
:= by
refine ⟨fun _ ↦ ?_, fun _ ↦ inferInstance⟩
rcases isEmpty_or_nonempty X with hX | hX
· infer_instance
· by_contra h
exact infinite_univ (finite_setOf_not_compactSpace_of_sigmaCompactSpace_pi
(Y := fun _ : ℕ ↦ X) |>.subset fun _ _ ↦ h)
On this site: Theorem: A countable power is σ-compact iff the space is compact
theorem isEmbedding_const_pi_nat
TopologyByExample.isEmbedding_const_pi_nat
The diagonal map of X into its countable power, sending a point to the constant sequence, is
an embedding.
theorem isEmbedding_const_pi_nat : IsEmbedding (fun x : X ↦ fun _ : ℕ ↦ x)
Proof
:=
have hc : Continuous (fun x : X ↦ fun _ : ℕ ↦ x) := continuous_pi fun _ ↦ continuous_id
⟨.of_comp hc (continuous_apply 0) IsInducing.id, fun _ _ h ↦ congrFun h 0⟩
On this site: Theorem: A space embeds in its countable power as the constant sequences
theorem firstCountableTopology_pi_nat_iff
TopologyByExample.firstCountableTopology_pi_nat_iff
A countable power ℕ → X is first countable if and only if X is.
theorem firstCountableTopology_pi_nat_iff :
FirstCountableTopology (ℕ → X) ↔ FirstCountableTopology X
Proof
:=
⟨fun _ ↦ isEmbedding_const_pi_nat.firstCountableTopology, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is first countable iff the space is
theorem secondCountableTopology_pi_nat_iff
TopologyByExample.secondCountableTopology_pi_nat_iff
A countable power ℕ → X is second countable if and only if X is.
theorem secondCountableTopology_pi_nat_iff :
SecondCountableTopology (ℕ → X) ↔ SecondCountableTopology X
Proof
:=
⟨fun _ ↦ isEmbedding_const_pi_nat.isInducing.secondCountableTopology, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is second countable iff the space is
instance metrizableSpace_pi_countable
TopologyByExample.metrizableSpace_pi_countable
A countable product of metrizable spaces is metrizable.
instance metrizableSpace_pi_countable {ι : Type*} [Countable ι] {Y : ι → Type*}
[∀ i, TopologicalSpace (Y i)] [∀ i, MetrizableSpace (Y i)] : MetrizableSpace (∀ i, Y i)
Proof
:=
let := Encodable.ofCountable ι
let := fun i ↦ metrizableSpaceMetric (Y i)
let := PiCountable.metricSpace (F := Y)
inferInstance
theorem metrizableSpace_pi_nat_iff
TopologyByExample.metrizableSpace_pi_nat_iff
A countable power ℕ → X is metrizable if and only if X is.
theorem metrizableSpace_pi_nat_iff : MetrizableSpace (ℕ → X) ↔ MetrizableSpace X
Proof
:=
⟨fun _ ↦ isEmbedding_const_pi_nat.metrizableSpace, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is metrizable iff the space is
theorem t2Space_pi_nat_iff
TopologyByExample.t2Space_pi_nat_iff
A countable power ℕ → X is Hausdorff if and only if X is.
theorem t2Space_pi_nat_iff : T2Space (ℕ → X) ↔ T2Space X
Proof
:=
⟨fun _ ↦ isEmbedding_const_pi_nat.t2Space, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is Hausdorff iff the space is
theorem separableSpace_pi_nat_iff
TopologyByExample.separableSpace_pi_nat_iff
A countable power ℕ → X is separable if and only if X is.
theorem separableSpace_pi_nat_iff : SeparableSpace (ℕ → X) ↔ SeparableSpace X
Proof
:= by
refine ⟨fun _ ↦ ?_, fun _ ↦ inferInstance⟩
rcases isEmpty_or_nonempty X with hX | hX
· infer_instance
· exact DenseRange.separableSpace (f := Function.eval 0)
(Function.Surjective.denseRange fun x : X ↦ ⟨fun _ ↦ x, rfl⟩) (continuous_apply 0)
On this site: Theorem: A countable power is separable iff the space is
theorem seqCompactSpace_pi_nat_iff
TopologyByExample.seqCompactSpace_pi_nat_iff
A countable power ℕ → X is sequentially compact if and only if X is.
theorem seqCompactSpace_pi_nat_iff : SeqCompactSpace (ℕ → X) ↔ SeqCompactSpace X
Proof
:= by
refine ⟨fun _ ↦ ?_, fun _ ↦ inferInstance⟩
rcases isEmpty_or_nonempty X with hX | hX
· exact ⟨fun _ _ ↦ isEmptyElim (‹ℕ → X› 0)⟩
· rw [← isSeqCompact_univ_iff]
have : Function.eval 0 '' (univ : Set (ℕ → X)) = univ :=
image_univ_of_surjective fun x ↦ ⟨fun _ ↦ x, rfl⟩
exact this ▸ (isSeqCompact_univ_iff.2 ‹_›).image (continuous_apply 0).seqContinuous
On this site: Theorem: A countable power is sequentially compact iff the space is
theorem lindelofSpace_of_lindelofSpace_pi_nat
TopologyByExample.lindelofSpace_of_lindelofSpace_pi_nat
If a countable power ℕ → X is Lindelöf, then so is X.
theorem lindelofSpace_of_lindelofSpace_pi_nat [LindelofSpace (ℕ → X)] : LindelofSpace X
Proof
:= by
rcases isEmpty_or_nonempty X with hX | hX
· exact ⟨isLindelof_univ_iff.2 inferInstance |>.of_isClosed_subset isClosed_univ subset_rfl⟩
· rw [← isLindelof_univ_iff]
have : Function.eval 0 '' (univ : Set (ℕ → X)) = univ :=
image_univ_of_surjective fun x ↦ ⟨fun _ ↦ x, rfl⟩
exact this ▸ (isLindelof_univ_iff.2 ‹_›).image (continuous_apply 0)
On this site: Theorem: If a countable power is Lindelöf, so is the space
theorem countablyCompactSpace_of_countablyCompactSpace_pi_nat
TopologyByExample.countablyCompactSpace_of_countablyCompactSpace_pi_nat
If a countable power ℕ → X is countably compact, then so is X.
theorem countablyCompactSpace_of_countablyCompactSpace_pi_nat [CountablyCompactSpace (ℕ → X)] :
CountablyCompactSpace X
Proof
:= by
rcases isEmpty_or_nonempty X with hX | hX
· infer_instance
· rw [← isCountablyCompact_univ_iff]
have : Function.eval 0 '' (univ : Set (ℕ → X)) = univ :=
image_univ_of_surjective fun x ↦ ⟨fun _ ↦ x, rfl⟩
exact this ▸ (isCountablyCompact_univ_iff.2 ‹_›).image (continuous_apply 0)
On this site: Theorem: If a countable power is countably compact, so is the space
Countable powers
variable {X : Type*} [TopologicalSpace X]
theorem t0Space_pi_nat_iff
TopologyByExample.t0Space_pi_nat_iff
The countable power ℕ → X is T₀ if and only if X is.
theorem t0Space_pi_nat_iff : T0Space (ℕ → X) ↔ T0Space X
Proof
:=
⟨fun _ ↦ isEmbedding_const_pi_nat.t0Space, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is T₀ iff the space is
theorem r0Space_pi_nat_iff
TopologyByExample.r0Space_pi_nat_iff
The countable power ℕ → X is R₀ if and only if X is.
theorem r0Space_pi_nat_iff : R0Space (ℕ → X) ↔ R0Space X
Proof
:=
⟨fun _ ↦ isEmbedding_const_pi_nat.isInducing.r0Space, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is R₀ iff the space is
theorem t1Space_pi_nat_iff
TopologyByExample.t1Space_pi_nat_iff
The countable power ℕ → X is T₁ if and only if X is.
theorem t1Space_pi_nat_iff : T1Space (ℕ → X) ↔ T1Space X
Proof
:=
⟨fun _ ↦ isEmbedding_const_pi_nat.t1Space, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is T₁ iff the space is
theorem t25Space_pi_nat_iff
TopologyByExample.t25Space_pi_nat_iff
The countable power ℕ → X is T₂½ if and only if X is.
theorem t25Space_pi_nat_iff : T25Space (ℕ → X) ↔ T25Space X
Proof
:=
⟨fun _ ↦ isEmbedding_const_pi_nat.t25Space, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is Urysohn iff the space is
theorem regularSpace_pi_nat_iff
TopologyByExample.regularSpace_pi_nat_iff
The countable power ℕ → X is regular if and only if X is.
theorem regularSpace_pi_nat_iff : RegularSpace (ℕ → X) ↔ RegularSpace X
Proof
:=
⟨fun _ ↦ isEmbedding_const_pi_nat.isInducing.regularSpace, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is regular iff the space is
theorem completelyRegularSpace_pi_nat_iff
TopologyByExample.completelyRegularSpace_pi_nat_iff
The countable power ℕ → X is completely regular if and only if X is.
theorem completelyRegularSpace_pi_nat_iff :
CompletelyRegularSpace (ℕ → X) ↔ CompletelyRegularSpace X
Proof
:=
⟨fun _ ↦ isEmbedding_const_pi_nat.isInducing.completelyRegularSpace, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is completely regular iff the space is
theorem normalSpace_of_normalSpace_pi_nat
TopologyByExample.normalSpace_of_normalSpace_pi_nat
If the countable power ℕ → X is normal, then so is X: the constant sequences form a retract
of the power.
theorem normalSpace_of_normalSpace_pi_nat [NormalSpace (ℕ → X)] : NormalSpace X
Proof
:=
normalSpace_of_leftInverse (f := fun x : X ↦ fun _ : ℕ ↦ x) (g := fun f ↦ f 0)
isEmbedding_const_pi_nat.continuous (continuous_apply 0) fun _ ↦ rfl
On this site: Theorem: If a countable power is normal, so is the space
theorem completelyNormalSpace_of_completelyNormalSpace_pi_nat
TopologyByExample.completelyNormalSpace_of_completelyNormalSpace_pi_nat
If the countable power ℕ → X is completely normal, then so is X.
theorem completelyNormalSpace_of_completelyNormalSpace_pi_nat
[CompletelyNormalSpace (ℕ → X)] : CompletelyNormalSpace X
Proof
:=
isEmbedding_const_pi_nat.isInducing.completelyNormalSpace
On this site: Theorem: If a countable power is completely normal, so is the space
theorem perfectlyNormalSpace_of_perfectlyNormalSpace_pi_nat
TopologyByExample.perfectlyNormalSpace_of_perfectlyNormalSpace_pi_nat
If the countable power ℕ → X is perfectly normal, then so is X.
theorem perfectlyNormalSpace_of_perfectlyNormalSpace_pi_nat
[PerfectlyNormalSpace (ℕ → X)] : PerfectlyNormalSpace X
Proof
:=
isEmbedding_const_pi_nat.isInducing.perfectlyNormalSpace
On this site: Theorem: If a countable power is perfectly normal, so is the space
Connectedness properties
variable {X : Type*} [TopologicalSpace X]
theorem preconnectedSpace_pi_nat_iff
TopologyByExample.preconnectedSpace_pi_nat_iff
A countable power ℕ → X is preconnected if and only if X is.
theorem preconnectedSpace_pi_nat_iff : PreconnectedSpace (ℕ → X) ↔ PreconnectedSpace X
Proof
:= by
refine ⟨fun _ ↦ ?_, fun _ ↦ inferInstance⟩
rcases isEmpty_or_nonempty X with _ | _
· exact preconnectedSpace_of_subsingleton
· exact preconnectedSpace_of_surjective (f := fun p : ℕ → X ↦ p 0) (Function.surjective_eval 0)
(continuous_apply 0)
On this site: Theorem: A countable power is connected iff the space is
theorem pathPreconnectedSpace_pi_nat_iff
TopologyByExample.pathPreconnectedSpace_pi_nat_iff
A countable power ℕ → X is path preconnected if and only if X is.
theorem pathPreconnectedSpace_pi_nat_iff :
PathPreconnectedSpace (ℕ → X) ↔ PathPreconnectedSpace X
Proof
:= by
refine ⟨fun _ ↦ ?_, fun _ ↦ inferInstance⟩
rcases isEmpty_or_nonempty X with _ | _
· infer_instance
· exact pathPreconnectedSpace_of_surjective (f := fun p : ℕ → X ↦ p 0)
(Function.surjective_eval 0) (continuous_apply 0)
On this site: Theorem: A countable power is path connected iff the space is
theorem locallyConnectedSpace_pi_nat_iff
TopologyByExample.locallyConnectedSpace_pi_nat_iff
A countable power ℕ → X is locally connected if and only if X is locally connected and
preconnected: all but finitely many factors of a locally connected product are preconnected.
theorem locallyConnectedSpace_pi_nat_iff :
LocallyConnectedSpace (ℕ → X) ↔ LocallyConnectedSpace X ∧ PreconnectedSpace X
Proof
:= by
rcases isEmpty_or_nonempty X with _ | _
· exact iff_of_true inferInstance ⟨inferInstance, preconnectedSpace_of_subsingleton⟩
rw [Pi.locallyConnectedSpace_iff, or_iff_right (not_isEmpty_of_nonempty _)]
refine ⟨fun ⟨h, hfin⟩ ↦ ⟨h 0, by_contra fun hc ↦ infinite_univ (hfin.subset fun _ _ ↦ hc)⟩,
fun ⟨h, hc⟩ ↦ ⟨fun _ ↦ h, finite_empty.subset fun _ h ↦ h hc⟩⟩
On this site: Theorem: A countable power is locally connected iff the space is locally connected and connected
theorem locallyPathConnectedSpace_pi_nat_iff
TopologyByExample.locallyPathConnectedSpace_pi_nat_iff
A countable power ℕ → X is locally path connected if and only if X is locally path
connected and path preconnected.
theorem locallyPathConnectedSpace_pi_nat_iff :
LocallyPathConnectedSpace (ℕ → X) ↔
LocallyPathConnectedSpace X ∧ PathPreconnectedSpace X
Proof
:= by
rcases isEmpty_or_nonempty X with _ | _
· exact iff_of_true inferInstance ⟨inferInstance, inferInstance⟩
rw [Pi.locallyPathConnectedSpace_iff, or_iff_right (not_isEmpty_of_nonempty _),
pathPreconnectedSpace_iff_pathConnectedSpace]
refine ⟨fun ⟨h, hfin⟩ ↦ ⟨h 0, by_contra fun hc ↦ infinite_univ (hfin.subset fun _ _ ↦ hc)⟩,
fun ⟨h, hc⟩ ↦ ⟨fun _ ↦ h, finite_empty.subset fun _ h ↦ h hc⟩⟩
On this site: Theorem: A countable power is locally path connected iff the space is locally path connected and path connected
theorem totallyDisconnectedSpace_pi_nat_iff
TopologyByExample.totallyDisconnectedSpace_pi_nat_iff
A countable power ℕ → X is totally disconnected if and only if X is.
theorem totallyDisconnectedSpace_pi_nat_iff :
TotallyDisconnectedSpace (ℕ → X) ↔ TotallyDisconnectedSpace X
Proof
:=
⟨fun _ ↦ totallyDisconnectedSpace_of_injective isEmbedding_const_pi_nat.continuous
isEmbedding_const_pi_nat.injective, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is totally disconnected iff the space is
theorem totallySeparatedSpace_pi_nat_iff
TopologyByExample.totallySeparatedSpace_pi_nat_iff
A countable power ℕ → X is totally separated if and only if X is.
theorem totallySeparatedSpace_pi_nat_iff :
TotallySeparatedSpace (ℕ → X) ↔ TotallySeparatedSpace X
Proof
:=
⟨fun _ ↦ totallySeparatedSpace_of_injective isEmbedding_const_pi_nat.continuous
isEmbedding_const_pi_nat.injective, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is totally separated iff the space is
theorem zeroDimensionalSpace_pi_nat_iff
TopologyByExample.zeroDimensionalSpace_pi_nat_iff
A countable power ℕ → X is zero-dimensional if and only if X is.
theorem zeroDimensionalSpace_pi_nat_iff :
ZeroDimensionalSpace (ℕ → X) ↔ ZeroDimensionalSpace X
Proof
:=
⟨fun _ ↦ zeroDimensionalSpace_of_isInducing isEmbedding_const_pi_nat.isInducing,
fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is zero-dimensional iff the space is
Functional Hausdorffness and semiregularity
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
theorem functionallyHausdorffSpace_pi_nat_iff
TopologyByExample.functionallyHausdorffSpace_pi_nat_iff
The countable power ℕ → X is functionally Hausdorff if and only if X is.
theorem functionallyHausdorffSpace_pi_nat_iff :
FunctionallyHausdorffSpace (ℕ → X) ↔ FunctionallyHausdorffSpace X
Proof
:=
⟨fun _ ↦ .of_injective_continuous isEmbedding_const_pi_nat.injective
isEmbedding_const_pi_nat.continuous, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is functionally Hausdorff iff the space is
theorem semiregularSpace_pi_nat
TopologyByExample.semiregularSpace_pi_nat
The countable power of a semiregular space is semiregular.
theorem semiregularSpace_pi_nat [SemiregularSpace X] : SemiregularSpace (ℕ → X)
Proof
:=
inferInstance
On this site: Theorem: A countable power of a semiregular space is semiregular
Limit point compactness, pseudocompactness and local relative compactness
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
theorem pseudocompactSpace_of_pseudocompactSpace_pi_nat
TopologyByExample.pseudocompactSpace_of_pseudocompactSpace_pi_nat
If the countable power ℕ → X is pseudocompact, so is X.
theorem pseudocompactSpace_of_pseudocompactSpace_pi_nat [PseudocompactSpace (ℕ → X)] :
PseudocompactSpace X
Proof
:= by
rcases isEmpty_or_nonempty X with hX | hX
· infer_instance
· exact .of_surjective (continuous_apply 0) fun x ↦ ⟨fun _ ↦ x, rfl⟩
On this site: Theorem: If a countable power is pseudocompact, so is the space
Complete metrizability and second category
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
theorem isCompletelyMetrizableSpace_pi_nat_iff
TopologyByExample.isCompletelyMetrizableSpace_pi_nat_iff
The countable power ℕ → X is completely metrizable if and only if X is: X is a closed
subspace of its countable power (the constant sequences).
theorem isCompletelyMetrizableSpace_pi_nat_iff :
IsCompletelyMetrizableSpace (ℕ → X) ↔ IsCompletelyMetrizableSpace X
Proof
:= by
refine ⟨fun _ ↦ IsClosedEmbedding.IsCompletelyMetrizableSpace ⟨isEmbedding_const_pi_nat, ?_⟩,
fun _ ↦ inferInstance⟩
have : T2Space X := isEmbedding_const_pi_nat.t2Space
have : range (fun x : X ↦ fun _ : ℕ ↦ x) = ⋂ n : ℕ, {g : ℕ → X | g n = g 0} := by
ext g
simp only [mem_range, mem_iInter, mem_ofPred_eq]
exact ⟨by rintro ⟨x, rfl⟩ _; rfl, fun h ↦ ⟨g 0, funext fun n ↦ (h n).symm⟩⟩
rw [this]
exact isClosed_iInter fun n ↦ isClosed_eq (continuous_apply n) (continuous_apply 0)
On this site: Theorem: A countable power is completely metrizable iff the space is
theorem not_isMeagre_univ_of_pi_nat
TopologyByExample.not_isMeagre_univ_of_pi_nat
If the countable power ℕ → X is of second category in itself, so is X.
theorem not_isMeagre_univ_of_pi_nat (h : ¬IsMeagre (univ : Set (ℕ → X))) :
¬IsMeagre (univ : Set X)
Proof
:= fun hX ↦ by
have hc : Continuous fun g : ℕ → X ↦ g 0 := continuous_apply 0
have ho : IsOpenMap fun g : ℕ → X ↦ g 0 := isOpenMap_eval 0
exact h (by simpa using hX.preimage_of_isOpenMap hc ho)
On this site: Theorem: If a countable power is of second category, so is the space
Hyperconnectedness, ultraconnectedness and strong connectedness
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
Countable powers
omit [TopologicalSpace X] in
theorem surjective_eval_zero
TopologyByExample.surjective_eval_zero
The evaluation at 0 maps ℕ → X onto X.
private theorem surjective_eval_zero : Function.Surjective fun f : ℕ → X ↦ f 0
Proof
:=
fun x ↦ ⟨fun _ ↦ x, rfl⟩
theorem preirreducibleSpace_pi_nat_iff
TopologyByExample.preirreducibleSpace_pi_nat_iff
The countable power ℕ → X is hyperconnected if and only if X is.
theorem preirreducibleSpace_pi_nat_iff : PreirreducibleSpace (ℕ → X) ↔ PreirreducibleSpace X
Proof
:= by
refine ⟨fun _ ↦ ?_, fun _ ↦ inferInstance⟩
exact surjective_eval_zero.preirreducibleSpace (continuous_apply 0)
On this site: Theorem: A countable power is hyperconnected iff the space is
theorem ultraconnectedSpace_pi_nat_iff
TopologyByExample.ultraconnectedSpace_pi_nat_iff
The countable power ℕ → X is ultraconnected if and only if X is.
theorem ultraconnectedSpace_pi_nat_iff : UltraconnectedSpace (ℕ → X) ↔ UltraconnectedSpace X
Proof
:=
⟨fun _ ↦ ultraconnectedSpace_of_surjective surjective_eval_zero (continuous_apply 0),
fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is ultraconnected iff the space is
theorem stronglyConnectedSpace_pi_nat_iff
TopologyByExample.stronglyConnectedSpace_pi_nat_iff
The countable power ℕ → X is strongly connected if and only if X is.
theorem stronglyConnectedSpace_pi_nat_iff :
StronglyConnectedSpace (ℕ → X) ↔ StronglyConnectedSpace X
Proof
:=
⟨fun _ ↦ stronglyConnectedSpace_of_surjective surjective_eval_zero (continuous_apply 0),
fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is strongly connected iff the space is
Discreteness, scatteredness, extremal disconnectedness and total path disconnectedness
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
Countable powers
theorem scatteredSpace_pi_nat_iff
TopologyByExample.scatteredSpace_pi_nat_iff
The countable power ℕ → X is scattered if and only if X has at most one point. If a ≠ b
in X, the sequences with values in {a, b} form a nonempty set without isolated points:
changing one far-out coordinate of such a sequence gives nearby ones.
theorem scatteredSpace_pi_nat_iff : ScatteredSpace (ℕ → X) ↔ Subsingleton X
Proof
:= by
classical
refine ⟨fun _ ↦ ⟨fun a b ↦ ?_⟩, fun _ ↦ inferInstance⟩
by_contra hab
let S : Set (ℕ → X) := {f | ∀ n, f n = a ∨ f n = b}
let sw : X → X := fun z ↦ if z = a then b else a
have hsw : ∀ z, sw z ≠ z := fun z ↦ by
by_cases hz : z = a
· simp [sw, hz, Ne.symm hab]
· simp [sw, hz, Ne.symm hz]
have hswS : ∀ z, sw z = a ∨ sw z = b := fun z ↦ by
by_cases hz : z = a
· simp [sw, hz]
· simp [sw, hz]
obtain ⟨f, hf, U, hU, hUS⟩ :=
ScatteredSpace.exists_isolated (s := S) ⟨fun _ ↦ a, fun _ ↦ Or.inl rfl⟩
let g : ℕ → ℕ → X := fun k ↦ update f k (sw (f k))
have hg : Tendsto g atTop (𝓝 f) := tendsto_pi_nhds.2 fun i ↦
tendsto_const_nhds.congr' ((eventually_ne_atTop i).mono fun k hk ↦
(update_of_ne hk.symm _ _).symm)
obtain ⟨k, hk⟩ := (hg.eventually hU).exists
have hgS : g k ∈ S := fun i ↦ by
by_cases hi : i = k
· subst hi
simpa [g] using hswS (f i)
· simpa [g, update_of_ne hi] using hf i
have hgf : g k = f := hUS ⟨hk, hgS⟩
exact hsw (f k) (by simpa [g] using congrFun hgf k)
On this site: Theorem: A countable power is scattered iff the space has at most one point
theorem discreteTopology_pi_nat_iff
TopologyByExample.discreteTopology_pi_nat_iff
The countable power ℕ → X is discrete if and only if X has at most one point.
theorem discreteTopology_pi_nat_iff : DiscreteTopology (ℕ → X) ↔ Subsingleton X
Proof
:=
⟨fun _ ↦ scatteredSpace_pi_nat_iff.1 inferInstance, fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is discrete iff the space has at most one point
theorem totallyPathDisconnectedSpace_pi_nat_iff
TopologyByExample.totallyPathDisconnectedSpace_pi_nat_iff
The countable power ℕ → X is totally path disconnected if and only if X is.
theorem totallyPathDisconnectedSpace_pi_nat_iff :
TotallyPathDisconnectedSpace (ℕ → X) ↔ TotallyPathDisconnectedSpace X
Proof
:=
⟨fun _ ↦ TotallyPathDisconnectedSpace.of_injective (f := fun x : X ↦ fun _ : ℕ ↦ x)
(fun _ _ h ↦ congrFun h 0) (continuous_pi fun _ ↦ continuous_id), fun _ ↦ inferInstance⟩
On this site: Theorem: A countable power is totally path disconnected iff the space is
Paracompactness, countable paracompactness and the countable chain condition
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
theorem ccc_of_ccc_pi_nat
TopologyByExample.ccc_of_ccc_pi_nat
If the countable power X^ℕ satisfies the countable chain condition, so does X.
theorem ccc_of_ccc_pi_nat
(h : ∀ S : Set (Set (ℕ → X)), (∀ 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_apply 0) (fun x ↦ ⟨fun _ ↦ x, rfl⟩) h
On this site: Theorem: If a countable power satisfies the countable chain condition, so does the space