The Wayback Machine - https://web.archive.org/web/20240610170845/https://www.geeksforgeeks.org/mathematics-theorems-nested-quantifiers/
Open In App

Mathematics | Some theorems on Nested Quantifiers

Last Updated : 13 Dec, 2019
Improve
Improve
Like Article
Like
Save
Share
Report

Prerequisite – Predicates and Quantifiers – Set 1, Set 2

Quantifiers are expressions that indicate the scope of the term to which they are attached, here predicates. A predicate is a property the subject of the statement can have.

For example, in the statement “the sum of x and y is greater than 5”, the predicate ‘Q’ is- sum is greater than 5,
and the statement can be represented as Q(x, y) where x and y are variables.

The scope of a quantifier or a quantification is the range in the formula that the quantifier engages in.

Types of quantification or scopes:

  1. Universal(∀) – The predicate is true for all values of x in the domain.
  2. Existential(∃) – The predicate is true for at least one x in the domain.

To know the scope of a quantifier in a formula, just make use of Parse trees. Two quantifiers are nested if one is within the scope of the other.

  • Example-1:

    ∀x ∃y (x+y=5)
    Here ‘∃’ (read as-there exists) and ‘∀’ (read as-for all) are quantifiers for variables x and y.
    The statement can be represented as-
    ∀x Q(x)
    Q(x) is ∃y P(x, y)  Q(x)-the predicate is a function of only x because the quantifier applies only to variable x.
    P(x, y) is (x + y = 5)

  • Example-2
    ∀x ∀y ((x> 0)∧(y< 0) → (xy< 0))
    (in English)
    For every real number x and y, if x is positive and y is negative, implies xy is negative.
    again,
    ∀x Q(x)
    where Q(x) is ∀y P(x, y)

Example to convert a statement into a nested quantifiers formula:
“There is a pupil in this lecture who has taken at least one course in Discrete Maths.”

A statement consists of quantifiers and predicates, split it into it's two constituents.
Here x and y are the pupil and the course and their respective quantifiers are attached in front of them.

Write it down as-

For some x pupil, there exist a course in Discrete Maths such that x has taken y.
∃x ∃y P (x, y), where P (x, y) is "x has taken y".

  • Theorem-1: The order of nested existential quantifiers can be changed without changing the meaning of the statement.
  • Theorem-2: The order of nested universal quantifiers can be changed without changing the meaning of the statement.
  • Example-3:
    Assume P(x, y) is xy=8,
    ∃x ∃y P(x, y) domain: integers
    Translates to-
    There is an integer x for which there is an integer y such that xy = 8,
    which is same as-
    There is a pair of integers x, y for which xy = 8.
    Meaning ∃x ∃y P(x, y) is equivalent to ∃y ∃x P(x, y).

    Similarly,

    Assume P(x, y) is (xy = yx).
    ∀x ∀y P(x, y) domain: real numbers
    Translates to-
    For all real numbers x, for all real numbers y, xy = yx or,
    For every pair of real numbers x, y, xy = yx.
    again ∀x ∀y P(x, y) is equivalent to ∀y ∀x P(x, y).

    However, when the nested quantifiers are not same, changing the order changes meaning of statement.

  • Example-4:

    Assume P(x, y, z) is (x + y = z).
    ∀x ∀y ∃z P(x, y, z) domain: real numbers
    Translates to-
    For all real numbers x and y there is a real number z such that x + y = z (True)
    ∀z ∃x ∃y P(x, y, z) domain: real numbers
    There is a real number z such that for all real numbers x and y, x + y = z (False)

Negation of nested quantifiers:

  • Theorem-3
    To negate a sequence of nested quantifiers, you change each quantifier in the sequence to the other type and then negate the predicate.
    So the negation of ∀x ∃y : P(x, y) is ∃x ∀y : ~P(x, y)
  • Example-5:
    “ ∃x at Cornell, x is at least 18 years old.”
    To disagree with this, you’re negating the statement by flipping the ∃ to ∀ and then
    negating the predicate:
    “ ∀x at Cornell such that x is not at least 18 years old.”

