Lean library · module TopologyByExample.Spaces.IndiscretePair

The two-point indiscrete space

Source file

The two-point indiscrete space is WithTopology Bool ⊤: the two-point type Bool with the indiscrete topology, whose only open sets are ∅ and the whole space. Mathlib provides the type synonym and its IndiscreteTopology instance.

Its two points have the same neighbourhoods, so they are inseparable and the space is not T₀. On the other hand every indiscrete space is perfectly normal, since its only closed sets are ∅ and the whole space, which are open (hence \(G_\delta\)), and of any two disjoint closed sets one is empty. So it is also completely normal, normal, completely regular and regular, by Mathlib's instances. Being finite, it is compact and second countable.

Main statements

Tags

indiscrete topology, trivial topology, counterexample, T₀, perfectly normal

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

theorem not_subsingleton

TopologyByExample.IndiscretePair.not_subsingleton

The two-point indiscrete space has two distinct points.

theorem not_subsingleton : ¬Subsingleton (WithTopology Bool ⊤)
Proof
:=
  _root_.not_subsingleton _

theorem not_t0Space

TopologyByExample.IndiscretePair.not_t0Space

The two-point indiscrete space is not T₀.

theorem not_t0Space : ¬T0Space (WithTopology Bool ⊤)
Proof
:=
  IndiscreteTopology.not_t0Space

theorem perfectlyNormalSpace

TopologyByExample.IndiscretePair.perfectlyNormalSpace

The two-point indiscrete space is perfectly normal.

theorem perfectlyNormalSpace : PerfectlyNormalSpace (WithTopology Bool ⊤)
Proof
:= inferInstance

theorem isOpen_iff

TopologyByExample.IndiscretePair.isOpen_iff

The only open subsets of the two-point indiscrete space are ∅ and the whole space.

theorem isOpen_iff (U : Set (WithTopology Bool ⊤)) : IsOpen U ↔ U = ∅ ∨ U = univ
Proof
:=
  IndiscreteTopology.isOpen_iff U

theorem continuous

TopologyByExample.IndiscretePair.continuous

Every map from a topological space into the two-point indiscrete space is continuous.

theorem continuous {Y : Type*} [TopologicalSpace Y] (f : Y → WithTopology Bool ⊤) :
    Continuous f
Proof
:=
  continuous_of_indiscreteTopology

theorem tendsto

TopologyByExample.IndiscretePair.tendsto

Every map into the two-point indiscrete space tends to every point, along any filter: in particular every sequence converges to both points.

theorem tendsto {ι : Type*} (l : Filter ι) (f : ι → WithTopology Bool ⊤)
    (x : WithTopology Bool ⊤) : Tendsto f l (𝓝 x)
Proof
:= by
  rw [IndiscreteTopology.nhds_eq]
  exact tendsto_top

instance connectedSpace

TopologyByExample.IndiscretePair.connectedSpace

The two-point indiscrete space is connected.

instance connectedSpace : ConnectedSpace (WithTopology Bool ⊤)
Proof
where
  toNonempty := inferInstance

On this site: Space: Indiscrete space with at least two points