0% found this document useful (0 votes)
14 views

Module 2b - Logical Operators

Module 2b covers logical operators, including truth tables for propositions, negation, conjunction, disjunction, conditionals, and biconditionals. It explains how to analyze the truth values of various logical statements and provides examples to illustrate these concepts. Additionally, it defines tautologies and contradictions, demonstrating their properties through truth tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Module 2b - Logical Operators

Module 2b covers logical operators, including truth tables for propositions, negation, conjunction, disjunction, conditionals, and biconditionals. It explains how to analyze the truth values of various logical statements and provides examples to illustrate these concepts. Additionally, it defines tautologies and contradictions, demonstrating their properties through truth tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Module 2b: Logical Operators

Definition: Given a proposition, its truth table show all its possible truth values.

Example 1. Since a proposition has two possible truth values, a proposition 𝑝 would
have the following truth table

𝑝
T
F

Truth tables can also be used to display various combinations of the truth values of
two propositions 𝑝 and 𝑞. The rows of the table will correspond to the each truth value
combination of 𝑝 and 𝑞, so there will be 2$ = 4 rows. The truth table for propositions 𝑝
and 𝑞 are as follows

𝑝 𝑞
T T
T F
F T
F F

Similarly, suppose 𝑝, 𝑞, and 𝑟 are propositions. Then a truth value involving the given
propositions has 2( = 8 rows, as shown below

𝑝 𝑞 𝑟
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F

In general, a truth table involving 𝑛 propositions has 2+ rows.

Definition. The negation of a proposition 𝑝 is denoted by

∼ 𝑝 (read as “not 𝑝”)

and is defined through its truth table

𝑝 ∼𝑝
T F
F T

1
Example 2. State the negation of the following propositions.

𝑛- : 𝑝 𝑥 = (𝑥 − 1)/(𝑥 + 2) is a polynomial function.

𝑛$ : 2 is an odd number.

𝑛( : The tinikling is the most difficult dance.

𝑛6 : Everyone in Visayas speaks Cebuano.

Solution.

∼ 𝑛- : “It is not true that 𝑝 𝑥 = (𝑥 − 1)/(𝑥 + 2) is a polynomial function” or simply


“𝑝 𝑥 = (𝑥 − 1)/(𝑥 + 2) is not a polynomial function”.

∼ 𝑛$ : “It is not true that 2 is an odd number”, or “2 is an even number”.

∼ 𝑛( : “The tinikling is not the most difficult dance”.

∼ 𝑛6 : “Not everyone in Visayas speaks Cebuano”.

Definition. The conjunction of the propositions 𝑝 and 𝑞 is denoted by

𝑝 ∧ 𝑞: (𝑝 and 𝑞)
and is defined through the truth table

𝑝 𝑞 𝑝∧𝑞
T T T
T F F
F T F
F F F

The propositions 𝑝 and 𝑞 are called conjuncts.

The conjunction 𝑝 ∧ 𝑞 is true only when both conjuncts 𝑝 and 𝑞 are true, as shown in
its truth value.

Example 3. Let 𝑝 and 𝑞 be the propositions

𝑝: Angels exist.

𝑞: 𝜋 > 3.

Express the following conjunctions in English sentences or in symbols, as the case


may be.

1. 𝑝 ∧ 𝑞

2. 𝑝 ∧ (∼ 𝑞)

3. “Angels do not exist and 𝜋 ≤ 3.”

2
4. “While angels do not exist, 𝜋 > 3.”

Solution.

1. “Angels exist and 𝜋 > 3.”

2. “Angels exist and 𝜋 ≤ 3” or “Angels exist, yet 𝜋 ≤ 3.”

3. ∼ 𝑝 ∧ ∼ 𝑞

4. ∼ 𝑝 ∧ 𝑞

Definition. The disjunction of two propositions 𝑝 and 𝑞 is denoted by

𝑝 ∨ 𝑞: (𝑝 or 𝑞)
and is defined through its truth table

𝑝 𝑞 𝑝∨𝑞
T T T
T F T
F T T
F F F

The propositions 𝑝 and 𝑞 are called disjuncts.

The above truth table shows us that the disjunction 𝑝 ∨ 𝑞 is false only when both
disjuncts 𝑝 and 𝑞 are false.

Example 4. Let 𝑝, 𝑞, and 𝑟 be the following propositions:

𝑝: Victor has a date with Liza.

𝑞: Janree is sleeping.

𝑟: Eumir is eating.
Express the following propositions in English sentences or in symbols, as the case
may be.

1. 𝑝 ∨ 𝑞

2. 𝑞 ∨ (∼ 𝑟)

3. 𝑝 ∨ (𝑞 ∨ 𝑟)

4. “Either Victor has a date with Liza or Janree is sleeping, or Eumir is eating.”

5. “Either Victor has a date with Liza and Janree is sleeping, or Eumir is eating.”

6. “Either Victor has a date with Liza, or Janree is sleeping and Eumir is eating.”

7. “Either Victor has a date with Liza and Janree is sleeping, or Victor has a date with
Liza and Eumir is eating.”

3
Solution. The corresponding English sentences or symbols are given below.

1. “Victor has a date with Liza or Janree is sleeping.”

2. “Either Janree is sleeping or Eumir is not eating.”

3. “Either Victor has a date with Liza, or Janree is sleeping or Eumir is eating.”

4. 𝑝 ∨ 𝑞 ∨ 𝑟

5. 𝑝 ∧ 𝑞 ∨ 𝑟

6. 𝑝 ∨ 𝑞 ∧ 𝑟

7. 𝑝 ∧ 𝑞 ∨ (𝑝 ∧ 𝑟)

It can be shown that 𝑝 ∨ (𝑞 ∨ 𝑟) and 𝑝 ∨ 𝑞 ∨ 𝑟 are logically equivalent statements, so


we can write 𝑝 ∨ 𝑞 ∨ 𝑟. Likewise, it can also be shown that 𝑝 ∧ 𝑞 ∧ 𝑟 and 𝑝 ∧ 𝑞 ∧ 𝑟
are logically equivalent, so we can write 𝑝 ∧ 𝑞 ∧ 𝑟.
Example 5. Suppose 𝑝, 𝑞, and 𝑟 are the propositions defined above. Consider the
scenario that one Friday night, Victor and Janree are studying for their Logic exam.
Meanwhile, Eumir just tweeted a picture of himself eating crispy pata and sisig. What
is the truth value of the proposition ∼ 𝑝 ∨ 𝑞 ∧ 𝑟 ?
Solution. From the given scenario, it follows that 𝑝 and 𝑞 are false proposition, and 𝑟
is a true proposition. Therefore, the conjunction 𝑞 ∧ 𝑟 is false. Also, ∼ 𝑝 is true since 𝑝
is false. Hence, the disjunction ∼ 𝑝 ∨ 𝑞 ∧ 𝑟 is true since at least one of its disjuncts
is true.

The above discussion may also be summarized in the following table:

𝑝 𝑞 𝑟 ∼𝑝 𝑞∧𝑟 ∼𝑝 ∨ 𝑞∧𝑟
F F T T F T

Definition. The conditional of the propositions 𝑝 and 𝑞 is denoted by

𝑝 → 𝑞: (If 𝑝, then 𝑞)

and is defined through its truth table

𝑝 𝑞 𝑝→𝑞
T T T
T F F
F T T
F F T

The conditional 𝑝 → 𝑞 may also be read as “𝑝 implies 𝑞”. The proposition 𝑝 is called
the hypothesis, while the proposition 𝑞 is called the conclusion.

4
Example 6. Suppose that Geebee is a Grade 11 student. Consider the following
conditionals.

𝑝- : If Geebee is in Grade 11, then she is a senior high school student.

𝑝$ : If Geebee is in Grade 11, then she is working as a lawyer.

𝑝( : If Geebee has a degree in computer science, then she believes in true love.

Analyze the truth value of these conditionals.

Solution.

𝑝- : The hypothesis and the conclusion are true, the conditional 𝑝- is true (from the first
row of the truth table for the conditional statement).

𝑝$ : While the hypothesis is true, the conclusion is not (a Grade 11 student is not
qualified to be a lawyer). From the definition of the conditional, the conditional
statement 𝑝$ is not true.
𝑝( : The hypothesis is not true since Geebee is still in Grade 11. On the other hand, we
cannot determine the truth value of the conclusion “she believes in true love.” From
the last two rows of the truth table, regardless of the truth value of the conclusion, the
conditional statement is true.
Example 7. One day, Richard tweeted, to the delight of his friends: “If I get promoted,
then I will stop posting selfies on Facebook.” Determine whether the implication is true
given the following scenarios.
Scenario A: Richard got the promotion and promptly stopped posting selfies on
Facebook.
Scenario B: Richard got promoted, but then he realized that posting selfies has
become a habit he cannot break easily.
Scenario C: Richard stopped posting selfies, but he did not get the promotion.

Solution. Let 𝑝: “Richard gets promoted” and 𝑞: “Richard will stop posting selfies on
Facebook”.
Scenario A: Both the hypothesis and conclusion are true, so the conditional 𝑝 → 𝑞 is
true.

Scenario B: In this scenario, the hypothesis 𝑝 is true and conclusion 𝑞 is false. By


definition, the conditional 𝑝 → 𝑞 is false.
Scenario C: The hypothesis is false, hence regardless of the truth value of the
conclusion, the conditional 𝑝 → 𝑞 is false. In this case, he did not break his promise
since he was not promoted in the first place.

Definition. The biconditional of propositions 𝑝 and 𝑞 is denoted by

𝑝 ↔ 𝑞: (𝑝 if and only if 𝑞)

5
and is defined through its truth table:

𝑝 𝑞 𝑝↔𝑞
T T T
T F F
F T F
F F T

The proposition may also be written as “𝑝 iff 𝑞”. The propositions 𝑝 and 𝑞 are the
components of the biconditional.

Example 9. Suppose that Geebee is a Grade 11 student. Let us now consider the
following biconditionals.

𝑝- : Geebee is in Grade 11 if and only if she is a senior high school student.

𝑝$ : Geebee is in Grade 11 if and only if she is working as a lawyer.

𝑝( : Geebee has a degree in Computer Science if and only if she believes in true love.

Solution.

𝑝- : Again, both primitive components of 𝑝- are true. Therefore, the biconditional


statement is true.

𝑝$ : It is true that Geebee is in Grade 11, but it is not true that Geebee is working as a
lawyer. Therefore, the biconditional is not true, referring to the second row of its truth
table.
𝑝( : The first primitive proposition, that Geebee has a degree in Computer Science, is
false. The truth value of the entire biconditional depends on the truth value of the
second primitive, that she believes in true love. If this is true, then the biconditional is
false (referring to the third row of the truth table); otherwise, the biconditional is true.

Tautology and Contradictions


Definition. A proposition which is always true is called a tautology, while a proposition
that is always false is called a contradiction. We denote tautologies by 𝜏 and
contradictions by 𝜙.

Example. Let 𝑝 and 𝑞 be propositions. Using truth tables, show the following:

a. 𝑝 ∨ 𝜏 is a tautology.

b. 𝑝 ∧ 𝜙 is a contradiction.

c. 𝑝 → 𝑝 ∨ 𝑞 is a tautology.

6
d. 𝑝 ∧ (∼ 𝑞) ∧ (𝑝 ∧ 𝑞) is a contradiction.

Solution.

a. Note that 𝜏 is always true. Hence in the disjunction 𝑝 ∨ 𝜏, there is at least one true
disjunct. Therefore, 𝑝 ∨ 𝜏 is a tautology since regardless of the truth value of 𝑝, 𝑝 ∨ 𝜏 is
true.

𝑝 𝜏 𝑝∨𝜏
T T T
F T T

b. Since 𝜙 is always false, then the second column of the truth table we will be
constructing will contain Fs. We have the following truth table

𝑝 𝜙 𝑝∧𝜙
T F F
F F F

Regardless of the truth value of 𝑝, 𝑝 ∧ 𝜙 is always false. Hence, it is a contradiction.

c. We have the following truth table

𝑝 𝑞 𝑝∨𝑞 𝑝 → (𝑝 ∨ 𝑞)
T T T T
T F T T
F T T T
F F F T

Regardless of the truth values of 𝑝 and 𝑞, 𝑝 → 𝑝 ∨ 𝑞 is always true, so it is a tautology.


d. We have the following truth table

𝑝 𝑞 ∼𝑞 𝑝 ∧ (∼ 𝑞) 𝑝∧𝑞 𝑝 ∧ (∼ 𝑞) ∧ (𝑝 ∧ 𝑞)
T T F F T F
T F T T F F
F T F F F F
F F T F F F

We note that 𝑝 ∧ (∼ 𝑞) ∧ 𝑝 ∧ 𝑞 is false for any combination of truth values of 𝑝 and


𝑞. Therefore, 𝑝 ∧ (∼ 𝑞) ∧ (𝑝 ∧ 𝑞) is a contradiction.

7
Exercises
1. State the negation of the following propositions.

𝑎: Mary received a text message from her friend.

𝑏: 𝑥 $ + 𝑦 $ = 𝑧 $ .

𝑐: Eden teaches high-level mathematics to college students.

𝑑: James was not able to fetch his sister from school today.

e: The student brings at most two bags with him every school day.

2. Let 𝑝, 𝑞, and 𝑟 be the propositions 𝑝: “Annie has an upset stomach”, 𝑞: “Annie


misses the exam”, and 𝑟: ”Annie receives a passing grade for the subject”. Express
the following in English sentences or in symbols, as the case may be.

a. “Annie does not have an upset stomach, yet she misses the exam”.
b. “If Annie has an upset stomach, then she misses the exam and does not receive a
passing grade for the subject”.
c. Either Annie has an upset stomach and misses the exam, or she does not miss the
exam and she receives a passing grade for the subject.

d. 𝑞 → (∼ 𝑟)

e. 𝑝 → ∼ 𝑟 ∨ 𝑞→ ∼𝑟

f. ∼ 𝑞 ↔ 𝑟

3. Let 𝑢, 𝑣, and 𝑤 be the propositions 𝑢: “Bea drives over the speed limit along EDSA”,
𝑣: “Bea is pulled over by the MMDA traffic enforcer” and 𝑤: “Bea receives a speeding
ticket”. Express the following propositions in English sentences or in symbols, as the
case may be.

a. “Bea does not drive over the speed limit and does not receive a speeding ticket”.
b. “Whenever Bea drives over the speed limit, she is pulled over by the MMDA traffic
enforcer.”
c. “Bea receives a speeding ticket only if she drives over the speed limit along EDSA
or if she is pulled over by the MMDA traffic enforcer”.

d. 𝑣 → 𝑢∧𝑤 ∨ ∼𝑤

e. 𝑤 ↔ (𝑢 ∧ 𝑣)

f. ∼𝑢 ∧𝑣 → ∼𝑤

8
4. Suppose 𝑝 is a true proposition, 𝑞 is a false proposition, and 𝑟 is a true proposition.
Determine the truth value of the following propositions.

a. 𝑝 ∧ 𝑞 ∧ 𝑟

b. 𝑝 ∨ (𝑞 ∨ 𝑟)

c. 𝑝 → ∼𝑞 ∨𝑟

d. 𝑝 ∨ 𝑞 ∧ (∼ 𝑟)

e. ∼ 𝑝 → (𝑞 → 𝑟)

f. 𝑝 ↔ 𝑞 ∨ ( ∼ 𝑝 ↔ 𝑞)

5. Determine the truth values of the propositions 𝑝 and 𝑞 that will make the following
statements false.

a. 𝑝 ∨ ∼ 𝑞 →𝑞

b. 𝑝 ∨ (∼ 𝑞) → 𝑝 ∧ 𝑞

You might also like