0% found this document useful (0 votes)
31 views6 pages

Predicates and Quantifiers in Discrete Math

The document introduces predicates and quantifiers in predicate logic. It defines predicates as propositional functions whose truth value depends on variables, and quantifiers like "for all" (universal quantifier) and "there exists" (existential quantifier). Common quantifiers are ∀ (for all) and ∃ (there exists). ∀xP(x) means P(x) is true for every x, while ∃xP(x) means P(x) is true for at least one x. Examples show how to write quantified statements using predicates and determine their truth values. The document also discusses translating statements between natural language and logical expressions using predicates and quantifiers.

Uploaded by

samsonhatyoka100
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)
31 views6 pages

Predicates and Quantifiers in Discrete Math

The document introduces predicates and quantifiers in predicate logic. It defines predicates as propositional functions whose truth value depends on variables, and quantifiers like "for all" (universal quantifier) and "there exists" (existential quantifier). Common quantifiers are ∀ (for all) and ∃ (there exists). ∀xP(x) means P(x) is true for every x, while ∃xP(x) means P(x) is true for at least one x. Examples show how to write quantified statements using predicates and determine their truth values. The document also discusses translating statements between natural language and logical expressions using predicates and quantifiers.

Uploaded by

samsonhatyoka100
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

Page 1 of 6

Discrete Mathematics
Predicates and Quantifiers

Predicates

Propositional logic is not enough to express the meaning of all statements in mathematics
and natural language.

Examples:
Is “𝑥 > 1” True or False?

Is “𝑥 is a great tennis player” True or False?

Predicate Logic
 Variables: 𝑥, 𝑦, 𝑧, etc.
 Predicates: 𝑃(𝑥), 𝑄(𝑥), etc.
 Quantifiers: Universal and Existential.
 Connectives from propositional logic carry over to predicate logic.

A predicate 𝑃(𝑥) is a declarative sentence whose truth value depends on one or more
variables.

𝑃(𝑥) is also said to be the value of the propositional function 𝑃 at 𝑥.

𝑃(𝑥) becomes a proposition when a value of 𝑥 is assigned from the domain 𝑈.

Examples (Propositional Functions):

1. Let 𝑃(𝑥) be “𝑥 ≥ 1.” Determine the truth value of

a. 𝑃(2) b. 𝑃(−2) → 𝑃(1)

2. Let 𝑅(𝑥, 𝑦, 𝑧) be “𝑥 + 𝑦 = 𝑧.” Find these truth values:

a. 𝑅(2, −1, 5) b. 𝑅(𝑥, 3, 𝑧)

© 2020, I. Perepelitsa
Page 2 of 6

Quantifiers

We need quantifiers to express the meaning of English words including all and some:

 “All students in this class are computer science majors”


 “There is a math major student in this class”

The two most important quantifiers are:

 Universal Quantifier, “For all,” symbol: ∀


 Existential Quantifier, “There exists,” symbol: ∃

We write as in ∀𝑥 𝑃(𝑥) and ∃𝑥 𝑃(𝑥).


 ∀𝑥 𝑃(𝑥) asserts 𝑃(𝑥) is true for every 𝑥 in the domain.

If = {𝑥1 , 𝑥2 , … , 𝑥𝑛 } , then ∀𝑥 𝑃(𝑥) = 𝑃(𝑥1 ) ∧ 𝑃(𝑥2 ) … ∧ 𝑃(𝑥𝑛 ).

 ∃𝑥 𝑃(𝑥) asserts 𝑃(𝑥) is true for some 𝑥 in the domain.

If = {𝑥1 , 𝑥2 , … , 𝑥𝑛 } , then ∃𝑥 𝑃(𝑥) = 𝑃(𝑥1 ) ∨ 𝑃(𝑥2 ) … ∨ 𝑃(𝑥𝑛 ).

Examples:
1. Let 𝑃(𝑥): “𝑥 > −𝑥” with the domain of all positive real numbers.
Find the truth value of ∀𝑥 𝑃(𝑥).

