MTQ
MTQ
MTQ
Department of Informatics
Predicate and Quantifier
Predicate
• Denoted by Ɐ
• Example:
We read “Ɐx P(x)” as “for all x P(x)” or “for every x P(x)”
Existential Quantifiers
• Denoted by ∃
• Example:
We read “∃x P(x)” as “There is an x such that P(x),” or “There
is at least one x such that P(x),” or “For some x P(x).”
Uniqueness Quantifiers
• Denoted by !
• Example:
We read “!x P(x)” as “There exists a unique x such that P(x)
is true.”
Exercise
• Statement ∃x(x + y = 1)
• variable x is bound by the existential quantification ∃x, but the
variable y is free
• Statement ∃x(P(x) ∧ Q(x)) ∨ ∀xR(x)
• all variables are bound
• the scope of the first quantifier, ∃x, is the expression P(x) ∧ Q(x)
• the scope of the second quantifier, ∀x, is the expression R(x)
Exercise
Give a direct proof that if m and n are both perfect squares, then
nm is also a perfect square.
(An integer a is a perfect square if there is an integer b such that
a = b2.)
Solution:
• By the definition of a perfect square, it follows that there are
integers s and t such that 𝑚 = 𝑠 and 𝑛 = 𝑡 2
2
• 𝑚𝑛 = 𝑠 2 𝑡 2 = 𝑠𝑠 𝑡𝑡 = 𝑠𝑡 𝑠𝑡 = (𝑠𝑡)2
• By the definition of perfect square, it follows that mn is alsoa
perfect square, because it is the square of st, which is an
integer
Proof by Contraposition