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 sayings ≠ ∅.Finset.empty: Denoted by∅. The finset associated to any type consisting of no elements.
Tags #
finite sets, finset
Nonempty #
Alias of the reverse direction of Finset.coe_nonempty.
Alias of the reverse direction of Finset.nonempty_coe_sort.
empty #
@[instance_reducible]
Alias of the reverse direction of Finset.empty_ssubset.
def Mathlib.Meta.proveFinsetNonempty {u : Lean.Level} {α : Q(Type u)} (s : Q(Finset «$α»)) :
Lean.MetaM (Option Q(«$s».Nonempty))
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 oraesop 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?