Professional Documents
Culture Documents
Logic
Logic
Teacher: AIROSAL
Course: Mathematics in the Modern World
LEARNING OBJECTIVES
Discuss the language, symbols and conventions of
mathematics (K)
Explain the nature of mathematics as a language (K)
(CO3)
Perform operations on mathematical expressions correctly
(S) (CO5)
Acknowledge that mathematics is a useful language (V)
(CO6)
What is Logic?
Example
All dogs have a good sense of smell. Volt is a dog.
Therefore, logic tells you that Volt has a good sense of
smell.
What is Logic?
Example
All squares are rectangles. All rectangles have four
sides. Logic, therefore, tells you that all squares have four
sides.
What is Logic?
Examples of statements:
Mapua University is in Manila.
Bill Gates is the CEO of Apple Inc.
Today is January 9, 2018.
I’m lying to you.
EXAMPLES:
The following are propositions:
Today is Monday.
You are a student.
An apple is a fruit.
Example:
p = “Spiderman is real”-False (0)
q = “The list of Philippine presidents includes Elpidio
Quirino.”-True (1)
COMPOUND PROPOSITIONS
In Propositional Logic, we assume a collection of atomic
propositions are given:
p, q, r, s, t, …
Then we form compound propositions by using logical
connectives (logical operators) to form propositional
“molecules”.
In other words, it is a word or symbol that joins two
sentences to produce a new one.
Summary Logical Connectives/Operators
Symbol Translation
Not P;
P It is not the case that P;
It is false that P;
It is not true that P
Conjunction
Symbol Translation
P and Q;
P moreover Q;
P although Q;
PQ P still Q;
P furthermore Q;
P also Q;
P nevertheless Q;
P however Q;
P yet Q;
P but Q
Example
1. PQ
2. P Q
3. P Q
4. P Q
Disjunction
Symbol Translation
P or Q;
PQ P unless Q;
Example
Let P: 2 is prime.
Q: 2 is even.
1. PQ
2. P Q
3. P Q
4. P Q
Conditional
*Conditional synonyms:
There are many ways to express the
conditional statement p → q :
If p then q.
p implies q.
If p, q.
p only if q.
p is sufficient for q.
Example
P: I buy a notebook.
Q: I get a free pencil.
a. If I buy a notebook then I get a free pencil.
b. If I buy a notebook then I don’t get a free
pencil.
c. If I don’t buy a notebook then I get a free
pencil.
d. If I don’t buy a notebook then I don’t get a
free pencil.
Example
Symbol Translation
P if and only if Q;
P is equivalent to Q;
PQ
P is a necessary and sufficient
condition for Q;
PROPOSITIONS (Logical Operators)
Examples:
p = “Aling Bebang only goes out with girls.”
q = “Aling Bebang goes with Pepay.”
r = “Pepay is a girl.”
Determine the English statement of the ff.
1. r
= “Pepay is not a girl.”
2. pq
= “Aling Bebang only goes out with girls and goes with
Pepay.”
PROPOSITIONS (Logical Operators)
Examples:
p = “Aling Bebang only goes out with girls.”
q = “Aling Bebang goes with Pepay.”
r = “Pepay is a girl.”
3. pq →r
= “If Aling Bebang only goes out with girls and goes
with Pepay, then Pepay is a girl.”
Truth Table
Example:
PROPOSITIONS (Logical Operators)
p p a) Negation:
interpreted intuitively as being true
F T
when p is false , and false when p is
T F true
Example:
p : “23 = 15 +7”
p happens to be false, so p is true.
b) Conjunction:
Conjunction is supposed to encapsulate what happens
false as well.
p q pq
T T T
T F F
F T F
F F F
PROPOSITIONS (Logical Operators)
c) Disjunction
The use of the connective “or” in a disjunction
2. (¬p ∧ q) ∨ (p ∧ ¬ q)
PROPOSITIONS (Logical Operators)
d) Exclusive-Or: p q p q
When the EXCLUSIVE “OR” is used to T T F
connect the propositions p and q, the T F T
proposition “p or q (but not both)” is obtained. F T T
F F F
Example:
The entrée is served with soup or salad.
Most restaurants definitely don’t allow you to
get both soup and salad so that the
statement is false when both soup and salad
is served.
PROPOSITIONS (Logical Operators)
PROPOSITIONS (Logical Operators)
p q p →q e) Conditional (Implication):
T T T It’s only partly similar to the English
T F F usage of “if, then” or “implies”.
F T T
DEF: p → q is true if q is true, or if p is
F F T
false. In the final case (p is true while q
is false) p → q is false.
Example:
If I am elected, then I will lower taxes.
PROPOSITIONS (Logical Operators)
p q pq
T T T
T F F
F T F
F F T
PROPOSITIONS (Logical Operators)
Examples
Find the truth table of
(a) (¬q → p) p
(b) p q → r ∧ ¬q
(c) [¬(p ∧ q) ∨ r] (p → q)