Predicate Logic
Predicate Logic
Example 1:
“Every computer connected to the university
network is functioning properly.”
• No rules of propositional logic allow us to
conclude the truth of the statement.
Why Predicate Logic?
Example 2:
• “There is a computer on the university network that is
under attack by an intruder.”
•3+2=5 Yes
•X+2=5 No
variable predicate
Predicates
Q(3,4) Yes
Q(x,9) No
Predicate, YES or NO?
Q(x,y) Yes
Q(3,4) No
Q(x,9) Yes
Quantification
• Quantification expresses the extent to which a predicate is
true over a range of elements.
• In English, the words all, some, many, none, and few are
used in quantifications.
• The area of logic that deals with predicates and
quantifiers is called the predicate calculus.
Types of Quantifiers
• A quantifier is “an operator that limits the
variables of a proposition”.
• Two types:
• Universal
• Existential
Universal Quantifiers
• Represented by an upside-down A:
• It means “for all”
• Let P(x) = x+1 > x
• We can state the following:
• x P(x)
• English translation: “for all values of x, P(x) is
true”
• English translation: “for all values of x, x+1>x is
true”
Besides “for all”, universal quantification can be expressed
in many other ways: “for every”, “all of”, “for each”, “given
any”, “for arbitrary”, “for each” and “for any”
Universal Quantifiers
•
Universal Quantifiers
• Let the universe of discourse be the real numbers.
• Let P(x) = x/2 < x
• Not true for the negative numbers!
• Thus, x P(x) is false, When the domain is all the real numbers