The curly braces
are used to indicate the beginning and ending of
elements in a set.
There is a special set called an ``empty set''. An empty set is, as the
name implies, a set with no elements. It is denoted as
or
.
A set can be finite (with a finite number of elements) or infinite
(with an infinite number of elements). For a finite set
,
denotes the number of elements in
.
You can also indicate the elements in a set using a predicate. Let
be a predicate (we avoid the use of
in this module).
Then
means that all elements in
make the predicate
true.
However, it also means that all possible
values that makes
true are also in
. In other words,
.
There is a shorter way to describe this:
.
In English, this means that a value
is in
if and only if (iff)
is true.
For example,
produces the set
.
Elements in a set must follow two rules. First, order is not important
in a set.
This means that
. Note that elements in a set may have ordered relationship,
such as
, however, it doesn't matter how the elements are
listed.
Second, elements in a set must be unique. In other words, a set cannot have two duplicate elements.
You can relate an element to a set using the ``element of'' (also known
as ``in'') relationship. This relationship is represented by the
symbol.
means that
is an element of
, or simply
is
in
.
In our primary colors example,
is true,
whereas
is false.
Two sets can be related by the following relationships:
Set
and
such that
are said to be disjoint.
Assuming
are disjoint from each another,
is called a partition of the set
. Each
is also called a ``block''.
For a given set, the number of possible partitions is called a Bell number.
Copyright © 2006-09-27 by Tak Auyeung