Topic 1 Basic Logic
Topic 1 Basic Logic
➢ Example 2: All the following not declarative sentences are not propositions.
(Not propositions do not have truth value.)
▪ What time is it?
▪ Read this carefully.
▪ x+1=2
▪ x+y=z
• Example 19: Let P(x) be the statement “x + 1 > x”. What is the truth value of
the quantification ∀xP(x), where the domain consists of all real numbers?
➢The quantification is true since P(x) is true for all real numbers x.
• Example 20: Let Q(x) be the statement “x < 2”.What is the truth value of the
quantification ∀xQ(x), where the domain consists of all real numbers?
➢Q(x) is not true for every real number x, because, for instance Q(3) is false.
That is,
➢x = 3 is a counterexample for the statement . Thus is false.
• The existential quantifier of P(x) is the proposition “There exist an element
x in the domain such that P(x)”, denoted by ∃xP(x) , which read as
“there is an x such that P(x)” , “there is at least one x such that P(x)” or
“for some x P(x)”. ∃ is called the existential quantifier.
• ∃xP(x) is false if and only if P(x) is false for every element of the P(x).
• ∃xP(x) is same as disjunction.
• Example 21: Let P(x) denote the statement “x > 3”. What is the truth value of
the quantification ∃xP(x), where the domain consists of all real numbers?
➢Because “x > 3” is sometimes true – for instance, when x = 4, thus ∃xP(x) is
true.
• Example: Let Q(x) denote the statement “x = x + 1”. What is the truth value of
the quantification ∃xQ(x), where the domain consists of all real numbers?
➢Because Q(x) is false for every real number x, the existential quantifier of
Q(x), which is ∃xP(x), is false.
• Translating English into logical expression becomes more complex
when quantifiers are needed.
• There can be many ways to translate a particular sentence.
• Example 22: Express the statement “Every student in this class has studied
calculus” using predicates and quantifiers.
➢First step: Rewrite the statement so that can identify the appropriate
quantifiers to use.
“For every student in this class, that student has studied calculus.”
➢Second step: Introduce a variable x so that the statement becomes
“For every student x in this class, x has studied calculus.”
➢Third step: Introduce C(x), which is the statement “x has studied calculus.” If the
domain for x consists of the students in the class, then the statement translate as
∀xC(x).
• Example 23: Express the statements “Some student in this class has
visited Malacca” using predicates and quantifiers.
➢First step: Rewrite the statement so that can identify the
appropriate quantifiers to use.
“There is a student in this class, that the student has visited Malacca.”
➢Second step: Introduce a variable x so that the statement
becomes
“There is a student in x this class, that x has visited Malacca.”
➢Third step: Introduce M(x), which is the statement “x has visited
Malacca.” If the domain for x consists of the students in the class,
then the statement translate as ∃xM(x) .
• Example 24: Let C(x, y) be the predicate “x clever than y” and let
the universe of discourse be the set of all students. Use quantifiers
to express the statement “Not everyone is not clever than
someone.”
➢First step: Rewrite the statement so that can identify the
appropriate quantifiers to use.
“Not every students is not clever than some students.”
➢Second step: Introduce a variable x so that the statement
becomes
“Not every x is not clever than some y.”
➢Third step: Hence, the statement translate as ¬ ∀x∃y¬ C(x,y).
• Example 25: Let P(x, y) be the predicate “x loves y” and let the
universe of discourse be the set of all people in Malaysia. Express
the quantification ∃x∀y¬P(x, y) in sentences.
• ∃x express to someone in Malaysia.
• ∀y express to everyone in Malaysia.
• Because P(x, y) is the predicate “x loves y”, thus ¬ P(x, y) express
to “x not love y”
• Combine all the sentences and will become “Someone in Malaysia
not love everyone in Malaysia.”
• An argument is a sequence of propositions which contains premises and a
conclusion.
P1
P2
P3
.
Premises (Hypotheses)
.
.
____________
∴𝑞 Conclusion
• Consider the following argument involving propositions:
“If you have the password, then you can log onto the
network.”
“You have the password.”
Therefore, “You can log onto the network.”
• The argument has the form
p→q
p We would like to determine whether this
________ argument is a valid argument.
∴q
• An argument is valid when all its premises are true implies that the
conclusion is true.
• We can always use a truth table to show that an argument form is valid or
invalid.
✓ The argument form with premises P1, P2, …, Pn and conclusion q is valid when (P1 ∧ P2 ∧ …
∧ Pn) → q is a tautology.
• Example 26: Is the argument below is valid?
p→q
p
________
∴q
Premises P1 ˄ P2 Conclusion (P1 ˄ P2) → q
p q p→q p (p → q) ˄ p q [(p → q) ˄ p]→p
T T T T T T T
T F F T F F T
F T T F F T T
F F T F F F T
T T T T T F F T T
T T F T T T T T T
T F T T T F F T T
T F F F T T T T T
F T T T T F F T T
F T F T T T T T T
F F T T T F F F T
F F F F F T F F T
❖ This argument form shows that the hypotheses lead to the desired conclusion.