Lean library · module TopologyByExample.Theorems.WithTopology
Instances for WithTopology
Mathlib's type synonym WithTopology X t is X with the topology t. Mathlib transfers
finiteness and infiniteness to it; this file adds countability and nontriviality, both through the
equivalence WithTopology.equiv.
Main statements
Tags
type synonym, topology, countable, nontrivial
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.
instance WithTopology.instCountable
A copy of a countable type with any topology is countable.
instance WithTopology.instCountable {X : Type*} [Countable X] (t : TopologicalSpace X) :
Countable (WithTopology X t)
Proof
:=
(WithTopology.equiv X t).injective.countable
instance WithTopology.instNontrivial
A copy of a nontrivial type with any topology is nontrivial.
instance WithTopology.instNontrivial {X : Type*} [Nontrivial X] (t : TopologicalSpace X) :
Nontrivial (WithTopology X t)
Proof
:=
(WithTopology.equiv X t).nontrivial