Lesson 4.1 Introduction To Logic
Lesson 4.1 Introduction To Logic
Lesson 4.1 Introduction To Logic
1
Introduction to
L OGIC
What is
L OGIC ?
1. 9 is an odd number.
2. 4 + 4 = 8
3.
4.
5. The square root of 4 is 1.
Statement and Sentences
A compound proposition is a proposition formed from simple
propositions using logical connectors or some combinations of
logical connectors. Logical connectors involving propositions p
and/or q may be expressed as:
not p
if p then q
p and q
p if and only if q
p or q
Statement and Sentences
A proposition is simple if it cannot be broken down any further
into other component propositions.
Example:
For each of the propositions, determine whether it is a
simple or compound proposition. If it is compound
proposition, identify the simple components.
Simple or Compound Proposition?
1.
The statement is true since the square of any real number is
always nonnegative.
Examples: Determine the truth value of the following statements.
2.
The statement is false since 2 is a natural number and
3.
The statement is true since the real numbers are commutative
under addition.
EXISTENTIAL QUANTIFIERS:
1.
The statement is true since if we choose then
Examples: Determine the truth value of the following statements.
2.
The statement is true since if we choose a natural number,
then .
3.
The statement is false since must be equal to to make the
equation true, and is not an integer.
B ASIC L OG ICAL O PE RAT O R S :
Given a proposition, its truth table shows all its possible truth
values.
A proposition p would have For proposition p and q, truth
the truth table. value would be: p q
p T T
T T F
F F T
F F
p
Truth Table for Negation T F
F T
B ASIC L OG ICAL O PE RAT O R S :
Examples: Write the negation of each of the following
statements.
1.Manila City is in the Philippines.
Negation: Manila is not in the Philippines.
2. Mary is a girl.
Negation: Mary is a boy.
3. The product of two odd integers is odd.
Negation: The product of two odd integers is even.
B ASIC L OG ICAL O PE RAT O R S :
Examples: Write the negation of each of the following
statements.
4. 3 times 7 = 20
Negation:
5. January has 31days
Negation: January does not have 31 days.
6. Eleven is not a prime number.
Negation: Eleven is a prime number.
B ASIC L OG ICAL O PE RAT O R S :
Conjunctio
ns
A compound statement formed by connecting two
propositions with the word “and’ is called a conjunction.
In symbols, it is written as “which is read as
B ASIC L OG ICAL O PE RAT O R S :
Conjunctions
Definition: If p and q are true, then is true; otherwise is false.
Truth Table of Conjunction
p q
T T T
T F F
F T F
F F F
B ASIC L OG ICAL O PE RAT O R S :
Examples: Determine the truth value of each the following
conjunctions.
1.Manny Pacquiao is a boxing champion and Catriona Gray is
Miss Universe 2018.
Answer: Fishes live in the moon if and only if birds can fly.
(False because p is false and q is true)
Examples:
Construct the biconditional statement and write its truth
value.
3. The antecedent, p, is “I am breathing”. And the
consequent, q, is “I am alive”
p q
T T F
Truth Table of Exclusive-or Statement T F T
F T T
F F F
Examples of exclusive-or
TRUE FALSE
Determine if the statement is true or false.
2. Manny Pacquiao is a boxer if and only if
December is a summer month in the
Philippines.
TRUE FALSE
Determine if the statement is true or false.
3. Cigarette smoking causes cancer or Filipino is
the universal language, and Asia is a continent.
TRUE FALSE
Determine if the statement is true or false.
4. If ice cream is sweet, then cake is bitter.
TRUE FALSE
Determine if the statement is true or false.
5. Success follows from being hardworking.
TRUE FALSE
B ASIC L OG ICAL O PE RATO R S :
Operator Word/s Symbol Truth Value (Technique)
Negation
Conjunction
Disjunction
Conditional
Biconditional
Exclusive-or
Determine if the statement is true or false.
1. Today is Sunday and it is raining.
2. 2016 is a leap year.
3. If March is the third calendar month, then one foot
has 12 inches.
4. February has 29 days whenever 2020 is a leap year.
5. The boiling point of water is or the freezing point is
100 .
6. 20 is divisible by 2 if and only if 20 is even.
CONSTRUCTING TRUTH TABLES
p q
T T F T
T F F F
F T T F
F F T T
CONSTRUCTING TRUTH TABLES
3.
CONSTRUCTING TRUTH TABLES
p q r
3.
T T T T F F
T T F T T T
T F T T F F
T F F T T T
F T T T F F
F T F T T T
F F T F F F
F F F F T F
TAUTOLOGY, CONTRADICTION &
CONTINGENCY
Tautolog
y
A compound statement that is always true, regardless
of the truth values of its components, is called a
tautology.
TAUTOLOGY, CONTRADICTION &
CONTINGENCY
Tautolog
yhe proposition
T is a tautology as the following table illustrates.
p
T F T
F T T
Contradiction
Contradiction
The proposition is a contradiction as the following table illustrates.
p
T F F
F T F
Contingency
A contingency is neither a tautology nor a contradiction.
Example:
1.
1.
p q
T T
T F
F T
F F
Therefore, is a tautology.
1.
p q
T T T F T
T F F T T
F T F T T
F F F T T
Therefore, is a tautology.
2.
p q
T T
T F
F T
F F
Therefore,is a contradiction.
2.
p q
T T F F T F
T F T T F F
F T F F F F
F F T F F F
Therefore,is a contradiction.
3. (𝑝 ˅~𝑝) ˄ 𝑞
p q
T T
T F
F T
F F
p q
T T T F F T
T F F T F F
F T T F T T
F F T T T T
EQUIVALENT STATEMENTS
Another example: Determine if each of the following is
equivalent by constructing their truth tables.
1. and
EQUIVALENT STATEMENTS
( 𝑝˄ 𝑞 ) 𝑎𝑛𝑑 𝑝˅ 𝑞
p q
T T
T F
F T
F F
EQUIVALENT STATEMENTS
( 𝑝˄ 𝑞 ) 𝑎𝑛𝑑 𝑝˅ 𝑞
p q
T T T F F F F
T F F T F T T
F T F T T F T
F F F T T T T
Hence,
EQUIVALENT STATEMENTS
2.
p q
T T
T F
F T
F F
Hence,
EQUIVALENT STATEMENTS
2.
p q
T T T F F F F
T F T F F T F
F T T F T F F
F F F T T T T
Hence,
EQUIVALENT STATEMENTS
3.
p q
T T
T F
F T
F F
Hence,
EQUIVALENT STATEMENTS
3.
p q
T T T F T
T F F F F
F T T T T
F F T T T
Hence,
EQUIVALENT STATEMENTS
4. and
p q
T T
T F
F T
F F
Hence,
EQUIVALENT STATEMENTS
4. and
p q
T T T T T T
T F F T F F
F T T F F F
F F T T T T
Hence,
FORMS OF CONDITIONAL PROPOSITIONS
Truth table:
FORMS OF CONDITIONAL PROPOSITIONS
Consider the following true conditional:
"If today is Saturday, then it is a weekend."
State its (a) converse, (b) contrapositive, and (c) inverse, and determine
whether each statement is true.
Solution:
(a) Converse: "If today is a weekend, then it is Saturday."
(b) Contrapositive: "If today is not a weekend, then it is not Saturday."
(c) Inverse: "If today is not Saturday, then it is not a weekend."
Symbolic Arguments
An argument is an assertion that a given series of , called
premises yields (has a consequence) another statement Q,
called the conclusion. The premises are intended to
demonstrate or at least provide some evidences for the
conclusion.
Symbolic Arguments
Example:
Some of the following are arguments. Identify their
premises and conclusions.
If I will study for the examination, then I will get a passing score.
I got a passing score.
Therefore, I studied for the examination.
Valid Arguments
An argument is said to be valid when all the
premises are true it forces the conclusion to be
true. An argument which is not valid is called
an invalid argument or fallacy.
Valid Arguments
Theorem: The argument consisting of the premises ,
and conclusion Q is valid if and only if the
proposition is a tautology.
List of SomeValid Arguments
1. Law of Detachment (also called modus ponens)
Symbolically, the argument is written:
Premise 1:
Premise 2: ____
1. Law of Detachment (also called modus ponens)
[(𝑝 →𝑞)˄ 𝑝 ]→𝑞
p q
T T T T T
T F F F T
F T T F T
F F T F T
The truth table above shows that we have a valid argument, since the
compound statement is a tautology.
List of SomeValid Arguments
2. Law of Contraposition (also called modus tollens)
Symbolically, the argument is written:
Premise 1:
Premise 2: ____
2. Law of Contraposition (also called modus tollens)
[(𝑝 →𝑞)˄ 𝑞]→ 𝑝
T T T F F F T
T F F T F F T
F T T F F T T
F F T T T T T
The truth table above shows that we have a valid argument, since the
compound statement is a tautology.
List of SomeValid Arguments
3. Law of Syllogism
Symbolically, the argument is written:
Premise 1:
Premise 2: ____
3. Law of Syllogism
T T T T T T T T
T T F T F F F T
T F T F T F T T
T F F F T F F T
F T T T T T T T
F T F T F F T T
F F T T T T T T
F F F T T T T T
The truth table above shows that we have a valid argument, since the
compound statement is a tautology.
List of SomeValid Arguments
4. Rule of Disjunctive Syllogism
Symbolically, the argument is written:
Premise 1:
Premise 2: ____
4. Rule of Disjunctive Syllogism
[(𝑝 ˅𝑞)˄ 𝑝 ]→ 𝑞
T T T F F T
T F T F F T
F T T T T T
F F F T F T
The truth table above shows that we have a valid argument, since the
compound statement is a tautology.
List of SomeValid Arguments
Example: Consider the following arguments. Verify if it is valid
or invalid. Identify the valid argument used.
Let p be “It rains today”, and q be “ I will wear my rain jacket.” and r
be “I will keep dry”. Clearly, by Law of Syllogism, this argument is
valid.
List of SomeValid Arguments
d. Gregorio’s pencil is in his bag or it is on his table.
Gregorio’s pencil is not in his bag.
Therefore, Gregorio’s pencil is on his table.
Law of Detachment
(Modus Ponens)
Law of Contraposition
(Modus Tollens)
Law of Syllogism
Rule of Disjunctive
Syllogism
Consider each of the following argument. Identify the form of
valid argument that establishes its validity.
Law of Contraposition
Consider each of the following argument. Identify the form of
valid argument that establishes its validity.
Law of Detachment
Consider each of the following argument. Identify the form of
valid argument that establishes its validity.
Law of Syllogism
Consider each of the following argument. Identify the form of
valid argument that establishes its validity.