Our final piece of logic we need is the notion of predicate logic. It’s an extension of propositional logic—the content of our past few posts. Predicate logic helps us discuss propositions like “for all real numbers, (insert favourable property)”, and whether it is true or not.
Ironically, we need a tiny bit of set notation in order to set this up properly. A set is a collection of objects, possibly empty. If
as objects, then we write
to mean that
is the set containing the distinct objects
and
. (Formally, this is known as the axiom of pairing.)
In particular, we want to consider the set . Let
be a propositional variable, and let
be a propositional variable defined in terms of
.
Then means that regardless of substitution,
. Equivalently, for all (
) substitutions of
,
.
For any propositional variable , we will eventually abbreviate
by
, so that can write the preceding proposition as follows:
This motivates us to define predicates rigorously.
Definition 1. Let be a set. Suppose
is a proposition for each
. We call
a predicate on the domain
. The notation
is shorthand to mean the proposition “for all distinct objects
in the set
,
”.
Note that we will assume that implies
, which should make intuitive sense: a set should not be able to contain itself. This is a consequence of the axiom of regularity.
Thus, means that the proposition “for all distinct objects
in the set
,
” is true.
is known as a universal quantifier.
For brevity, we will abbreviate the proposition by
, so that we can abbreviate the proposition
, equivalent to
, by
. This summarises the notation
by
.
Thus, is a predicate on the set
. Either substitution for
—namely
or
—yields the theorem
. However, without any substitution,
is not a proposition, and thus does not have a truth value.
Let be a set. It is clear that
means that for any substitution of
by elements in
,
. What then does it mean that
?
Perhaps a non-example will help us illustrate the point.
Example 1. Let be a propositional variable. Then
. Equivalently,
Proof. In the substitution , we do get
is true. However, there exists a substitution, namely
, such that
. This violates the condition
. Therefore,
.
This motivates the definition of the existential quantifier.
Definition 2. Let be a set and
be a predicate on the domain
. The proposition
is shorthand to mean the proposition “there exists some object
in the set
such that
”. Hence, we have the following characterisation:
By double negation, we obtain the following result.
Theorem 1. Let be a predicate on a set
. Then
From this post onward, we will use in place of
, and likewise with other arrows, especially when we want to abbreviate
by its English counterpart “For any
,
”.
Just like modus ponens, universal modus ponens is one of the most crucial proof techniques in mathematics. Using our revised notation, universal modus ponens can be written as follows.
Example 2. Let be predicates on a set
. Then
In fact, any valid proof technique captured by a tautology can be universalised.
Quantified statements are fundamental in mathematics. We can formulate the foundations of mathematics, namely, set theory, using quantified statements. Sometimes, our predicates would be defined in terms of two propositions and
. This requires the use of double quantifiers, and it turns out that the quantifiers all have distinct meanings.
We will discuss both applications in subsequent posts.
—Joel Kindiak, 27 Nov 24, 2159H
Leave a comment