Professional Documents
Culture Documents
Mathematical Language: Bruno Carpentieri Bruno - Carpentieri@unibz - It
Mathematical Language: Bruno Carpentieri Bruno - Carpentieri@unibz - It
Bruno Carpentieri
bruno.carpentieri@unibz.it
Variables
Statements
Sets
Subsets
Operations on Sets
Powerset
Outline
Variables
Statements
Sets
Subsets
Operations on Sets
Powerset
Variables
4 Variables are basic constructs as placeholders for values. They are denoted by
letters such as x, y , z, etc. They are of two kinds, existential and universal.
4 Existential variables : such a variable can have one or more values but we don’t
know what they are. It allows us to give a temporary name to what we are seeking
so that we can perform concrete computations with it and find its possible values.
4 Example. Consider the question “Is there a number with the following property:
doubling it and adding 3 gives the same result as squaring it ? ”
Here we can introduce a variable x to replace the potentially ambiguous word “it”:
Variables
4 Universal variables : they are not restricted to have a particular value; whatever
we say about, such variable shall be equally true for all elements in a given set.
4 Example. Consider the statement “No matter what number might be chosen, if it
is greater than 2, then its square is greater than 4.”
“No matter what number x might be chosen: if x > 2, then x 2 > 4.”
Outline
Variables
Statements
Sets
Subsets
Operations on Sets
Powerset
Statements
4 A universal statement establishes that a certain property is true for all elements
in a set.
4 A conditional statement establishes that if one thing is true then some other
thing also has to be true.
4 An existential statement establishes that, given a property that may or may not
be true, there is at least one thing for which the property is true.
Statements
Outline
Variables
Statements
Sets
Subsets
Operations on Sets
Powerset
Sets
4 A set is simply a collection of elements . The order of the elements is irrelevant,
and duplicates are not counted.
4 Example. If C is the set of all countries that are currently in the United Nations,
then Italy is an element of C.
4 Example. If I is the set of all integers from 1 to 100, then the number 57 is an
element of I.
1. Let A = {1, 2, 3}, B = {3, 1, 2}, and C = {1, 1, 2, 3, 3, 3}. What are the elements
of the sets A, B, and C ? How are A, B, and C related?
2. Is {0} = 0 ?
Solutions to Example 1
4 Solutions.
2. {0} 6= 0 because {0} is a set with one element, namely 0, whereas 0 is just the
symbol that represents the number zero.
3. The set {1, {1}} has two elements: 1 and the set whose only element is 1.
Important Sets
4 Certain sets are so frequently referred to that they are given special symbols .
Symbol Set
R set of all real numbers
Z set of all integer numbers
Q set of all rational numbers = quotients of integers
Z+ , Znonneg all positive elements of the set Z
(Z can be replaced with R and Q )
Z− all negative elements of the set Z
(Z can be replaced with R and Q)
Z+
0 all positive elements of the set Z including 0
(Z can be replaced with R and Q )
N set of all natural numbers sometimes Z+ 0,
sometimes Z+
∅ The empty set
Sets
4 The real number line is called continuous , because it is imagined to have no
breaks.
4 The set of integers is a collection of points located at fixed intervals on the real
number line.
4 Thus every integer is a real number, and because the integers are all separated
from each other, the set of integers is called discrete .
4 Given that R denotes the set of all real numbers, Z the set of all integers, and Z+
the set of all positive integers, describe each of the following sets:
1. {x ∈ R | −2 < x < 5}
2. {x ∈ Z | −2 < x < 5}
3. {x ∈ Z+ | −2 < x < 5}
Solutions to Example 2
4 Solutions.
Outline
Variables
Statements
Sets
Subsets
Operations on Sets
Powerset
Subsets
4 A basic relation between two sets is the subset relation ⊆ .
4 For a set A not to be a subset of a set B means that there is at least one element
x in A (x ∈ A) that is not an element of B (x 6∈ B). Symbolically: A 6⊆ B.
1. 2 ∈ {1, 2, 3}
2. {2} ∈ {1, 2, 3}
3. 2 ⊆ {1, 2, 3}
4. {2} ⊆ {1, 2, 3}
Solutions to Example 3
4 Solutions.
2. For (2) to be true, the set {1, 2, 3} would have to contain the element {2}. But
the only elements of {1, 2, 3} are 1, 2, and 3, and 2 is not equal to {2}. Hence (2)
is false.
3. For (3) to be true, the number 2 would have to be a set and every element in the
set 2 would have to be an element of {1, 2, 3}. This is not the case, so (3) is false.
4. For (5) to be true, every element in the set containing only the number 2 would
have to be an element of the set whose elements are {1} and {2}. But 2 is not
equal to either {1} or {2}, and so (5) is false.
Example 4: Subsets
(a) Is A ⊆ B?
(b) If so, is A a proper subset of B?
4 Solution.
(a) Because A = {1}, A has only one element, namely the symbol 1. This
element is also one of the elements of B. Hence every element of A is in B,
and so A ⊆ B.
(b) B has two distinct elements, the symbol 1 and the set {1} whose only
element is 1. Since 1 6= {1}, the set {1} is not an element of A, and so there
is an element of B that is not an element of A. Hence A is a proper subset
of B.
Wrap-up
Wrap-up
4 A proper subset of a set is a subset that is not equal to its containing set, i.e.
A is a proper subset of B:
A ⊂ B ⇔ A ⊆ B, and there is at least one element in B that is not in A
Outline
Variables
Statements
Sets
Subsets
Operations on Sets
Powerset
Set Equality
4 Recall that two sets A and B are equal if, and only if, they have exactly the same
elements (this property is called the axiom of extension ).
Operations on Sets
Operations on Sets
1. A ∪ B.
2. A ∩ B.
3. B − A.
4. Ac .
Solutions to Example 5
4 Solutions.
1. A ∪ B = {a, c, d, e, f , g }
2. A ∩ B = {e, g }
3. B − A = {d, f }
4. Ac = {b, d, f }
Relating R, Q, and Z
4 Z, Q, and R denote the sets of integers, rational and real numbers, respectively.
4 Important subsets of real numbers are intervals . They are defined as follows:
4 Note: observe that in mathematics the notation for the interval (a, b) is identical
to the notation for the ordered pair (a, b) that will be discussed later. However,
context makes it unlikely that the two will be confused.
Example 6: Intervals
4 Example. Let the universal set be the set R of all real numbers and let
1. A ∪ B,
2. A ∩ B,
3. B − A,
4. Ac .
Solutions to Example 6
4 Solutions.
Solutions to Example 6
Sn Tn
4 Also, i=0 Ai = A0 ∪ A1 ∪ A2 ∪ . . . ∪ An and i=0 Ai = A0 ∩ A1 ∩ A2 ∩ . . . ∩ An .
Find:
(a) A1 ∪ A2 ∪ A3 ,
(b) A1 ∩ A2 ∩ A3 ,
S∞
(c) i=1 Ai ,
T∞
(d) i=1 Ai .
Solutions to Example 7
4 Solutions.
S∞
Ai = x ∈ R | x is in at least one of the intervals (− 1i , 1i ), where i is a
(c) i=1
positive integer} = {x ∈ R | −1 < x < 1} = (−1, 1) .
T∞
Ai = x ∈ R | x is in at least one of the intervals − 1i , 1i , where i is a
(d) i=1
positive integer} = {0}.
Empty Set
4 A set is defined by the elements that compose it. A set without elements is called
an empty set (or null set) and is denoted by the symbol ∅.
4 Note that whereas ∅ is the set with no elements, the set {∅} has one element, the
empty set.
Partition of Sets
4 In many applications of set theory, sets are divided up into nonoverlapping (or
disjoint) pieces. Such a division is called a partition .
Example 8: Disjointness
4 Exercises.
4 Solution.
Partition of Sets
Partition of Sets
Outline
Variables
Statements
Sets
Subsets
Operations on Sets
Powerset
Powerset
4 There are various situations in which it is useful to consider the set of all subsets
of a particular set. The power set axiom guarantees that this is a set.
4 Example:
Find the power set of the set {x, y }. That is, find P({x, y }).
4 Solution:
P({x, y }) is the set of all subsets of {x, y }, hence:
P({x, y }) = {∅, {x}, {y }, {x, y }}.
Sketch of a proof.
Take a set with only two elements, for example X = {1, 2}. It has 22 = 4 subsets,
namely P(X ) = {∅, {1}, {2}, X }. Now add a new element, 3, to get
Y = X ∪ {3} = {1, 2, 3}.
The four subsets of X are also subsets of Y , but you get new subsets - those which
contain 3, e.g. {1, 3}. But each of these is one of the ones you already had together
with the new element added: {3}, {1, 3}, {2, 3}, {1, 2, 3}.
Partition of Sets
Partition of Sets
Set Identities
Set Identities