MA400NI WK02 L Propositional Logic (Continued)
MA400NI WK02 L Propositional Logic (Continued)
Proposition
Compound Proposition
Logical Connectives
Truth tables
Tautology , Contradiction & Contingency
Review of Week 1
Question:
Show that p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
Review of Week 1
Question:
2. (p q) r p (q r) Associative Laws
(p q) r p (q r)
3. p (q r) (p q) (p r) Distributive Laws
p (q r) (p q) (p r)
Definition:
If P1, P2, …, Pn and Q are compound propositions and Q is true whenever all the
propositions P1, P2, …, Pn are true we say Q is a Logical Consequence of
P1, P2, …, Pn.
Logical Consequence (Continued):
Consider the following Truth table:
Notice that whenever both p q and q p are true (i.e. in lines 1 and 2)
p q is also true.
We say p q is a Logical Consequence of the two propositions p q and
p q and we write,
p q, p q ├ p q is a valid logical consequence.
p q pq qp pq
T T T T T
T F T T T
F T T F T
F F F T F
Logical Consequence (Contd…)
Show that p q, q r ├ p r is a valid logical consequence.
The truth tables for p q, q r and p r are as below:
(P1 P2 … Pn ) Q is a tautology.
Argument Exercises:
Question :
Determine the validity of the following argument.
p → q, q → r ├ p → r
Solution,
In order to show that the above argument is valid ,we need to show that
X = [ (p → q) (q → r ) ] (p → r) is a Tautology.
Argument Exercises:
Truth Table :
p q r pq q r (p q) (q r) p r X
T T T T T T T T
T T F T F F F T
T F T F T F T T
T F F F T F F T
F T T T T T T T
F T F T F F T T
F F T T T T T T
F F F T T T T T
Here from the truth table its proved that x = [ (p → q) (q → r )] (p → r) is a Tautology.
Hence the given argument is valid.
Argument Exercises:
Let ,
p = I am not in Malaysia
q = I am not happy
r = I am singing
p q , q r , r ├ p
Argument will be valid if [(p q) ˄ (q r) ˄ r ] → p is a tautology.
Argument Exercises:
Truth Table :
p q r q pq q r X=(p q) (q r) ˄ r X P
T T T F T T T T
T T F F T T F T
T F T T F T F T
T F F T F F F T
F T T F T T T F
F T F F T T F T
F F T T T T T F
F F F T T F F T
Here from the truth table its proved that X = [ (p → q) (q → r )] (p → r) is NOT a
Tautology. Hence the given argument is invalid.
Questions:
Determine the validity of the following arguments:
1. p v q , p ├ q
2. p → q , q → r , r ├ p
3. If you do not study you will fail your examination. You failed therefore you
did not study.
4. If I am not in my village, then I am not happy; if I am happy, then I am
dancing; I am into dancing; therefore, I am not in my village.
Any Questions?
Summary: Week 1 and 2 Lecture
• Logic and proposition
• Logical Connectives
• Truth tables
• Tautology and contradiction
• Logical equivalence
• Logical consequences
• Argument and its validity
What to Expect: Week 2 Tutorials