Chapter1p2 Predicate Logic
Chapter1p2 Predicate Logic
Summary
Predicate Logic (First-Order Logic (FOL), Predicate
Calculus)
The Language of Quantifiers
Chapter 1, Part II: Predicate Logic Logical Equivalences
Nested Quantifiers
Translation from Predicate Logic to English
With Question/Answer Animations Translation from English to Predicate Logic
Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Section Summary
Predicates
Variables
Quantifiers
Section 1.4 Universal Quantifier
Existential Quantifier
Negating Quantifiers
De Morgan’s Laws for Quantifiers
Translating English to Logic
Logic Programming (optional)
1
1/27/2026
Examples of Propositional
Propositional Functions Functions
Propositional functions become propositions (and have Let “x + y = z” be denoted by R(x, y, z) and U (for all three variables) be
truth values) when their variables are each replaced by a the integers. Find these truth values:
value from the domain (or bound by a quantifier, as we will R(2,-1,5)
Solution: F
see later).
R(3,4,7)
The statement P(x) is said to be the value of the Solution: T
propositional function P at x. R(x, 3, z)
For example, let P(x) denote “x > 0” and the domain be the Solution: Not a Proposition
integers. Then: Now let “x - y = z” be denoted by Q(x, y, z), with U as the integers.
Find these truth values:
P(-3) is false. Q(2,-1,3)
P(0) is false. Solution: T
P(3) is true. Q(3,4,7)
Solution: F
Often the domain is denoted by U. So in this example U is
Q(x, 3, z)
the integers. Solution: Not a Proposition
Connectives from propositional logic carry over to predicate We need quantifiers to express the meaning of English
logic. words including all and some:
If P(x) denotes “x > 0,” find these truth values: “All men are Mortal.”
P(3) ∨ P(-1) Solution: T “Some cats do not have fur.”
P(3) ∧ P(-1) Solution: F The two most important quantifiers are:
P(3) → P(-1) Solution: F
P(3) → ¬P(-1) Solution: T Universal Quantifier, “For all,” symbol:
Expressions with variables are not propositions and therefore do Existential Quantifier, “There exists,” symbol:
not have truth values. For example, We write as in x P(x) and x P(x).
P(3) ∧ P(y)
x P(x) asserts P(x) is true for every x in the domain.
P(x) → P(y)
When used with quantifiers (to be introduced next), these
x P(x) asserts P(x) is true for some x in the domain.
expressions (propositional functions) become propositions. The quantifiers are said to bind the variable x in these
expressions.
2
1/27/2026
3
1/27/2026
4
1/27/2026
Solution: ¬x S(x) What is this equivalent to? Solution: x (F(x)→ S(x))
Solution: x ¬ S(x)
Solution: x (F(x) ∧ T(x)) Solution: ¬x (S(x) ∧ T(x)) What is this equivalent
to?
Solution: x (¬S(x) ∨ ¬T(x))
5
1/27/2026
Solution: x ((F(x) ∧ S(x))→ T(x)) Let S(n, x) represent “Network link n is state x.
Now we have:
6
1/27/2026
Section Summary
Nested Quantifiers
Order of Quantifiers
Translating from Nested Quantifiers into English
Section 1.4 Translating Mathematical Statements into Statements
involving Nested Quantifiers.
Translated English Sentences into Logical Expressions.
Negating Nested Quantifiers.
7
1/27/2026
where the domains of x and y are the real numbers. If no y is found such that P(x, y) is true the outer loop terminates as x yP(x,y)
has been shown to be false.
We can also think of nested propositional functions: x y P(x,y) is true if the outer loop ends after stepping through each x.
If the domains of the variables are infinite, then this process can not
x y(x + y = 0) can be viewed as x Q(x) where Q(x) is actually be carried out.
y P(x, y) where P(x, y) is (x + y = 0)
Answer: False
For every x there is a y for There is an x such that
2. xyP(x,y) which P(x,y) is true. P(x,y) is false for every y.
Answer: False There is an x for which For every x there is a y for
3. xy P(x,y) P(x,y) is true for every y. which P(x,y) is false.
Answer: False There is a pair x, y for P(x,y) is false for every
which P(x,y) is true. pair x,y
4. x y P(x,y)
Answer: True
8
1/27/2026
9
1/27/2026
3. Now we can repeatedly apply the rules for negating quantified expressions:
Remember that ε and δ range over all positive real
numbers and x over all real numbers.
5. Translating back into English we have, for every real
number L, there is a real number ε > 0, such that for
every real number δ > 0, there exists a real number
The last step uses the equivalence ¬(p→q) ≡ p∧¬q
x such that 0 < | x – a | < δ and |f(x) – L | ≥ ε .
10