Skip to content

Commit

Permalink
feat(data/set/basic): nonempty set of nonempty subtype (#5373)
Browse files Browse the repository at this point in the history
  • Loading branch information
pechersky committed Dec 15, 2020
1 parent d21d17b commit 75130b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/data/set/basic.lean
Expand Up @@ -315,6 +315,9 @@ nonempty_subtype.2 h

@[simp] lemma nonempty_insert (a : α) (s : set α) : (insert a s).nonempty := ⟨a, or.inl rfl⟩

@[simp] lemma nonempty_of_nonempty_subtype [nonempty s] : s.nonempty :=
nonempty_subtype.mp ‹_›

/-! ### Lemmas about the empty set -/

theorem empty_def : (∅ : set α) = {x | false} := rfl
Expand Down

0 comments on commit 75130b3

Please sign in to comment.