Documentation

Mathlib.Topology.WithTopology

Basic lemmas and instances about the WithTopology type synonym #

WithTopology X t is a copy of X equipped with the topology t. This is useful for providing multiple topologies on the same type without causing instance conflicts.

In this file we setup basic API about this type and transfer instances (basic, order) from X to WithTopology X t.

Implementation notes #

The pattern here is the same one as is used by Lex for order structures and WithLp for metric structures.

theorem WithTopology.toTopology_inj {X : Type u_1} (t : TopologicalSpace X) {x y : X} :

Injectivity lemma for the constructor toTopology t.

It is not marked as @[simp], because its autogenerated version is already in the default simp set.

@[simp]

Set-theoretic lemmas #

Instance transfers #

In this section we transfer some instances from X to WithTopology X t.

@[implicit_reducible]
Equations
@[implicit_reducible]
Equations
def WithTopology.instDecidableEq.decEq {X✝ : Type u_2} {t✝ : TopologicalSpace X✝} [DecidableEq X✝] (x✝ x✝¹ : WithTopology X✝ t✝) :
Decidable (x✝ = x✝¹)
Equations
Instances For
    @[implicit_reducible]
    instance WithTopology.instLE {X : Type u_1} (t : TopologicalSpace X) [LE X] :
    Equations
    @[implicit_reducible]
    instance WithTopology.instLT {X : Type u_1} (t : TopologicalSpace X) [LT X] :
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    instance WithTopology.instMax {X : Type u_1} (t : TopologicalSpace X) [Max X] :
    Equations
    @[implicit_reducible]
    instance WithTopology.instMin {X : Type u_1} (t : TopologicalSpace X) [Min X] :
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    Equations
    @[implicit_reducible]
    instance WithTopology.instOrd {X : Type u_1} (t : TopologicalSpace X) [Ord X] :
    Equations