LOGIC1-3_MASCI(1)
LOGIC1-3_MASCI(1)
LOGIC1-3_MASCI(1)
RUEL CUETO
Four Divisions:
Set Theory Recursion Theory
Proof Theory Model Theory
Aristotle (382-322 BC)
W: I am lying.
1. Mathematics is fun.
P2 f: Logic is fun.
i: Logic is interesting. f and i, or b.
b: Logic is boring
T T
F T
Logical false
• The output value is never true: that is, always
false, regardless of the input value of p
Logical False
p F
T F
F F
• Logical identity
• Logical identity is an operation on one logical
value p, for which the output value remains p.
• The truth table for the logical identity
operator is as follows:
Logical Identity
p p
T T
F F
• Truth tables can also be used to display various combinations
of the truth values of two propositions p and q. The rows of
the table will correspond to each truth value combination of p
and q, so there will be 22 = 4 rows. The truth table for
propositions p and q are as follows.
p q
T T
T F
F T
F F
Similarly, suppose p, q, and r are propositions. Then the truth
table involving the given propositions has 23 = 8 rows., as
shown in the table below.
p q r
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F
• In general, a truth table
involving n propositions has 2 n
rows.
Conjunction
The conjunction of the statement p and q is the compound
statement “p and q.”
p q pq
T T T
T F F
F T F
F F F
Example
p: Angels exist.
q: π > 3
Express the following conjunctions as English
sentences or in symbols, as the case maybe.
a. p ∧ q c. “Angels do not exist and π ≤ 3.”
b. p ∧ (∼q) d. “While angels do not exists, π > 3
Ans.
p ∧ q : “Angels exist and π > 3.”
p ∧ (∼q) : Angels exist and π ≤ 3.” or
“Angels exists, yet π ≤ 3.”
In symbols, (∼ p) ∧ (∼q)
In symbols, (∼ p) ∧ q
In logic the statement is a conjunction
• In the example above, since proposition
q is true, the conjunction p ∧ q is true
when p is proven to be true. On the
other hand, both conjunctions p ∧ (∼q)
and (∼ p) ∧ (∼q) are false because one
of the conjunctions, namely ∼q, is false.
Tip
Based on the given example, do not
always use the word “and”. Words
like “but”, “ even though”, “yet”, and
“while” are also used to flag
conjunctions.
Consider the following sentences.
• Carlo is competitive and hardworking.
• Carlo is competitive but hardworking.
• Carlo is competitive yet hardworking.
• Although Carlo is competitive, he is
hardworking.
• While Carlo is competitive, he is hardworking.
• In ordinary language, these sentences have
subtle differences. However in logic, we are
only interested in whether the proposition is
true or not, and how the truth value of the
compound proposition ( a conjunction in this
case) depends on the truth value of its simple
components.
• Hence in logic, all these statements can be
represented by the conjunction p ∧ q , where
p : “Carlo is competitive”
q : “Carlo is hardworking”
Statement
The disjunction of the statement p, q is the compound
statement “p or q.”
Symbolically, p q, where is the symbol for “or.”
Notice that even as English they are very similar. They are
actually equivalent; and that is compound propositions are
logically equivalent.
Negation
p p
T F
F T
Negation
p ∼p
T F
F T
1. 3 + 5 = 8. 3 + 5 8.
x −1
p( x) =
∼n : It is not true that is a polynomial
x+2
x −1
function; or simply p( x) = x + 2 is not a polynomial
function.
Tip:
It is a common mistake to assume that the
proposition ∼p is automatically false. Just
because it involves a negation. However, ∼p
can be true – this happens when p is false.
p q pq
T T T
T F F
F T F
F F T
Example
Determine the truth values of each of the following
biconditional statements.
1. p q
2. p → (p q)
3. (p q) (p q)
4. (p → q) (q r)
Solution
1. p q
p q p q p q
T T F F F
T F F T T
F T T F T
F F T T T
Solution
2. p → (p q)
p q q p q p → (p q)
T T F F F
T F T T T
F T F T T
F F T F T
Solution
3. (p q) (p q)
p q p p q q p q (p q) (p q)
T T F F F F F
T F F F T T T
F T T T F F T
F F T F T F F
Solution
4. (p → q) (q r)
p q r p→q r q r (p → q) (q r)
T T T T F F T
T T F T T T T
T F T F F F F
T F F F T F F
F T T T F F T
F T F T T T T
F F T T F F T
F F F T T F T
Classes of Compound Statements
1. (p q) → q
p q p p q (p q) → q
T T F F T
T F F F T
F T T T T
F F T F T
2. (p → q) (p → q)
p q p→q q p → q (p → q) (p → q)
T T T F F F
T F F T T F
F T T F T T
F F T T T T
3. (p q) (p → q)
p q p p q p→q (p q) (p → q)
T T F T T F
T F F F F F
F T T T T F
F F T T T F
Implication p → q p q