Logic
Logic
Statement – is a declarative sentence that is either TRUE or FALSE, but not BOTH true and
false.
The truth value of a simple statement is either TRUE (T) or FALSE (F).
The truth value of a compound statement depends on the truth values of its simple statement
and its connection.
A truth table is a table that shows the above truth value of a compound statement for all
possible truth values of its simple statement.
p or q Or p˅q Disjunction
p; Today is Monday.
q: It is raining
r: I am going to church.
s: I am not going to school.
Solution:
1. p ˄ q 2. – q ˄ r 3. – s ˅ r 4. q → s
SAMPLE 2
Solution:
1. p ˄ s 2. r → (p ˄ s) . 3. – s ˅ r 4. p < s
SAMPLE 3
Consider the following simple statement.
Solution
1. p ˄ q 2. r → (p ˄ q) 3.- p ˄ - q 4. p ˄ - q
SAMPLE 4
Solution:
1. p ˅ s 2. q → s 3. p ˄ r 4. - p ˄ - r
SAMPLE 5
Consider the following simple statement.
p; Dog is an animal.
q: Dogs are four legged animal
r: Masser is a bulldog.
s: Dogs are carnivorous animal.
Solution:
1 p˄r 2. r ˄ q 3. r → ( p ˄ q) 4. r ↔ q
SELF CHECK
1. Consider the following simple statement.
1. If TCSF is tertiary school in San Felipe then it offers collegiate courses in Tourism.
A. p ˄ r B. r ˄ q C. r → ( p ˄ q) D. p → q
2. If TCSF accepts CHED scholarship then it is community college for needy students.
A. p ˄ r B. r ˄ q C. r → ( p ˄ q) D. r → s
3. If TCSF offers collegiate courses in Tourism then it is a tertiary school in San Felipe and
accepts CHED scholarship.
A. p ˄ r B. r ˄ q C. r → ( p ˄ q) D. q → r
6. The game will be shown in GMA 7 and TCSF team will be winner.
A. q˄s B. r ˄ q C. r → ( p ˄ q) D. p→ q
7. The game will not be shown in ABS CBN and the game will be played in Malomo
A. r ˄ p B. r ˄ q C. r → ( p ˄ q) D. p→ q
8. The game will be played in Maloma and will not be shown in ABS CBN.
A. p ˄ r B. r ˄ q C. r → ( p ˄ q) D. p→ q
ACTIVITY
1. Consider the following simple statement.
1. -q ˄ -r
2..-r ˄ s
3. s ↔ (-q ˅ -r)
4. s → (q ˅r)
1. r → (p ˄ q)
2. -q ˄ -r
3. r ↔ (p ˅ q)
4..-r ˄ -p
1. r → (p ˄ q)
2. -q ˄ -r
3. r ↔ (p ˅ q)
4..-r ˄ -p
INFORMATION SHEET 13.1 TRUTH TABLES, EQUIVALENT
STATEMENT AND TAUTOLOGIES
We defined truth tables for the negation of a statement, the conjunction of two statement, and the
disjunction of two statement. Each of these are shown below:
Negation
P -p
T F
F T
Conjunction
P q p˄q
T T T
T F F
F T F
F F F
Disjunction
P q p˅q
T T T
T F T
F T T
F F F
We consider methods of constructing truth tables for a statement that involves a combination of
conjunction, disjunction, and/or negation. If the given statement involves only two simple
statements, then start with a table with four rows called the STANDARD TRUTH TABLE
FORM.
EXAMPLES
1. Construct a table for - (p ˅ q) ˅ q.
Solution:
a. Start with the standard truth values and include – p.
p q -p
T T F
T F F
F T T
F F T
b. Now the truth values from the -p and q column to produce the truth values for -p ˅ q.
p Q -p -p ˅ q
T T F T
T F F F
F T T T
FA\ F T T
p Q -p -p ˅ q - (-p ˅ q)
T T F T F
T F F F T
F T T T F
F F T T F
p q -p -p ˅ q - (-p ˅ q) - (-p ˅ q) ˅ q
T T F T F T
T F F F T T
\ F T T T F T
F F T T F F
2.
Construct a table for (p ˄ -q) ˅ (- p ˅ q)
a. Start with the standard truth values and include – p and -q.
p q -p -q
T T F F
T F F T
F T T F
F F T T
P q -p -q (p ˄ -q) (- p ˅ q)
T T F F F T
T F F T T T
F T T F F T
F F T T F F
c. Construct (p ˄ -q) ˅ (- p ˅ q)
p q -p -q (p ˄ -q) (- p ˅ q) (p ˄ -q) ˅ (- p ˅ q)
T T F F F T T
T F F T T F T
F T T F F T T
F F T T F T T
a. Start with the standard truth values and include – p and -q.
p q -p -q
T T F F
T F F T
F T T F
F F T T
p Q -p -q (-p ˄ -q)
T T F F F
T F F T F
F T T F F
F F T T T
c. Construct (p ˄ -q) ˅ q
p q -p -q (p ˄ -q) (p ˄ -q) ˅ q
T T F F F T
T F F T T T
F T T F F T
F F T T F F
a. Start with the standard truth values and include – p and -q.
P q r -r (p ˄ q (-r ˅ q) (p ˄ q) ˄ (-r ˅ q)
T T T F T T T
T T F T T T T
T F T F F F F
T F F T F T F
F T T F F T F
F T F T F T F
F F T F F F F
F F F T F T F
a. Start with the standard truth values and include – p and -q.
p Q r -p -q -r (-p ˄ -q) (p ˄ -r) (-p ˄ -q) ˅ (p ˄ -r)
T T T F F F F F F
T T F F F T F T T
T F T F T F F F F
T F F F T T F T T
F T T T F F F F F
F T F T F T F F F
F F T T T F T F T
F F F T T T T F T
ACTIVITY
2. (-p ˄ q) ˄ (p ˄ -q)
4. (-p ˄ -q) ˅ -q
5. -p ˄ (-p ˅ -q)
6. (p ˄ q) ˅ (p ˄ r)
7. (-p ˄ q) ˅ (-q ˄- r)
8. (p ˄ -q) ˅ (-p ˄ r)
9. (-p ˄- q) ˅ (-p ˄- r)
WEEK 14
INFORMATION SHEET 14.1 LOGICAL ANALYSIS AND
INTEPRETATION
EXAMPLES
Solution:
a. Start with the standard truth values and include – p.
P q -p
T T F
T F F
F T T
F F T
b. Now the truth values from the -p and q column to produce the truth values for -p ˅ q.
p q -p -p ˅ q
T T F T
T F F F
F T T T
F F T T
p Q -p -p ˅ q - (-p ˅ q)
T T F T F
T F F F T
F T T T F
F F T T F
p q -p -p ˅ q - (-p ˅ q) - (-p ˅ q) ˅ q
T T F T F T
T F F F T T
F T T T F T
F F T T F F
Analysis:
1. If p is true and q is true the compound statement - (-p ˅ q) ˅ q is TRUE.
2. If p is true and q is false the compound statement - (-p ˅ q) ˅ q is TRUE.
3. If p is false and q is true the compound statement - (-p ˅ q) ˅ q is TRUE.
4. If p is false and q is false the compound statement - (-p ˅ q) ˅ q is FALSE.
a. Start with the standard truth values and include – p and -q.
p q -p -q
T T F F
T F F T
F T T F
F F T T
P q -p -q (p ˄ -q) (- p ˅ q)
T T F F F T
T F F T T T
F T T F F T
F F T T F F
c. Construct (p ˄ -q) ˅ (- p ˅ q)
p q -p -q (p ˄ -q) (- p ˅ q) (p ˄ -q) ˅ (- p ˅ q)
T T F F F T T
T F F T T F T
F T T F F T T
F F T T F T T
Analysis:
1. If p is true and q is true the compound statement (p ˄ -q) ˅ (- p ˅ q) is TRUE.
2. If p is true and q is false the compound statement (p ˄ -q) ˅ (- p ˅ q) is TRUE.
3. If p is false and q is true the compound statement (p ˄ -q) ˅ (- p ˅ q) is TRUE.
4. If p is false and q is false the compound statement (p ˄ -q) ˅ (- p ˅ q) is TRUE.
a. Start with the standard truth values and include – p and -q.
p q -p -q
T T F F
T F F T
F T T F
F F T T
p q -p -q (-p ˄ -q)
T T F F F
T F F T F
F T T F F
F F T T T
c. Construct (p ˄ -q) ˅ q
p q -p -q (p ˄ -q) (p ˄ -q) ˅ q
T T F F F T
T F F T T T
F T T F F T
F F T T F F
a. Start with the standard truth values and include – p and -q.
p q r -r (p ˄ q (-r ˅ q) (p ˄ q) ˄ (-r ˅ q)
T T T F T T T
T T F T T T T
T F T F F F F
T F F T F T F
F T T F F T F
F T F T F T F
F F T F F F F
F F F T F T F
Analysis.
a. Start with the standard truth values and include – p and -q.
1. If p is true, q is true, and r is true the compound statement (-p ˄ -q) ˅ (p ˄ -r) is FALSE.
2. If p is false, q is false, and r is false the compound statement (-p ˄ -q) ˅ (p ˄ -r) is TRUE.
3. If p is true, q is true, and r is false the compound statement (-p ˄ -q) ˅ (p ˄ -r) is TRUE.
4. If p is false, q is true, and r is true the compound statement (-p ˄ -q) ˅ (p ˄ -r) is FALSE.
WEEK 15
ACTIVITY (TO BE PASSED ON EXAMINATION DATE)
Determine the validity of the following compound symbolical form with the following premises.
1. (p ˄ q) ˅ (p ˄ -q)
4. (-p ˄ -q) ˅ -q
5. -p ˄ (-p ˅ -q)
6. (p ˄ q) ˅ (p ˄ r)
7. (-p ˄ q) ˅ (-q ˄- r)
8. (p ˄ -q) ˅ (-p ˄ r)
9. (-p ˄- q) ˅ (-p ˄- r)