Chapter 5 Elementary Logic
Chapter 5 Elementary Logic
Chapter 5 Elementary Logic
ELEMENTARY LOGIC
Logic
Etymology. Logic comes from the classical Greek “logos,” meaning “word, thought, idea, argument, account,
reason or principle.” It is the study of the principles and criteria of valid inference and demonstration. Aristotle is
considered as the Father of Logic.
Definition. It is the study of the methods and principles used to distinguish valid from invalid reasoning. It is a
science that aims to develop the reasoning power of man. It is also the science of correct thinking.
Practically, logic is the methods and principles used to distinguish correct from incorrect reasoning (Copi and
Cohem, 1998).
Division of Logic
Traditional Logic. This is another name for Aristotelian logic. This may be described as syllogistic logic, logic of
classes, or logic of terms. It’s the logic of statements that can be represented in terms of classes of things, and
relationships between those classes.
Propositional Logic. This is another name for Liebnizian logic. This is may be described as modern logic, logic of
statements, logic of proposition, or logic of sentences. Specifically, propositional logic studies the ways of joining and/or
modifying the entire propositions to form more complex propositions.
Proposition. A declarative statement which is either true or false but not both.
Practice exercise: Identify the following it is a proposition (P) or not proposition (NP).
1. When did you eat?
2. La Trinidad is one of the 13 municipalities of Benguet.
3. La Trinidad, Benguet is located in Abra.
4. Mathematics is hard!
5. x+6= 9.
6. 2-7 = -5.
7. 9+ 3 > 7 + 3.
8. What is your name?
9. Find a number which divides your age.
10. Blow your horns!
11. The earth is spherical in shape.
12. Is a square a triangle?
13. 2 is an even number and a prime number.
14. A square has four sides.
2 Types of Propositions
a. Simple proposition- A statement that conveys one thought with no connectives or logical operators. This is
usually symbolized by assigning a capital letter of the English alphabet.
b. Compound proposition- a statement comprises of more than one simple proposition (Compound statement)
combined by a connective or logical operator.
Logical Operators
Quality of a Proposition
Refers to whether a sentence is negative or affirmative.
Quality Symbol Expressions
Negative ¬ No, not, never, it is false that, it is not the case that, it is true that,
nowhere, no one, not in the least, in no wise, no means
Affirmative none none
1. P ∧ Q
Q: He lives with integrity.
2. ¬P→ ¬Q
3. P ∨ Q
4. P ↔ Q
5. ¬(P ∨ Q)
1. P ∧ K
C: I am happy.
2. ¬P → ¬C
3. ¬K ∨ ¬C
4. C↔(P ∧ K)
5. (P ∨ K)→C
A: I love Werpa.
B: Werpa loves Lodi.
C: I will let her go.
6. I love Werpa and Werpa loves Lodi.
7. I don’t love Werpa or Werpa doesn’t love Lodi.
8. It is not the case that If I love Werpa then Werpa doesn’t love
Lodi.
9. It is not the case that either I love Werpa or Werpa loves Lodi.
10. If Werpa loves Lodi then I will let her go.
11. I love Werpa if and only if I will let her go.
12. Neither I love Werpa nor Werpa loves Lodi if and only if I will let her
go.
-the antecedent and the consequent component are both negated. (¬P → ¬Q)
B. Inverse
-the antecedent and the consequent component are both interchanged and negated. (¬Q →
C. Contrapositive
¬P) Example: If you study hard, then you will get a good grade.
P Q
Converse: If you got a good grade, then you studied hard.
Inverse: If you do not study hard, then you will not get a good grade.
Contrapositive: If you do not get a good grade, then you did not study hard.
Write the converse, inverse, and the contrapositive of the following statements:
1. If you are honest, then tell the
truth. P Q
Converse:
Inverse:
Contrapositive:
2. If you love her, then let her go.
P Q
Converse:
Inverse:
Contrapositive:
Propositional Variable
Propositional variables are arbitrary propositions represented by uppercase letters. They serve as the building
blocks from which new propositions are formed. These variables assume two truth values, true (1) or false (0).
The number of rows (R) in a truth table is given by R=2𝑛 where n represents the number of letters used in the
symbolized
proposition.
ANSWER THIS:
1. The only case when a conjunction is _____is when both conjuncts are true.
2. The only case when a disjunction is _____is when both disjuncts are
false.
3. The only case when a conditional is _____is when the hypothesis is true and the conclusion is false.
4. The only case when a biconditional is ____is when the conditionals have the same truth value.
1. P ∧ ¬Q
Practice Exercise: Generate the truth table of each compound proposition and determine its nature.
¬Q P∧
¬Q
P Q
1 1 0
1 0 1
0 1 0
0 0 1
2. [P → (Q ∧ ¬Q)] → ¬P
P Q ¬Q ¬P Q ∧ P → (Q ∧ ¬Q) [P → (Q ∧ ¬Q)] →
¬Q ¬P
1 1 0 0 0 0 1
1 0 1 0 0 0 1
0 1 0 1 0 0 1
0 0 1 1 0 1 1
3. P → (Q ∨ R)
P Q R Q∨R P → (Q ∨ R)
1 1 1 1 1
1 1 0 1 1
1 0 1 1 1
1 0 0 0 0
0 1 1 1 1
0 1 0 1 1
0 0 1 1 1
0 0 0 0 1
4. (P ∧ ¬Q) ∧ (R ∧ Q)
¬Q P∧ R∧Q (P ∧ ¬Q) ∧ (R ∧ Q)
¬Q
P Q R
1 1 1 0 0 1 0
1 1 0 0 0 0 0
1 0 1 1 1 0 0
1 0 0 1 1 0 0
0 1 1 0 0 1 0
0 1 0 0 0 0 0
0 0 1 1 0 0 0
0 0 0 1 0 0 0
Equivalence (⇔ or ≡ )
Two propositions are logically equivalent if their truth tables have the same truth values.
𝑃 → (𝑄 → 𝑅) ≡ 𝑄 → (𝑃 ∨ 𝑅)
Example:
𝑃 𝑄 𝑅 𝑄 𝑃 → (𝑄 → 𝑃 𝑄 → (𝑃
→𝑅 𝑅) ∨𝑅 ∨ 𝑅)
1 1 1 1
1 1 0 0
1 0 1 1
1 0 0 1
0 1 1 1
0 1 0 0
0 0 1 1
0 0 0 1
𝑃 𝑄 𝑅 𝑄 𝑃 ∨ (𝑄 𝑃 𝑃∨𝑅 (𝑃 ∨ 𝑄) ∧ (𝑃 ∨
∧𝑅 ∧ 𝑅) ∨𝑄 𝑅)
1 1 1 1 1 1 1
1 1 0 0 1 1 1
1 0 1 0 1 1 1
1 0 0 0 1 1 1
0 1 1 1 1 1 1
0 1 0 0 0 1 0
0 0 1 0 0 0 1
0 0 0 0 0 0 0