Logic and Reasoning: MATH10
Logic and Reasoning: MATH10
Logic and Reasoning: MATH10
Reasoning
MATH10
Logic and
Reasoning
Mathematical Statements
Definition: A mathematical
statement is a statement that Lowercase letters, p, q, r,
can be assigned a truth value s,...., are used to represent
and classified as true or false, mathematical statements.
but not both.
Example 1
In
constructing a truth table, the number of rows is
equal to where is the number of distinct propositional
variables.
p q ~q p → ~q
T T
T F
F T
F F
Truth Table: p → ~q
p q ~q p → ~q
T T F
T F T
F T F
F F T
Truth Table: p → ~q
p q ~q p → ~q
T T F F
T F T T
F T F T
F F T T
Truth Table: (~p ∧ q) → ~r
Truth Table: (~p ∧ q) → ~r
Truth Table: (~p ∧ q) → ~r
Implication
We know for a fact that all cats are mammals. This means
that if an animal is a cat, then it is a mammal. We can state
this as “If it is a cat, then it is a mammal.”
p : 1+1 = 2
q:2+3=6
r : All roses are red.
s : The Philippines has more than
7,100 islands.
Negation of simple statements
Negate the statements given in Example 1.1.
Statement Negation
p : 1+1 = 2 ~p : 1+1 ≠ 2
q:2+3=6 ~q : 2 + 3 ≠ 6
r : All roses are red. ~r : Not all roses are red.
1. ~ ( p ∧ q ) ⇔ ~p ∨ ~q
2. ~ ( p ∨ q ) ⇔ ~p ∧ ~q
Example 6 Negate the following
statements:
1. The chairs are red and UP is at least 100 years old.
2. 1 + 1 < 5 or all roses are red.
3. Jose Rizal is both intelligent and nationalistic.
Example 6 Negate the following
statements:
1. The chairs are red and UP is at least 100 years old.
2. 1 + 1 < 5 or all roses are red.
3. Jose Rizal is both intelligent and nationalistic.
Negation
1. The chairs are NOT red or UP is less than 100 years old.
2. 1+1 ≥ 5 and not all roses are red.
3. Jose Rizal is not intelligent or he is not nationalistic.
Negation of Statements with Quantifiers
STATEMENT NEGATION
Some a are b No a is b
Some a are not b All a are b
All a are b Not all a are b
No a is b Some a are b
Negation of Statements with Quantifiers
q if p. q is necessary for p.
p only if q. All p are q.
p is sufficient for q. Either not p or q.
Example 8
If it is a bird then it flies.
The premise is the statement
p: It is a bird.
The conclusion is the statement
q: It flies.
The conditional p → q is equivalent to
1. q if p:
It flies if it is a bird.
2. p only if q:
It is a bird only if it flies.
Example 8
3. p is sufficient for q:
Being a bird is sufficient for it to fly.
4. q is necessary for p.
Flying is necessary for it to be a bird.
5. All p are q. (This is referred to as a universal statement)
All birds fly.
6. Either not p or q.
Either is not a bird or it flies.
The Converse, Inverse, and
Contrapositive
Definition : Given the conditional p → q, we call
1. ~q → ~p the contrapositive of p → q;
2. q → p the converse of p → q;
3. ~p → ~q the inverse of p → q.
Equivalent Statements
converse inverse
P Q
𝑷 ⇒ 𝑸𝑸 ⇒ 𝑷 ¬𝑸 ⇒ ¬ 𝑷¬ 𝑷 ⇒ ¬ 𝑸
T T T T T T
T F F T F T
F T T F T F
F F T T T T
original contrapositive
Hence, we have the equivalent statements:
p → q ⇔ ~q → ~p
q → p ⇔ ~p → ~q
Example 9
All even numbers are divisible by two.
Formulate the statement as a conditional and give its converse, inverse
and contrapositive.
Conditional : If it is an even number, then i is divisible by two.
Converse : If a number is divisible by two, then it is an even number.
Inverse : If it is not an even number then it is not divisible by two.
Contrapositive: If it is not divisible by two, then it is not an even number.
Valid and Invalid Arguments
Charles Dodgson, author of Alice’s Adventures in
Wonderland and better known as Lewis Caroll, was not
only a famous writer. He was also a mathematician and
logician.
All cats are mammals. Some dogs are hairy. No even number is an odd number.
Euler Diagram
Valid and Invalid Arguements
An argument consists of premises, say p1, p2, ..., pn, and a conclusion q and
consider the conjunction p1∧p2∧... ∧pn = p . The argument p→q is valid if the
premises are assumed to be true, then the conclusion must also hold true.
We can use Euler diagrams to determine the validity of an argument. We construct
a diagram which represents the premises.
The argument is valid if the conclusion is satisfied by the Euler diagram
representing all premises.
Note that the premises are assumed to be true although the statements may not be
true in the strict sense.
Example 11: Valid Arguement
All dogs are hairy. Cotton is a dog. Therefore, Cotton
is hairy.
Example 11: Invalid Arguement
p→q
q→r
Therefore p → r
Valid Argument Forms