Previous Article
Next Article

Similar Reads

Predicates and Quantifiers - Set 2
Prerequisite : Predicates and Quantifiers Set 1 , Propositional EquivalencesLogical Equivalences involving Quantifiers Two logical statements involving predicates and quantifiers are considered equivalent if and only if they have the same truth value no matter which predicates are substituted into these statements irrespective of the domain used fo
5 min read
Predicates and Quantifiers
Prerequisite : Introduction to Propositional LogicIntroduction Consider the following example. We need to convert the following sentence into a mathematical statement using propositional logic only. "Every person who is 18 years or older, is eligible to vote." The above statement cannot be adequately expressed using only propositional logic. The pr
7 min read
Boolean Algebraic Theorems
Boolean algebraic theorems are the theorems that are used to change the form of a boolean expression. Sometimes these theorems are used to minimize the terms of the expression, and sometimes they are used just to transfer the expression from one form to another. There are boolean algebraic theorems in digital logic: 1. De Morgan's Theorem : DE Morg
3 min read
Even and Odd Permutations and their theorems
Even Permutations: A permutation is called even if it can be expressed as a product of even number of transpositions. Example-1: [Tex]\begin{pmatrix} 1 &amp; 2 &amp; 3\\ \end{pmatrix}[/Tex] [Tex]=\begin{pmatrix} 1 &amp; 2\\ \end{pmatrix} o \begin{pmatrix} 1 &amp; 3\\ \end{pmatrix} = \begin{pmatrix} 1 &amp; 3\\ \end{pmatrix} o \begin{pmatrix} 2
4 min read
Counting Boolean function with some variables
Prerequisite - Canonical and Standard Form In the below articles, we will see some varieties of problems with three variables. Statement-1: Counting the number of Boolean functions possible with two variables such that there are exactly two min terms. Explanation: As we already know that from two variables (a and b) four [Tex](2^2)[/Tex] numbers (0
5 min read
Some important mathematical proofs
Introduction : A proof is a valid argument that establishes the truth of a mathematical statement. A proof can use the hypothesis of the theorem, if any , axioms assumed to be true, and previously proven theorems. Using these ingredients and rules of inference, the final step of the proof establishes the truth of the statement being proved. But her
8 min read
Minimum common sum from K arrays after removing some part of their suffix
Given K (K &gt; 2) arrays of different sizes in a 2D list arr[][] where elements in each array are non-negative. Find the minimum common sum of K arrays after removing part of the suffix(possibly none) from each array. Examples: Input: K = 3, arr = {{5, 2, 4}, {1, 4, 1, 1}, {2, 3}}Output: 5Explanation: 1st array: [5, 5+2, 5+2+4], = {5, 7, 11} remov
7 min read
Mathematics | Probability
Probability refers to the extent of occurrence of events. When an event occurs like throwing a ball, picking a card from a deck, etc., then there must be some probability associated with that event. In terms of mathematics, probability refers to the ratio of wanted outcomes to the total number of possible outcomes. There are three approaches to the
9 min read
Mathematics | Covariance and Correlation
Covariance and Correlation are two mathematical concepts which are commonly used in the field of probability and statistics. Both concepts describe the relationship between two variables. Covariance - It is the relationship between a pair of random variables where change in one variable causes change in another variable. It can take any value betwe
2 min read
Mathematics | Walks, Trails, Paths, Cycles and Circuits in Graph
Prerequisite - Graph Theory Basics – Set 1 1. Walk - A walk is a sequence of vertices and edges of a graph i.e. if we traverse a graph then we get a walk. Edge and Vertices both can be repeated. Here, 1-&gt;2-&gt;3-&gt;4-&gt;2-&gt;1-&gt;3 is a walk. Walk can be open or closed. Open walk- A walk is said to be an open walk if the starting and ending
2 min read
Article Tags :
Practice Tags :