Lesson-4.1-Introduction-to-Logic (1)
Lesson-4.1-Introduction-to-Logic (1)
LESSON 4.1
INTRODUCTION TO LOGIC
INTRODUCTION TO LOGIC
Example:
𝑝: Everyone should study logic.
Example:
1. 𝑝: She was the first Miss Philippines.
2. 𝑞: 𝑥 is less than 10
3. 𝑟: 𝑦 + 4 = 12
4. 𝑠: 𝑥 2 − 2𝑥 = −1
5. 𝑡: He was the father of Logic.
A closed sentence, on the other hand, is a mathematical
sentence that is known to be either true or false.
Example:
1. 9 is an odd number.
2. 4 + 4 = 8
3. 10 − 1 = 8
4. 6 − 6 = −1
5. The square root of 4 is 1.
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
1. ∀ 𝑥 ∈ ℝ , 𝑥 2 ≥ 0.
2. ∀𝑥 ∈ ℕ , 𝑥 − 5 > 0.
3. ∀𝑥 ∈ ℕ , 𝑥 + 5 ≤ 5 + 𝑥.
4. ∀𝑥 ∈ ℚ , 2𝑥 + 1 is in ℝ.
5. ∀𝑥 ∈ ℤ , 2𝑥 is a positive integer.
EXISTENTIAL QUANTIFIER
The existential quantifier, denoted by ∃, refers to the
phrase “there exists” or “for at least one” or “for
some”. The existential quantifier asserts that the
formula holds for at least one value of 𝑦.
EXISTENTIAL QUANTIFIER
Example. Determine the truth value of the following statements.
1. ∃ 𝑥 ∈ ℝ , 𝑥 2 − 10 ≥ 0.
2. ∃ 𝑥 ∈ ℕ ,𝑥 − 5 < 0 .
3. ∃ 𝑥 ∈ ℤ , 3𝑥 + 2 = 6.
4. ∃ 𝑥 ∈ ℕ , 𝑥 2 + 7𝑥 = −10 .
5. ∀ 𝑥 ∈ ℝ ∃ 𝑦 ∈ ℝ , 𝑥 + 𝑦 = 0.
BASIC LOGICAL OPERATORS
In order to know the truth value of a proposition, we need
to know first the truth value of each of its variable. Thus, it
is convenient to make a truth table, listing the truth values
of a statement that result from all the possible
combinations of the truth values of its variables,
NEGATION
Give any proposition “p”, its opposite is a p ~p
statement “not p” referred to as the
“negation” of the given proposition “p”. T F
Likewise, “p” is the negation of “not p”. F T
Definition: If p is true, then ~p is false; and if
p is false, then ~p is true.
NEGATION
Example. Determine the truth value of the following propositions.
State its negation.
1. 2 + 8 = 10 if only if 6 − 3 = 3.
2. Manila is the capital of the Philippines is equivalent to
fish live in the moon.
3. 8 − 2 = 5 is necessary and sufficient for 4 + 2 = 7.
4. there are seven colors in rainbow if and only if the sun
sets in the south.
Exclusive OR
A compound statement formed by p q p ⨁𝐪
connecting two statements with the word
“or” is called exclusive or. Symbolically, “p T T F
⨁ q” which is read as “p exclusive or q”. T F T
F T T
Definition: Proposition is true when exactly
one of its proposition is true and the other F F F
one is false.
Exclusive OR
Example. Determine the truth value of the given propositions.
1. Sofia will have her lunch today in Batangas or in
Singapore.
2. The circuit is either on or off.
3. Your grade remarks is either passed or fail.
4. ∀ 𝑥 ∈ ℤ except 0, 𝑥 is either negative or positive.
Constructing Truth Tables
Example 1. Construct the truth table of the proposition
~p ∨ q
Example 2. Construct the truth table of the proposition
~p ∨ ~q
Example 3. Construct the truth table of the proposition
𝑝→𝑞 ∧ 𝑞→𝑝
Tautology
contradiction
contingency
Tautology
A compound statement is a tautology if its truth value is
always T, regardless of the truth values of the statements
of which it is composed.
Law of Detachment
Law of Contraposition
Law of Syllogism
Law of Detachment
Law of Detachment (also called Modus Ponens)
Symbolically, the argument is written as
Premise 1: 𝑝 → 𝑞
Premise 2: 𝑝
∴𝑞
𝒑 𝒒 𝒑→𝒒 ∼𝒒 𝒑 → 𝒒 ∧∼ 𝒒 ∼ 𝒑 𝒑 → 𝒒 ∧∼ 𝒒 →∼ 𝒑
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
Law of Contraposition
Example. Consider the following arguments. Verify if its
valid or invalid.