Skip to content

Commit

Permalink
feat: a type with a non trivial filter has to be nonempty (#10145)
Browse files Browse the repository at this point in the history
Preliminaries for #6844
  • Loading branch information
ADedecker committed Jan 31, 2024
1 parent fb969e7 commit 3006ba7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Mathlib/Order/Filter/Basic.lean
Expand Up @@ -776,6 +776,9 @@ instance unique [IsEmpty α] : Unique (Filter α) where
uniq := filter_eq_bot_of_isEmpty
#align filter.unique Filter.unique

theorem NeBot.nonempty (f : Filter α) [hf : f.NeBot] : Nonempty α :=
not_isEmpty_iff.mp fun _ ↦ hf.ne (Subsingleton.elim _ _)

/-- There are only two filters on a `subsingleton`: `⊥` and `⊤`. If the type is empty, then they are
equal. -/
theorem eq_top_of_neBot [Subsingleton α] (l : Filter α) [NeBot l] : l = ⊤ := by
Expand Down

0 comments on commit 3006ba7

Please sign in to comment.