MMW w3 Ppt2 (2ndsem2021)
MMW w3 Ppt2 (2ndsem2021)
MMW w3 Ppt2 (2ndsem2021)
Week 3
GEED 10053
Prof. C. Equiza
TOPIC OUTLINE
Learning Outcomes
At the end of the lesson, the students are able to
1. identify which are propositions and which are not;
2. construct compound propositions using logical connectives;
3. construct truth tables for propositions;
4. test validity of arguments
What is
Propositions?
Mathematics is a language. As in any other types of language, we use sentences to
communicate thoughts and ideas. Mathematics is not an exception. We use
propositions to communicate mathematical ideas precisely.
Example 1. Consider the following sentences.
Sentence (3) is clearly a true proposition. Although statement (6) is a declarative sentence, it
cannot be considered a proposition because the meaning of the word “handsome” is subjective in
nature. Unless we could agree on an objective definition of “handsome”, then statement (6) cannot
be considered a proposition.
Finally, statement (7) is a proposition. Whether there is life or not in other planets, it doesn’t really
matter. The fact that this sentence is either true or false, and cannot be both true and false, makes
it a proposition. For this example, we still don’t have enough evidence to claim that proposition (7)
is true yet, and we don’t have a proof that it is false either. Hence, only time will tell when can we
assign a truth value for (7), but certainly, it has a truth value.
Symbolically, we denote propositions in this lesson using lower case letters, such as p, q, r, s, etc.
In the English language, we can simply state the negation of a proposition p by saying “It is not the case
that p.” However, there are many ways to express negations of statements grammatically by replacing
“is/are” by “is not/are not”, etc.
While,
p ∧ r : 3 is odd and Philippines is a first world country. is False
For a more complicated example, the proposition
In other words, if one of p or q is true (or both), then p ∨ q is true. The truth table for p ∨ q
is given below.
Example 4. Consider the statements p, q and r in
the preceding example. The statement
p q p ∨q
1 1 1 p ∨ q : Either 3 is odd (T) or elephants are
1 0 1 mammals (T). (is true)
Also,
0 1 1
0 0 0 p ∨ r : Either 3 is odd (T) or Philippines is
a first world country (F): (is true)
Example 5. The proposition “Either 3 is odd or there is life in other planets.” is
technically true since the component “3 is odd.” is a true proposition. Whether the
proposition “There is life in other planets.” is true or false, the disjunction is always
true
Example 6. Construct a truth table for the compound statement p ∨ (q ∧ (¬ r)).
p q r ¬ r q ∧ (¬ r ) p ∨ (q ∧ (¬r ))
Solution: 1 1 1 0 0 1
Since each of p,q and r
1 1 0 1 1 1
may assume the distinct truth values
then there are a total of 2 x 2 x2= 8 1 0 1 0 0 1
combinations, hence the truth table 1 0 0 1 0 1
must contain eight rows as shown
0 1 1 0 0 0
0 1 0 1 1 1
0 0 1 0 0 0
0 0 0 1 0 0
The following is the truth table for p −→ q.
Note that there are many ways to say p −→ q aside from “If p, then q.”
Alternatively, we can say “q if p” or “p implies q”, “p is sufficient for q” or “q is
necessary for p.”
Example 8. Given the statements p : “ı is irrational.” and
q : “3 is less than 2.”, then
In logic, the implication p =⇒ (p ∨ q) is called as the law of addition and the implication (p ∧ q) =⇒ p is
the law of simplification.
Assessments 2:
1. Write each statement in words. Let p: The plane is on time. Let q: The sky is clear.
a) p ∧ (¬ q)
b) q → (p ∨ ¬p)
c) p↔q
d) p → q
2. Construct a truth table for each proposition.
a) p → ¬q
b) [(p ∧ ¬ q) → r
c) (p ∧ q) ∨ r ] ↔ [(p ∧ r ) ∨ (q ∧ r )]
d) [(p ∧ r ) → (q ∧ ¬r )] → [(p ∧ q) ∨ r )]
3. Using the truth table prove that the following propositions are logically
equivalent: p ∨ (q ∧ r) ⇐⇒ (p ∨ q) ∧ (p ∨ r)
4. Prove the De Morgan’s Laws by constructing truth tables.
What is
Sets?
A set in mathematics is a collection of well defined and distinct objects, considered as an object in
its own right. Sets are one of the most fundamental concepts in mathematics.
A collection is well-defined if for any given object we can objectively decide whether it is or
is not in the collection. Any object which belongs to a given set is said to be an element of
or a member of the given set.
Example 11.
2. The collection of all handsome guys is not a set, because one cannot objectively identify
if a given guy is handsome or not, because the word “handsome” is subjective in nature.
Upper case letters are usually used to name sets. A set A can be commonly
described in three ways, by
a) listing (roster) method,
b) set-builder notation or
c) descriptive method.
The listing method describes the set by listing all the elements between braces
and separated by commas (note: in enumerating the elements of a certain set,
each element is listed only once and the arrangement of elements in the list is
immaterial).
The set-builder notation uses a variable (a symbol, usually a letter, that can
represent different elements of a set), braces, and a vertical bar | that is read
as "such that". This is usually used when the elements are too many to list
down. The descriptive method uses a short verbal statement to describe the
set.
Example 12. Using the roster method, the set of months in a year that ends with
letter ‘y’ can be represented by {January, February, May, July}.
Example 14. The set of integers between 1 and 2 is empty, while the set of even
prime numbers is a singleton.
For future discussion, we will use the following notations:
• N for the set of natural or counting numbers (positive integers): {1, 2, 3,…}
• Z for the set of integers: {…−4, −3, −2, −1, 0, 1, 2, 3…}
• Q for the set of rational numbers: { a/b| a, b ∈ Z, b ≠ 0}
• R for the set of real numbers
A set A is said to be finite if it is possible to list down all the elements of A in a list.
Otherwise, A is said to be infinite. If A is finite, the cardinality of A is the number of
elements of A, which is denoted by n(A).
Example 15. The set of all letters in the English Alphabet is finite and its
cardinality is 26, because there are 26 distinct letters in the English alphabet. On
the other hand, the set of all even integers in infinite.
Definition 10
Let A and B be sets. We say that A is a subset of B and write A⊆B if every element
of A is an element of B. We say that A and B are equal and write A = B if A ⊆ B and
B ⊆ A.
Remarks.
1. For any set A, A⊆A and Ø ⊆A.
2. If A and B are finite sets and A=B, then n(A) = n(B).
Example 16. Let A be the set of all mathematicians 20 feet high and B be the set of all
PUP students. Then A = Ø. By Remark (1) above, A ⊆ B. Therefore, we can conclude that
every mathematician 20 feet high is a PUP student.
Two finite sets A and B are said to be equivalent if and only if n(A) = n(B). Note that equal
sets are necessarily equivalent but equivalent sets need not be equal.
Example 17. Let A = {x | x is a prime number less than 20} and B = {1, 2, 3, 4, 5, 6,7, 8} are equivalent
since n(A) = 8 = n(B), however, A ≠ B.
Definition 11
Let A and B be sets. The union of A and B is defined as
A ∪ B = {x | x ∈ A or x ∈ B}.
The intersection of A and B is
A ∩ B = {x | x ∈ A and x ∈ B}
Then relative complement of B in A is the set
A \ B := {x ∈ A | x ∈= B}.
We could represent A ∪ B, A ∩ B, and A \ B in terms of Venn Diagrams as shown below.
Example 18. Let A = {0,1,3,5,7} and B = {1,2,4,7,9}.
Then A ∪ B = {0,1,2,3,4,5,7,9},
A ∩ B = {1,7} and
A \ B = {0,3, 5}.
Solution Let E, S, and M denote the sets of members of English, Science, and Mathematics Club,
respectively. As given in the problem, the universal set U has cardinality n(U ) = 79, n(E) = 33, n(M)=37,and
n(S)=37.
10 + 7 + 24 + 8 + 12 + 16 = 77 ans.
d) How many admire exactly one of the e) How many admire exactly two of the Stooges?
Stooges? Again, there are three possibilities: admires Moe
There are three possibilities: admires Moe but and Larry but not Curly, admires Moe and Curly
not Curly and not Larry, admires Larry but not but not Larry, or admires Larry and Curly but not
Curly and not More, or admires Curly but not Moe. Those who satisfy this compound condition
Moe and not Larry. Those who satisfy this are in the regions underlined below:
compound condition are underlined in the
diagram below.
Given: M=51
24+12+10=46
51- 46= 5
Given: L=49
24+10+8=42
49 – 42= 7
A = {2, 4, 6, 8, 10, 12, 14} 2. A survey of 90 customers was taken at Barnes & Noble regarding
B= {3, 6, 9, 12, 15, 18, 21} the types of books purchased. The survey found that 44 purchased
C= { 1, 3, 9, 15, 21, 24, 27, 30}
mysteries, 33 purchased science fiction, 29 purchased romance
Determine the following: novels, 13 purchased mysteries and science fiction, 5 purchased
a) A∩B science fiction and romance novels, 11 purchased mysteries and
romance novels, and 2 purchased all three types of books (mysteries,
b) A\ B
science fiction, romance novels). How many of the customers
c) A ∪ (B ∩ C ) surveyed purchased
d) (A ∪ B)‹ ∩ C
Determine the following:
e) (A ∩ C ) ∪ (B ∩ C )
a) mysteries only?
f) A ∩ (C ∩ U )‹
g) n[ (A ∪ B) ∩ (B ∪ C )] b) mysteries and science fiction, but not romance novels?
c) mysteries or science fiction?
d) romance novels or mysteries, but not science fiction?
e) exactly two types (mysteries, science fiction, romance novels)?