MMW Lesson02 Intro To Logic
MMW Lesson02 Intro To Logic
Propositional Logic
2.1 Propositions
Definition 1
A proposition is a declarative sentence that can be objectively identified as either true or
false, but not both. If a proposition is true, then its truth value is “true” and is denoted by
T or 1; otherwise, its truth value is false and is denoted by F or 0.
Example 1. Determine whether each of the following sentence is a proposition or not a proposi-
tion.
6. Hi guys!.
7. 1 is a prime number.
√
8. 2 is a irrational number.
11. Most scientists agree that global warming is a threat to the environment.
1
2 CHAPTER 2. PROPOSITIONAL LOGIC
Given a proposition, its truth table is a diagram in table form that is used to show all its possible
truth values.
p p q p q r
1 1 1 1 1 1
0 1 0 1 1 0
0 1 1 0 1
0 0 1 0 0
0 1 1
0 1 0
0 0 1
0 0 0
Definition 2
Quantified statements involve terms such as all, each, every, no, none, some, there exists,
and at least one. In a statement, the words all, each, every, no, none are called universal
quantifiers while the words some, there exists, and at least one are called existential
quantifiers.
Example 2. 1. Every student taking Mathematics in the Modern World subject this semester
will pass.
3. Some people who are NBA fans are also Ginebra fans.
4. There is at least one professor in this school who does not have brown eyes.
Remark: The words each, every, and all mean the same thing. Likewise, some, there exists, and
at least one are considered to be the same and are treated that way as well.
2.1. PROPOSITIONS 3
Definition 3
Let p be a proposition. The negation of p, denoted by ¬p, is the statement “It is not the
case that p.” The proposition ¬p is read “not p.” The truth table for ¬p is
p ¬p
1 0
0 1
3. q : 3 is a composite number.
¬q :
√
4. s : 2 is an irrational number.
¬s :
6. m : Today is Monday.
¬m :
Example 4. Determine the negation of the following propositions.
1. Every student taking Philosophy subject this semester will pass.
Remark:
Proposition contains Negation
All do Some do not/Not all do
Some do None do/ All do not
Some do not All do
None do Some do
4 CHAPTER 2. PROPOSITIONAL LOGIC
Remark:
1. In standard usage, the word ”then” is often omitted from a conditional statement.
2. Technically we have given the names conjunction, disjunction, conditional, and biconditional
to the connectives, but from now on, we’ll refer to the whole proposition using connectives
by these names.
2. If you register in an unli surf promo, you will get three days of access to the internet.
Remark:
Symbols for the connectives
Definition 4
Let p and q be propositions. The conjunction of p and q, denoted by p ∧ q, is the
proposition “p and q”. The conjunction p ∧ q is true when both p and q are true, and is false
otherwise. The propositions p and q are called conjuncts. The truth table of p ∧ q is
p q p∧q
1 1 1
1 0 0
0 1 0
0 0 0
2.2. COMPOUND PROPOSITIONS 5
1. p ∧ q :
2. p ∧ (¬q) :
3. (¬p) ∧ q :
4. (¬p) ∧ (¬q) :
5. ¬(p ∧ q) :
Definition 5
Let p and q be propositions. The disjunction of p and q, denoted by p∨q, is the proposition
“p or q”. The disjunction p ∨ q is false when both p and q are false, and is true otherwise.
The propositions p and q are called disjuncts. The truth table of p ∨ q is
p q p∨q
1 1 1
1 0 1
0 1 1
0 0 0
1. p ∨ q :
2. p ∨ (¬q) :
3. (¬p) ∨ q :
4. (¬p) ∨ (¬q) :
5. ¬(p ∨ q) :
6 CHAPTER 2. PROPOSITIONAL LOGIC
Definition 6
Let p and q be propositions. The exclusive or of p and q, denoted by “p Y q” or “p ⊕ q”, is
the proposition that is true when exactly one of p and q is true, and is false otherwise. The
truth table of p Y q is
p q pYq
1 1 0
1 0 1
0 1 1
0 0 0
Example 8.
Definition 7
Let p and q be propositions. The conditional statement p → q is the proposition “If p,
then q.” or “p implies q”. The conditional statement p → q is false when p is true and q is
false, and true otherwise. In the conditional statement p → q, p is called the hypothesis
(or antecedent or premise) and q is called the conclusion (or consequence). The truth table
of p → q is
p q p→q
1 1 1
1 0 0
0 1 1
0 0 1
1. p implies q 8. q if p
2. p only if q 9. q whenever p
Remark:
• The converse of p → q is q → p.
1. p → q :
2. q → p :
3. ¬p → ¬q :
4. ¬q → ¬p :
5. ¬(p → q) :
Example 10. For each conditional statement, write its converse, inverse and contrapositive.
1. If you earned a bachelor’s degree, then you got a high paying job.
converse:
inverse:
contrapositive:
Definition 8
Let p and q be propositions. The biconditional statement p ↔ q is the proposition “p if
and only if q” (or simply “p iff q”). The biconditional statement p ↔ q is true when p and q
have the same truth values, and is false otherwise. Biconditional statements are also called
bi-implications. The truth table of p ↔ q is
p q p↔q
1 1 1
1 0 0
0 1 0
0 0 1
1. p ↔ q :
2. ¬p ↔ q :
3. ¬q ↔ ¬p :
Remarks:
2. If a compound statement is written in symbols and there are parenthesis, we find the truth
value of the statement or statements in the parenthesis first.
3. If a compound statement is written in symbols and there are no parenthesis, the hierarchy
of connectives would be ¬, ∧ or ∨, →, ↔. However, when a compound statement has both
a conjunction and a disjunction, we need to use parenthesis in order to determine which to
consider first.
Example 12. Write each statement in words. Let p: The plane is on time. Let q: The sky is
clear.
1. p ∧ q
2. q → (p ∨ ¬p)
3. p ↔ q
2. Write”If you do not complete the training, then you will not get a promotion and you will
not receive a bonus.” in symbolic form.
2.2. COMPOUND PROPOSITIONS 9
Express the following in symbols and determine its truth value (True or False).
6. If 2 is an even prime, then either today is Sunday or the moon is made of cheese.
7. A square is a rhombus if and only if either the moon is made of cheese or 2 is an even prime.
8. If 2 is not an even prime, then a square is a rhombus implies that today is Sunday.
9. The moon is made of cheese whenever either 2 is an even prime or today is Sunday.
Definition 9
A compound proposition that is always true, no matter what the truth values of the propo-
sitional variables that occur in it, is called a tautology. A compound proposition that is
always false is called a contradiction. A compound proposition that is neither a tautology
nor a contradiction is called a contingency.
Example 15. Using truth tables, determine if each compound proposition is a tautology, contin-
gency, or contradiction.
3. z : [(p → q) → r] ↔ [p → (q → r)]
Definition 10
A biconditional proposition which is a tautology is called an equivalence. That is, two
compound propositions are logically equivalent if and only if they have the same truth
values for all possible combinations of truth values for the simple propositions that compose
them. The symbol ↔ isof ternusedinterchangeablywith ≡ .
1. De Morgan’s Law:
(a) ¬(p ∧ q) ↔ ¬p ∨ ¬q
(b) ¬(p ∨ q) ↔ ¬p ∧ ¬q
2. ¬(p → q) ↔ (p ∧ ¬q)
Homework/Seatwork
A. Determine whether the following sentences are propositions or not.
B. Classify each statement as simple or compound. If it is compound, state the name of the con-
nective used.
1. p ∨ ¬q
2. p ↔ (¬p ∧ q)
3. (p ∧ q) ∨ ¬r
4. (¬p ∧ q) → r
D. Using truth tables, determine if each of the following compound propositions is a tautology,
contingency, or contradiction.
1. (p ∨ q) ∧ (¬p → q)
2. (p → q) ∨ ¬q
3. (p ∧ q) ∧ (¬p ∧ ¬q)
4. (p ∧ ¬q) ∨ (p ∧ r)
Definition 11
An argument is a compound proposition of the form (p1 ∧ p2 ∧ p3 ∧ · · · ∧ pn ) → q . The
propositions p1 , p2 , p3 , · · · , pn are the premises of the argument and q is the conclusion.
Arguments can be written in column or standard form
p1
p2
p3
..
.
pn
∴q
12 CHAPTER 2. PROPOSITIONAL LOGIC
Remark:
• An argument is valid if all its premises are true implies that the conclusion is true. Otherwise,
we say that the argument is invalid. An error in reasoning that leads to n invalid argument
is known as a fallacy.
• An argument is valid if the conclusion necessarily follows from the premises, and invalid if it
is not valid.
• If a statement is a tautology, then the argument is valid, otherwise, the argument is invalid.
An error in reasoning that leads to an invalid argument is known as a fallacy.
2. Write the argument as a conditional statement; use a conjunction (∧) between/among the
premises and the implication (→) for the conclusion.
4. If all truth values under → are T s or 1s (that is, the last column is a tautology), then the
argument is valid, otherwise, it is invalid.
3. If Ian and Erika are friends, then they are facebook friends.
Ian and Erika are not facebook friends.
Therefore, Ian and Erika are not friends.
Common Fallacies
Example 18. Determine whether the following arguments are valid or invalid.
1. If an ad campaign is a success, then the marketing manager won?t lose her job.
The marketing manager lost her job.
Therefore, the ad campaign was not a success.
2. Either 2 + 2 6= 4 or 2 + 2 = 5 .
2+2=4
Therefore, 2 + 2 = 5 .
Example 19. Use a standard form of valid arguments to determine a valid conclusion for each
argument.
3. If I master chemistry in senior high school, then I will be prepared for chemistry in college.
I am not prepared for chemistry in college.
Therefore,
2.5. EULER CIRCLES / EULER DIAGRAM 15
1. Draw the diagram of the given premises (both premises on the same figure).
2. If the conclusion is shown in the diagram, then the argument is valid. But if the premises
can be diagrammed so that a different conclusion can be shown, the argument is invalid.
5. All fried foods are greasy. 7. All politicians stretch the truth.
All greasy foods are delicious. Some politicians take bribes.
All delicious foods are healthy. ∴ Some people that stretch the truth take
∴ All fried foods are healthy. bribes.
6. All squares are rhombi. 8. All country singers play the guitar.
All rhombi are parallelograms. All country singers play the drums.
All parallelograms are quadrilaterals. Some people who play the guitar are rock singers.
∴ All squares are quadrilaterals. ∴ Some country singers are rock singers.
9. If the stock market rises, then the bond market will fall.
The bond market did not fall.
Therefore, The stock market did not rise.
10. If I am going to run the marathon, then I will buy new shoes.
If I buy new shoes, then I will not buy a television.
Therefore, If I buy a television, I will not run the marathon.
12. If you help your classmate cheat, then you shall also be reprimanded.
You help your classmate cheat.
Therefore, you should be reprimanded.
Use a standard form of valid arguments to determine a valid conclusion for each argument.
2. If our clients had a good time, then they will come back.
If they come back, our business will be a success.
Therefore,
Use an Euler diagram to determine whether each of the following argument is valid or invalid.
Reference: Math in Our World, Sobecki, Dave, 4th EditionMc Graw Hill
Mathematics in the Modern Wolrd, Aufmann, Richard, et al.