Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
Zhangir Azerbayev
squashed?
4365a98
raw
history blame
578 Bytes
import algebra.punit_instances
import topology.algebra.ring
import for_mathlib.topological_groups
instance : topological_add_monoid unit :=
{ continuous_add := continuous_of_discrete_topology }
instance : topological_ring unit :=
{ continuous_neg := continuous_of_discrete_topology }
open_locale classical
lemma subset_subsingleton {α : Type*} [subsingleton α] (s : set α) :
s = ∅ ∨ s = set.univ :=
begin
rw [classical.or_iff_not_imp_left, set.eq_univ_iff_forall],
intros h x,
cases set.ne_empty_iff_nonempty.1 h with y hy,
rwa subsingleton.elim x y
end