Basic Structures
Basic Structures¶
2.1 Sets¶
- elements or members : or
- describe a set : use roster method or set builder notation
- equal if and only if have the same elements
- subject : or
- superset :
-
proper subset :
-
If there are exactly distinct elements in where is a nonnegative integer, we say that is a finite set and that is the cardinality of . The cardinality of is denoted by
- A set is said to be infinite if it is not finite
-
The power set of is the set of all subsets of the set , which is denoted by
-
ordered n-tuple :
- ordered pairs :
- Cartesian product :
-
A subset of the Cartesian product is called a relation from the set to the set
-
is shorthand for
- is shorthand for
- We define the truth set of to be the set of elements in for which is true, which is denoted by
2.2 Set Operations¶
- union :
- intersection :
- Two sets are called disjoint if their intersection is the empty set
- difference of A and B or complement of B with respect to A :
- complement :
Identity | Name |
---|---|
|
Identity laws |
|
Domination laws |
|
Idempotent laws |
Complementation law | |
|
Commutative laws |
|
Associative laws |
|
Distributive laws |
|
De Morgan's laws |
|
Absorption laws |
|
Complement laws |
- A multiset (short for multiple-membership set) is an unordered collection of elements where an element can occur as a member more than once. The numbers , are called the multiplicities of the elements
- In the union of the multisets P and Q, the multiplicity is the maximum
- In the intersection of the multisets P and Q, the multiplicity is the minimum
- In the difference of P and Q, the multiplicity is the difference of P less Q unless this difference is negative
- In the sum of P and Q, the multiplicity is the sum of multiplicities in P and Q
2.3 Functions¶
- A function from to is an assignment of exactly one element of to each element of .
- We write if is the unique element of assigned by the function to the element of , and we say that is the image of and is a preimage of . The range, or image of , is the set of all images of elements of
- If is a function from to , we write and we say that is the domain of and is the codomain of .
- Let and be functions from to . Then and are also functions from to defined for all by
-
The image of : or
-
A function is said to be one-to-one, or an injection, if and only if implies that for all and in the domain of . A function is said to be injective if it is one-to-one
- A function f from A to B is called onto, or a surjection, if and only if for every element there is an element with . A function is called surjective if it is onto
-
The function f is a one-to-one correspondence, or a bijection, if it is both one-to-one and onto. We also say that such a function is bijective
-
The inverse function of is denoted by
- Let be a function from the set to the set and let be a function from the set to the set , then the composition of the functions and is denoted by
- The value of the floor function at is denoted by
- The value of the ceiling function at is denoted by
- A partial function from to is an assignment to each element in a subject of , called the domain of definition of , of a unique element in . We say that is undefined for elements in that are not in the domain of definition of . When the domain of definition of equals , we say that is a total function
2.5 Cardinality of Sets¶
- The sets and have the same cardinality if and only if there is a one-to-one correspondence from to , and this is denoted by
- If there is a one-to-one function from to , we write
-
A set that is either finite or has the same cardinality as the set of positive integers is called countable, and we denote the cardinality of this set by . We write and say that has cardinality "aleph null"
-
If and are countable sets, then is also countable
- Schröder-Bernstein theorem : If and are sets with and , then . In other words, if there are one-to-one functions from to and from to , then there is a one-to-one correspondence between and
2.6 Matrices¶
Zero-One Matrices - Let and be zero–one matrices, then: - The join of and is the zero–one matrix with th entry . The join of and is denoted by . - The meet of and is the zero–one matrix with th entry . The meet of and is denoted by . - Let be an zero–one matrix and be a zero–one matrix. Then the Boolean product of and , denoted by , is the matrix with th entry where - The th Boolean power of is the Boolean product of factors of . The th Boolean product of is denoted by . - We also define to be .