Predicates and Quantifiers-1
Predicates and Quantifiers-1
Quantifiers
PRESENTED BY NIMRA TARIQ
Predicates
A predicate is a function or expression that describes a property of something or a relationship
between things.
For example, in the statement "isTall(x)," the predicate "isTall" describes whether "x" (a person)
is tall. If "x" is Ali, and Ali is tall, then "isTall(Ali)" is true.
Predicates use variables to represent objects. For example, "P(x)" can mean "x is a student."
If "x = Zoha," then "P(Zoha)" would mean “Zoha is a student."
Predicates can also describe relationships between multiple objects. For example, "Loves(x, y)"
means "x loves y."
If "x = Ali" and "y = Zoha," then "Loves(Ali, Zoha)" means “Ali loves Zoha."
Domain
The domain of a predicate refers to the set of all possible values that the variables in the
predicate can take.
For example, if we have a predicate "isEven(x)" where "x" is a number, the domain could be the
set of all integers (…,-3, -2, -1, 0, 1, 2, 3,…).
The truth value of a predicate depends on its domain. If we change the domain, the truth value
might change.
For instance, if "x" is within the domain of positive integers, the predicate "x > 0" is always true.
However, if the domain includes negative numbers, "x > 0" is not always true.
Example 1
•Predicate: "isStudent(x)" means "x is a student."
•Domain: The set of all people.
Example 2: