Importance of Mathematical Logic
Importance of Mathematical Logic
What is logic?
Propositional Logic is concerned with statements to which the truth values, “true” and “false”,
can be assigned. The purpose is to analyze these statements either individually or in a
composite manner.
Remarks:
For the purpose for this matter. Let use small case letters as symbol to denote atomic
proposition. A single statement/proposition can be represented with a letter(small case English
alphabet).
Connectives
In propositional logic generally we use five connectives which are −
Disjunction: OR (∨)
Conjunction: AND (∧)
Negation/ NOT (¬)
Implication / if-then (→)
If and only if (⇔).
Excluisve or :
Disjunction: OR (∨) − The OR operation of two propositions A and B (written as A∨B) is true
if at least any of the propositional variable A or B is true.
The truth table is as follows −
A B A∨B
Find the conjunction of the propositions p and q where p is the proposition “Rebecca’s PC has
more than 16 GB free hard disk space” and q is the proposition “The processor in Rebecca’s
PC runs faster than 1 GHz.”
Solution: The conjunction of these propositions, p ∧ q, is the proposition “Rebecca’s PC has
more than 16 GB free hard disk space, and the processor in Rebecca’s PC runs faster than 1
GHz.” This conjunction can be expressed more simply as “Rebecca’s PC has more than 16 GB
free hard disk space, and its processor runs faster than 1 GHz.” For this conjunction to be true,
both conditions given must be true. It is false, when one or both of these conditions are false
Negation (¬) − The negation of a proposition A (written as ¬A) is false when A is true and is
true when A is false.
The truth table is as follows −
A ¬A
True False
False True
EXAMPLE 3 Find the negation of the proposition: “Michael’s PC runs Linux” and express this in
simple English.
Solution: The negation is “It is not the case that Michael’s PC runs Linux.” This negation can be
more simply expressed as “Michael’s PC does not run Linux.”
Implication / if-then (→ − An implication A→B is the proposition “if A, then B”. It is false if A
is true and B is false. The rest cases are true.
The truth table is as follows :
A B A→B
Solution
Version 1: If John does not run the mile in under four minutes, then he will not break the
world’s record.
Version 2: If John breaks the world’s record, then he will have run the mile in under four
minutes.
Order of Operations for Logical Operators
1. ∼ Evaluate negations first.
2. ∧,∨ Evaluate ∧ and ∨ second. When both are present, parentheses may be needed.
3. →,↔ Evaluate → and ↔ third. When both are present, parentheses may be needed.
Necessary and Sufficient Conditions
If r and s are statements:
r is a sufficient condition for s means “if r then s.”
r is a necessary condition for s means “if not r then not s.”
Example 1:
Rewrite the following statement in the form “If A then B”: Pia’s birth on U.S soil is a sufficient
condition for her to be a U.S. citizen.
Solution: If Pia was born on U.S. soil, then she is a U.S. citizen.
Example 2:
George’s attaining age 35 is a necessary condition for his being president of the United States.
Solution: If George has not attained the age of 35, then he cannot be president of the United
States.
Learning Activity 1
Direction: Follow the indicated instruction in each item.
1.
2. Let p and q be the propositions “The election is decided” and “The votes have been counted,”
respectively. Express each of these compound propositions as an English sentence.
¬p b) p ∨ q
¬p ∧ q d) q → p
¬q →¬p f ) ¬p →¬q
(p ↔ q h) ¬q ∨ (¬p ∧ q)
3. Propositions p, q, r and s are defined as follows:
p is "I shall finish my Coursework Assignment"
q is "I shall work for forty hours this week"
r is "I shall pass Math"
s is "I like Math"
Write each sentence in symbols:
I shall not finish my Coursework Assignment.
I don’t like Math, but I shall finish my Coursework Assignment.
If I finish my Coursework Assignment, I shall pass Math.
I shall pass Math only if I work for forty hours this week and finish my
coursework assignment.
4. Use the same proposition in item 3.Write each expression as a sensible English sentence:
q ∨ p
¬p ⇒ ¬r
5.
Learning Activity 2
Direction. Do what is ask in each number
1. Box the sentences that is a proposition and identify the truth value
2 + 3 = 5.
5 + 7 = 10.
x + 2 = 11.
Answer this question.
Do not pass go.
What time is it?
4 + x = 5.
The moon is made of green cheese.
2n ≥ 100.
2. Give/ Write the negation of each proposition
Mei has an MP3 player.
2 + 1 = 3.
Jennifer and Teja are friends.
There are 13 items in a baker’s dozen.
Abby sent more than 100 text messages every day.
121 is a perfect square
Learning Activity 3:
Direction: Construct a truth table for each of these compound propositions and identify whether
they are tautology, contradiction or contingency
p ∧¬p b) p ∨¬p
(p ∨¬q) → q d) (p ∨ q) → (p ∧ q)
(p → q) ↔ (¬q →¬p)
(p → q) → (q → p)
p ∧¬p
p ∨¬p
(p ∨¬q) → q
(p ∨ q) → (p ∧ q)
(p → q) ↔ (¬q →¬p)
(p → q) → (q → p)
Learning Activity 4:
Direction: Write each of these propositions in the form “p if and only if q” in plain English
conversation.
1. For you to get an A in this course, it is necessary and sufficient that you learn how to
solve discrete mathematics problems.
2. If you read the newspaper every day, you will be informed, and conversely.
3. It rains if it is a weekend day, and it is a weekend day if it rains.
4. You can see the wizard only if the wizard is not If it is hot outside you buy an ice cream
cone, and if you buy an ice cream cone it is hot outside.
5. For you to win the contest it is necessary and sufficient that you have the only winning
ticket.
6. You get promoted only if you have connections, and you have connections only if you
get promoted.
7. If you watch television your mind will decay, and conversely.
8. The trains run late on exactly those days when I take it.
Learning Activity 5
Direction: Consider the statement about a party, “If it’s your birthday or there will be cake, then there
will be cake.”
(a) Translate the above statement into symbols. Clearly state which statement is p and which is
q.
(b) Make a truth table for the statement.
(c) Assuming the statement is true, what (if anything) can you conclude if there will be cake?
(d) Assuming the statement is true, what (if anything) can you conclude if there will not be
cake?
(e) Suppose you found out that the statement was a lie. What can you conclude?