Logic
Logic
Logic
Reasoning:
The scenarios depend on how many
students there are. Let’s say for
example 3 Students.
Solution:
No students take French
Negation
Quantifiers
Quantifiers in Logical statement indicates quantity and when you
negate that, you have to take those quantifiers into consideration.
The words like all, each, every, and no(one) are called Universal
Quantifiers, because they describe characteristics that apply to
everyone.
Words and phrases such as some, there exist, and (for) at least one
are Existential Quantifiers, because they describe characteristics of
one or more individuals.
Notice that the negation of a universal quantifier involves an
existential one.
Statement Negation
All do. Some do not. (or “Not all do.”)
Some do. None do. (or “All do not.”)
None do. Some do.
Some don’t. All do.
Example: Write the negation of each statement. (Do
not use “It is not the case that…”)
Solution:
a. Some children like green beans.
b. All children like ice cream.
Inequality Symbols
Symbolism Meaning
a<b a is less than b
a>b a is greater than b
a≤b a is less than or equal to b
a≥b a is greater than or equal to b
Example: Forming Negations
Give a negation of each inequality. Do not use a slash
symbol.
a. p < 3
b. 3x – 2y ≥ 12
Solution:
c. p ≥ 3
d. 3x – 2y < 12
Negation of Inequalities
Statement Negation
a<b a≥b
a≤b a>b
Exercise: Forming Negation of Quantified
Statements
Form the negation of each statement.
a. Some cats have fleas.
b. Some cats do not have fleas.
c. No cats have fleas.
d. Is five pesos less than six pesos?
e. x < 7
f. x ≤ -11
g. x = 10
Compound Statements
A compound statement may be formed by
combining two or more statements.
The statements making up the compound
statement are called component statements.
Various connectives such as and, or, not, and if…
then, can be used in forming compound
statements.
Example: Use two of the statements provided to
form a compound statement using each of the
given connectives:
Mathematics is mental exercise.
Push-ups are physical exercise.
I will exercise.
a. and
b. or
c. but
d. if, then
Example: Compound Statements
Decide whether each statement is compound.
a) If Amanda said it, then it must be true.
b) The gun was made by Smith and Wesson.
and ^ Conjunction
or v Disjunction
not ~ Negation
Example: Translating from Symbols to Words
Let p represent “ It is raining,” and let q represent “It is
March.” Write each symbolic statement in words.
a) p v q
b) ~q ^ p
c) ~(p ^ q)
Example: Translating from Symbols to Words
Let p represent “ The sky is blue,” and let q represent
“It is Summertime.” Write each symbolic statement in
words.
p q p^q p q pvq p ~p
T T T T T T T F
T F F T F T F T
F T F F T T
F F F F F F
Example: Finding the Truth Value
Let p represent the statement 4>1,
q represent the statement 12<9,
And r represents 0<1. Decide whether the statement is
true or false.
a) p ^ q.
b) p v q.
c) ~p ^ ~q
d) ~p v r
e) ~(p v r)
Truth Table
-list of all possible scenarios and the resulting
truth values.
T T
T F
F T
F F
Example:
Use the truth table to demonstrate that the
compound statement is a tautology:
(p q) (~p v q)
Negation of the Conditionals
• Two statements are equivalent if they have all the same truth values.
• Two statements are negations of each other if they have the opposite truth values.
If p, then q If q, then q
p q p q p q q p
T T T T T T
T F F T F T
F T T F T F
F F T F F T
This are neither equivalent nor opposite, meaning we cannot negate a conditional by
stating a conditional. We need to change the statement to conjunction (and ^).
Example:
Using truth tables, determine whether each statement
is equivalent to p q, a negation of p q.
a) p ^ ~q - opposite
b) ~p v q – equivalent
Conditional p q If p, then q
Statement
Converse q p If q, then p
order reversed
Note: When both the order and the sign are changed,
the statements are equivalent.
If p, then q.
If p, q. q
is necessary for p.
p implies q. q if p.
p is sufficient for q.
All p are q.
p only if q.
Example: Rewording Conditional Statements
If p, then q. Write the statement in the form “if p, then q.”
a) You’ll be sorry if I go.
If p, q. b) Today is Sunday only if yesterday was Saturday.
p is sufficient for q. c) All Chemist wear lab coats.
p implies q. d) No person on the track is not running.
All p are q. Change to the equivalence statement of
“All person on the track is running.
p only if q.
Solution
q is necessary for p. e) If I go, then you’ll be sorry.
f) If today is Sunday, the Yesterday was Saturday.
q if p. g) If you are a chemist, then you wear a lab coat.
h) If a person is on the track, then the person is
running
Biconditional
In situations where p q and q p, we can combine the
statements into one, p q, called biconditional.
Solution:
I love that movie if and only if the Hulk is in it.
Biconditional
Now, let’s think about the conditions where Biconditional
would be true.
Solution
This statement would be true in two situations:
1. I love the movie and the Hulk is in it. (True, True)
2. I don’t love the movie and the Hulk isn’t in it. (False,
False)
Truth Value Rule for Biconditionals
The biconditional p q, is only true if both components have
the same truth value.
This can be demonstrated by creating a truth a truth table for
(p q) ^ (q p), because that’s really biconditional really
represents, implications going both direction.
p q p q q p (p q) ^ (q p)
T T T T T
T F F T F
F T T F F
F F T T T
Determine whether each biconditional statement is true or.
False.
a) 5+2=7 if and only if 3+2=5
b) 3=7 if and only if 4=3+1
c) 7+6=12 if and only if 9+7=11
Summary of connectives and rule.
• The negation of a statement has truth value opposite of
the statement
• The conjunction is true only when both statements are
true
• The disjunction is false only when both statement are
false
• The conditional is false only when the antecedent is true
but the consequent is false.
• The biconditional is true only when both statements
have the same value.
Analyzing Arguments with Truth Table
A logical argument is made up of premises
(assumptions, laws, rules, widely held ideas, or
observations) and a conclusion. Together, the premises
and conclusion make up the argument.
Solution:
Premise 1: Joey loves to watch movies.
Premise 2: If Joey loves to watch movies, then Carlota loves
to jog.
Conclusion: Carlota loves to jog.
Valid and Invalid Arguments
An argument is valid if the fact that all the premises are true
forces the conclusion to be true.
Solution
Step 1: Let p represent “the door is open” and q represent “I
must close it.”
Step 2: p q [(p q)^(p)] q
p If the first premise is true and theirs is the connective
q “and” the second premise is true then this whole
thing would imply the conclusion q
Valid Argument Forms
Modus Modus Disjunctive Reasoning by
Ponens Tollens Syllogism Transitivity
p q p q pvq p q
p ~p ~p q r
q ~q q p r
Invalid Argument Forms (Fallacies)
Fallacy of the Fallacy of
Converse the Inverse
p q p q
q ~p
p ~q
Example: Decide whether the argument is valid or fallacy and give the form that
applies.
If the music is good, then I stay. The argument is ___________ by
I stay. _____________________.
The music is good.
Example: Truth Table (More Than Two Premises)
Determine whether the argument is valid or invalid.
Solution:
p q
~q r
This leads to statement
~r [(p q) ^ (~q r) ^ r] p
~p