Skip to main content
Mathematics LibreTexts

4.1: Predicates and Quantifers

  • Page ID
    83414
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    We often let variables represent arbitrary mathematical objects. However, as we have seen, object variables or free variables (as opposed to statement variables) lead to problems in logic. For example, the phrase “\(f\) is a differentiable function” can only be determined to be true or false when \(f\) represents a specific function.

    In this section, we deal with these problems by quantifying such free variables: restricting ourselves to discussing whether “statements” involving one or more free variables are always/sometimes/never true for objects of the type represented by the free variables.

    Definition: Predicate

    a statement whose truth value depends on one or more free variables

    Definition: \(A(x)\)

    a predicate statement \(A\) whose truth value depends on the free variable \(x\)

    Definition: \(A(x,y)\)

    a predicate statement \(A\) whose truth value depends on the free variables \(x\) and \(y\)

    Example \(\PageIndex{1}\)

    1. Let \(A(f)\) represent the phrase “\(f\) is differentiable”, a predicate statement in one free variable \(f\text{.}\)
    2. Let \(B(m,n)\) represent the phrase “\(m\) is greater than \(n\)”, a predicate statement in two free variables \(m\) and \(n\text{.}\)

    Note \(\PageIndex{1}\)

    A predicate is not a logical statement unless all of its variables represent specific objects.

    Definition: Domain

    the type of object that a variable in a predicate represents

    Example \(\PageIndex{2}\)

    In Example \(\PageIndex{1}\), the domain of the variable \(f\) could be “functions of a single real variable”, and the domains of the variables \(m\) and \(n\) could both be “natural numbers” (i.e. whole, nonnegative numbers).

    Note \(\PageIndex{2}\)

    Usually the domain of a variable in a predicate is implicit and can be determined from the context of the statement. However, if we want to make the domain explicit we can prefix it to the variable. For example,

    \begin{gather*} A(f) = \text{ “function } f \text{ is differentiable”,} \\ B(m,n) = \text{ “integer } m \text{ is greater than integer } n \text{”.} \end{gather*}

    We can turn a predicate into a logical statement by being more specific about which objects in their domains the variables represent. However, we often do not want to be too specific (or else we would usually not need variables).

    Example \(\PageIndex{3}\)

    The following sentences are logical statements, because their truth value can be determined.

    • “Every function \(f\) is differentiable.”
    • “There exists an integer \(m\) that \(2\) divides.”

    The first statement is false; for example, the function \(f(x) = \vert x \vert\) is not differentiable at \(x=0\text{.}\) The second statement is true; this statement basically says that even integers exist.

    Definition: Quantifer

    the sentence fragments “for every” and “there exists” quantify whether a predicate should apply to all or only some of the objects in the domain of one of its variables.

    Definition: Universal Quantifer

    the quantifier “for every”

    Definition: \(\forall\)

    symbol for the universal quantifier

    Definition: Existential Quantifer

    the quantifier “there exists”

    Definition: \(\exists\)

    symbol for the existential quantifier

    Example \(\PageIndex{4}\)

    As before, let \(A(f)\) represent the predicate “\(f\) is differentiable.” Then the statement \((\forall f ) A(f)\) is false, because not every function is differentiable. However, the statement \((\exists f) A(f)\) is true — for example, polynomials are differentiable.

    Warning \(\PageIndex{1}\)

    For an existentially quantified statement to be true, it is not necessary for there to be one and only one object in the implied domain that satisfies the conditions of the predicate — there could be many such objects. So, just as you should always read a disjunction \(p \lor q\) as “p or q or both,” you should always read an existentially quantified statement \((\exists x) A(x)\) as “there exists at least one \(x\) such that \(A(x)\) is true.”

    Mathematical statements often involve several quantified variables.

    Example \(\PageIndex{5}\)

    Let \(B(m,n)\) represent “\(m\) divides \(n\)”, where \(m\) and \(n\) are positive whole numbers. Which of the following statements are true?

    1. \(\displaystyle (\forall m)(\forall n)B(m,n) \)
    2. \(\displaystyle (\exists m)(\exists n)B(m,n) \)
    3. \(\displaystyle (\forall m)(\exists n)B(m,n) \)
    4. \(\displaystyle (\exists m)(\forall n)B(m,n) \)
    5. \(\displaystyle (\forall n)(\exists m)B(m,n) \)
    6. \(\displaystyle (\exists n)(\forall m)B(m,n) \)

    Solution

    1. This statement says “for every \(m\) and for every \(n\text{,}\) \(m\) divides \(n\text{.}\)” One example of values for \(m\) and \(n\) with \(m\) not dividing \(n\) (such as \(m=3\) and \(n=2\)) suffices to show that it is not always true that one number \(m\) divides another number \(n\text{.}\)
    2. This statement says “there exists \(m\) such that there exists \(n\) such that \(m\) divides \(n\text{.}\)” To demonstrate that this statement is true, we have to explicitly show that at least one pair of values for \(m\) and \(n\) exists by giving an example (such as \(m = n = 2\)).
    3. This statement says “for every \(m\) there exists an \(n\) such that \(m\) divides \(n\text{.}\)” To show that this statement is true, we have to provide, for every possible value of \(m\text{,}\) a value of \(n\) that works. When \(m=1\text{,}\) we have example \(n=1\text{.}\) When \(m=2\text{,}\) we have example \(n=2\text{.}\) When \(m=3\text{,}\) we have example \(n=3\text{.}\) Similarly, for each value of \(m\text{,}\) we can choose \(n\) to be the same value as \(m\) as an example.
    Note

    If the domain for \(m\) and \(n\) included \(0\text{,}\) then this third statement would actually be false, as demonstrated by the example \(m = 0\text{.}\)

    1. This statement says “there exists \(m\) such that for every \(n\) we have \(m\) divides \(n\text{.}\)” This is true, as the example \(m = 1\text{,}\) which divides every number \(n\text{,}\) demonstrates existence of this special \(m\) (though it is the only example possible).
    2. This statement says “for every \(n\) there exists an \(m\) so that \(m\) divides \(n\text{.}\)” Similarly to the justification for Statement 3, for every possible value of \(n\) we need to provide an example \(m\) so that \(m\) divides \(n\text{,}\) but this time it is the \(n\) that is arbitrary and the \(m\) that is to be the example. But again, every positive number divides itself, so we could always take \(m\) to be the same value as \(n\) as our example to demonstrate that such an \(m\) exists. (Or, actually we could always choose \(m=1\) as the example for each different value of \(n\text{.}\))
    3. This statement says “there exists \(n\) such that for every \(m\) we have \(m\) divides \(n\text{.}\)” However, there is no positive number that is divisible by every other positive number.

    Warning \(\PageIndex{2}\)

    While the order of two quantifiers of the same type does not matter (which is why we didn't consider the statements with quantifiers in the order \((\forall n)(\forall m)\) and \((\exists n)(\exists m)\) in Worked Example \(\PageIndex{5}\) above), the order of a “mixed” pair of quantifiers matters! This is demonstrated by Statement 3 and Statement 6 in Worked Example \(\PageIndex{5}\) — both of these statements involve a \(\forall m\) and a \(\exists n\text{,}\) but in opposite orders. Since one of these two statements is true and one is false, they obviously cannot be the same statement.

    Even more, the order of a “mixed” pair of quantifiers implies a dependence of the second quantified variable on the first.

    1. If the statement \((\forall x)(\exists y) A(x,y)\) is true, it means that, corresponding to each and every object \(x\) in the appropriate domain, there will exist at least one example of an object \(y\) in the appropriate domain so that \(A(x,y)\) is true. But the corresponding example \(y\) could be different for different examples of the object \(x\text{.}\)
    2. If the statement \((\exists y)(\forall x) A(x,y)\) is true, it means that there is at least one “special” example object \(y\) that enjoys the property that \(A(x,y)\) will be true for each and every object \(x\) in the appropriate domain.

    Example \(\PageIndex{6}\)

    Suppose \(A(x,y)\) is a predicate statement, where \(x\) and \(y\) are variables that can only take on the values \(0\text{,}\) \(1\text{,}\) or \(2\text{.}\) Further suppose that it is known that \(A(x,y)\) is true in the specific instances

    \begin{equation*} A(0,1), A(1,0), A(1,1), A(1,2), A(2,2) \text{.} \end{equation*}

    1. Statement \((\forall x)(\exists y) A(x,y)\) is true because for each value of \(x\) we can exhibit at least one value \(y\) for which \(A(x,y)\) is true:
      • when \(x=0\text{,}\) we know \(A(0,y)\) is true for at least one \(y\) (for example, \(y = 1\));
      • when \(x=1\text{,}\) we know \(A(1,y)\) is true for at least one \(y\) (for example, \(y = 1\)); and
      • when \(x=2\text{,}\) we know \(A(2,y)\) is true for at least one \(y\) (for example, \(y = 2\)).
    2. Statement \((\exists x)(\forall y) A(x,y)\) is true because we can exhibit at least one “special” value of \(x\) for which \(A(x,y)\) is true for each and every value of \(y\text{.}\) In particular, we see that for \(x=1\) we have \(A(1,y)\) true for each of \(y = 0,1,2\text{.}\)

    Remark \(\PageIndex{7}\)

    Depending on grammar requirements or personal style, the quantifier “for every” might be expressed as “for all” or just “every” or “all”. The quantifier “there exists” can also be expressed as “some” or “there is at least one”, but remember that the reality of the situation could be “more than one.”

    Warning \(\PageIndex{3}\)

    Mathematicians are fond of using “any” or “for any” in place of “every” or “for every”.

    Example \(\PageIndex{7}\)

    Prove that \(n+1\) is an odd number for any even number \(n\text{.}\)

    Solution. 1 (Incorrect)

    It says to prove \(n+1\) is odd for any even number \(n\text{,}\) so I will choose my favourite even number \(n = 8\text{.}\) Then \(8+1 = 9\) is obviously odd.

    Solution. 2 (Correct)

    The problem statement is really asking to prove that every even number has the property that the subsequent number is odd. So let \(n\) represent an arbitrary but unspecified even number. Then \(n\) is divisible by \(2\text{,}\) so there is some number \(m\) such that \(n = 2m\text{.}\) Now, \(n+1 = 2m+1\) is not divisible by \(2\text{,}\) since \((2m+1)/2 = m + \dfrac{1}{2} \) is not a whole number. Therefore, \(n+1\) must be odd.

     

    Note \(\PageIndex{3}\)

    We will practice proving statements involving universally quantified predicates in Chapter 6.


    This page titled 4.1: Predicates and Quantifers is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Jeremy Sylvestre via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.