Predicate
- A propositional function or predicate is a sentence that contains one or more variables.
- A predicate becomes a proposition when the variables are substituted with specific values.
Parameters and Predicates
We can generalize propositions by allowing parameters.
Parameters allow us to talk generally about propositions that share a common form and meaning.
- times is 6.
Predicate versus Formula
What is the difference between parameters in predicates and letters in formulas?
-
The variables in this formula (, ) stand for propositions (which must evaluate to
true
orfalse
). -
Parameters () in predicates can stand for anything (usually elements from a universe set).
Truth Values of Predicates
Before we can evaluate the truth value of a predicate we need to fill in the parameters with actual values. Once we have filled all variables in a predicate, we can consider it as a regular proposition and has a truth value.
- Given . Then is
true
, but isfalse
. - Given is " is a girl is my girlfriend". Then is
true
, but isfalse
.
Given is "If is human then is mortal".
We might be tempted to say that is true
, but we cannot because we haven't fille in yet.
Logic with Predicates
Logical Equivalence with Predicates
All equivalences for Boolean formulas can be used for predicates.
Logical Implication with Predicates
Logical implications for predicates.
- All logical implications for formulas still work. read more
Expressing Problems as Predicates
- x is prime =
- The above predicate is equivalent to this