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