2. Let 𝑃(𝑥): “𝑥 > −𝑥” with the domain of all real numbers.
Find the truth value of ∀𝑥 𝑃(𝑥).

 The truth value of ∃𝑥 𝑃(𝑥) and ∀𝑥 𝑃(𝑥) depends BOTH on the propositional function
𝑃(𝑥) and on the domain 𝑈.

Quantifiers

Statement When True? When False?

∀𝑥 𝑃(𝑥) 𝑃(𝑥) is true for every 𝑥. There is an x for which


𝑃(𝑥) is false.
∃𝑥 𝑃(𝑥) There is an x for which 𝑃(𝑥) 𝑃(𝑥) is false for every 𝑥.
is true.

© 2020, I. Perepelitsa
Page 3 of 6

Example: Suppose the domain of the propositional function 𝑃(𝑥): 𝑥 2 ≤ 𝑥 consists of


{1, 2, 3}. Write out each of the following propositions using conjunction or disjunction and
determine its truth value.
1. ∀𝑥 𝑃(𝑥) 2. ∃𝑥 𝑃(𝑥)

An element for which 𝑃(𝑥) is false is called a counterexample of ∀𝑥 𝑃(𝑥)

Precedence of Quantifiers

The quantifiers ∀ and ∃ have higher precedence than all the logical operators.

Example: ∀𝑥 𝑃(𝑥) ∨ 𝑄(𝑥) means (∀𝑥 𝑃(𝑥)) ∨ 𝑄(𝑥). ∀𝑥 (𝑃(𝑥) ∨ 𝑄(𝑥)) means something
different.

Negating Quantifiers

De Morgan laws for quantifiers (the rules for negating quantifiers) are:

¬∀𝑥 𝑃(𝑥) ≡ ∃𝑥¬𝑃(𝑥)

¬∃𝑥 𝑃(𝑥) ≡ ∀𝑥¬ 𝑃(𝑥)

Example: Express each of these statements using quantifiers. Then form a negation of the
statement, so that no negation is left of a quantifier. Next, express the negation in simple
English.

1. “Some old dogs can learn new tricks.”

© 2020, I. Perepelitsa
Page 4 of 6

2. “Every bird can fly.”

3. ∀𝑥(𝑥 2 > 𝑥)

© 2020, I. Perepelitsa
Page 5 of 6

Translating from English into Logical Expressions

Examples: Translate the statements into the logical symbols. Let 𝑥 be in set of all students
in this class.
1. Someone in your class can speak Hindi.
2. Everyone in your class is friendly.
3. There is a student in your class who was not born in California.

𝐻(𝑥) = “ 𝑥 𝑠𝑝𝑒𝑎𝑘𝑠 𝐻𝑖𝑛𝑑𝑖”, 𝐹(𝑥) = “ 𝑥 𝑖𝑠 𝑓𝑟𝑖𝑒𝑛𝑑𝑙𝑦, ” 𝐶(𝑥) = “ 𝑥 𝑤𝑎𝑠 𝑏𝑜𝑟𝑛 𝑖𝑛 𝐶𝑎𝑙𝑖𝑓𝑜𝑟𝑛𝑖𝑎. ”

Example: Translate the following sentence into predicate logic and give its negation:
“Every student in this class has taken a course in Java.”
Solution:
First, decide on the domain U!
Solution 1: If U is all students in this class, define a propositional function J(x)
denoting “x has taken a course in Java” and translate as

Solution 2: But if U is all people, also define a propositional function S(x) denoting “x
is a student in this class” and translate as

© 2020, I. Perepelitsa
Page 6 of 6

Example: Translate the following sentence into predicate logic:


“Some student in this class has taken a course in Java.”
Solution:
First, decide on the domain U!
Solution 1: If U is all students in this class, translate as

Solution 2: But if U is all people, then translate as

© 2020, I. Perepelitsa

Common questions

Powered by AI

