How to Nest Your Predicates

Sometimes, our predicates would be defined in terms of two propositions p and q. This requires the use of double quantifiers, and it turns out that the quantifiers all have distinct meanings.

The simplest case arises when both quantifiers are universal. Namely, we want to consider the nested proposition

\forall x \in K\quad (\forall y \in L\quad \phi(x,y)).

where \phi is a predicate over K \times L (we will properly define this later on when discussing sets). This nested proposition means that for any fixed x \in K, the proposition \forall y \in L\ \phi(x,y) holds. Observe that we can get a few flavours of such a nested proposition:

\begin{aligned} \forall x \in K\quad &(\forall y \in L\quad \phi(x,y)), \\   \forall x \in K\quad &(\exists y \in L:\quad \phi(x,y)), \\  \exists x \in K:\quad &(\forall y \in L\quad \phi(x,y)), \\   \exists x \in K:\quad &(\exists y \in L: \quad \phi(x,y)). \end{aligned}

This explains why we cannot, in general, just interchange \forall and \exists, unless we have good reason to. We can, rather carefully, interchange pairs of \forall, by analysing that the following sequences are equivalent:

  • Proving that for any x \in K, \forall y \in L\ \phi(x,y).
  • Proving that for any y \in L, \forall x \in K\ \phi(x,y).

In both cases, we see that we exhaust all possible values of x, y such that \phi(x,y) holds. Hence, we can remove the nested brackets and denote

\begin{aligned} \forall x \in K\quad (\forall y \in L\quad \phi(x,y)) \quad &= \quad \forall x \in K\quad \forall y \in L\quad \phi(x,y) \\ &= \quad  \forall y \in L\quad  \forall x \in K\quad \phi(x,y). \end{aligned}

This line of reasoning also works with double \exists. However, we need to be careful when our nested propositions are of different types. Nevertheless, the two are connected via negation.

Theorem 3. Let \phi be a predicate on the set K \times L. Then

\neg(\forall x \in K\ (\exists y \in L: \phi(x,y))) = \exists x \in K: (\forall y \in L\ \neg \phi(x,y)).

We abbreviate by removing the brackets, remembering to note the ordering of the quantifiers, to obtain the following equivalence:

\neg(\forall x \in K\ \exists y \in L: \phi(x,y)) = \exists x \in K: \forall y \in L\ \neg \phi(x,y).

To properly wrap up our discussion on predicate logic, it behooves us to formally define the cartesian product, in the next post.

—Joel Kindiak, 27 Nov 24, 2230H

,

Published by


Response

  1. Tying Up Loose Pairs – KindiakMath

    […] our previous post, we discussed nested quantifiers, and preceding that, sets. We briefly mention the notion of […]

    Like

Leave a comment