Logic_and_Set_Theory-9
Logic_and_Set_Theory-9
Maricar P. Balolong
Proposition
Logical Operators
Logical Operators are symbolic counterparts of the logical
connectors.
Definition 0.1
If p is a propositional variable, the negation of p, denoted as
∼ p, is "not p" or "It is not the case that p". The ∼ p has opposite
truth value from p.
p ∼p
T F
F T
Example 0.2
p : Three is an odd number.
∼ p: Three is not an odd number. / It is not the case that three
is an odd number.
Definition 0.3
If p and q are propositional variables, the disjunction of p and
q, denoted as p ∨ q, is the proposition “ p or q." It is false when,
and only when both p and q are false.
p q p∨q
T T T
T F T
F T T
F F F
Example 0.4
p : Orange is a color.
q : Orange is a fruit.
Definition 0.5
If p and q are propositional variables, the conjunction of p and
q, denoted as p ∧ q, is the proposition “ p and q". It is true when,
and only when both p and q are true.
p q p∧q
T T T
T F F
F T F
F F F
Example 0.6
p : One plus one is two.
q : One multiply by one is one.
Definition 0.7
If p and q are propositional variables, the conditional of q by p
is " If p then q" or " p implies q " and is denoted p → q. It is false
when p is true and q is false; otherwise it is true. We call p the
hypothesis (antecedent or premise) of the conditional and q the
conclusion (or consequence)
p q p→q
T T T
T F F
F T T
F F T
Example 0.8
Your mom said that if you pass your math subject, you will
receive a gift. Let
p : You pass your math subject.
q : You receive a gift from your mom.
The promise of your mom may be expressed as
p→q
Example 0.10
p : Today is Monday.
q : Tomorrow is Tuesday.
p → q: If today is Monday then tomorrow is Tuesday.
q → p: If tomorrow is Tuesday then today is Monday.
p ↔ q : Today is Monday if and only if tomorrow is Tuesday
p q p↔q
T T T
T F F
F T F
F F T
Logic and Set Theory
Truth Table
Definition 0.11
The truth table for a given statement form displays the truth
values that correspond to all possible combinations of truth
values for its component propositional variables.
Definition 0.13
Two statement forms are called logically equivalent if and only
if they have identical truth values for each possible substitution
of statements for their statement variables.
p q p→q q→p (p → q) ∨ (q → p)
T T T T T
T F F T T
F T T F T
F F T T T
p ∼p p∧ ∼ p
T F F
F T F
Example 0.17
Construct a truth table of the compound proposition
∼ (b → c) ∧ (∼ c ↔ a).
Example 0.18
Construct a truth table for the compound proposition
∼ (b → c) ∧ (∼ c ↔ a).
a b c ∼c b→c ∼ (b → c) ∼c↔a ∼ (b → c) ∧ (∼ c ↔ a)
T T T F T F F F
T T F T F T T T
T F T F T F F F
T F F T T F T F
F T T F T F T F
F T F T F T F F
F F T F T F T F
F F F T T F F F
Definition 0.19
An open sentence is a statement that contains one or more
variables and becomes true or false depending on the values of
those variables.
2 is prime is a
statement for each n ∈ S . Therefore,
P(1) :3 is prime.
P(2) :7 is prime.
P(3) :11 is prime.
P(4) :19 is prime.
Example 0.22
∃x ∈ S, P(x) can be expressed in words by "There exists x ∈ S
such that P(x).
∀x ∈ R, P(x)
or equivalently,
∀x ∈ R, x 2 ≥ 0
can be expressed as
as well as
Universal Quantifier
The universal quantifier is typically denoted by ∀ and it is
informally read "for all". It follows that the statement
"∀x ∈ U, P(x)" is true if P(x) is true for all values of x in U .
Existential Quantifier
The other type of quantifier is the existential quantifier,
denoted by ∃. The statement ”∃x ∈ U, P(x)” is true if P(x) is
true for at least one value of x in U .
Example 0.24
Given the statement "If x = 1, then x 3 = 1."
1. The converse of the implication is "If x = 1 then x 3 = 1."
2. The contrapositive of the given is "If x 3 ̸= 1 then x ̸= 1."
3. The inverse of the given is "If x ̸= 1 then x 3 ̸= 1."
Example 0.25
What are the equivalent expressions of the following? State the
rule that you used to find the equivalent expressions.
1. ∼ (∼ h ∨ s)
2. (h ∧ s) ∨ (h∧ ∼ s)
3. p →∼ p
Example 0.26
Using rules of replacement, show that the given expressions are
logically equivalent.
1. ∼ [(p ∧ q)∨ ∼ (∼ p ∨ q)] ≡∼ p
Example 0.28
Example 0.29
Given the following arguments, identify the premises and the
conclusion.
1. Extensive exercise is good for the health. Good health guar-
antees clear thinking. So, I recommend extensive exercise
to my students.
2. I believe that Allan is the best prospect for the highest po-
sition in the company. He is very intelligent and articulate.
To this day, he does all his duties conscientiously. I have not
heard of anyone complain about him since he goes along
very well with his subordinates and colleagues. He has a
clear vision of the direction the company should take. He is
also well respected in the business community.
a→b
c→d
b∨c
∴a∨d
((a → b) ∧ (c → d) ∧ (b ∨ c)) → (a ∨ d)
Logic and Set Theory
Proof of Invalidity of an Argument
a b c d
F T F F
∴a∨d
2.
e → ( f ∨ g)
g → (h ∧ i)
∼h
∴e→i
∴ j→n
Example 0.32
Show that the argument
a
a→b
b →∼ c
∴∼ c
Example 0.33
Suppose the given argument is
(a ∧ b) → (a → (d ∧ e))
(a ∧ b) ∧ c
∴ a → (d ∧ e)
Example 0.34
Consider the argument
(a ∧ b) → (a → (d ∧ e))
(a ∧ b) ∧ c
∴ (d ∧ e)
Example 0.35
Suppose the given argument is
(a ∧ b) → (a → (d ∧ e))
(a ∧ b) ∧ c
∴ (d ∨ e)
Example 0.36
If it does not rain or it is not foggy, then the sailing race will be
held and the lifesaving demonstration will go on. If the sailing
race is held, then the trophy will be awarded. The trophy was
not awarded. Therefore, it rained.
∴∼ (p ∧ c) ∨ (d ∧ u)
2.
(p ∧ c) → m
m→n
n → (d ∧ u)
∴ (p ∧ c) → u
a → (b → c)
d → (b → c)
(∼ a∧ ∼ d) → (∼ e∨ ∼ f )
(∼ e →∼ g) ∧ (∼ f →∼ h)
(i → g) ∧ ( j → h)
∼ (b → c)
∴∼ i∨ ∼ j