Chap5a.-Introduction-to-Logic
Chap5a.-Introduction-to-Logic
Core Idea
“Mathematics has its own symbols,
syntax, and rules.”
learning objectives
Uses of Logic
qLawyers and judges: communicate effectively, construct valid
arguments, analyze legal contracts, make decisions
qProgrammers: design computer software; formulate
algorithms
qMathematicians: solve problems, prove theorems
LOGIC - science of correct thinking and reasoning
- an interdisciplinary field which studies truth
and reasoning
Historical background
Example.
Determine whether each sentence is a statement or not.
or ∨ � �� � �∨ � disjunction
and ∧ � ��� � �∧ � conjunction
If…then → �� �, �ℎ�� � �→� conditional
if and only if ↔ � �� ��� ���� �� � �↔� biconditional
Historical background
George Boole used several symbols to represent simple
statements and connectives.
USING THE SYMBOLS
Example. Writing Compound Statements
Let �: “Hacksaw Ridge depicts a true story”;
�: “Hacksaw Ridge is a beautiful movie”.
TRUTH TABLE
The truth table shows the truth value of a
compound statement for all possible truth
values of its simple statements.
TRUTH TABLE
for Disjunction, Conjunction, Conditional,
Biconditional, and Negation
� � �∨� �∧� �→� �↔� ¬�
� � � � � � �
� � � � � � �
� � � � � � �
� � � � � � �
TRUTH VALUE OF NEGATION
� � ¬�
�: Two is an � � � ~�: Two is an
even number. � � � odd number.
Moreover, ~ ~� = �.
Remark: Negating a true statement makes it false,
and negating a false statement makes it true.
NEGATION OF QUANTIFIERS
Universal quantifiers
- deny the existence of something
(ex. none, no);
- used to assert that every (or all) element of a
given set satisfies some condition
(ex. “all”, “every”).
NEGATING QUANTIFIERS
Statement Negation
All � are �. Some � are not �.
No � are �. Some � are �.
Some � are not �. All � are �.
Some � are �. No � are �.
NEGATING QUANTIFIERS
Examples:
Statement Negation
All integers are real numbers. - Some integers are not real numbers.
Some integers are not real numbers. - All integers are real numbers.
� � �∨�
� � � q 2 is less than 5 or even.
� � � q 2 is less than 5 or odd.
� � � q 2 is greater than 5 or even.
� � � q 2 is greater than 5 or odd.
TRUTH VALUE OF A CONJUNCTION
Determine the truth value of each statement.
� � �∧�
� � � q 2 is less than 5 and even.
� � � q 2 is less than 5 and odd.
� � � q 2 is greater than 5 and even.
� � � q 2 is greater than 5 and odd.
TRUTH VALUE OF A CONDITIONAL STATEMENT
Determine the truth value of each statement.
� � �→�
� � � q If 12 is divisible by 2, then it is even.
� � � q If 12 is divisible by 2, then it is odd.
� � � q If 12 is not divisible by 2, then it is even.
� � � q If 12 is not divisible by 2, then it is
not even.
TRUTH VALUE OF A BICONDITIONAL STATEMENT
Determine the truth value of each statement.
� � �↔�
� � � q 12 is divisible by 2 if and only if it is even.
Practice. Identify the compound statement. Then, determine the truth value
of each statement.
1. -5 < -3 or -3 <-5.
2. If -5 < -3, then -5 > -3.
3. Two is an even and a prime number.
4. An angle is right if and only if it measures 90 degrees.
CONSTRUCTING TRUTH TABLE
FOR A LOGICAL STATEMENT
Remarks: � ↔ � ≡ � → � ∧ � → � (Biconditional)
VERIFY EQUIVALENT LOGICAL STATEMENTS
Practice. Construct a truth table for the given logical statement and
verify if each are equivalent.
1. � → � and ¬ � ∨ � 4. ¬ � ∨ � and ¬ � ∧
¬�
2. ¬ � → � and � ∧ ¬ � 5. ¬ � ∧ � and ¬ � ∨ ¬�
3. � ↔ � and � → � ∧ � → �
Remarks: By De Morgan’s Law the following equivalence are considered:
1. � → � ≡ ¬ � ∨ � (Conditional)
2.¬ � → � ≡ � ∧ ¬ � (Negation of Conditional)
3. � ↔ � ≡ � → � ∧ � → � (Biconditional)
4.¬ � ∨ � ≡ ¬ � ∧ ¬� (Negation of Disjunction)
5. ¬ � ∧ � ≡ ¬ � ∨ ¬� (Negation of Conjunction
TAUTOLOGY It is a proposition (statement) that is always
true, regardless of the truth values of the
propositional variables it contains.
Example. Construct a truth for the given statement below. Is it a tautology?
�∨ ¬�∨�
p v (~p v q)
T T F T T
T T F F F
F T T T T
F T T T F
2 1
CONTRADICTION It is a proposition/statement
that is always false.
p ∧ (~p ∧ q)
T F F F T
T F F F F
F F T T T
F F T F F
3 1 2
CONTINGENCY It is a proposition/statement
that is neither true or false.
~ (p ∧ q) v ~q
F T T T F F
T T F F T T
T F F T T F
T F F F T T
2 1 4 3
VERIFY TAUTOLOGIES, CONTRADICTION, &
CONTINGENCY
1. [� ∧ � → � → ¬�
2. � ∧ � → ¬ � ∨ �
3. ¬� ∧ � ∧ ¬�
End of Discussion…