Datasets:
Tasks:
Text Generation
Modalities:
Text
Sub-tasks:
language-modeling
Languages:
English
Size:
100K - 1M
License:
File size: 578 Bytes
4365a98 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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
|