Lean library · module TopologyByExample.Operators.ProductTransfers

Products with an indiscrete or a discrete factor, and the factors of a product

Source file

If Y is indiscrete, the open sets of X × Y are exactly the sets U ×ˢ univ with U open in X: the first projection X × Y → X is inducing, and it is surjective when Y is nonempty. A surjective inducing map f : X' → X identifies the open sets of X' with those of X (U ↦ f ⁻¹' U), so every property defined from the lattice of open sets passes both ways along it. We prove this for Lindelöfness, extremal disconnectedness, countable paracompactness and being of second category, and deduce the corresponding statements for X × Y. Moreover, when Y has two distinct points, every point (x, y) of X × Y is in the closure of its twin (x, y'), so every nonempty set of X × Y has an accumulation point and X × Y is limit point compact. Normality passes to the domain of a surjective inducing map, and complete and perfect normality to the domain of any inducing map, so X × Y is normal, completely normal or perfectly normal if and only if X is.

If D is discrete, X × D is homeomorphic to the disjoint sum of |D| copies of X, and when D is nonempty each copy is an open and closed subspace. So for normality, complete and perfect normality, semiregularity, extremal disconnectedness, paracompactness and countable paracompactness, X × D and D × X have the property if and only if X has it.

Two lemmas identify spaces defined by an induced topology with products: if the topology of X is induced by f : X → Y, and e : X ≃ Y × Z has first component f with Z indiscrete, then e is a homeomorphism. And the product of two upper set (Alexandrov) topologies is the upper set topology of the product order; in particular a subset of D × Prop, for D discrete and Prop the Sierpiński space, is open exactly when with each (d, False) it contains (d, True).

Separately, a separable, first countable or second countable product of two spaces has the property in each factor whose companion is nonempty, and likewise for discreteness: the projection onto a factor is a continuous surjection, and the factor embeds in the product as a slice.

The product of a Lindelöf space and a compact space is Lindelöf, by the tube lemma: for each x, finitely many members of an open cover cover the compact slice {x} ×ˢ univ, hence a tube u ×ˢ univ around it, and countably many of the open sets u cover the Lindelöf factor. Conversely, Lindelöfness and extremal disconnectedness pass from a product to each factor whose companion is nonempty, since the projection onto that factor is then a continuous open surjection.

They complement the transfer results of Operators/Product.lean.

Main statements

Tags

product, indiscrete, discrete, inducing map, Lindelöf, extremally disconnected, countably paracompact, meagre, separable, first countable, second countable, normal, completely normal, perfectly normal, semiregular, paracompact, upper set topology

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

Invariance along surjective inducing maps

