Discrete Math
Discrete Math
MATHEMATICS
• INTRODUCTION
• PROPOSITIONAL LOGIC
CDM 1101/CCS 2101 Course Outline
4. What is a Proposition?
6. References
What is Discrete Mathematics?
Integers
Rational Numbers
Finite Sets
Kinds of Sentences
1. Declarative
2. Interrogative
3. Imperative
4. Exclamatory
Proposition
An assertion which is either true or false but not both.
A declarative statement.
Two (2) TRUTH VALUES
• TRUE denoted by 1
• FALSE denoted by 0
Examples of Proposition
3 is a prime number.
4+3=8
The moon is made of cheese.
x + 3 = 3x when x = -2
All cows are brown.
There is life in heaven.
3*3=6
The earth is further from the sun than Jupiter.
Examples of NOT a proposition
x+y>7
x=5
Are you watching?
Buy me a food, pls.
Look out!
How dangerous is the COVID delta variant?
x + 3 = 2x
Do you want to be vaccinated?
Clean up your room!
2x = 9 - x
This statement is false. -> Liar Paradox
Propositional Variables
Logical Connectives:
p and q
p or q
not p
Examples:
p: Dan is 6’ tall.
q: There are 5 cows in the barn.
r: Diego is 5’5” tall.
s: Juanma is 4’ tall.
p and q: Dan is 6’ tall and there are 5 cows in the barn.
p or q: Dan is 6’ tall or there are 5 cows in the barn.
p and r and s:
Not a good translation: Dan is 6’ tall and Diego is 5’5” tall and
Juanma is 4’ tall.
A good translation: Dan, Diego and Juanma are 6’, 5’5” and 4’ tall,
respectively.
LOGICAL OPERATORS
Unary Operator negation: “not p”, p.
Binary Operators
Disjunction: “p or q”, p q
“Either p or q”
Truth Table:
p p
0 1
1 0
Conjunction. Conjunction Operator, “and”, has symbol
Example:
p: This book is interesting.
q: I am staying at home.
Truth Table:
p q pq
0 0 0
0 1 0
1 0 0
1 1 1
Disjunction. Disjunction Operator, “or”, has symbol
Example:
p: This book is interesting.
q: I am staying at home.
Truth Table:
p q p q
0 0 0
0 1 1
1 0 1
1 1 1
Exclusive-OR. Exclusive-OR Operator, “xor”, has symbol
Example:
p: This book is interesting.
q: I am staying at home.
Either p or q
Truth Table:
p q p q
0 0 0
0 1 1
1 0 1
1 1 0
Implication. Implication Operator, “if… then”, has symbol
Example:
p: This book is interesting.
q: I am staying at home.
If p then q
Truth Table:
p q pq
0 0 1
0 1 1
1 0 0
1 1 1
Implication. Implication Operator, “if… then”, has symbol
Example:
p: This book is interesting.
q: I am staying at home.
If p then q
Alternatives:
p implies q
If p, q
p only if q
p is a sufficient condition for q
q if p
q whenever p
q is a necessary condition for p
q provided p
Exercise 1:
Which of the following statements are equivalent to “If x is even,
then y is odd”? There may be more than one or none answer.
p implies q
pq
If p, q
p: x is even
p only if q
q: y is odd
p is a sufficient condition
for q
Implication p q
Example:
Implication: If this book is interesting, then I am staying at home.
Example:
p: This book is interesting.
q: I am staying at home.
p if and only if q
Truth Table:
p q pq
0 0 1
0 1 0
1 0 0
1 1 1
Biconditional. Biconditional Operator, “if and only if”, has symbol
Example:
p: This book is interesting.
q: I am staying at home.
p if and only if q
Alternatives:
p is equivalent to q
p iff q
p is a necessary and sufficient condition for q
Summary:
Binary Operators
0 0
0 1
1 0
1 1
Terminologies:
Ex. p p
Ex. p p