Module-4_Lesson-4.1-Logic (2)
Module-4_Lesson-4.1-Logic (2)
1
Logic
OBJECTIVES
At the end of the lesson, the
students are expected to do the
following:
a. illustrate and symbolize a
proposition,
b. perform the different logical
operators,
c. determine the truth value of a
proposition.
Question to Ponder!
How is mathematics seen in the
real-life propositions or statements?
Proposition
a declarative statement that is
either true or false, but cannot be
both.
Examples:
1. Leyte is a province of
Philippines.
2. Alangalang is the Capital of
Leyte.
3. 2+3=5
4. 2 is a prime number.
5. √2 is an integer.
Not Examples:
1. Leyte is a province of
Philippines.
2. Alangalang is the Capital of
Leyte.
3. 2+3=5
4. 2 is a prime number.
5. √2 is an integer.
Examples: Compound Propositions
1. Two is not a prime number.
2. 1/2 is a rational number and e is an
irrational number.
3. Either 3 is odd, or 9 is an even number.
4. If psychology starts with letter “s”,
then Philippines starts with letter “f”.
5. The word Mathematics has eleven
letters if and only if logic has five
letters.
Propositional Variables
Usually used variables are
.
Examples: Compound Propositions
1. Two is not a prime number.
Let p: Two is a prime number.
In symbols, the proposition can be
expressed as
T T F T F F
F T T
F F T F T F
F F T
F F F F F
Constructing Truth Tables
p q r s
T T T T
T T T F
T T F T
T T F F
T F T T
T F T F
T F F T
T F F F
F T T T
F T T F
F T F T
F T F F
F F T T
F F T F
F F F T
F F F F
Logical Connectives
NEGATION
The negation of a proposition p is
denoted by read as “not p”,
and is defined through the truth
table
p
T F
F T
Logical Connectives
NEGATION
The negation of a proposition p is
denoted by read as “not p”,
and is defined through the truth
table
Example
p: A square is a rectangle.
T
: A square is not a rectangle. F
Logical Connectives
CONJUNCTION
The conjunction of propositions p and
q is denoted by read as “p
and q”, and is defined through its truth
table
p q
T T T If both p and q are
true, the conjunction
T F F
will be TRUE.
F T F Otherwise, FALSE
F F F
Logical Connectives
CONJUNCTION
The conjunction of propositions p and
q is denoted by read as “p
and q”, and is defined through its truth
table
Example
p: Triangle has three sides. T
q: Quadrilaterals has five sides F
: Triangle has three sides while
F
quadrilaterals has five sides.
Logical Connectives
DISJUNCTION
The disjunction of propositions p and
q is denoted by read as “p or
q”, and is defined through its truth
table
p q
T T T If at least one is true
for p and q, the
T F T
disjunction will be
F T T TRUE. Otherwise,
F F F FALSE
Logical Connectives
DISJUNCTION
The disjunction of propositions p and
q is denoted by read as “p or
q”, and is defined through its truth
table
Example
p: A Right angle measures exactly 90. T
q: Two lines are perpendicular. T/F
:A Right angle measures exactly 90
or two lines are perpendicular. T
Logical Connectives
CONDITIONAL
The conditional of propositions p and
q is denoted by read as “If p,
then q.”, and is defined through its
truth
p table
q p is the hypothesis
T T T while q is the
conclusion.
T F F If the hypothesis is
F T T TRUE and the
conclusion is FALSE,
F F T the conditional will be
FALSE. Otherwise,
TRUE
Logical Connectives
CONDITIONAL
The conditional of propositions p and
q is denoted by read as “If p,
then q.”, and is defined through its
truth table
Example
p: 3 is a non-zero integer. T
q: 112 is divisible by 3. F
:If 3 is a non-zero integer, then 112 is
divisible by 3 F
Logical Connectives
Be careful if p and q will be interchanged!
a. ∼ (𝑝 ∨ 𝑞) → [𝑝 ∧ (𝑞 → 𝑟)]
fallacy, or a contingency.
Solution:
c. 𝑝 ↔ 𝑝 ∧ 𝑞 ∨∼r→ 𝑝
fallacy, or a contingency.
𝐹𝑎𝑙𝑠𝑒.
a. ∼ (𝑝 ∨ 𝑞) → [𝑝 ∧ (𝑞 → 𝑟)]
b. 𝑝 → 𝑞 ∨ 𝑞 → 𝑝
56
Further
Examples
𝐹𝑎𝑙𝑠𝑒.
c. 𝑝 ↔ 𝑝 ∧ 𝑞 ∨∼→ 𝑝
57
Thank You!
58