variable {X' X : Type*} [TopologicalSpace X'] [TopologicalSpace X] {f : X' → X}

theorem isOpenMap_of_surjective

Topology.IsInducing.isOpenMap_of_surjective

A surjective inducing map is an open map.

theorem isOpenMap_of_surjective (hf : IsInducing f) (hs : Surjective f) : IsOpenMap f
Proof
:=
  hf.isOpenMap (hs.range_eq ▸ isOpen_univ)

theorem lindelofSpace_iff_of_surjective

Topology.IsInducing.lindelofSpace_iff_of_surjective

Along a surjective inducing map, the domain is Lindelöf if and only if the codomain is.

theorem lindelofSpace_iff_of_surjective (hf : IsInducing f) (hs : Surjective f) :
    LindelofSpace X' ↔ LindelofSpace X
Proof
:= by
  rw [← isLindelof_univ_iff, ← isLindelof_univ_iff, hf.isLindelof_iff, image_univ_of_surjective hs]

theorem extremallyDisconnected_iff_of_surjective

Topology.IsInducing.extremallyDisconnected_iff_of_surjective

Along a surjective inducing map, the domain is extremally disconnected if and only if the codomain is.

theorem extremallyDisconnected_iff_of_surjective (hf : IsInducing f) (hs : Surjective f) :
    ExtremallyDisconnected X' ↔ ExtremallyDisconnected X
Proof
:= by
  have ho := hf.isOpenMap_of_surjective hs
  refine ⟨fun h ↦ ⟨fun U hU ↦ ?_⟩, fun h ↦ ⟨fun U' hU' ↦ ?_⟩⟩
  · have : IsOpen (f ⁻¹' closure U) := by
      rw [ho.preimage_closure_eq_closure_preimage hf.continuous]
      exact h.open_closure _ (hU.preimage hf.continuous)
    simpa [image_preimage_eq _ hs] using ho _ this
  · obtain ⟨U, hU, rfl⟩ := hf.isOpen_iff.1 hU'
    rw [← ho.preimage_closure_eq_closure_preimage hf.continuous]
    exact (h.open_closure U hU).preimage hf.continuous

theorem isNowhereDense_image_of_surjective

Topology.IsInducing.isNowhereDense_image_of_surjective

Along a surjective inducing map, a set is nowhere dense in the codomain if its preimage is nowhere dense in the domain.

theorem isNowhereDense_image_of_surjective (hf : IsInducing f) (hs : Surjective f) {t : Set X'}
    (ht : IsNowhereDense t) : IsNowhereDense (f '' t)
Proof
:= by
  have ho := hf.isOpenMap_of_surjective hs
  have h : f ⁻¹' interior (closure (f '' t)) = ∅ := by
    rw [ho.preimage_interior_eq_interior_preimage hf.continuous,
      ← hf.closure_eq_preimage_closure_image]
    exact ht
  unfold IsNowhereDense
  rw [← image_preimage_eq (interior (closure (f '' t))) hs, h, image_empty]

theorem isMeagre_univ_iff_of_surjective

Topology.IsInducing.isMeagre_univ_iff_of_surjective

Along a surjective inducing map, the domain is meagre in itself if and only if the codomain is.

theorem isMeagre_univ_iff_of_surjective (hf : IsInducing f) (hs : Surjective f) :
    IsMeagre (univ : Set X') ↔ IsMeagre (univ : Set X)
Proof
:= by
  refine ⟨fun h ↦ ?_, fun h ↦ by
    simpa using h.preimage_of_isOpenMap hf.continuous (hf.isOpenMap_of_surjective hs)⟩
  obtain ⟨S, hSd, hSc, hS⟩ := isMeagre_iff_countable_union_isNowhereDense.1 h
  refine isMeagre_iff_countable_union_isNowhereDense.2
    ⟨image f '' S,
      forall_mem_image.2 fun t ht ↦ hf.isNowhereDense_image_of_surjective hs (hSd t ht),
      hSc.image _, fun x _ ↦ ?_⟩
  obtain ⟨x', rfl⟩ := hs x
  obtain ⟨t, ht, hx't⟩ := mem_sUnion.1 (hS (mem_univ x'))
  exact mem_sUnion.2 ⟨f '' t, mem_image_of_mem _ ht, mem_image_of_mem _ hx't⟩

theorem mem_of_isOpen_of_eq

Topology.IsInducing.mem_of_isOpen_of_eq

Along an inducing map, the open sets of the domain are saturated: a point with the same image as a point of an open set lies in it.

theorem mem_of_isOpen_of_eq (hf : IsInducing f) {U : Set X'} (hU : IsOpen U) {a b : X'}
    (hab : f a = f b) (ha : a ∈ U) : b ∈ U
Proof
:= by
  obtain ⟨V, -, rfl⟩ := hf.isOpen_iff.1 hU
  exact (mem_preimage.2 (hab ▸ ha : f b ∈ V))

theorem countablyParacompactSpace_iff_of_surjective

Topology.IsInducing.countablyParacompactSpace_iff_of_surjective

Along a surjective inducing map, the domain is countably paracompact if and only if the codomain is.

theorem countablyParacompactSpace_iff_of_surjective (hf : IsInducing f) (hs : Surjective f) :
    TopologyByExample.CountablyParacompactSpace X' ↔ TopologyByExample.CountablyParacompactSpace X
Proof
:= by
  have ho := hf.isOpenMap_of_surjective hs
  refine ⟨fun h ↦ ⟨fun U hUc hUo hU ↦ ?_⟩, fun h ↦ ⟨fun U' hU'c hU'o hU' ↦ ?_⟩⟩
  · -- Pull the cover back, refine it upstairs and push the refinement down.
    obtain ⟨V, hVo, hV, hVf, hVU⟩ := h.locallyFinite_refinement (preimage f '' U)
      (hUc.image _) (forall_mem_image.2 fun u hu ↦ (hUo u hu).preimage hf.continuous)
      (by rw [sUnion_image, ← preimage_iUnion₂, ← sUnion_eq_biUnion, hU, preimage_univ])
    refine ⟨image f '' V, forall_mem_image.2 fun v hv ↦ ho _ (hVo v hv), ?_, ?_, ?_⟩
    · refine eq_univ_of_forall fun x ↦ ?_
      obtain ⟨x', rfl⟩ := hs x
      obtain ⟨v, hv, hx'⟩ := mem_sUnion.1 (hV ▸ mem_univ x' : x' ∈ ⋃₀ V)
      exact mem_sUnion.2 ⟨f '' v, mem_image_of_mem _ hv, mem_image_of_mem _ hx'⟩
    · refine TopologyByExample.locallyFinite_subtype_iff.2 fun x ↦ ?_
      obtain ⟨x', rfl⟩ := hs x
      obtain ⟨t, ht, htf⟩ := TopologyByExample.locallyFinite_subtype_iff.1 hVf x'
      obtain ⟨t', ht't, ht'o, hx't'⟩ := mem_nhds_iff.1 ht
      have hfin : {v ∈ V | (v ∩ t').Nonempty}.Finite :=
        htf.subset fun v hv ↦ ⟨hv.1, hv.2.mono (inter_subset_inter_right _ ht't)⟩
      refine ⟨f '' t', ho.image_mem_nhds (ht'o.mem_nhds hx't'), (hfin.image (image f)).subset ?_⟩
      rintro _ ⟨⟨v, hv, rfl⟩, _, ⟨a, ha, rfl⟩, b, hb, hab⟩
      exact ⟨v, ⟨hv, b, hf.mem_of_isOpen_of_eq (hVo v hv) hab.symm ha, hb⟩, rfl⟩
    · rintro _ ⟨v, hv, rfl⟩
      obtain ⟨_, ⟨u, hu, rfl⟩, hvu⟩ := hVU v hv
      exact ⟨u, hu, (image_mono hvu).trans (image_preimage_subset f u)⟩
  · -- Push the cover down, refine it downstairs and pull the refinement back.
    obtain ⟨V, hVo, hV, hVf, hVU⟩ := h.locallyFinite_refinement (image f '' U')
      (hU'c.image _) (forall_mem_image.2 fun u hu ↦ ho _ (hU'o u hu)) (by
        refine eq_univ_of_forall fun x ↦ ?_
        obtain ⟨x', rfl⟩ := hs x
        obtain ⟨u, hu, hx'⟩ := mem_sUnion.1 (hU' ▸ mem_univ x' : x' ∈ ⋃₀ U')
        exact mem_sUnion.2 ⟨f '' u, mem_image_of_mem _ hu, mem_image_of_mem _ hx'⟩)
    refine ⟨preimage f '' V, forall_mem_image.2 fun v hv ↦ (hVo v hv).preimage hf.continuous,
      ?_, ?_, ?_⟩
    · rw [sUnion_image, ← preimage_iUnion₂, ← sUnion_eq_biUnion, hV, preimage_univ]
    · refine TopologyByExample.locallyFinite_subtype_iff.2 fun x' ↦ ?_
      obtain ⟨t, ht, htf⟩ := TopologyByExample.locallyFinite_subtype_iff.1 hVf (f x')
      refine ⟨f ⁻¹' t, hf.continuous.continuousAt.preimage_mem_nhds ht,
        (htf.image (preimage f)).subset ?_⟩
      rintro _ ⟨⟨v, hv, rfl⟩, z, hzv, hzt⟩
      exact ⟨v, ⟨hv, f z, hzv, hzt⟩, rfl⟩
    · rintro _ ⟨v, hv, rfl⟩
      obtain ⟨_, ⟨u, hu, rfl⟩, hvu⟩ := hVU v hv
      refine ⟨u, hu, fun a ha ↦ ?_⟩
      obtain ⟨b, hb, hab⟩ := hvu ha
      exact hf.mem_of_isOpen_of_eq (hU'o u hu) hab hb

theorem normalSpace_of_surjective

Topology.IsInducing.normalSpace_of_surjective

The domain of a surjective inducing map into a normal space is normal.

theorem normalSpace_of_surjective [NormalSpace X] (hf : IsInducing f) (hs : Surjective f) :
    NormalSpace X'
Proof
where
  normal s t hs' ht' hst := by
    obtain ⟨s₀, hs₀, rfl⟩ := hf.isClosed_iff.1 hs'
    obtain ⟨t₀, ht₀, rfl⟩ := hf.isClosed_iff.1 ht'
    exact (normal_separation hs₀ ht₀ (hst.of_preimage hs)).preimage hf.continuous
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]

Products with an indiscrete factor

variable [IndiscreteTopology Y]

theorem isInducing_fst_of_indiscreteTopology

TopologyByExample.isInducing_fst_of_indiscreteTopology

If Y is indiscrete, the topology of X × Y is induced by the first projection.

theorem isInducing_fst_of_indiscreteTopology : IsInducing (Prod.fst : X × Y → X)
Proof
:=
  ⟨by rw [instTopologicalSpaceProd, IndiscreteTopology.eq_top Y, induced_top, inf_top_eq]⟩

theorem isOpen_prod_iff_of_indiscreteTopology

TopologyByExample.isOpen_prod_iff_of_indiscreteTopology

If Y is indiscrete, the open sets of X × Y are exactly the sets U ×ˢ univ with U open in X.

theorem isOpen_prod_iff_of_indiscreteTopology {W : Set (X × Y)} :
    IsOpen W ↔ ∃ U : Set X, IsOpen U ∧ W = U ×ˢ univ
Proof
:= by
  simp only [isInducing_fst_of_indiscreteTopology.isOpen_iff, prod_univ, eq_comm]

On this site: Theorem: The open sets of a product with an indiscrete second factor

theorem exists_accPt_prod_of_indiscreteTopology

TopologyByExample.exists_accPt_prod_of_indiscreteTopology

If Y is indiscrete and has two distinct points, every nonempty subset of X × Y has an accumulation point: the twin (x, y') of any of its points (x, y), with y' ≠ y.

theorem exists_accPt_prod_of_indiscreteTopology [Nontrivial Y] {s : Set (X × Y)}
    (hs : s.Nonempty) : ∃ p, AccPt p (𝓟 s)
Proof
:= by
  obtain ⟨⟨x, y⟩, hxy⟩ := hs
  obtain ⟨y', hy'⟩ := exists_ne y
  refine ⟨(x, y'), accPt_iff_nhds.2 fun U hU ↦
    ⟨(x, y), ⟨?_, hxy⟩, fun h ↦ hy' (congrArg Prod.snd h).symm⟩⟩
  obtain ⟨W, hWU, hWo, hW⟩ := mem_nhds_iff.1 hU
  exact hWU (isInducing_fst_of_indiscreteTopology.mem_of_isOpen_of_eq (a := (x, y'))
    (b := (x, y)) hWo rfl hW)

theorem limitPointCompact_prod_of_indiscreteTopology

TopologyByExample.limitPointCompact_prod_of_indiscreteTopology

If Y is indiscrete and has two distinct points, X × Y is limit point compact: every infinite subset has an accumulation point.

theorem limitPointCompact_prod_of_indiscreteTopology [Nontrivial Y] :
    ∀ s : Set (X × Y), s.Infinite → ∃ p, AccPt p (𝓟 s)
Proof
:=
  fun _ hs ↦ exists_accPt_prod_of_indiscreteTopology hs.nonempty

theorem subsingleton_or_limitPointCompact_prod_of_indiscreteTopology

TopologyByExample.subsingleton_or_limitPointCompact_prod_of_indiscreteTopology

If Y is indiscrete, then X × Y is limit point compact unless Y has at most one point: the form of TopologyByExample.limitPointCompact_prod_of_indiscreteTopology with the case split on Y made explicit.

theorem subsingleton_or_limitPointCompact_prod_of_indiscreteTopology :
    Subsingleton Y ∨ ∀ s : Set (X × Y), s.Infinite → ∃ p, AccPt p (𝓟 s)
Proof
:= by
  rcases subsingleton_or_nontrivial Y with h | h
  exacts [Or.inl h, Or.inr limitPointCompact_prod_of_indiscreteTopology]

On this site: Theorem: A product with an indiscrete second factor of at least two points is limit point compact

theorem lindelofSpace_prod_iff_of_indiscreteTopology

TopologyByExample.lindelofSpace_prod_iff_of_indiscreteTopology

If Y is indiscrete and nonempty, X × Y is Lindelöf if and only if X is.

theorem lindelofSpace_prod_iff_of_indiscreteTopology [Nonempty Y] :
    LindelofSpace (X × Y) ↔ LindelofSpace X
Proof
:=
  isInducing_fst_of_indiscreteTopology.lindelofSpace_iff_of_surjective Prod.fst_surjective

On this site: Theorem: A product with a nonempty indiscrete second factor is Lindelöf iff the first factor is

theorem extremallyDisconnected_prod_iff_of_indiscreteTopology

TopologyByExample.extremallyDisconnected_prod_iff_of_indiscreteTopology

If Y is indiscrete and nonempty, X × Y is extremally disconnected if and only if X is.

theorem extremallyDisconnected_prod_iff_of_indiscreteTopology [Nonempty Y] :
    ExtremallyDisconnected (X × Y) ↔ ExtremallyDisconnected X
Proof
:=
  isInducing_fst_of_indiscreteTopology.extremallyDisconnected_iff_of_surjective Prod.fst_surjective

On this site: Theorem: A product with a nonempty indiscrete second factor is extremally disconnected iff the first factor is

theorem countablyParacompactSpace_prod_iff_of_indiscreteTopology

TopologyByExample.countablyParacompactSpace_prod_iff_of_indiscreteTopology

If Y is indiscrete and nonempty, X × Y is countably paracompact if and only if X is.

theorem countablyParacompactSpace_prod_iff_of_indiscreteTopology [Nonempty Y] :
    CountablyParacompactSpace (X × Y) ↔ CountablyParacompactSpace X
Proof
:=
  isInducing_fst_of_indiscreteTopology.countablyParacompactSpace_iff_of_surjective
    Prod.fst_surjective

On this site: Theorem: A product with a nonempty indiscrete second factor is countably paracompact iff the first factor is

theorem not_isMeagre_univ_prod_iff_of_indiscreteTopology

TopologyByExample.not_isMeagre_univ_prod_iff_of_indiscreteTopology

If Y is indiscrete and nonempty, X × Y is of second category (not meagre in itself) if and only if X is.

theorem not_isMeagre_univ_prod_iff_of_indiscreteTopology [Nonempty Y] :
    ¬IsMeagre (univ : Set (X × Y)) ↔ ¬IsMeagre (univ : Set X)
Proof
:=
  (isInducing_fst_of_indiscreteTopology.isMeagre_univ_iff_of_surjective Prod.fst_surjective).not

On this site: Theorem: A product of a space of second category with a nonempty indiscrete space is of second category

theorem normalSpace_prod_iff_of_indiscreteTopology

TopologyByExample.normalSpace_prod_iff_of_indiscreteTopology

If Y is indiscrete and nonempty, X × Y is normal if and only if X is.

theorem normalSpace_prod_iff_of_indiscreteTopology [Nonempty Y] :
    NormalSpace (X × Y) ↔ NormalSpace X
Proof
:=
  ⟨fun _ ↦ normalSpace_of_normalSpace_prod_left (Y := Y), fun _ ↦
    isInducing_fst_of_indiscreteTopology.normalSpace_of_surjective Prod.fst_surjective⟩

On this site: Theorem: A product with a nonempty indiscrete second factor is normal iff the first factor is

theorem completelyNormalSpace_prod_iff_of_indiscreteTopology

TopologyByExample.completelyNormalSpace_prod_iff_of_indiscreteTopology

If Y is indiscrete and nonempty, X × Y is completely normal if and only if X is.

theorem completelyNormalSpace_prod_iff_of_indiscreteTopology [Nonempty Y] :
    CompletelyNormalSpace (X × Y) ↔ CompletelyNormalSpace X
Proof
:=
  ⟨fun _ ↦ completelyNormalSpace_of_completelyNormalSpace_prod_left (Y := Y), fun _ ↦
    isInducing_fst_of_indiscreteTopology.completelyNormalSpace⟩

On this site: Theorem: A product with a nonempty indiscrete second factor is completely normal iff the first factor is

theorem perfectlyNormalSpace_prod_iff_of_indiscreteTopology

TopologyByExample.perfectlyNormalSpace_prod_iff_of_indiscreteTopology

If Y is indiscrete and nonempty, X × Y is perfectly normal if and only if X is.

theorem perfectlyNormalSpace_prod_iff_of_indiscreteTopology [Nonempty Y] :
    PerfectlyNormalSpace (X × Y) ↔ PerfectlyNormalSpace X
Proof
:=
  ⟨fun _ ↦ perfectlyNormalSpace_of_perfectlyNormalSpace_prod_left (Y := Y), fun _ ↦
    isInducing_fst_of_indiscreteTopology.perfectlyNormalSpace⟩

On this site: Theorem: A product with a nonempty indiscrete second factor is perfectly normal iff the first factor is

Products with a discrete factor

definition sigmaEquivProdOfDiscrete

TopologyByExample.Homeomorph.sigmaEquivProdOfDiscrete

If D is discrete, the disjoint sum of copies of X indexed by D is homeomorphic to D × X.

def sigmaEquivProdOfDiscrete (D X : Type*) [TopologicalSpace D] [DiscreteTopology D]
    [TopologicalSpace X] : (Σ _ : D, X) ≃ₜ D × X
Definition
where
  toEquiv := Equiv.sigmaEquivProd D X
  continuous_toFun := continuous_sigma fun _ ↦ continuous_const.prodMk continuous_id
  continuous_invFun := continuous_prod_of_discrete_left.2 fun d ↦ by
    exact continuous_sigmaMk (σ := fun _ : D ↦ X) (i := d)

definition prodHomeomorphSigmaRight

TopologyByExample.prodHomeomorphSigmaRight

If Y is discrete, X × Y is homeomorphic to the disjoint sum of copies of X indexed by Y.

private def prodHomeomorphSigmaRight [DiscreteTopology Y] : X × Y ≃ₜ Σ _ : Y, X
:=
  (_root_.Homeomorph.prodComm X Y).trans (Homeomorph.sigmaEquivProdOfDiscrete Y X).symm

definition prodHomeomorphSigmaLeft

TopologyByExample.prodHomeomorphSigmaLeft

If X is discrete, X × Y is homeomorphic to the disjoint sum of copies of Y indexed by X.

private def prodHomeomorphSigmaLeft [DiscreteTopology X] : X × Y ≃ₜ Σ _ : X, Y
:=
  (Homeomorph.sigmaEquivProdOfDiscrete X Y).symm

theorem normalSpace_prod_iff_of_discreteTopology_right

TopologyByExample.normalSpace_prod_iff_of_discreteTopology_right

If Y is discrete and nonempty, X × Y is normal if and only if X is.

theorem normalSpace_prod_iff_of_discreteTopology_right [DiscreteTopology Y] [Nonempty Y] :
    NormalSpace (X × Y) ↔ NormalSpace X
Proof
:= by
  rw [Homeomorph.normalSpace_iff prodHomeomorphSigmaRight]
  exact ⟨fun _ ↦ (IsClosedEmbedding.sigmaMk (σ := fun _ : Y ↦ X)
    (i := Classical.arbitrary Y)).normalSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete second factor is normal iff the first factor is

theorem normalSpace_prod_iff_of_discreteTopology_left

TopologyByExample.normalSpace_prod_iff_of_discreteTopology_left

If X is discrete and nonempty, X × Y is normal if and only if Y is.

theorem normalSpace_prod_iff_of_discreteTopology_left [DiscreteTopology X] [Nonempty X] :
    NormalSpace (X × Y) ↔ NormalSpace Y
Proof
:= by
  rw [Homeomorph.normalSpace_iff prodHomeomorphSigmaLeft]
  exact ⟨fun _ ↦ (IsClosedEmbedding.sigmaMk (σ := fun _ : X ↦ Y)
    (i := Classical.arbitrary X)).normalSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete first factor is normal iff the second factor is

theorem completelyNormalSpace_prod_iff_of_discreteTopology_right

TopologyByExample.completelyNormalSpace_prod_iff_of_discreteTopology_right

If Y is discrete and nonempty, X × Y is completely normal if and only if X is.

theorem completelyNormalSpace_prod_iff_of_discreteTopology_right [DiscreteTopology Y]
    [Nonempty Y] : CompletelyNormalSpace (X × Y) ↔ CompletelyNormalSpace X
Proof
:= by
  rw [Homeomorph.completelyNormalSpace_iff prodHomeomorphSigmaRight]
  exact ⟨fun _ ↦ (IsEmbedding.sigmaMk (σ := fun _ : Y ↦ X)
    (i := Classical.arbitrary Y)).isInducing.completelyNormalSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete second factor is completely normal iff the first factor is

theorem completelyNormalSpace_prod_iff_of_discreteTopology_left

TopologyByExample.completelyNormalSpace_prod_iff_of_discreteTopology_left

If X is discrete and nonempty, X × Y is completely normal if and only if Y is.

theorem completelyNormalSpace_prod_iff_of_discreteTopology_left [DiscreteTopology X]
    [Nonempty X] : CompletelyNormalSpace (X × Y) ↔ CompletelyNormalSpace Y
Proof
:= by
  rw [Homeomorph.completelyNormalSpace_iff prodHomeomorphSigmaLeft]
  exact ⟨fun _ ↦ (IsEmbedding.sigmaMk (σ := fun _ : X ↦ Y)
    (i := Classical.arbitrary X)).isInducing.completelyNormalSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete first factor is completely normal iff the second factor is

theorem perfectlyNormalSpace_prod_iff_of_discreteTopology_right

TopologyByExample.perfectlyNormalSpace_prod_iff_of_discreteTopology_right

If Y is discrete and nonempty, X × Y is perfectly normal if and only if X is.

theorem perfectlyNormalSpace_prod_iff_of_discreteTopology_right [DiscreteTopology Y]
    [Nonempty Y] : PerfectlyNormalSpace (X × Y) ↔ PerfectlyNormalSpace X
Proof
:= by
  rw [Homeomorph.perfectlyNormalSpace_iff prodHomeomorphSigmaRight]
  exact ⟨fun _ ↦ (IsEmbedding.sigmaMk (σ := fun _ : Y ↦ X)
    (i := Classical.arbitrary Y)).isInducing.perfectlyNormalSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete second factor is perfectly normal iff the first factor is

theorem perfectlyNormalSpace_prod_iff_of_discreteTopology_left

TopologyByExample.perfectlyNormalSpace_prod_iff_of_discreteTopology_left

If X is discrete and nonempty, X × Y is perfectly normal if and only if Y is.

theorem perfectlyNormalSpace_prod_iff_of_discreteTopology_left [DiscreteTopology X]
    [Nonempty X] : PerfectlyNormalSpace (X × Y) ↔ PerfectlyNormalSpace Y
Proof
:= by
  rw [Homeomorph.perfectlyNormalSpace_iff prodHomeomorphSigmaLeft]
  exact ⟨fun _ ↦ (IsEmbedding.sigmaMk (σ := fun _ : X ↦ Y)
    (i := Classical.arbitrary X)).isInducing.perfectlyNormalSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete first factor is perfectly normal iff the second factor is

theorem semiregularSpace_prod_iff_of_discreteTopology_right

TopologyByExample.semiregularSpace_prod_iff_of_discreteTopology_right

If Y is discrete and nonempty, X × Y is semiregular if and only if X is.

theorem semiregularSpace_prod_iff_of_discreteTopology_right [DiscreteTopology Y] [Nonempty Y] :
    SemiregularSpace (X × Y) ↔ SemiregularSpace X
Proof
:= by
  rw [Homeomorph.semiregularSpace_iff prodHomeomorphSigmaRight]
  exact ⟨fun _ ↦ .of_isOpenEmbedding (IsOpenEmbedding.sigmaMk (σ := fun _ : Y ↦ X)
    (i := Classical.arbitrary Y)), fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete second factor is semiregular iff the first factor is

theorem semiregularSpace_prod_iff_of_discreteTopology_left

TopologyByExample.semiregularSpace_prod_iff_of_discreteTopology_left

If X is discrete and nonempty, X × Y is semiregular if and only if Y is.

theorem semiregularSpace_prod_iff_of_discreteTopology_left [DiscreteTopology X] [Nonempty X] :
    SemiregularSpace (X × Y) ↔ SemiregularSpace Y
Proof
:= by
  rw [Homeomorph.semiregularSpace_iff prodHomeomorphSigmaLeft]
  exact ⟨fun _ ↦ .of_isOpenEmbedding (IsOpenEmbedding.sigmaMk (σ := fun _ : X ↦ Y)
    (i := Classical.arbitrary X)), fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete first factor is semiregular iff the second factor is

theorem extremallyDisconnected_prod_iff_of_discreteTopology_right

TopologyByExample.extremallyDisconnected_prod_iff_of_discreteTopology_right

If Y is discrete and nonempty, X × Y is extremally disconnected if and only if X is.

theorem extremallyDisconnected_prod_iff_of_discreteTopology_right [DiscreteTopology Y]
    [Nonempty Y] : ExtremallyDisconnected (X × Y) ↔ ExtremallyDisconnected X
Proof
:= by
  rw [Homeomorph.extremallyDisconnected_iff prodHomeomorphSigmaRight]
  exact ⟨fun _ ↦ ExtremallyDisconnected.of_isOpenEmbedding (IsOpenEmbedding.sigmaMk
    (σ := fun _ : Y ↦ X) (i := Classical.arbitrary Y)), fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete second factor is extremally disconnected iff the first factor is

theorem extremallyDisconnected_prod_iff_of_discreteTopology_left

TopologyByExample.extremallyDisconnected_prod_iff_of_discreteTopology_left

If X is discrete and nonempty, X × Y is extremally disconnected if and only if Y is.

theorem extremallyDisconnected_prod_iff_of_discreteTopology_left [DiscreteTopology X]
    [Nonempty X] : ExtremallyDisconnected (X × Y) ↔ ExtremallyDisconnected Y
Proof
:= by
  rw [Homeomorph.extremallyDisconnected_iff prodHomeomorphSigmaLeft]
  exact ⟨fun _ ↦ ExtremallyDisconnected.of_isOpenEmbedding (IsOpenEmbedding.sigmaMk
    (σ := fun _ : X ↦ Y) (i := Classical.arbitrary X)), fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete first factor is extremally disconnected iff the second factor is

theorem paracompactSpace_prod_iff_of_discreteTopology_right

TopologyByExample.paracompactSpace_prod_iff_of_discreteTopology_right

If Y is discrete and nonempty, X × Y is paracompact if and only if X is.

theorem paracompactSpace_prod_iff_of_discreteTopology_right [DiscreteTopology Y] [Nonempty Y] :
    ParacompactSpace (X × Y) ↔ ParacompactSpace X
Proof
:= by
  rw [Homeomorph.paracompactSpace_iff prodHomeomorphSigmaRight]
  exact ⟨fun _ ↦ (IsClosedEmbedding.sigmaMk (σ := fun _ : Y ↦ X)
    (i := Classical.arbitrary Y)).paracompactSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete second factor is paracompact iff the first factor is

theorem paracompactSpace_prod_iff_of_discreteTopology_left

TopologyByExample.paracompactSpace_prod_iff_of_discreteTopology_left

If X is discrete and nonempty, X × Y is paracompact if and only if Y is.

theorem paracompactSpace_prod_iff_of_discreteTopology_left [DiscreteTopology X] [Nonempty X] :
    ParacompactSpace (X × Y) ↔ ParacompactSpace Y
Proof
:= by
  rw [Homeomorph.paracompactSpace_iff prodHomeomorphSigmaLeft]
  exact ⟨fun _ ↦ (IsClosedEmbedding.sigmaMk (σ := fun _ : X ↦ Y)
    (i := Classical.arbitrary X)).paracompactSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete first factor is paracompact iff the second factor is

theorem countablyParacompactSpace_prod_iff_of_discreteTopology_right

TopologyByExample.countablyParacompactSpace_prod_iff_of_discreteTopology_right

If Y is discrete and nonempty, X × Y is countably paracompact if and only if X is.

theorem countablyParacompactSpace_prod_iff_of_discreteTopology_right [DiscreteTopology Y]
    [Nonempty Y] : CountablyParacompactSpace (X × Y) ↔ CountablyParacompactSpace X
Proof
:= by
  rw [Homeomorph.countablyParacompactSpace_iff prodHomeomorphSigmaRight]
  exact ⟨fun _ ↦ (IsClosedEmbedding.sigmaMk (σ := fun _ : Y ↦ X)
    (i := Classical.arbitrary Y)).countablyParacompactSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete second factor is countably paracompact iff the first factor is

theorem countablyParacompactSpace_prod_iff_of_discreteTopology_left

TopologyByExample.countablyParacompactSpace_prod_iff_of_discreteTopology_left

If X is discrete and nonempty, X × Y is countably paracompact if and only if Y is.

theorem countablyParacompactSpace_prod_iff_of_discreteTopology_left [DiscreteTopology X]
    [Nonempty X] : CountablyParacompactSpace (X × Y) ↔ CountablyParacompactSpace Y
Proof
:= by
  rw [Homeomorph.countablyParacompactSpace_iff prodHomeomorphSigmaLeft]
  exact ⟨fun _ ↦ (IsClosedEmbedding.sigmaMk (σ := fun _ : X ↦ Y)
    (i := Classical.arbitrary X)).countablyParacompactSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: A product with a nonempty discrete first factor is countably paracompact iff the second factor is

theorem prod

Topology.IsUpperSet.prod

If the upper set topology is the topology of two preorders, then it is the topology of their product, with the product order.

theorem _root_.Topology.IsUpperSet.prod {α β : Type*} [Preorder α] [Preorder β]
    [TopologicalSpace α] [TopologicalSpace β] [Topology.IsUpperSet α] [Topology.IsUpperSet β] :
    Topology.IsUpperSet (α × β)
Proof
:=
  Topology.isUpperSet_iff_nhds.2 fun a ↦ by
    rw [nhds_prod_eq, Topology.IsUpperSet.nhds_eq_principal_Ici,
      Topology.IsUpperSet.nhds_eq_principal_Ici, prod_principal_principal, Ici_prod_Ici]

theorem isOpen_prod_prop_iff

TopologyByExample.isOpen_prod_prop_iff

If D is discrete, a subset of D × Prop is open if and only if, with any point (d, False), it contains (d, True).

theorem isOpen_prod_prop_iff {D : Type*} [TopologicalSpace D] [DiscreteTopology D]
    {U : Set (D × Prop)} : IsOpen U ↔ ∀ d, (d, False) ∈ U → (d, True) ∈ U
Proof
:= by
  constructor
  · intro hU d hd
    have : ((d, True) : D × Prop) ⤳ (d, False) :=
      specializes_prod.2 ⟨specializes_rfl, Topology.IsUpperSet.specializes_iff_le.2 fun h ↦ h.elim⟩
    exact this.mem_open hU hd
  · intro h
    refine isOpen_iff_mem_nhds.2 fun ⟨d, p⟩ hp ↦ ?_
    rw [nhds_prod_eq, nhds_discrete, Topology.IsUpperSet.nhds_eq_principal_Ici]
    refine mem_prod_iff.2 ⟨{d}, rfl, Ici p, mem_principal_self _, ?_⟩
    rintro ⟨d', q⟩ ⟨rfl, hpq : p ≤ q⟩
    by_cases hq : q
    · by_cases hp' : p
      · simpa [hq, hp'] using hp
      · exact eq_true hq ▸ h d' (by simpa [hp'] using hp)
    · have : ¬p := fun h' ↦ hq (hpq h')
      simpa [hq, this] using hp

Topologies induced into a product with an indiscrete factor

theorem isInducing_comp_ofTopology_induced

TopologyByExample.isInducing_comp_ofTopology_induced

If X carries the topology induced by f : X → Y, then f (read on WithTopology) is an inducing map.

theorem isInducing_comp_ofTopology_induced {X Y : Type*} [TopologicalSpace Y] (f : X → Y) :
    IsInducing (f ∘ WithTopology.ofTopology (t := .induced f ‹_›))
Proof
:= by
  refine ⟨TopologicalSpace.ext ?_⟩
  ext s
  rw [WithTopology.isOpen_iff, isOpen_induced_iff, isOpen_induced_iff]
  refine exists_congr fun v ↦ and_congr_right fun _ ↦ ?_
  constructor
  · rintro h
    ext x
    simpa using congrArg (x.ofTopology ∈ ·) h
  · rintro rfl
    rfl

definition homeomorphProdOfIndiscrete

TopologyByExample.homeomorphProdOfIndiscrete

If the topology of X is induced by f : X → Y, and e : X ≃ Y × Z has first component f where Z is indiscrete, then e is a homeomorphism.

def homeomorphProdOfIndiscrete {X Y Z : Type*} [TopologicalSpace Y] [TopologicalSpace Z]
    [IndiscreteTopology Z] (f : X → Y) (e : X ≃ Y × Z) (he : ∀ x, (e x).1 = f x) :
    WithTopology X (.induced f ‹_›) ≃ₜ Y × Z
Definition
:=
  ((WithTopology.equiv X _).trans e).toHomeomorphOfIsInducing <|
    isInducing_fst_of_indiscreteTopology.of_comp_iff.1 <| by
      convert isInducing_comp_ofTopology_induced f using 1
      funext x
      exact he _

definition homeomorphOfInduced

TopologyByExample.homeomorphOfInduced

If the topology of X is induced by an equivalence e : X ≃ Y, then e is a homeomorphism.

def homeomorphOfInduced {X Y : Type*} [TopologicalSpace Y] (e : X ≃ Y) :
    WithTopology X (.induced e ‹_›) ≃ₜ Y
:=
  ((WithTopology.equiv X _).trans e).toHomeomorphOfIsInducing
    (isInducing_comp_ofTopology_induced e)

The factors of a product

theorem separableSpace_of_prod_left

TopologyByExample.separableSpace_of_prod_left

If X × Y is separable and Y is nonempty, then X is separable.

theorem separableSpace_of_prod_left [Nonempty Y] [SeparableSpace (X × Y)] : SeparableSpace X
Proof
:=
  DenseRange.separableSpace (f := (Prod.fst : X × Y → X)) Prod.fst_surjective.denseRange
    continuous_fst

On this site: Theorem: If a product is separable and its second factor is nonempty, its first factor is separable

theorem separableSpace_of_prod_right

TopologyByExample.separableSpace_of_prod_right

If X × Y is separable and X is nonempty, then Y is separable.

theorem separableSpace_of_prod_right [Nonempty X] [SeparableSpace (X × Y)] : SeparableSpace Y
Proof
:=
  DenseRange.separableSpace (f := (Prod.snd : X × Y → Y)) Prod.snd_surjective.denseRange
    continuous_snd

On this site: Theorem: If a product is separable and its first factor is nonempty, its second factor is separable

theorem firstCountableTopology_of_prod_left

TopologyByExample.firstCountableTopology_of_prod_left

If X × Y is first countable and Y is nonempty, then X is first countable.

theorem firstCountableTopology_of_prod_left [Nonempty Y] [FirstCountableTopology (X × Y)] :
    FirstCountableTopology X
Proof
:=
  (isEmbedding_prodMkLeft (Classical.arbitrary Y)).firstCountableTopology

On this site: Theorem: If a product is first countable and its second factor is nonempty, its first factor is first countable

theorem firstCountableTopology_of_prod_right

TopologyByExample.firstCountableTopology_of_prod_right

If X × Y is first countable and X is nonempty, then Y is first countable.

theorem firstCountableTopology_of_prod_right [Nonempty X] [FirstCountableTopology (X × Y)] :
    FirstCountableTopology Y
Proof
:=
  (isEmbedding_prodMkRight (Classical.arbitrary X)).firstCountableTopology

On this site: Theorem: If a product is first countable and its first factor is nonempty, its second factor is first countable

theorem secondCountableTopology_of_prod_left

TopologyByExample.secondCountableTopology_of_prod_left

If X × Y is second countable and Y is nonempty, then X is second countable.

theorem secondCountableTopology_of_prod_left [Nonempty Y] [SecondCountableTopology (X × Y)] :
    SecondCountableTopology X
Proof
:=
  (isEmbedding_prodMkLeft (Classical.arbitrary Y)).secondCountableTopology

On this site: Theorem: If a product is second countable and its second factor is nonempty, its first factor is second countable

theorem secondCountableTopology_of_prod_right

TopologyByExample.secondCountableTopology_of_prod_right

If X × Y is second countable and X is nonempty, then Y is second countable.

theorem secondCountableTopology_of_prod_right [Nonempty X] [SecondCountableTopology (X × Y)] :
    SecondCountableTopology Y
Proof
:=
  (isEmbedding_prodMkRight (Classical.arbitrary X)).secondCountableTopology

On this site: Theorem: If a product is second countable and its first factor is nonempty, its second factor is second countable

theorem discreteTopology_of_prod_left

TopologyByExample.discreteTopology_of_prod_left

If X × Y is discrete and Y is nonempty, then X is discrete.

theorem discreteTopology_of_prod_left [Nonempty Y] [DiscreteTopology (X × Y)] :
    DiscreteTopology X
Proof
:=
  (isEmbedding_prodMkLeft (Classical.arbitrary Y)).discreteTopology

On this site: Theorem: If a product is discrete and its second factor is nonempty, its first factor is discrete

theorem discreteTopology_of_prod_right

TopologyByExample.discreteTopology_of_prod_right

If X × Y is discrete and X is nonempty, then Y is discrete.

theorem discreteTopology_of_prod_right [Nonempty X] [DiscreteTopology (X × Y)] :
    DiscreteTopology Y
Proof
:=
  (isEmbedding_prodMkRight (Classical.arbitrary X)).discreteTopology

On this site: Theorem: If a product is discrete and its first factor is nonempty, its second factor is discrete

Extremal disconnectedness along open maps

theorem IsOpenMap.extremallyDisconnected_of_surjective

The image of an extremally disconnected space under a continuous open surjection is extremally disconnected: the closure of an open set U is the image of the closure of its preimage, which is open.

theorem IsOpenMap.extremallyDisconnected_of_surjective {X Y : Type*} [TopologicalSpace X]
    [TopologicalSpace Y] [ExtremallyDisconnected X] {f : X → Y} (hfo : IsOpenMap f)
    (hfc : Continuous f) (hfs : Surjective f) : ExtremallyDisconnected Y
Proof
where
  open_closure U hU := by
    rw [← image_preimage_eq (closure U) hfs, hfo.preimage_closure_eq_closure_preimage hfc]
    exact hfo _ (ExtremallyDisconnected.open_closure _ (hU.preimage hfc))
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]

Lindelöf times compact

instance lindelofSpace_prod_of_compactSpace

TopologyByExample.lindelofSpace_prod_of_compactSpace

The product of a Lindelöf space and a compact space is Lindelöf (the tube lemma).

instance lindelofSpace_prod_of_compactSpace [LindelofSpace X] [CompactSpace Y] :
    LindelofSpace (X × Y)
Proof
:= by
  refine ⟨isLindelof_of_countable_subcover fun {ι} U hUo hU ↦ ?_⟩
  have hfin : ∀ x : X, ∃ t : Finset ι, ({x} : Set X) ×ˢ (univ : Set Y) ⊆ ⋃ i ∈ t, U i :=
    fun x ↦ (isCompact_singleton.prod isCompact_univ).elim_finite_subcover U hUo
      fun p _ ↦ hU (mem_univ p)
  choose t ht using hfin
  have htube : ∀ x : X, ∃ u : Set X, IsOpen u ∧ x ∈ u ∧
      u ×ˢ (univ : Set Y) ⊆ ⋃ i ∈ t x, U i := fun x ↦ by
    obtain ⟨u, v, hu, -, hxu, hv, huv⟩ := generalized_tube_lemma isCompact_singleton
      isCompact_univ (isOpen_biUnion fun i _ ↦ hUo i) (ht x)
    exact ⟨u, hu, hxu (mem_singleton x), (prod_mono subset_rfl hv).trans huv⟩
  choose u hu hxu hut using htube
  obtain ⟨s, hs, hsu⟩ := countable_cover_nhds fun x ↦ (hu x).mem_nhds (hxu x)
  refine ⟨⋃ x ∈ s, (t x : Set ι), hs.biUnion fun x _ ↦ (t x).countable_toSet, ?_⟩
  rintro ⟨a, b⟩ -
  obtain ⟨x, hx, hax⟩ := mem_iUnion₂.1 (hsu.symm ▸ mem_univ a : a ∈ ⋃ x ∈ s, u x)
  obtain ⟨i, hi, hab⟩ := mem_iUnion₂.1 (hut x (mk_mem_prod hax (mem_univ b)))
  exact mem_iUnion₂.2 ⟨i, mem_iUnion₂.2 ⟨x, hx, hi⟩, hab⟩

On this site: Theorem: The product of a Lindelöf space and a compact space is Lindelöf

instance lindelofSpace_prod_of_compactSpace_left

TopologyByExample.lindelofSpace_prod_of_compactSpace_left

The product of a compact space and a Lindelöf space is Lindelöf.

instance lindelofSpace_prod_of_compactSpace_left [CompactSpace X] [LindelofSpace Y] :
    LindelofSpace (X × Y)
Proof
:=
  LindelofSpace.of_continuous_surjective (X := Y × X) continuous_swap Prod.swap_surjective

The factors of a product

theorem lindelofSpace_of_prod_left

TopologyByExample.lindelofSpace_of_prod_left

If X × Y is Lindelöf and Y is nonempty, then X is Lindelöf.

theorem lindelofSpace_of_prod_left [Nonempty Y] [LindelofSpace (X × Y)] : LindelofSpace X
Proof
:=
  LindelofSpace.of_continuous_surjective (X := X × Y) continuous_fst Prod.fst_surjective

On this site: Theorem: If a product is Lindelöf and its second factor is nonempty, its first factor is Lindelöf

theorem lindelofSpace_of_prod_right

TopologyByExample.lindelofSpace_of_prod_right

If X × Y is Lindelöf and X is nonempty, then Y is Lindelöf.

theorem lindelofSpace_of_prod_right [Nonempty X] [LindelofSpace (X × Y)] : LindelofSpace Y
Proof
:=
  LindelofSpace.of_continuous_surjective (X := X × Y) continuous_snd Prod.snd_surjective

On this site: Theorem: If a product is Lindelöf and its first factor is nonempty, its second factor is Lindelöf

theorem extremallyDisconnected_of_prod_left

TopologyByExample.extremallyDisconnected_of_prod_left

If X × Y is extremally disconnected and Y is nonempty, then X is extremally disconnected.

theorem extremallyDisconnected_of_prod_left [Nonempty Y] [ExtremallyDisconnected (X × Y)] :
    ExtremallyDisconnected X
Proof
:=
  (isOpenMap_fst (X := X) (Y := Y)).extremallyDisconnected_of_surjective continuous_fst
    Prod.fst_surjective

On this site: Theorem: If a product is extremally disconnected and its second factor is nonempty, its first factor is extremally disconnected

theorem extremallyDisconnected_of_prod_right

TopologyByExample.extremallyDisconnected_of_prod_right

If X × Y is extremally disconnected and X is nonempty, then Y is extremally disconnected.

theorem extremallyDisconnected_of_prod_right [Nonempty X] [ExtremallyDisconnected (X × Y)] :
    ExtremallyDisconnected Y
Proof
:=
  (isOpenMap_snd (X := X) (Y := Y)).extremallyDisconnected_of_surjective continuous_snd
    Prod.snd_surjective

On this site: Theorem: If a product is extremally disconnected and its first factor is nonempty, its second factor is extremally disconnected