Lesson 1 Introduction To Discrete Structures and Propositional
Lesson 1 Introduction To Discrete Structures and Propositional
Lesson 1 Introduction To Discrete Structures and Propositional
the branch of mathematics dealing with objects that can assume only
distinct, separated values.
PROPOSITIONS
Page 1
MODULE 1 - DISCRETE STRUCTURES AND PROPOSITIONAL LOGIC
For example, "Grass is green", and "2 + 5 = 5" are propositions. The
first proposition has the truth value of "true" and the second "false".
But "Close the door", and "Is it hot outside? "are not propositions. Also "x is
greater than 2", where x is a variable representing a number, is not a
proposition, because unless a specific value is given to x we cannot say
whether it is true or false, nor do we know what x represents.
Similarly "x = x" is not a proposition because we don't know what "x"
represents hence what "=" means. For example, while we understand
what "3 = 3" means, what does "Air is equal to air" or "Water is equal to
water" mean? Does it mean a mass of air is equal to another mass or the
concept of air is equal to the concept of air? We don't quite know what
"x = x" mean. Thus we cannot say whether it is true or not. Hence it is not a
proposition.
1. NOT( , ′)
2. AND( )
3. OR( )
4. IF-THEN(IMPLY) ( )
5. IF AND ONLY IF( )
MODULE 1 - DISCRETE STRUCTURES AND PROPOSITIONALLOGIC
P P
T F
F T
Example:
If p: The teacher is good
q: She is beautiful.
Notice that in the truth table, all four possible combinations of truth
assignments for p and q are given. The table shows that the conjunction of
p q is true provided that p and q are both true; otherwise, p q is
false.
P Q P q
T T T
T F F
F T T
F F T
The truth value of a proposition depends exclusively upon the truth values
of its variables, that is, the truth value of a proposition is known once the
Page 5
truth values of its variables are known.
MODULE 1 - DISCRETE STRUCTURES AND PROPOSITIONAL LOGIC
Solution: Since we have 2 variables which is p,q, four rows are necessary or
four combinations of T and F, because for n variables, 2n rows are
required. So we have:
P Q q p q (p q)
T T F F T
T F T T F
F T F F T
F F T F T
IF-THEN VARIATIONS(IMPLICATION)
For instance, instead of saying "If she smiles then she is happy", we
can say "If she smiles, she is happy", "She is happy whenever she smiles", "She
smiles only if she is happy" etc. without changing their truth values.
"Only if" can be translated as "then". For example, "She smiles only if she is
happy" is equivalent to "If she smiles, then she is happy".
Note that "She smiles only if she is happy" means "If she is not happy, she
does not smile", which is the contrapositive of "If she smiles, she is happy".
You can also look at it this way: "She smiles only if she is happy" means
"She smiles only when she is happy". So any time you see her smile you know
she is happy. Hence "If she smiles, then she is happy". Thus they are logically
equivalent.
MODULE 1 - DISCRETE STRUCTURES AND PROPOSITIONALLOGIC
Also "If she smiles, she is happy" is equivalent to "It is necessary for her to
smile that she is happy". For "If she smiles, she is happy" means "If she smiles,
she is always happy". That is, she never fails to be happy when she smiles.
"Being happy" is inevitable consequence/necessity of "smile". Thus if "being
happy" is missing, then "smile" cannot be there either. "Being happy" is
necessary "for her to smile" or equivalently "It is necessary for her to smile
that she is happy".
For example for the proposition "If it rains, then I get wet",
PRECEDENCE RULES
In forming sentences, we usually put grouping symbols(parenthesis,
brackets or braces) to where we want to be. Without the presence of
grouping symbols, we will assume that the grouping will follow the
precedence rules for the logical connectives.
Page 7 And
MODULE 1 - DISCRETE STRUCTURES AND PROPOSITIONAL LOGIC
Page 6 of 12
Or
If-then
If and only if (lowest priority)