LOGICS
LOGICS
LOGICS
______________________________________________________________________________________________
Statements in Logic
A statement is a simple declarative sentence that is either true or false but not both.
We usually name a statement by the letters 𝑝, 𝑞, or 𝑟.
Solution 1. False
2. True
3. False
4. True
Sets and Logic
______________________________________________________________________________________________
Two statements 𝑝 and 𝑞 may be joined using connectives (i.e. and, or, implies that) to form
a compound statement. When 𝑝 and 𝑞 are joined using the connective “and”, the resulting
compound statement is called a conjunction. While when 𝑝 and 𝑞 are joined using the
connective “or”, the resulting compound statement is called a disjunction. Furthermore,
when 𝑝 and 𝑞 are joined using the connective “implies that”, the resulting compound
statement is called a conditional statement. The truth value of the sub statements and the
connective used.
Negation of a Statement
Example 2.6 Negate and determine the truth value of the following statements.
1. 2 is positive.
2. Seoul is the capital city of North Korea.
The truth value of a compound statement depends on the truth value of the sub
statements and the connective used.
1. Conjunction
Let 𝑝 and 𝑞 be statements. The conjunction of 𝑝 and 𝑞, denoted by 𝑝 ∧ 𝑞, is a
statement formed by joining the statements 𝑝 and 𝑞 using the word “and”. The
statement 𝑝 ∧ 𝑞 is true if both 𝑝 and 𝑞 are true, otherwise false.
𝑝 𝑞 𝑝∧𝑞
T T T
T F F
F T F
F F F
Solution 1. Let 𝑝 be the statement “Washington D.C. is the capital city of the USA”
and 𝑞 be the statement “USA is in North America.” Since 𝑝 and 𝑞 are both
true. Thus, 𝑝 ∧ 𝑞 is true.
2. Let 𝑝 be the statement “19 is an even number” and 𝑞 be the statement
“36 is a multiple of 6. Since 𝑝 is false and 𝑞 is true. Thus, 𝑝 ∧ 𝑞 is false.
2. Disjunction
Let 𝑝 and 𝑞 be statements. The disjunction of 𝑝 and 𝑞, denoted by 𝑝 ∨ 𝑞, is a
statement formed by joining the statements 𝑝 and 𝑞 using the word “or”. The
statement 𝑝 ∨ 𝑞 is true at least one of the statements 𝑝 and 𝑞 is true.
Sets and Logic
______________________________________________________________________________________________
𝑝 𝑞 𝑝∨𝑞
T T T
T F T
F T T
F F F
3. Conditional Statement
Let 𝑝 and 𝑞 be statements. The implication or a condition of 𝑝 and 𝑞, denoted by
𝑝 → 𝑞, is a statement of the form “if 𝑝, then 𝑞” in which 𝑝 is the hypothesis and 𝑞 is
the conclusion. The implication 𝑝 → 𝑞 is considered false when the hypothesis 𝑝 is
true and the conclusion 𝑞 is false, otherwise it is considered true.
𝑝 𝑞 𝑝→𝑞
T T T
T F F
F T T
F F T
Solution 1. Let 𝑝 be the statement “18 is an even number” and 𝑞 be the statement
“36 is an odd number”. Since 𝑝 is true and 𝑞 is false. Thus, by definition, 𝑝 →
𝑞 is false.
2. Let 𝑝 be the statement “Sheena is a man” and 𝑞 be the statement “Jun
Klein is a man”. Since 𝑝 is false and 𝑞 is true. Thus, 𝑝 → 𝑞 is true.
Example 2.10 Write the following conditional statement into converse, inverse, and
contrapositive.
𝑝 → 𝑞: If Febb is a woman, then Febb is beautiful.
4. Biconditional Statement
Let 𝑝 and 𝑞 be statements. The biimplication or biconditional statement of 𝑝 and
𝑞, denoted by 𝑝 ↔ 𝑞, is a statement of the form “𝑝 if and only if 𝑞” in which both
sub statements 𝑝 and 𝑞 have the same truth value.
𝑝 𝑞 𝑝↔𝑞
T T T
T F F
F T F
F F T
Solution 1. Let 𝑝 be the statement “0.7 is an integer” and 𝑞 be the statement “0.5 is
a rational number. Since 𝑝 is false because an integer is a whole number
1
and 𝑞 is true because 0.5 is equivalent to that is a rational number. Thus,
2
𝑝 ↔ 𝑞 is false.
2. Let 𝑝 be the statement “7+3=10” and 𝑞 be the statement “122=144”.
Since 𝑝 is true by addition and 𝑞 is true by squaring a number. Thus, 𝑝 ↔ 𝑞
is true.
Sets and Logic
______________________________________________________________________________________________
A statement formula 𝐴 is said to be tautology if the truth value of 𝐴 is true for any
assignment of the truth values T and F to the statement variables occurring in 𝐴. A
statement formula 𝐴 is said to be a contradiction if the truth value of 𝐴 is false for any
assignment of the truth value T and F to the statement variables occurring in 𝐴.
Example 2.12 Let 𝑝, 𝑞 are 𝑟 be statements. Construct a truth table of the following and
determine if the following is either a tautology or a contradiction.
1. (∼ 𝑝 ∧ 𝑞) → 𝑟
2. ∼ 𝑝 ∧ 𝑝
Solution 1. (∼ 𝑝 ∧ 𝑞) → 𝑟
𝑝 𝑞 𝑟 ∼𝑝 ∼𝑝∧𝑞 (∼ 𝑝 ∧ 𝑞) → 𝑟
T T T F F T
T T F F F T
T F T F F T
T F F F F T
F T T T T T
F T F T T T
F F T T F T
F F F T F T
Thus, (∼ 𝑝 ∧ 𝑞) → 𝑟 is a tautology.
2. ∼ 𝑝 ∧ 𝑝
𝑝 ∼𝑝 ∼𝑝∧𝑝
T F F
F T F
Thus, ∼ 𝑝 ∧ 𝑝 is a contradiction.
Theorem Let 𝑝, 𝑞, and 𝑟 be statements. Then the following logical equivalences hold:
1. Commutative Laws
𝑝∧𝑞 ≡𝑞∧𝑝
𝑝∨𝑞 ≡𝑞∨𝑝
2. Associative Laws
(𝑝 ∧ 𝑞) ∧ 𝑟 ≡ 𝑝 ∧ (𝑞 ∧ 𝑟)
(𝑝 ∨ 𝑞) ∨ 𝑟 ≡ 𝑝 ∨ (𝑞 ∨ 𝑟)
3. Distributive Laws
𝑝 ∨ (𝑞 ∧ 𝑟) ≡ (𝑝 ∨ 𝑞) ∧ (𝑝 ∨ 𝑟)
𝑝 ∧ (𝑞 ∨ 𝑟) ≡ (𝑝 ∧ 𝑞) ∨ (𝑝 ∧ 𝑟)
4. Absorptivity Laws
𝑝 ∧ (𝑝 ∨ 𝑞) ≡ 𝑝
𝑝 ∨ (𝑝 ∧ 𝑞) ≡ 𝑝
5. Idempotency Laws
𝑝∧𝑝 ≡𝑝
Sets and Logic
______________________________________________________________________________________________
𝑝∨𝑝 ≡𝑝
6. Double Negation
∼ (∼ 𝑝) ≡ 𝑝
7. De Morgan’s Laws
∼ (𝑝 ∧ 𝑞) ≡ (∼ 𝑝) ∨ (∼ 𝑞)
∼ (𝑝 ∨ 𝑞) ≡ (∼ 𝑝) ∧ (∼ 𝑞)
Open Sentence
Example 2.15 Find the truth set of the following open sentences.
1. 𝑥 + 5 = 11.
2. 𝑦 3 ≥ 8
Solution 1. {6}.
2. {𝑥 | 𝑥 ≥ 2}.
Quantifiers
Let 𝑝𝑥 be an open sentence. Note that if the phrase ”for all” or ”for some” is added
to an open sentence, then the resulting sentence is a statement. In this case, we call the
statement a quantified statement.
The phrase “for all” is called a universal quantifier, while the phrase “for some” or “there
exists” is called an existential quantifier. A statement with the quantifier “for all” is true if
the truth set of its open sentence is the universal set, while a statement with the
quantifier “for some” is true if the truth set of its open sentence is non-empty.
Solution 1. false
2. true
3. true
4. false
Solution 1. ∼ (∀𝑥, 𝑥 + 5 = 11) ≡ ∃𝑥, 𝑥 + 5 ≠ 11. That is, 𝑥 + 5 ≠ 11 for some real
number 𝑥. Equivalently, there exists a real number 𝑥 such that 𝑥 + 5 ≠ 11.
2. ∼ (∃𝑦, 𝑦 3 ≥ 8) ≡ ∀𝑦, 𝑦 3 < 8. That is, 𝑦 3 < 8 for all real number 𝑦.
Sets and Logic
______________________________________________________________________________________________