Empty and nonempty finite sets #
This file defines the empty finite set ∅ and a predicate for nonempty Finsets.
Main declarations #
- Finset.Nonempty: A finset is nonempty if it has elements. This is equivalent to saying- s ≠ ∅.
- Finset.empty: Denoted by- ∅. The finset associated to any type consisting of no elements.
Tags #
finite sets, finset
Nonempty #
The property s.Nonempty expresses the fact that the finset s is not empty. It should be used
in theorem assumptions instead of ∃ x, x ∈ s or s ≠ ∅ as it gives access to a nice API thanks
to the dot notation.
Instances For
Equations
- Finset.decidableNonempty = decidable_of_iff (∃ a ∈ s, true = true) ⋯
Alias of the reverse direction of Finset.coe_nonempty.
Alias of the reverse direction of Finset.nonempty_coe_sort.
empty #
Equations
- Finset.instEmptyCollection = { emptyCollection := Finset.empty }
Equations
- Finset.inhabitedFinset = { default := ∅ }
Alias of Finset.notMem_empty.
Alias of Finset.eq_empty_of_forall_notMem.
Alias of Finset.eq_empty_iff_forall_notMem.
Equations
- Finset.instOrderBot = { bot := ∅, bot_le := ⋯ }
Alias of the reverse direction of Finset.empty_ssubset.
Attempt to prove that a finset is nonempty using the finsetNonempty aesop rule-set.
You can add lemmas to the rule-set by tagging them with either:
- aesop safe apply (rule_sets := [finsetNonempty])if they are always a good idea to follow or
- aesop unsafe apply (rule_sets := [finsetNonempty])if they risk directing the search to a blind alley.
TODO: should some of the lemmas be aesop safe simp instead?
Equations
- One or more equations did not get rendered due to their size.