Subsingleton #
Defines the predicate Subsingleton s : Prop
, saying that s
has at most one element.
Also defines Nontrivial s : Prop
: the predicate saying that s
has at least two distinct
elements.
Subsingleton #
A set s
is a Subsingleton
if it has at most one element.
Instances For
s
, coerced to a type, is a subsingleton type if and only if s
is a subsingleton set.
The coe_sort
of a set s
in a subsingleton type is a subsingleton.
For the corresponding result for Subtype
, see subtype.subsingleton
.
Equations
- ⋯ = ⋯
Nontrivial #
A set s
is Set.Nontrivial
if it has at least two distinct elements.
Instances For
Extract witnesses from s.nontrivial. This function might be used instead of case analysis on the argument. Note that it makes a proof depend on the classical.choice axiom.
Equations
- hs.choose = (Exists.choose hs, ⋯.choose)
Instances For
s
, coerced to a type, is a nontrivial type if and only if s
is a nontrivial set.
Alias of the reverse direction of Set.nontrivial_coe_sort
.
s
, coerced to a type, is a nontrivial type if and only if s
is a nontrivial set.
A type with a set s
whose coe_sort
is a nontrivial type is nontrivial.
For the corresponding result for Subtype
, see Subtype.nontrivial_iff_exists_ne
.
Alias of the reverse direction of Set.not_nontrivial_iff
.
Alias of the reverse direction of Set.not_subsingleton_iff
.