001 MMW Elementary Logic Lect PDF
001 MMW Elementary Logic Lect PDF
conjunctio 𝒑 and 𝒒
And/But ∧ 𝑝∧𝑞
n (both 𝑝 and 𝑞 are
true)
𝒑 𝐨𝐫 𝒒
(Either 𝑝 is true or 𝑞
Or disjunction ∨ 𝑝∨𝑞 is true or both 𝑝 and
𝑞 are true)
Connective Type of Symbol Symbolic Read
Statement Form
𝒑 implies 𝒒 and 𝒒
If and only implies 𝒑
biconditional ↔ 𝑝↔𝑞
if
𝒑 if and only if 𝒒
NEGATION
Examples:
𝑝 ∼𝑝
1. I passed the test. I did not pass the test.
2. It is raining today. It is not raining today.
3. The children are playing in The children are not playing in
the yard. the yard.
4. John does not like math. John likes math.
5. 0 = 1 0≠1
Conjunction (and/but)
Let 𝑝, 𝑞, 𝑟, 𝑎𝑛𝑑 𝑠 be propositions:
𝑝: Mary is not happy.
𝑞: Mary is going to the mall.
𝑟: It is going to rain.
𝑠: Today is Saturday.
Compound Propositions Symbols
1. Mary is going to the mall and Mary is 𝑞 ∧∼ 𝑝
happy.
2. Today is not Saturday and it is not ∼ 𝑠 ∧∼ 𝑟
going to rain.
3. It is going to rain and Mary is not 𝑟∧𝑝
happy.
Conjunction (and /but)
Let 𝑝, 𝑞, 𝑟, 𝑎𝑛𝑑 𝑠 be propositions:
𝑝: Mary is not happy.
𝑞: Mary is going to the mall.
𝑟: It is going to rain.
𝑠: Today is Saturday.
Example:
𝑝: Today is Monday.
𝑞: 3+ 7 = 10.
In the natural language, the implication “If today
is Monday, then 3 + 7 = 10” shows no relationship
between the hypothesis and the conclusion.
Biconditional 𝒑 ↔ 𝒒 (𝒑 𝒊𝒇 𝒂𝒏𝒅 𝒐𝒏𝒍𝒚 𝒊𝒇 𝒒)
Let 𝑝, 𝑞, 𝑟, 𝑎𝑛𝑑 𝑠 be propositions:
𝑝: Peter is an honor student.
𝑞: Peter is a varsity player.
𝑟: 𝑥 is divisible by 2.
𝑠: 𝑥 is an even number.
3. 𝑝 ∧ (𝑞 ∨ ~𝑟)
Kate is good in math, and Kate is good in English or
she is not a varsity player.
4. (𝑝 ∧ 𝑞) ∨ 𝑟
Kate is good in math and she is good in English, or
she is a varsity player.
5. (𝑝 ∧ ~𝑞) → (𝑟 ∨ 𝑠)
If Kate is good in Math but she is not good in
English, then Kate is a varsity player or she is a class
mayor.
Exercises
Let the following be propositions:
𝑝: James is happy. 𝑟: John is sick.
𝑞: Jane is happy. 𝑠: Jeff is not angry.
Translate the following into logic symbols.
1. James is happy but John is sick.
2. Jeff is not angry and Jane is happy.
3. John is not sick or Jeff is angry.
4. If Jeff is not angry, then James is happy.
5. Jane is happy if and only if John is not sick.
6. Jane is happy whenever John is not sick.
7. If Jeff is angry, then James is not happy or
John is sick.
8. James is happy if Jeff is not angry.
9. Jane is happy implies that John is not sick and
John is not sick implies that Jane is happy.
10. If John is sick and Jeff is angry, then James is
not happy.
TRUTH TABLES
A logical statement may either be true or false. If
the statement is true, then the truth value of that
statement is true and is denoted by T. If it is false,
then its truth value is false and is denoted by F.
A. Assertion
𝑝
T
F
B. Negation
𝑝 ∼𝑝
T F
F T
C. Conjunction
𝑝 𝑞 𝒑∧𝒒
T T T
T F F
F T F
F F F
D. Disjunction
𝑝 𝑞 𝒑∨𝒒
T T T
T F T
F T T
F F F
E. Implication (Conditional)
𝑝 𝑞 𝒑→𝒒
T T T
T F F
F T T
F F T
F. Biconditional
𝑝 𝑞 𝒑↔𝒒
T T T
T F F
F T F
F F T
Examples:
A. What are the truth values of the following statements if 𝒑
is false and 𝒒 is true?
1. 𝒑 ∧∼ 𝒒 2. ∼𝒑∨∼𝒒 3. ~ 𝒑 ⟶ ~𝒒
F ∧ F T∨F ~(F ⟶ F)
F T ~(T)
F
B. Find the truth value of the statement “If 4 is an
integer, then 4 is a rational number.”
Antecedent: 4 is an integer. - T
Consequent: 4 is a rational number. - T
T⟶T
T
C. Find the truth value of the statement “If 9
is a prime number, then 8 is irrational. “
Antecedent: 9 is a prime number. - F
Consequent: 8 is irrational. -T
F⟶T
T
Example:
1. Construct the truth table for the compound
statement 𝒑 ∧∼ 𝒒.
𝑝 𝑞 ∼𝒒 𝒑 ∧∼ 𝒒
T T F F
T F T T
F T F F
F F T F
Example:
2. Construct the truth table for the
compound statement
( 𝒑 ∨ 𝒒) ∧∼ 𝒒.
𝑝 𝑞 𝒑∨𝒒 ∼𝒒 ( 𝒑 ∨ 𝒒) ∧∼ 𝒒
T T T F F
T F T T T
F T T F F
F F F T F
Example:
3. Construct the truth table for the compound
statement
( 𝒑 → 𝒒) ↔ (∼ 𝒒 ∨∼ 𝑝).
𝑝 𝑞 ∼ 𝑞 ∼ 𝑝 𝐩 → 𝐪 ∼ 𝒒 ∨∼ 𝑝 ( 𝒑 → 𝒒) ↔ (∼ 𝒒 ∨∼ 𝑝)
T T F F T F F
T F T F F T F
F T F T T T T
F F T T T T T
Example:
4. Construct the truth table for the compound statement
𝒑 ∨ (𝒒 ∧ 𝒓).
𝑝 𝑞 𝑟 𝒒∧𝒓 𝒑 ∨ (𝒒 ∧ 𝒓)
T T T T T
T T F F T
T F T F T
T F F F T
F T T T T
F T F F F
F F T F F
F F F F F
Exercises:
Construct the truth tables of the following
compound statements:
1.( 𝒑 ∧ 𝒒) ∧∼ 𝒒
2. 𝑝 ⟶ 𝑝 ⟶ 𝑞
3. ~ 𝑝 ⟶ 𝑞 ⟶ ~𝑞
4. (𝑝 ∨ 𝑞) ∧ (𝑝 ∨ 𝑟)
A proposition is a tautology if the truth values in all
possible cases are true.
~ 𝑝 ⟶ 𝑞 ⟶ ~𝑞 is a tautology.
𝑝 𝑞 𝒑 ⟶ 𝑞 ∼ (𝒑 ⟶ 𝑞) ∼ 𝑞 ∼ (𝒑 ⟶ 𝑞) ⟶ 𝐪
T T T F F T
T F F T T T
F T T F F T
F F T F T T
A proposition is a contradiction if the truth values in
all possible cases are false.
( 𝒑 ∧ 𝒒) ∧∼ 𝒒 is a contradiction.
𝑝 𝑞 𝒑∧𝒒 ∼𝒒 ( 𝒑 ∧ 𝒒) ∧∼ 𝒒
T T T F F
T F F T F
F T F F F
F F F T F
A proposition is a contingency if the truth values
in all possible cases are not always true nor false.
( 𝒑 ∨ 𝒒) ∧∼ 𝒒 is a contingency.
𝑝 𝑞 𝒑∨𝒒 ∼𝒒 ( 𝒑 ∨ 𝒒) ∧∼ 𝒒
T T T F F
T F T T T
F T T F F
F F F T F
LOGICAL EQUIVALENCE
𝒑 𝒒 ~𝒑 ~𝒒 𝒑 ∨ 𝒒 ~(𝒑 ∨ 𝒒) ~𝒑 ∧ ~𝒒
T T F F T F F
T F F T T F F
F T T F T F F
F F T T F T T
Since ~(𝒑 ∨ 𝒒) and ~𝒑 ∧ ~𝒒 have the same truth values,
then they are logically equivalent.
2. Show that 𝒑 ⟶ 𝒒 𝒂𝒏𝒅 ~𝒑 ∨ 𝒒 are logically
equivalent.
𝒑 𝒒 ~𝒑 𝑝⟶𝑞 ~𝑝 ∨ 𝑞
T T F T T
T F F F F
F T T T T
F F T T T
Therefore, 𝒑 ⟶ 𝒒 ⟺ ~𝒑 ∨ 𝒒.
3. Is ∼ 𝒑 ∨∼ 𝒒 ⟺ ∼ 𝒒 ∧∼ 𝑝 ?
𝒑 𝒒 ~𝒑 ~𝒒 ∼ 𝒑 ∨∼ 𝒒 ∼ 𝒒 ∧∼ 𝑝
T T F F F F
T F F T T F
F T T F T F
F F T T T T
𝒑 𝒒 ~𝒑 ~𝒒 𝑝⟶𝑞 𝒒⟶𝒑 ∼ 𝒑 ⟶∼ 𝒒 ∼ 𝒒 ⟶∼ 𝑝
T T F F T T T T
T F F T F T T F
F T T F T F F T
F F T T T T T T