Professional Documents
Culture Documents
UNIT X. LOGIC
by Jaynelle G. Domingo
Overview
Logic is a science that deals with formal reasoning. It is used in engineering, law, philosophy, computer science,
mathematics, and many other disciplines. This unit will discuss symbolic logic which is mainly the study arguments. It
includes different types of logic statement, quantifiers and connectives that are being used to form an argument, and
establishing the validity of arguments using truth tables and Euler Diagram.
Learning Objectives:
Directions: Consider the two scenarios below. Which of the two is more acceptable? Make a convincing argument why
your chosen one must be considered and why the other one is not. State your reasons on the blank provided.
Scenario 1: Scenario 2:
If it rains, Jay will be sick. If it rains, Jay will be sick.
It did not rain. Jay was not sick.
Therefore, Jay was not sick. Therefore, it didn’t rain.
Note: At the end of this unit, verify if your answer is correct. The validity of the two arguments will be determined.
Lesson Proper
Statement
A statement is a declarative sentence that is either true or false, but cannot be both true and false at the same
time. Statements are usually denoted by the letters 𝑝, 𝑞, and 𝑟. The truthfulness or falsity of a statement is called truth
value.
Statement can also be composite (compound), which are composed of sub-statements and various connectives.
Simple statement connected with words and phrases such as and, or, if-then, and if and only if (iff) creates a compound
statement.
The table below summarizes logical connectives.
Type of Symbolic
Connective Statement
Statement Form
Negation ∼ not 𝑝 ∼𝑝
Conjunction ∧ 𝑝 and 𝑞 𝑝∧𝑞
Disjunction ∨ 𝑝 or 𝑞 𝑝∨𝑞
Conditional → if 𝑝 then 𝑞 𝑝→𝑞
𝑝 if and
Biconditional ↔ 𝑝↔𝑞
only if 𝑞
104
In the discussion of logic in Unit 2, logical connectives such as negation, conjunction, disjunction, conditional and
biconditional statements were introduced. These types of statement have its respective truth value. The truth value of
these statements satisfy the following properties:
1. Negation
“If 𝑝 is true, then ~𝑝 is false; if 𝑝 is false then ~𝑝 is true”
𝑝 ∼𝑝
T F
F T
2. Conjunction
“If p is true and q is true, then 𝑝 ∧ 𝑞 is true, otherwise, 𝑝 ∧ 𝑞 is false.”
𝑝 𝑞 𝑝∧𝑞
T T T
T F F
F T F
F F F
3. Disjunction
“If 𝑝 is true or 𝑞 is true or both 𝑝 and 𝑞 are true, then 𝑝 ∨ 𝑞 is true, otherwise, 𝑝 ∨ 𝑞 is false.”
𝑝 𝑞 𝑝∨𝑞
T T T
T F T
F T T
F F F
4. Conditional
“The conditional 𝑝 → 𝑞 is true unless p is true and q is false.”
𝑝 𝑞 𝑝→𝑞
T T T
T F F
F T T
F F T
5. Biconditional
“If 𝑝 and 𝑞 have the same truth value, then 𝑝 ↔ 𝑞 is true if 𝑝 and 𝑞 have opposite truth values, then 𝑝 ↔ 𝑞 is
false.”
𝑝 𝑞 𝑝↔𝑞
T T T
T F F
F T F
F F T
Illustration:
1. The statement “It is impossible that if he is sick and you are there, then he will instantly get well or he will at least
feel secure” can be symbolized as
∼ [(𝑠 ∧ 𝑦) → (𝑤 ∨ 𝑓)]
105
2. Consider the following simple statement.
𝑝: Koko prepares well for his thesis.
𝑞: Koko passes the defense.
𝑟: Koko will finish his college
The statement “If Koko prepares well for his thesis and passes the defense, then Koko will finish his
college” can be expressed in symbolic form as
(𝑝 ∧ 𝑞) → 𝑟
Using the same example, the expression ∼ 𝑟 ↔ (∼ 𝑝 ∨∼ 𝑞) in English sentence is
“Koko will not finish his college, if and only if Koko did not prepare well for his thesis or Koko did not pass the
defense.”
Quantifiers
In a statement, the word some and phrases there exists and at least one are called existential quantifiers.
These are used as prefixes to assert the existence of something.
In a statement, the words none, no, all, and every are called universal quantifiers. The quantifiers none and no
deny the existence of something while all and every are used to assert that every element of a given set satisfies some
condition.
A proposition, denoted by 𝑃, 𝑄, 𝑅, …, is a Boolean polynomial in the statement 𝑝, 𝑞, 𝑟, and so on. A simple and
concise way to show the relationship between the truth value of a proposition 𝑃(𝑝, 𝑞, 𝑟, … ) and the truth values of its
statements 𝑝, 𝑞, 𝑟, … is through truth table. A truth table is a table that shows the value of a compound statement for all the
possible truth values of its simple statements.
In the earlier part of this unit, the truth tables for negation, conjunction, disjunction, conditional and biconditional
statement were illustrated.
Example:
The truth table for the proposition ∼ (𝑝 ∧∼ 𝑞) is constructed as follows:
𝑝 𝑞 ∼𝑞 𝑝 ∧∼ 𝑞 ∼ (𝑝 ∧∼ 𝑞)
T T F F T
T F T T F
F T F F T
F F T F T
Note that the previous proposition contains T in the 1 , 3 and 4 rows and F in the 2nd row. Thus the given
st rd th
Illustration:
The proposition 𝑝 ∨∼ 𝑝 is a tautology while the proposition 𝑝 ∧∼ 𝑝 is contradiction.
𝑝 ∼𝑝 𝑝 ∨∼ 𝑝 𝑝 ∼𝑝 𝑝 ∧∼ 𝑝
T F T T F F
F T T F T F
Practice:
Construct truth table for each of the following statement and verify the proposition.
a. (𝑝 → 𝑞) ∧ (𝑞 → 𝑝) (contingency)
b. 𝑝 ∧ (∼ 𝑝 ∧ 𝑞) (contradiction)
c. (𝑝 ∧ 𝑞) ∨ (∼ 𝑝 ∧∼ 𝑞) (tautology)
Logical Equivalence
Two propositions 𝑃 and 𝑄 are said to be logically equivalent if their truth tables are identical. We denote the
logical equivalence of 𝑃 and 𝑄 by 𝑃 ≡ 𝑄.
Illustration:
The propositions 𝑃 = (𝑝 → 𝑞) ∧ (𝑞 → 𝑝) is logical equivalent to 𝑄 = 𝑝 ↔ 𝑞. This means that (𝑝 → 𝑞) ∧ (𝑞 → 𝑝) ≡
𝑝 ↔ 𝑞. This can be showed using truth table.
106
𝑝 𝑞 𝑝 → 𝑞 𝑞 → 𝑝 (𝑝 → 𝑞) ∧ (𝑞 → 𝑝) 𝑝 ↔ 𝑞
T T T T T T
T F F T F F
F T T F F F
F F T T T T
Notice that the last two columns have the same entries, thus, logical equivalent. Further, the proposition (𝑝 →
𝑞) ∧ (𝑞 → 𝑝) can be expressed as 𝑝 ↔ 𝑞 and vice versa.
Symbolic Arguments
Symbolic logic is mainly a study of arguments and since argument is made up of propositions, there is a need to
determine the truthfulness or falsity of these propositions in order to know the validity or invalidity of an argument.
An argument is a collection of propositions where it is claimed that one of the propositions called conclusion
follows from the other propositions called the premises of the argument and is denoted by 𝑃" , 𝑃# , … , 𝑃! /∴ 𝑄.
Illustration:
If a man is bachelor, then he is unhappy. ---- Premise 1 (𝑃" )
If he is unhappy, then he dies young. ---- Premise 2 (𝑃# )
So, bachelor dies young. ---- Conclusion (/∴ 𝑄)
An argument is valid if the conclusion is true whenever all the premises are assumed to be true. Otherwise, an
argument is invalid if at least one of the conclusions is false. It can be written in symbolic form to construct the truth table
and its validity can be verified using truth table.
Example:
If a man is bachelor, then he is unhappy. If he is unhappy, then he dies young. So, bachelor dies young.
𝑷𝟏 𝑷𝟐 Q
𝑏 𝑢 𝑦
𝑏→𝑢 𝑢→𝑦 𝑏→𝑦
T T T T T T
T T F T F F
T F T F T T
T F F F T F
F T T T T T
F T F T F T
F F T T T T
F F F T T T
Since the conclusion is true in every row of the truth table in which all the premises are true, then the argument is valid.
Practice:
Directions: Determine whether the following arguments are valid or invalid.
1. If the power goes off, then the computer will not operate. The computer is operating. Therefore, the power is not
off. (Your answer must be valid.)
2. If the show is interesting, then they will not go home early. The show is not interesting. Therefore, they will go
home early. (Your answer must be invalid.)
Additional: You may verify your answer in the Setting Up part of this unit.
Standard Form of Valid Arguments (Rules of Inference)
Any arguments having the following symbolic forms are considered valid arguments.
107
Many verbal statements particularly those with quantifiers can be translated into equivalent statements using sets,
which can then be described by diagrams. Hence, Euler diagram is one of the ways to determine the validity of an
argument. This diagram shows the existing relationship between quantities.
Illustration:
The following are Euler diagrams that illustrate possible relationships that can exist between two sets.
If the conclusion of an argument must necessarily follow from all the conditions shown by the premises, then the
arguments is valid. However, if the conclusion of an argument does not necessarily follow from all the conditions shown
by the premises, then the argument is invalid.
Example:
Babies are irrational.
Nobody is despised who can manage a crocodile.
Irrational people are despised.
Therefore, babies cannot manage a crocodile.
References
Commision on Higher Education (CHED). (2016). TEACHING GUIDE FOR SENIOR HIGH SCHOOL: General
Mathematics (Core Subject)
Nocon, R. and Nocon, E. (2018). Essential Mathematics for the Modern World. C & E. Publishing House.
Ibanez, E. D. (n.d). Learning Materials in Set Theory and Logic. Central Luzon State University. Science City of Munoz,
Nueva Ecija
108
Assessing Learning (Unit 10-A)
Directions: Answer the following items. Write your answer in the space and/or on the blank provided in each item.
1. Let 𝑝 be “It is cold” and let 𝑞 be “It is raining”. Give a simple verbal sentence which describes each of the following
statement.
a. 𝑝 ∧∼ 𝑞
Answer: ______________________________________________________________
b. 𝑞 →∼ 𝑝
Answer: ______________________________________________________________
c. 𝑝 ↔ (𝑞 ∨∼ 𝑝)
Answer: ______________________________________________________________
Directions: Solve the following items regarding symbolic arguments and Euler diagram. Write your answer in the space
provided.
b. 𝑎 → 𝑏
𝑐→𝑑
𝑏 ∨ 𝑐__
∴𝑎↔𝑑
b. If there will be public transportion going to Baguio City, Kokoy will be going for vacation. There was no public
transportation. Therefore, Kokoy did go to Baguio City for vacation.
111
3. For each set of premises, construct the diagram and find a conclusion such that the argument is valid and such
that each premise is necessary for the conclusion.
b. All cats learn slowly. Keki learns fast. Therefore, Keki is a dog.