Professional Documents
Culture Documents
Unit3 moduleITMS-01 PDF
Unit3 moduleITMS-01 PDF
Discrete Structures
1
ITMS-01 Discrete Structures
2
ITMS-01 Discrete Structures
3
ITMS-01 Discrete Structures
Answer:
1. |{1, -13, 4, -13, 1}| = |{1, -13, 4}| = 3
2. |{3, {1,2,3,4}, ∅}| = 3. To see this, set S = {1,2,3,4}. Compute the cardinality
of {3,S, ∅}
3. |{}| = |∅| = 0
4. |{ {}, {{}}, {{{}}} }| = |{ ∅, {∅}, {{∅}}| = 3
Definition: The set S is said to be finite if its cardinality is a nonnegative integer.
Otherwise, S is said to be infinite.
Example: N, Z, Z+, R, Q are each infinite.
Note: We’ll see later that not all infinities are the same. In fact, R will end up having
a bigger infinity-type than N, but surprisingly, N has same infinity-type as Z, Z+, and
Q.
Definition: The power set of S is the set of all subsets of S.
Denote the power set by P (S ) or by 2s .
Lemma: | 2s | = 2|s|
To understand the previous fact consider
S = {1,2,3}
Enumerate all the subsets of S :
0-element sets: {} 1
1-element sets: {1}, {2}, {3} +3
2-element sets: {1,2}, {1,3}, {2,3} +3
3-element sets: {1,2,3} +1
Therefore: | 2s | = 8 = 23 = 2|s|
Notationally, n-tuples look like sets except that curly braces are replaced by parentheses:
! ( 11, 12 ) –a 2-tuple aka ordered pair
! { Apple, Banana, Grape } –a 3-tuple
! {Apple, Banana,Grape, 11, Leo } – a 5-tuple
As opposed to sets, repetition and ordering do matter with n-tuples.
" (11, 11, 11, 12, 13) ≠ ( 11, 12, 13 )
4
ITMS-01 Discrete Structures
Lesson 2 Proposition
A proposition is a declarative sentence that is either true or false
(but not both).
Example:
The following are propositions:
i) Cabanatuan City is in Nueva Ecija. (true)
ii) Paris is in the Philippines. (false)
iii) 4 < 6 . (true)
iv) 3 = 8 . (false)
However, the following are not propositions:
1. What is your name? (This is a question.)
2. Do your homework. (This is a command.)
3. This sentence is true or false. (Neither true or false)
4. 𝑥 is an even number. (It depends on what 𝑥
represents.),
5. Bernoulli. (It is not even a sentence.)
Can you give 10 examples of proposition, (5 true proposition and 5 false proposition)?
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Can you give 5 examples of not proposition (provide the reason)?
1.
( )
2.
( )
3.
( )
4.
( )
5.
( )
5
ITMS-01 Discrete Structures
Lesson 3 Predicate
A predicate is a property or description of subjects in the universe of discourse.
The following predicates are all italicized :
! Johnny is tall.
! The bridge is structurally sound.
! 17 is a prime number.
Again, many correct answers. The most obvious answers are:
! For “Josh is taller than Daniel.” the universe of discourse of both variables is
all people in the universe
! For “16 is greater than one of 11, 44” the universe of discourse of all three
variables is Z (the set of integers)
! For “Mary is at least inches taller than Therese.” the first and last variable
have people as their universe of discourse, while the second variable has R
(the set of real numbers).
The multivariable predicates, together with their variables create multivariable
propositional functions. In the above examples, we have the following generalizations:
! x is taller than y.
! a is greater than one of b, c.
! x is at least n inches taller than y.
QUANTIFIERS
There are two quantifiers
• Existential Quantifier
“∃” reads “there exists”
• Universal Quantifier
“∀” reads “for all”
Each is placed in front of a propositional function and binds it to obtain a
proposition with semantic value.
Existential Quantifier
! “∃x P (x)” is true when an instance can be found which when plugged in for x
makes P (x) true
! Like disjunctioning over entire universe
∃x P (x ) ⇔ P (x1) ∨P (x2) ∨P (x3) ∨ …
Universal Quantifier
! “∀x P (x)” true when every instance of x makes P (x) true when plugged in
! Like conjunctioning over entire universe
∀x P (x ) ⇔ P (x1) ∧P (x2) ∧ P (x3) ∧ …
6
ITMS-01 Discrete Structures
7
ITMS-01 Discrete Structures
Disjunction:
The truth value of the disjunction of a compound proposition is only false when both
components are false. Following is the truth table for disjunction.
𝒑 𝒒 𝒑 ∨ 𝒒
T T T
T F T
F T T
F F F
Example:
𝑝 ∨ 𝑞 is “Therese is pretty or Therese is kind.”
Implication:
The truth value of the implication of a compound proposition is only false when the
premise is true and the conclusion is false. Following is the truth table for implication.
𝒑 𝒒 𝒑 → 𝒒
T T T
T F F
F T T
F F T
Example:
𝑝 → 𝑞 is “If Therese is pretty then she is kind.”
Biconditional:
The truth value of the biconditional of a compound proposition is true when the
components have the same truth value. Following is the truth table for biconditional.
𝒑 𝒒 𝒑 ↔ 𝒒
T T T
T F F
F T F
F F T
Example:
𝑝 ↔ 𝑞 is ‘’Therese is pretty if and only if she is kind.”
Can you give examples using the five connectives?
8
ITMS-01 Discrete Structures
9
ITMS-01 Discrete Structures
Let us practice.
Consider:
~𝒑 ∧ 𝒑 ∨ 𝒒 → 𝒒
Let us find out whether the given argument is a tautology, contradiction or contingent.
There are two ways of finding whether an argument is a tautology, contradiction or
contingent, namely:
1. by a truth table; or
2. by a proof.
By the truth table:
(Note: the number of rows you will need is equal to 2! , where 𝑛 is the number of
proposition in the argument.)
In above argument, you have 2 proposition, 𝑝 𝑎𝑛𝑑 𝑞. Therefore, there will be 2! = 4 rows
in your truth table for all the cases to be considered. So,
𝒑 𝒒 ~𝒑 𝒑 ∨ 𝒒 ~𝒑 ∧ 𝒑 ∨ 𝒒 ~𝒑 ∧ 𝒑 ∨ 𝒒 → 𝒒
T T
T F
F T
F F
𝒑 𝒒 ~𝒑 𝒑 ∨ 𝒒 ~𝒑 ∧ 𝒑 ∨ 𝒒 ~𝒑 ∧ 𝒑 ∨ 𝒒 → 𝒒
T T F T F T
T F F T F T
F T T T T T
F F T F F T
Therefore, ~𝒑 ∧ 𝒑 ∨ 𝒒 → 𝒒 is a tautology since it is always true.
10
ITMS-01 Discrete Structures
T T
T F
F T
F F
𝒑 𝒒 ~𝒑 ~𝒒 𝒑→𝒒 ~𝒒 → ~𝒑 𝒑 → 𝒒 ↔ ~𝒒 → ~𝒑
T T F F T T T
T F F T F F T
F T T F T T T
F F T T T T T
Since the truth value of 𝒑 → 𝒒 ↔ ~𝒒 → ~𝒑 is a tautology. Therefore 𝒑 → 𝒒 and
~𝒒 → ~𝒑 are logically equivalent. In symbols, 𝒑 → 𝒒 ⇔ ~𝒒 → ~𝒑 .
It is important to bear in mind that stating the implication is the same as saying its
contrapositive.
Note:
p ⇔q by definition means that p ↔ q is a tautology. Furthermore, the biconditional
is true exactly when the truth values of p and of q are identical. So if the last column of
truth tables of p and of q is identical, the biconditional is a tautology.
11
ITMS-01 Discrete Structures
T T
T F
F T
F F
𝒑 𝒒 𝒑→𝒒 𝒒→𝒑 𝒑 → 𝒒 ↔ 𝒒 → 𝒑
T T T T T
T F F T F
F T T F F
F F T T T
We can see from the truth table that 𝒑 → 𝒒 ↔ 𝒒 → 𝒑 is not a tautology.
12
ITMS-01 Discrete Structures
So, 𝒑 → 𝒒 and 𝒒 → 𝒑 are not logically equivalent. You can also say that the implication
is not logically equivalent to its converse.
Let us look at the inverse of an implication.
The inverse of a logical implication is the reversal of the implication. That is, the
inverse of 𝒑 → 𝒒 is ~𝒑 → ~𝒒 .
Let us see if the implication and its inverse are logically equivalent. That is,
𝒑 → 𝒒 ↔ ~𝒑 → ~𝒒 is a tautology. Let us examine its truth table.
𝒑 𝒒 ~𝒑 ~𝒒 𝒑→𝒒 ~𝒑 → ~𝒒 𝒑 → 𝒒 ↔ ~𝒑 → ~𝒒
T T F F
T F F T
F T T F
F F T T
𝒑 𝒒 ~𝒑 ~𝒒 𝒑→𝒒 ~𝒑 → ~𝒒 𝒑 → 𝒒 ↔ ~𝒑 → ~𝒒
T T F F T T T
T F F T F T F
F T T F T F F
F F T T T T T
It is evident that the truth table of 𝒑 → 𝒒 ↔ ~𝒑 → ~𝒒 is a contingent. So, 𝒑 → 𝒒 and
~𝒑 → ~𝒒 are not logically equivalent.
In essence, stating the implication is not the same as saying its inverse because implication
and inverse are not logically equivalent.
13
ITMS-01 Discrete Structures
Can you examine whether the converse and inverse of an implication are logically
equivalent?
Implication : 𝒑→𝒒
Converse : 𝒒→𝒑
Inverse : ~𝒑 → ~𝒒
Let us look at the biconditional of converse and inverse of an implication.
That is,
𝒒 → 𝒑 ↔ ~𝒑 → ~𝒒 .
𝒑 𝒒 ~𝒑 ~𝒒 𝒒→𝒑 ~𝒑 → ~𝒒 𝒒 → 𝒑 ↔ ~𝒑 → ~𝒒
T T F F
T F F T
F T T F
F F T T
𝒑 𝒒 ~𝒑 ~𝒒 𝒒→𝒑 ~𝒑 → ~𝒒 𝒒 → 𝒑 ↔ ~𝒑 → ~𝒒
T T F F T T T
T F F T T T T
F T T F F F T
F F T T T T T
You have a tautology. Therefore, 𝒒 → 𝒑 and ~𝒑 → ~𝒒 are logically equivalent.
In symbols, 𝒒 → 𝒑 ⇔ ~𝒑 → ~𝒒 . Also, you can say that the stating the converse of an
implication is the same as stating its inverse.
14
ITMS-01 Discrete Structures
When compound proposition are involve, there will be more and more components
and the size of the truth table for the compound proposition increases.
How many rows are required to construct the truth-table of:
𝑞↔ 𝑝→𝑟 ∧ ∼ 𝑠 ∧ 𝑟 ∨∼ 𝑡 → ∼ 𝑞 → 𝑟 .
In general, 2! rows, where 𝑛 is the number of proposition in the given argument.
In the above argument, you have 𝑛 = 5. So, the number of rows needed to construct the
truth table of the given argument is 2! = 32.
But constructing the truth table is not always the best way to examine whether the
argument is a tautology or not.
Consider the compound proposition:
𝑝 ⟶ 𝑝 ∨ ∼ 𝑠 ∧ 𝑟 ∨∼ 𝑡 ∨ ∼ 𝑞 → 𝑟
I can say that this is a tautology. How?
You can consider the argument as a triple disjunction. Notice that a part of it is a tautology.
That is, (p →p) is always true. The disjunction of True with any other compound
proposition is still True.
𝑝 ⟶ 𝑝 ∨ ∼ 𝑠 ∧ 𝑟 ∨∼ 𝑡 ∨ ∼ 𝑞 → 𝑟
⇔ T ∨ ∼ 𝑠 ∧ 𝑟 ∨∼ 𝑡 ∨ ∼ 𝑞 → 𝑟
⇔ T
Thus, (p →p ) ∨ (¬(s∧r)∨¬t) ) ∨ (¬q→r ) is a tautology.
An argument is valid only when it is a tautology.
So, (p →p ) ∨ (¬(s∧r)∨¬t) ) ∨ (¬q→r ) is a valid argument.
What can you say about the biconditional of the converse and inverse of an implication?
Would you qualify it as a valid argument? Why or why not?
15
ITMS-01 Discrete Structures
𝑬𝒒𝒖𝒊𝒗𝒂𝒍𝒆𝒏𝒄𝒆 𝑵𝒂𝒎𝒆
𝑝 ∧ 𝑇 ⇔ 𝑝
Identity Laws
𝑝 ∨ 𝐹 ⇔ 𝑝
𝑝 ∨ 𝑇 ⇔ 𝑇
Domination Laws
𝑝 ∧ 𝐹 ⇔ 𝐹
𝑝 ∨ 𝑝 ⇔ 𝑝
Idempotent Laws
𝑝 ∧ 𝑝 ⇔ 𝑝
𝑝 ∨ 𝑞 ⇔ 𝑞 ∨ 𝑝
Commutative Laws
𝑝 ∧ 𝑞 ⇔ 𝑞 ∧ 𝑝
𝑝∨𝑞 ∨𝑟 ⇔𝑝∨ 𝑞∨𝑟
Associative Laws
𝑝∧𝑞 ∧𝑟 ⇔𝑝∧ 𝑞∧𝑟
𝑝∨ 𝑞∧𝑟 ⇔ 𝑝∨𝑞 ∧ 𝑞∨𝑟
Distributive Laws
𝑝∧ 𝑞∨𝑟 ⇔ 𝑝∧𝑞 ∨ 𝑞∧𝑟
∼ 𝑝 ∧ 𝑞 ⇔∼ 𝑝 ∨∼ 𝑞
De Morgan’s Laws
∼ 𝑝 ∨ 𝑞 ⇔∼ 𝑝 ∧∼ 𝑞
𝑝 ∧∼ 𝑝 ⇔ 𝐹 Negation (Conjunction)
𝑝 ∨∼ 𝑝 ⇔ 𝑇 Negation (Disjunction)
16
ITMS-01 Discrete Structures
Demonstrate that
∼ 𝑝 ∧ 𝑝 ∨ 𝑞 → 𝑞
is a valid argument by showing that it is a tautology by proof.
Proof:
∼ 𝑝 ∧ 𝑝 ∨ 𝑞 → 𝑞
⇔ ∼ 𝑝 ∧ 𝑝 ∨ ∼ 𝑝 ∧ 𝑞 → 𝑞 Distributive Law
⇔ 𝑝 ∧∼ 𝑝 ∨ ∼ 𝑝 ∧ 𝑞 → 𝑞 Commutative Law
⇔ 𝐹 ∨ ∼ 𝑝 ∧ 𝑞 → 𝑞 Negation (Conjunction)
⇔ ∼ 𝑝 ∧ 𝑞 → 𝑞 Identity Law
⇔ ∼ ∼ 𝑝 ∧ 𝑞 ∨ 𝑞 Implication to Disjunction
⇔ ∼ ∼ 𝑝 ∨∼ 𝑞 ∨ 𝑞 DeMorgan’s Law
⇔ 𝑝 ∨∼ 𝑞 ∨ 𝑞 Double Negation Law
⇔ 𝑝 ∨ ∼ 𝑞 ∨ 𝑞 Associative Law
⇔ 𝑝 ∨ 𝑞 ∨∼ 𝑞 Commutative Law
⇔ 𝑝 ∨ 𝑇 Negation (Disjunction)
⇔ 𝑇 Domination Law
So, [¬p ∧(p ∨q )]→q is a tautology.
Therefore, it is a valid argument.
17
ITMS-01 Discrete Structures
References
Cargal, J.M., Discrete Mathematics for Neophytes: Number Theory, Probability,
Algorithms, and Other Stuff
http://www.math.northwestern.edu
Lipschutz, Seymour Ph.D., Lipson, Marc Ph.D., Schaum’s Outlines DISCRETE
MATHEMATICS, Third Edition 2007.
Cruz, Rebecca J. and Tandingan, Glenda R., Simplified Discrete Mathematics, 2012 Edition.
Ymas, Sergio Jr E., Lopez, Joseph P., DISCRETE MATHEMATICS, 2009 Edition.
18
ITMS-01 Discrete Structures
Assessing Learning
Activity 1
Name: __________________________________________________ Score: ________________
Course/Year/Section: _______________________________ Date: _________________
Directions: Show complete solution. Encircle your final answer.
1) Give an example of a set that is a subset of a standard numerical set, has a
cardinality of 7.
2) Is the empty set a subset of your answer in 1)?
19
ITMS-01 Discrete Structures
Activity 2
Name: __________________________________________________ Score: ________________
Course/Year/Section: _______________________________ Date: _________________
Directions: Identify the following whether it is a proposition or not. If it is a proposition, tell
whether it is true or false. If it is not a proposition, justify it.
1) Carlo is a smart student. ________________________________.
2) It is Tuesday today. ________________________________.
3) Jump. ________________________________.
4) What is your course? ________________________________.
5) It is sunny today. ________________________________.
6) 1 < 2. ________________________________.
7) 3 > 4. ________________________________.
8) 2 = 1. ________________________________.
9) I am studying at NEUST. ________________________________.
10) I am a Filipino. ________________________________.
11-15 Give examples of True Proposition.
16-20 Give examples of False Proposition.
21-30 Give examples of not proposition and justify accordingly.
20
ITMS-01 Discrete Structures
Activity 3
Name: __________________________________________________ Score: ________________
Course/Year/Section: _______________________________ Date: _________________
Directions:
Consider
𝑝: Mary is rich.
𝑞: Josh is intelligent.
Construct
1) ~𝑝: _______________________________________________________________________.
2) 𝑝 ∧ 𝑞: _______________________________________________________________________.
3) 𝑝 ∨ 𝑞: _______________________________________________________________________.
4) 𝑝 → 𝑞 _______________________________________________________________________.
5) 𝑝 ↔ 𝑞 _______________________________________________________________________.
Bonus:
Give originally constructed examples of each connective (2 each).
21
ITMS-01 Discrete Structures
Activity 3
Name: __________________________________________________ Score: ________________
Course/Year/Section: _______________________________ Date: _________________
Directions: Show complete solution. Encircle your final answer.
1. Simplify the expression. Verify using truth table whether the expression is logically
equivalent with your answer.
(a) ∼ ∼ 𝑝 ∨∼ 𝑞
(b) 𝑝 ∧ 𝑞 ∨ 𝑝 ∧∼ 𝑞
22
ITMS-01 Discrete Structures
Activity 4
Name: __________________________________________________ Score: ________________
Course/Year/Section: _______________________________ Date: _________________
Directions: Show that the statement below by way of truth table.
“I do not go outside or did not have or have Covid-19 virus.” is logically equivalent to
“If I go outside and have COVID-19, then I have COVID-19.”
23