0% found this document useful (0 votes)
42 views5 pages

Predicates and Quantifiers in Logic

This document introduces predicates and quantifiers in predicate logic. Predicates are declarative sentences whose truth value depends on variables, such as P(x) meaning "x is greater than 1". Quantifiers like "all" and "some" are represented by the universal quantifier ∀ and existential quantifier ∃. ∀xP(x) means P(x) is true for every x, while ∃xP(x) means P(x) is true for some x. Examples are provided of writing quantified statements using conjunctions and disjunctions and determining their truth values. The precedence and negation of quantifiers is also discussed.

Uploaded by

Vikash Dubey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views5 pages

Predicates and Quantifiers in Logic

This document introduces predicates and quantifiers in predicate logic. Predicates are declarative sentences whose truth value depends on variables, such as P(x) meaning "x is greater than 1". Quantifiers like "all" and "some" are represented by the universal quantifier ∀ and existential quantifier ∃. ∀xP(x) means P(x) is true for every x, while ∃xP(x) means P(x) is true for some x. Examples are provided of writing quantified statements using conjunctions and disjunctions and determining their truth values. The precedence and negation of quantifiers is also discussed.

Uploaded by

Vikash Dubey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Page 1 of 5

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:

1
Page 2 of 5

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

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

2
Page 3 of 5

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.

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.”

1
Page 4 of 5

2. “Every bird can fly.”

3. ∀𝑥(𝑥2 > 𝑥) 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:

2
Page 5 of 5

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

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

Common questions

Powered by AI

The statement ∀x (x^2 > x) is not true over the set of all real numbers. For example, when x = 1, x^2 equals 1, which is not greater than x. Additionally, for any x ≤ 1, x^2 is not greater than x. This exercise demonstrates the critical role of the domain in determining the truth of universally quantified statements, as changing the domain can alter the truth value of a predicate logic statement .

Quantifiers in predicate logic, such as the universal quantifier (∀) and existential quantifier (∃), allow English statements to be expressed precisely in logical form. Quantifiers indicate breadth (universal) or existence (existential) across a domain. For example, "Every student in this class has taken a course in Java" translates into ∀x J(x), assuming J(x) denotes "x has taken a course in Java" and the domain is all students in the class. Quantifiers facilitate expressing generalizations and existential claims succinctly .

The statement “Some old dogs can learn new tricks” can be translated into predicate logic as ∃x(D(x) ∧ L(x)), where D(x) represents "x is an old dog" and L(x) represents "x can learn new tricks." Using De Morgan’s laws, the negation ¬∃x(D(x) ∧ L(x)) is equivalent to ∀x ¬(D(x) ∧ L(x)), which means "For all old dogs x, x cannot learn new tricks." This logical transformation highlights the universal disbelief in the ability of old dogs to learn, which contrasts with the practical adage suggesting exceptions .

De Morgan's laws for quantifiers provide a systematic method to negate statements. Specifically, ¬∀x P(x) is equivalent to ∃x ¬P(x) and ¬∃x P(x) is equivalent to ∀x ¬P(x). These laws show that to negate a universally quantified statement, one must show the existence of an element for which the predicate is false. Conversely, to negate an existentially quantified statement, the predicate must be false for all elements. These transformations help in simplifying complex logic expressions and understanding their implications .

In predicate logic, a counterexample is an instance where the propositional function P(x) is false for a particular x, contradicting the universal quantification ∀x P(x). The existence of even one counterexample is enough to disprove the universal statement, demonstrating that it is false. Conversely, to invalidate an existential statement (∃x P(x)), P(x) must be false for every x in the domain, showing that no counterexamples exist where P(x) is true .

Counterexamples are crucial in disproving universally quantified statements since they reveal specific instances where the statement fails. For instance, consider the statement ∀x (x + 1 > x). The statement appears universally true for real numbers, but introducing a domain includes x being a division by zero (which is undefined) can serve as a theoretical counterexample, isolating domains where counterintuitive exceptions might occur. However, in a practical sense, for all valid real numbers, this universally quantified statement holds, emphasizing how exceptions or trivial invalid cases must be carefully considered to understand domain constraints .

Defining a domain is necessary because the truth value of predicate logic statements depends not only on the propositional function P(x) but also on the domain U. For statements with the universal quantifier (∀x P(x)), the statement is asserted to be true only if P(x) is true for every x in the domain. Conversely, for existential quantifiers (∃x P(x)), the statement is true if there is at least one x in the domain for which P(x) is true .

Predicate logic extends propositional logic by introducing variables, predicates, and quantifiers, which allow for the expression of statements that depend on one or more variables. While propositional logic can only handle fixed propositions, predicate logic uses predicates like P(x) where the truth depends on the value of x. It also uses quantifiers, such as the universal quantifier ("For all," symbol: ∀) and the existential quantifier ("There exists," symbol: ∃) to express statements like "all students are majors in a certain field" or "there exists a student who is a math major" .

Using the correct precedence of quantifiers and logical operators is crucial because it determines the scope and meaning of logical expressions. Confusion in precedence can lead to misinterpretation of expressions, as substitutions and interpretations could imply different results. For instance, ∀x P(x) ∨ Q(x) means (∀x P(x)) ∨ Q(x), where the universal statement is independent of Q(x). Misplacing parentheses, such as ∀x (P(x) ∨ Q(x)), implies that each P(x) or Q(x) holds true, fundamentally altering the logic .

Quantifiers such as ∀ (for all) and ∃ (exists) have higher precedence than logical operators like conjunction (∧) and disjunction (∨). This means that in expressions involving both quantifiers and logical operators, the quantifiers are evaluated first. For example, in the expression ∀x P(x) ∨ Q(x), the quantifier applies only to P(x), resulting in the interpretation (∀x P(x)) ∨ Q(x). Misunderstanding this precedence can lead to incorrect interpretation of the logic statements .

You might also like