The domain of discourse is a pivotal element in predicate logic as it specifies the set of elements considered for predicates. It determines the range over which variables and quantifiers operate. For instance, the truth value of universally quantified statements like ∀xP(x) depends both on the propositional function P(x) and on the domain U; an element not satisfying P(x) within U could render the statement false. Defining a domain ensures clarity regarding which elements are included in logical evaluations .

Identifying counterexamples is critical for validating statements involving universal quantifiers because such examples demonstrate where a statement fails, thereby falsifying it. If ∀xP(x) claims truth for every x in the domain, any instance where P(x) is false immediately refutes the statement's validity. Counterexamples are definitive in disproving overgeneralizations in logical assertions and are a fundamental method for testing the limits of universally quantified statements .

Quantifiers in predicate logic specify the scope of a predication over a domain, crucially affecting statement meaning. The universal quantifier (∀) asserts a predicate's truth for all elements in a domain, while the existential quantifier (∃) indicates a predicate's truth for at least one element. For example, ∀xP(x) is true if P(x) holds for every x in the domain. Conversely, ∃xP(x) is valid if there is at least one x for which P(x) is true. Quantifiers thus define the extent and conditions under which predicates hold true or false .

Negating quantifiers using De Morgan's laws transforms universal and existential quantifiers into each other with an internal negation of the predicate. Specifically, ¬∀xP(x) is equivalent to ∃x¬P(x), and ¬∃xP(x) translates to ∀x¬P(x). These transformations invert the scope of the initial statement, thus converting 'all' statements to 'some not,' and 'some' to 'none.' Such operations ensure logical validity and allow complex statements to be rephrased in their opposite form .

In predicate logic, propositional functions like P(x) become meaningful propositions when specific values from the domain, denoted as U, are substituted for the variables. For example, if P(x) is 'x ≥ 1,' it becomes a proposition such as P(2) (true) or P(−2) (false) when concrete numerical values replace x. This transformation is critical for predicate logic to evaluate and assert truth for expressions dependent on varying inputs, suitable for mathematical and logical analysis .

The statement "Every bird can fly" can be expressed using the universal quantifier as ∀x(P(x)), where P(x) represents 'x is a bird and x can fly.' Its negation, applying De Morgan's laws, would be ∃x(¬P(x)), which translates to 'There exists a bird that cannot fly.' This logical transformation demonstrates how universal claims about a subject group are systematically negated to assert that the property does not apply universally .

Predicate logic extends propositional logic by incorporating variables and quantifiers, allowing it to express more complex statements. Propositional logic only deals with whole statements that are true or false, while predicate logic evaluates the truth of individual elements depending on variables and their domain. Predicate logic thus accommodates expressions like 'x>1' or 'x is a great tennis player,' which cannot be fully expressed solely with propositional logic .

The statement "Some student in this class has taken a course in Java" is translated into predicate logic using an existential quantifier: ∃x(J(x)), where J(x) represents 'x has taken a course in Java.' The domain should be all students in the class. Its logical negation involves applying De Morgan's laws: ¬∃x(J(x)) becomes ∀x(¬J(x)), which means 'No student in this class has taken a course in Java.' This logical interpretation clarifies the precise scope and oppositional assertion of the statement .

Translating English statements into predicate logic involves identifying the underlying quantified statements and predicates, then accurately representing them with logical symbols. A suitable domain must be determined because it defines the scope over which variables range and directly affects the meaning and truth of the logical expression. For example, translating "Everyone in your class is friendly" involves specifying whether the domain is 'all people' or just 'students in the class,' which significantly changes the logical form and implications of the statement. Without a clear domain, logical expressions may be ambiguous or incorrect .

Quantifiers have a higher precedence than logical operators, meaning they are evaluated before logical connectives such as conjunctions or disjunctions. This precedence influences the evaluation order, affecting the overall meaning of logical expressions. For instance, ∀xP(x) ∨ Q(x) is evaluated as (∀xP(x)) ∨ Q(x), ensuring that the predicate fully scopes over the quantified variable before any logical operation is considered. If lower precedence was assigned to quantifiers, it could result in misinterpretation, dramatically altering the intended statement's meaning .

You might also like