Skip to content

Commit

Permalink
feat(topology/order): discrete_topology_bot (#6163)
Browse files Browse the repository at this point in the history
From `lean-liquid`
  • Loading branch information
jcommelin committed Feb 11, 2021
1 parent fdace95 commit 58632ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/topology/order.lean
Expand Up @@ -194,6 +194,10 @@ instance : complete_lattice (topological_space α) :=
class discrete_topology (α : Type*) [t : topological_space α] : Prop :=
(eq_bot [] : t = ⊥)

@[priority 100]
instance discrete_topology_bot (α : Type*) : @discrete_topology α ⊥ :=
{ eq_bot := rfl }

@[simp] lemma is_open_discrete [topological_space α] [discrete_topology α] (s : set α) :
is_open s :=
(discrete_topology.eq_bot α).symm ▸ trivial
Expand Down

0 comments on commit 58632ac

Please sign in to comment.