Table of Contents
UNIT 1. INTRODUCTION TO DISCRETE STRUCTURES....................................................................... 3
UNIT 2. LOGIC AND PROOFS..................................................................................................................... 3
LESSON 2.1. PROPOSITIONS..........................................................................................................................................4
2.1.1. PROPOSITION..................................................................................................................................................... 4
2.1.2. LOGICAL MATRIX.............................................................................................................................................. 5
2.1.3. LOGICAL OPERATORS..................................................................................................................................... 5
LESSON 2.3. REASONING WITH PROPOSITION..................................................................................................12
DEFINITION 2.3.1.A IDENTITIES................................................................................................................................13
Page 2
Discrete Mathematics
2.1.1. PROPOSITION
A proposition is a sentence that is either true or false, but not both. It is
typically expressed as a declarative sentence (as opposed to a question,
command, etc.). Propositions are the basic building blocks of any theory of
logic.
p: 1 + 1 = 3
Example 2.1.1.a.1
3. 16 ÷ 4 = 4.
4. √ 3 isan integer .
Page 4
Discrete Mathematics
is false.
Table . The Truth Matrix for the Conjunction of Two Propositions
p q p⋀q
T T T
T F F
F T F
F F F
Page 5
Discrete Mathematics
is true.
Table . The Truth Matrix for the Disjunction of Two Propositions
p q p⋁q
T T T
T F T
F T T
F F F
Example 2.1.3.c.1
1. Let p: You can have a glass of milk for breakfast.
q: You can have a glass of orange juice for breakfast.
The exclusive-or proposition of p and q is
Either you can have a glass of milk or a glass of orange juice for
breakfast.
p q p⊕q
T T F
T F T
F T T
F F F
Page 6
Discrete Mathematics
Example 2.1.3.d.1
1. Let p: 20 is a negative integer.
The negation of p is the proposition
p ¬p
T F
F T
Example 2.1.3.d.2
1. Let p: Blaise Pascal invented several calculating machines,
q: The first all-electronic digital computer was constructed
in the twentieth century,
r: π was calculated to 1,000,000 decimal digits in 1954.
We first note that p and q are true and r is false. (It is not until 1973 that
1,000,000 decimal digits of π were computed. Since then over 2,000,000,000
decimal digits of π have been computed.) If we replace each symbol by its
truth value, we find that
Page 7
Discrete Mathematics
(p ⋀ ¬q) ⋁ r = (T ⋀ ¬T) ⋁ F
= (T ⋀ F) ⋁ F
= F⋁F
= F
Exercise
A. Determine whether each sentence is a proposition. If the sentence is a
proposition, write its negation.
1. Today is Friday.
2. 2 + 5 =19.
3. Waiter, will you serve the nuts—I mean, would you serve the guests
the nuts?
4. Every even integer greater than 4 is the sum of two primes.
5. x – 6 ≥ 11.
6. Tom Cruise starred in Knight and day.
7. Peel me a grape.
8. Why should you take discrete mathematics before autumata?
9. The town fiesta of Carigara, Leyte is on the 16th of July.
10. Curiosity is what drives problem solving.
Page 8
Discrete Mathematics
Example 2.2.1.a.1
4. A necessary condition for the Cubs to win the World Series is that they
sign a right-handed relief pitcher.
Page 9
Discrete Mathematics
p q p→q
T T T
T F F
F T T
F F T
Example 2.2.1.a.2
What are the contra-positive, the converse and the inverse of the
implication?
“If the US goes to war, then the price of crude oil goes up.”
“If the price of crude oil goes up, then the US goes to war.”
The contra-positive is
“If the price of crude oil does not go up, then the US does not go to war.”
The inverse is
“If the US does not go to war, then the price of crude oil does not go up.”
Page 10
Discrete Mathematics
Example 2.2.1.b.1
The statement
1 < 5 if and only if 2 < 8
can be written symbolically as
p↔q
if we define
p: 1 < 5, q: 2 < 8.
Since both p and q are true, the statement p ↔ q is true.
An alternative way to state such proposition is: A necessary and
sufficient condition for 1 < 5 is that 2 < 8.
P ≡ Q,
provided that given any truth values of p1, …, pn, either P and Q
are both true or P and Q are both false.
Example 2.2.1.c.1
Show that ¬ (p ⋀ q) and ¬p ⋁ ¬q are equivalent.
Solution:
p q (p ⋀ q) ¬ (p ⋀ q) ¬p ¬q ¬p ⋁ ¬q
T T T F F F F
T F F T F T T
F T F T T F T
F F F T T T T
Page 11
Discrete Mathematics
Since inference rules are based on identities and implications, we are going
to study them first. We start with three types of proposition which are used to
define the meaning of "identity" and "implication".
Types of Proposition
There are also propositions that are always false such as (P P). Such a
proposition is called a contradiction. A proposition that is neither a
tautology nor a contradiction is called a contingency.
For example (P Q) is a contingency.
These types of propositions play a crucial role in reasoning. In particular
every inference rule is a tautology as we see in identities and implications.
Page 12
Discrete Mathematics
These identities are used in logical reasoning. In fact we use them in our
daily life, often more than one at a time, without realizing it.
If two propositions are logically equivalent, one can be substituted for the other
in any proposition in which they occur without changing the logical value of the
proposition.
Example 2.3.1.a.1
1. p ⟺ (p ⋁ p) ----- Idempotence of ⋁
What this says is, for example, that "Tom is happy." is equivalent to "Tom is
happy or Tom is happy". This and the next identity are rarely used, if ever, in
everyday life. However, these are useful when manipulating propositions in
reasoning in symbolic form.
2. p ⟺ (p ⋀ p) ----- Idempotence of ⋀
Similar to 1. above.
3. (p ⋁ q) ⟺ (q ⋁ p) ----- Commutativity of ⋁
What this says is, for example, that "Tom is rich or (Tom is) famous." is
equivalent to "Tom is famous or (Tom is) rich".
4. (p ⋀ q) ⟺ (q ⋀ p) ----- Commutativity of ⋀
What this says is, for example, that "Tom is rich and (Tom is) famous." is
equivalent to "Tom is famous and (Tom is) rich".
What this says is, for example, that "Tom is rich or (Tom is) famous, or he is
also happy." is equivalent to "Tom is rich, or he is also famous or (he is)
happy".
Page 13
Discrete Mathematics
Similar to 5. above.
For example, "It is not the case that Tom is rich or famous." is true if and only
if "Tom is not rich and he is not famous."
For example, "It is not the case that Tom is rich and famous." is true if and only
if "Tom is not rich or he is not famous."
What this says is, for example, that "Tom is rich, and he is famous or (he is)
happy." is equivalent to "Tom is rich and (he is) famous, or Tom is rich and (he
is) happy".
Similarly to 9. above, what this says is, for example, that "Tom is rich, or he is
famous and (he is) happy." is equivalent to "Tom is rich or (he is) famous, and
Tom is rich or (he is) happy".
13. (p ⋁ False) ⟺ p
14. (p ⋀ True) ⟺ p
What this says is that a statement such as "Tom is 6 foot tall or he is not 6 foot
tall." is always true.
Page 14
Discrete Mathematics
What this says is that a statement such as "Tom is 6 foot tall and he is not 6 foot
tall." is always false.
What this says is, for example, that "It is not the case that Tom is not 6 foot
tall." is equivalent to "Tom is 6 foot tall."
For example, the statement "If I win the lottery, I will give you a million
dollars." is not true, that is, I am lying, if I win the lottery and don't give you a
million dollars. It is true in all the other cases. Similarly, the statement "I don't
win the lottery or I give you a million dollars." is false, if I win the lottery and
don't give you a million dollars. It is true in all the other cases. Thus these two
statements are logically equivalent.
What this says is, for example, that "Tom is happy if and only if he is healthy."
is logically equivalent to ""if Tom is happy then he is healthy, and if Tom is
healthy he is happy."
For example, if "If Tom is guilty then he must have been in that room." and "If
Tom is guilty then he could not have been in that room." are both true, then
there must be something wrong about the assumption that Tom is guilty.
For example, "If Tom is healthy, then he is happy." is logically equivalent to "If
Tom is not happy, he is not healthy."
Page 15
Discrete Mathematics
Page 16