Logic Ch21
Logic Ch21
1 2
3 4
1
Ambo University Institute of Technology 7/19/2021
5 6
Cont..
Truth Table
propositions can be interpreted as any facts you want
– e.g., P means "robins are birds", Q means "the Mike is dead", Mathematicians normally use a two-valued logic: Every
etc. statement is either True or False.
meaning of complex sentences is derived from the meaning This is called the Law of the Excluded Middle.
of its parts. A statement in sentential logic is built from simple statements
one method is to use a truth table all are easy except P ÞQ using the logical connectives ,,,Þ,, , , , and .
this says that if P is true, then I claim that Q is true; otherwise I The truth or falsity of a statement built with these connective
make no claim; depends on the truth or falsity of its components.
• P is true and Q is true, then P => Q is true A truth table shows how the truth or falsity of a compound
• P is true and Q is false, then P => Q is false statement depends on the truth or falsity of the simple
• P is false and Q is true, then P => Q is true statements from which it's constructed.
• P is false and Q is false, then P => Q is true
7 8
2
Ambo University Institute of Technology 7/19/2021
9 10
11 12
3
Ambo University Institute of Technology 7/19/2021
AND ()
Truth table for Negation are called conjunctions
Note: Always assume fixed times, fixed places, and particular The symbol for “and” is Λ . Other words that are sometimes
people unless otherwise noted. used for a conjunction are but, however, or nevertheless.
• If A and B are statement variables, the conjunction of A and
Truth table B is A Λ B, which is read “A and B”.
A Λ B is true when both A and B are true.
Truth table
13 14
Implication(Þ)
OR() are called conditional statements. The symbol for “if…then” is
are called disjunctions. Þ .
A B is False When both A and B are False. For example p Þ q would be read “If p then q”. A conditional
statement has two parts, the antecedent (the part in front of the
Truth table arrow) and the consequent (the part that follows the arrow).
The implication of two statement is False if the antecedent is
True and the consequent is False. p q pq
T T T
T F F
F T T
F F T
15 16
4
Ambo University Institute of Technology 7/19/2021
17 18
19 20
5
Ambo University Institute of Technology 7/19/2021
Cont..
Cont..
2. If p represent the statement 4 > 1, and q represent the statement 3. Construct the truth table for: p ˄ (¬p ˅ ¬ q)
12 < 9, find the truth value of p ˅ q. A logical statement having n component statements will have 2n
rows in its truth table.
22 = 4 rows
21 22
23 24
6
Ambo University Institute of Technology 7/19/2021
25 26
Equivalent Statements
Two statements are equivalent if they have the same truth
value in every possible situation.
Example
Are the following statements equivalent? ~ p ˄ ~ q and ̴ (p ˅
q)
27