3.1 Sets and subsets
Set: a collection of objects (may contain elements of different varieties)
Element: each object in a set
Roster notation definition: a list of the elements enclosed in curly braces with the individual elements separated by commas (order is unimportant, repeating an element does not change the set)
: indicates an element is in a set
: indicates an element is not in a set
Typical:
Capital letters are used as variables denoting sets
Lowercase letters are used for elements in set
Variables can be used to indicate an unspecified member of a set
Empty set (null set, , ): set with no elements
Finite set: a set that is either empty or whose elements can be numbered 1 through for some positive integer .
Infinite set: a set that is not finite
Cardinality of a finite set of set (): the number of distinct elements in
Ellipses (): used to denote a long (possibly infinite) sequence of numbers (the sequence’s pattern should be clear)
: natural numbers (all integers that are greater than or equal to 0)
: integers
: rational numbers (real numbers that can be expressed as , where and are integers and )
: irrational numbers (real numbers that cannot be expressed as , where and are integers and )
: real numbers
Superscript : positive elements of a particular set
Superscript : negative elements of a particular set
Set builder notation: by specifying that the set includes all elements in a larger set that also satisfy certain conditions
Universal set (usually ): a set that contains all elements metioned in a particular context
Subset (): if every element in is also an element in
: there is an element in that is not an element of
Proper subset: is a subset of and there is an element of that is not an element of
3.2 Union and intersection
Intersection (): the set of all elements that are elements of both and
Union (): the set of all elements that are elements of or
Intersection operation and union operation can also apply to infinite sets
Muliple set operations: Ex., ,
3.3 More set operations
Difference between two sets and (): the set of elements that are in but not in
Symmetric difference between two sets and (): the set of elements that are in either or , but not both
Determining the complement of a set requires that the universal set be well-defined
Complement of a set (): the set of all elements in that are not elements of
| Operation | Notation | Definition |
|---|---|---|
| Intersection | ||
| Union | ||
| Difference | ||
| Symmetric difference | ||
| Complement |
3.4 Cartesian products
Ordered pair of items:
First entry in :
Second entry in :
Parentheses around an ordered pair indicates that the order of entries is significant
Cartesian product of and (): the set of all ordered pairs in which the first entry is in and the second entry is in
If and are finite sets, then
Ordered triple (): an ordered list of three items
Ordered -tuple: an ordered list of items for
If is a set of symbols or characters, the elements in can be written without the usual punctuation (parentheses and commas) used for ordered -tuples
String: a sequence of characters
Alphabet: the set of characters used in a set of strings
Length: the number of characters in the string
Binary string: a string with alphabet
Bit: a character in a binary string
-bit string: a binary string of length
The set of binary strings of length :
Empty string: the unique string with a length of 0 and is usually denoted by the symbol
Concatenation of two strings and (): the string obtained by putting and together (a string and a sing symbol can also be concatenated)
3.5 Set identities
Assume universal set :
Set identity: an equation involving sets that is true regardless of the contents of the sets in the expression
| Name | Identities | |
|---|---|---|
| Idempotent laws | ||
| Associative laws | ||
| Commutative laws | ||
| Distributive laws | ||
| Identity laws | ||
| Domination laws | ||
| Double complement law | ||
| Complement laws | ||
| De Morgan’s laws | ||
| Absorption laws |
3.6 Sets of sets
Power set of set (): the set of all subsets of
Let be a finite set of cardinality :
3.7 Partitions
Two sets are disjoint: the intersection of the two sets is empty ()
A sequence of sets is pairwise disjoint: every pair of distinct sets in the sequence is disjoint ()
Parition of non-empty set : a collection of non-empty subsets of such that each element of is in exactly one of the subsets
is a partition of a non-empty set if all of the following holds:
3.8 Infinite sets
Finite set of : is empty or if there is a non-negative integer such that there is a bijection from to the set . Then the cardinality of set () is .
Infinite set: the set is not finite
NOTE: means that is a function with domain and codomain . If is one-to-one and onto, then is a bijection
A set has the same cardinality as if there exists a bijectioin from to
If is a bijection, then its inverse is also a bijection. Therefore
Ex., , but is a bijection from to , so
Injective and surjective:
Ex., to prove is one-to-one, assume . Then , so . Therefore, is one-to-one.
Ex., to prove is onto, let . Since is even, for some . Thus . Therefore, is onto
Countably infinite: there is a bijection from the set of positive integers () to a set
Countable: a set is finite or countably infinite
Uncountable: the set is not countable
Ex., let . Define by . Then is a bijection
3.9 Uncountable sets
Cantor diagonalization uses proof by contradiction
Assume is a bijection. Let be the -th decimal digit of . Define , where
Then and for every , since their -th digits differ. Thus is not onto, a contradiction. Hence is uncountable
Theorem 3.9.1: Countability and subsets
Let and be two sets such that . If is countable then is also countable
Corollary 3.9.1
Let and be two sets such that . If is uncountable then is also uncountable
The power set of finite set contains elements that are finite sets and elements that are inifinite sets
Assume is a bijection. Define
Then . For every , iff , so . Thus is not in the range of , so is not onto, a contradiction. Hence is uncountable