Académique Documents
Professionnel Documents
Culture Documents
Logic
Proposition
Logical values
For a given statement P, we will look at the possible truth values of P. Namely,
either P is true (T) or P is False (F).
P
T
F
Examples.
P Q
T T
T F
F T
F F
The first row is the case when both are true. The second row is the case where P
is true and Q is false. The third row is the case when P is false and Q is true. The
fourth row is the case when both P and Q are false. Using truth tables, we can
”define” what certain symbols and words mean in mathematics.
In mathematics, the terms ”and”, ”or”, ”not” have precise meaning and are often
written as symbols instead of words. We will use these symbols to construct
more complicated statements from ones that we have.
a. The negation of a proposition Pis also called not P, and is denoted by ¬P.
P ¬P
T F
F T
1.1 Let P: “2 is even” and Q: “2 + 2 = 5”. State these propositions and find their
value.
a) PQ
b) P¬Q
c) ¬PQ
d) ¬P¬Q
= ”AND”:
P Q PQ
T T T
T F F
F T F
F F F
Now let’s move one step further and write the truth table for
P Q PQ ¬( P Q)
T T T F
T F F T
F T F T
F F F T
It is crucial to note the placement of the parenthesis and how this is crucial to
the meaning of the sentence. Without the parenthesis, we read from left to right.
P Q ¬P ¬P Q
T T F F
T F F F
F T T T
F F T F
c. Similarly the disjunction of p and q has value false only when both are false.
It is denoted by P Qand read Por Q.
P Q P Q
T T T
T F T
F T T
F F F
If your mother tells you ”If I go to the candy store, I’ll buy you a candy”,
when has she told the truth? Well, there is really only one way that she has lied -
namely if she goes to the candy store and doesn’t buy you a candy. Notice that if
she doesn’t go to the candy store, it doesn’t really matter what happens later
since her promise was conditional on her going to the candy store.
The implication of p and q has value false only when P is true and Q is
false. A statement in the form P ⇒ Q is also called a conditional statement, in
which p is sufficient condition for q and q is a necessary condition for p.
Remarks.
P Q P ⇒Q
T T T
T F F
F T T
F F T
Remarks:
1. For P ⇐⇒Q we can also say that P if and only if Q, (P iff
Q)
2.
P is a necessary and sufficient condition for Q.
Problem:
1. Associativity
(p q) r p (q r)
2. Commutativity
p q q p
3. Double negation
¬¬p p
4. Distributivity
(p q) r (p r ) (q r)
5. De morgans laws
¬(p q) ¬p ¬q
6. Transposition or contrapositive
p q ¬q ¬p
7. Material Implication
p q ¬p q
8. Material Equivalence
p q [ (p q) (q p)]
p q [ (p q) (¬p ¬q)]
9. Exportation
[ (p q) r] [p (q r)]
10. Tautology
(p p) p
(p v p) p
11. Modus Ponens (MP)
(p q )
p_____
q
12. Modus Tollens
(p q )
¬q______
¬p
Prove:
1. a (b c)
c (d e)
___________
a (b d)
2. ¬ p
_____
p q
3.p q
__________
(p r) q
3. p q
p r
____________
p (q r)
4. p ( q ¬ r)
(q r) s
p
__________________
s