Predicates and Quantifiers Flashcards
The statement “x is greater than 3” has two parts. The first part, the variable x, is the subject
of the statement. The second part—the ______________ “is greater than 3”—refers to a property that
the subject of the statement can have.
predicate
We can denote the statement “x is greater than 3” by
P (x),
where P denotes the predicate “is greater than 3” and x is the variable
The statement P (x) is
also said to be the value of the
propositional function P at x
A statement of the form P (x1, x2, . . . , xn) is the value of the
propositional function P
A statement of the form P (x1, x2, . . . , xn) is the value of the propositional function P at the
n-tuple (x1, x2, . . . , xn), and P is also called an
n-place predicate or a n-ary predicate
The statements that describe valid input are known
as
preconditions
The statements that describe valid input are known
as preconditions and the conditions that the output should satisfy when the program has run
are known as
postconditions
When the variables in a propositional function are assigned values, the resulting statement
becomes a proposition with a certain truth value. However, there is another important way, called
quantification, to create a proposition from a propositional function
The area of logic that deals with predicates
and quantifiers is called the .
predicate calculus
Many mathematical statements assert that a property is
true for all values of a variable in a particular domain, called the
domain of discourse (or
the universe of discourse), often just referred to as the domain
The notation ∀xP (x) denotes the universal quantication of P (x). Here ∀ is called the
universal quantier
We read ∀xP (x) as “for all xP (x)” or “for every xP (x).” An element
for which P (x) is false is called a
counterexample of ∀xP (x).
Remember that the truth
value of ∀xP (x) depends
on the
domain
The existential quantification of P (x) is the
proposition
We use the notation ∃xP (x) for the existential quantification of P (x). Here ∃ is called the
existential quantifier
Remember that the truth
value of ∃xP (x) depends
on the
domain!
there is no limitation on the number of different quantiers we can define, such as “there are
exactly two,” “there are no more than three,” “there are at least 100,” and so on. Of these other
quantiers, the one that is most often seen is the
uniqueness quantier, denoted by ∃! or ∃1
When a quantifier is used on the variable x, we say that this occurrence of the variable is
bound
An occurrence of a variable that is not bound by a quantier or set equal to a particular value
is said to be
free
The part of a logical expression to which a quantier is applied is called the
scope of this quantifier
Statements involving predicates and quantifiers are
logically equivalent if and only if they
have the same truth value no matter which predicates are substituted into these statements
and which domain of discourse is used for the variables in these propositional functions
We use the notation S ≡ T to indicate that two statements S and T involving predicates and
quantifiers are
logically equivalent
The rules for negations for quantiers are called
De Morgan’s laws for quantiers
Prolog programs
include a set of declarations consisting of two types of statements
Prolog facts and Prolog
rules. Prolog