Professional Documents
Culture Documents
Lesson 2 Propositional Functions
Lesson 2 Propositional Functions
Lesson 2 Propositional Functions
1
Propositional
Functions
Objective
Mathematical Logic
Propositional Logic/
Predicate Logic/
Propositional
Predicate Calculus
Calculus
Propositional Functions and Predicates
• Recall in your English Subject:
Consider the sentence below
𝐽𝑢𝑎𝑛 𝐷𝑒𝑙𝑎 𝐶𝑟𝑢𝑧 is enrolled in Logic and Set Theory.
Subject Predicate
Propositional Functions and Predicates
Subject Predicate
Propositional Functions and Predicates
Propositional
Function
Can be denoted as 𝑷(𝒙) 𝑷(𝒙)
Predicate Variable Becomes true/false when
x has a value. Hence,
𝑷 𝒙 becomes a proposition.
Definition:
Propositional Function
• A statement of the form 𝑃 𝑥1 , 𝑥2 , . . . , 𝑥𝑛 is the value of
the 𝑃𝑟𝑜𝑝𝑜𝑠𝑖𝑡𝑖𝑜𝑛𝑎𝑙 𝐹𝑢𝑛𝑐𝑡𝑖𝑜𝑛 𝑷 at the variables
𝑥1 , 𝑥2 , . . . , 𝑥𝑛 .
• If specific values are assigned to the variables in the
propositional function 𝑃 𝑥1 , 𝑥2 , . . . , 𝑥𝑛 , it becomes a
proposition and a truth value exists.
Example:
The following are propositional functions
1. 𝑃 𝑥 : 𝑥 > 3
2. 𝑄 𝑥, 𝑦 : 𝑦 = 𝑥 + 3
3. 𝑅 𝑥, 𝑦, 𝑧 : 𝑥 2 + 𝑦 2 ≤ 𝑧 2
Propositional Functions Subject Predicate
𝑃 𝑥 :𝑥 > 3 𝑥 >3
𝑄 𝑥, 𝑦 : 𝑦 = 𝑥 + 3 𝑦 =𝑥+3
𝑅 𝑥, 𝑦, 𝑧 : 𝑥 2 + 𝑦 2 ≤ 𝑧 2 𝑥 2 + 𝑦2 ≤ 𝑧2
Example
1. Let P(x) denote the statement “x > 3.” What are the
truth values of P(4) and P(2)?
Solution:
•𝑃 4 :4 > 3
• True
•𝑃 2 :2 > 3
• False
Example
2. Let Q(x, y) denote the statement “x = y + 3.” What are the truth values
of the propositions Q(1, 2) and Q(3, 0)?
Solution:
• 𝑄 1, 2 : 1 = 2 + 3
⇒1=2+3
⇒1≠5
• False
• 𝑄 3, 0 : 3 = 0 + 3
⇒3=0+3
⇒3=3
• True
Example
3. Let 𝑅 𝑥, 𝑦, 𝑧 denote the statement “𝑥 2 + 𝑦 2 ≤ 𝑧 2 .” What are the truth
values of the propositions R(1, 2, 3) and R(0, 2, 1)?
Solution:
• 𝑅 1, 2, 3 : 12 + 22 ≤ 32
⇒ 12 + 22 ≤ 32
⇒5≤9
• True
• 𝑅 0, 2, 1 : 02 + 22 ≤ 12
⇒ 02 + 22 ≤ 12
⇒4≰1
• False
Some propositional functions are also stated
as shown below
• Every math major enrolled in the university is studying.
• There is a math major enrolled in the university who is only playing online
games.
• For all real number x, 2x is an even number.
• For some integer y, 𝑦 + 1 is an integer.
❑Some of mathematical statements use the word every, for all, there exists,
for some, etc.
These words are used in quantification. Also called as quantifiers.
❑Quantification expresses the extent to which a predicate is true over a
range of elements.
Observe the statement below
Universal Quantifier
Observe the statement below
There exists a real number x, 2 𝑥 is an even number.
Existential Quantifier
Definition:
Universal Quantification
• The universal quantification of 𝑃(𝑥) is the statement
“𝑃(𝑥) for all values of 𝑥 in the domain.”
• The notation ∀𝑥𝑃(𝑥) denotes the universal quantification
of 𝑃(𝑥). Here ∀ is called the universal quantifier.
• We read ∀𝑥𝑃(𝑥) as “for all 𝑥𝑃(𝑥)” or “for every 𝑥𝑃(𝑥).”
• An element for which 𝑃(𝑥) is false is called a
counterexample to ∀𝑥𝑃 𝑥 .
• Words used as Universal Quantifiers:
“For all”, “for each”, “for every"
Definition:
Existential Quantification
• The existential quantification of 𝑃(𝑥) is the proposition
“There exists an element 𝑥 in the domain such that 𝑃(𝑥).”
• We use the notation ∃𝑥𝑃 𝑥 for the existential
quantification of 𝑃(𝑥).
• Here ∃ is called the existential quantifier.
• Words used as Existential Quantifiers:
“There exists”, “there is”, “for some“, “there is at least”
Example
Determine whether the statement is an example of Universal
Quantification or Existential Quantification.
1. For all real number 𝑥, 𝑥 + 1 > 1.
Universal Quantification
2. There exists a real number 𝑥 such that 𝑥 = 𝑥 + 1.
Existential Quantification
3. 𝑥 2 + 1 > 0 for every natural number 𝑥.
Universal Quantification
4. 𝑥 2 ≤ 𝑥 for some nonzero integers.
Existential Quantification
Truth Value of a Quantification
Note that the truth value of ∀𝒙 𝑷(𝒙) and ∃𝒙 𝑷(𝒙) depends on the domain.
Example
Determine the truth value of the given quantification.
1. For all real number 𝑥, 𝑥 + 1 > 1.
False
2. There exists a real number 𝑥 such that 𝑥 = 𝑥 + 1.
False
3. 𝑥 2 + 1 > 0 for every natural number 𝑥.
True
4. 𝑥 2 ≤ 𝑥 for some nonzero integers.
True
Uniqueness Quantifier
• Denoted by ∃! or ∃1 .
• The notation ∃! 𝑥𝑃(𝑥) [or ∃1 𝑥𝑃(𝑥)] states “There exists a
unique x such that P(x) is true.”
• Other phrases for uniqueness quantification include “there is
exactly one” and “there is one and only one.”
Example:
1. ∃! 𝑥(𝑥 − 1 = 0), where the domain is the set of real
numbers.
True, since 𝒙 = 𝟏 is the only answer.
2. ∃1 𝑥(𝑥 2 = 0), where 𝑥 is an integer.
True, since 𝐱 = 𝟎 is the only answer.
Quantifiers over Finite Domains
• When the domain of a quantifier is finite, that is, when all
its elements can be listed, quantified statements can be
expressed using propositional logic.
• In particular, when the elements of the domain are
𝑥1 , 𝑥2 , … , 𝑥𝑛 , where n is a positive integer, the universal
quantification ∀𝑥𝑃(𝑥) is the same as the conjunction
𝑃 𝑥1 ∧ 𝑃 𝑥2 ∧ ⋯ ∧ 𝑃 𝑥𝑛 , because this conjunction is
true if and only if 𝑃 𝑥1 , 𝑃 𝑥2 , … , 𝑃 𝑥𝑛 are all true.
Quantifiers over Finite Domains
Example
1. What is the truth value of ∀𝑥𝑃(𝑥), where 𝑃(𝑥) is the
statement “𝑥 2 < 10” and the domain consists of the
positive integers not exceeding 4?
False
2. What is the truth value of ∃𝑥𝑃(𝑥), where 𝑃(𝑥) is the
statement “𝑥 2 > 10” and the universe of discourse
consists of the positive integers not exceeding 4?
True
Quantifiers with Restricted Domains
• An abbreviated notation is often used to restrict the domain of a quantifier.
• In this notation, a condition of a variable that must be satisfied is included
after the quantifier.
Example:
Suppose that the domain of the following variables is a set of real numbers.
1. ∀𝑥 < 0 (𝑥 2 < 0)
Read as “ For all real numbers x less than 0, 𝑥 2 is less than 0.”
2. ∀𝑦 ≠ 0 (𝑦 3 ≠ 0)
Read as “ For all real numbers y not equal to 0, 𝑦 3 is not equal to 0.”
3. ∃𝑧 > 0 (𝑧 2 = 2)
Read as “ There exists a real number 𝑧 greater than 0, 𝑧 2 is equal to 2.”
Quantifiers with Restricted Domains
• Note that
✓the restriction of a universal quantification is the same as
the universal quantification of a conditional statement.
✓the restriction of an existential quantification is the same as
the existential quantification of a conjunction.
Example:
1. ∀𝑥 < 0 (𝑥 2 > 0) can be expressed as ∀𝑥 𝑥 < 0 → 𝑥 2 > 0 .
2. ∃𝑧 > 0 (𝑧 2 = 2) can be expressed as ∃𝑧 𝑧 > 0 ∧ 𝑧 2 = 2 .
Precedence of Quantifiers
• It follows that
∼ ∀𝑥𝑃 𝑥 ≡ ∃𝑥 ∼ 𝑃(𝑥)
• It follows that
∼ ∃𝑥𝑃 𝑥 ≡ ∀𝑥 ∼ 𝑃(𝑥)