Negation of Quantified Statements

Learn about the negation of logical statements involving quantifiers and the role of DeMorgan’s laws in negating quantified statements.

Negation of universal quantifier

Assume the statement xP(x)\forall x P(x), for some domain DD. This statement asserts that every element of DD has the property PP. By negation, we mean that it is not the case. If it is not the case that every element of DD has the property PP, then there must be at least one element in DD that does not have the property PP. That is,

¬(xDP(x))yD¬P(y).\neg (\forall_{x\in D} P(x)) \equiv \exists_{y \in D} \neg P(y).

Similarly, the negation has the same effect for more than one universal quantifier. Again, with a generic domain DD, assume the following statement:

xDyDzDP(x,y,z).\forall_{x\in D} \forall_{y\in D} \forall_{z\in D} P(x,y,z).

This statement asserts that for every selection of three elements a,b,a,b, and cc, from DD, the predicate P(a,b,c)P(a,b,c) is true. The negation of this statement means that it is not the case. This means there must be at least one selection of three elements e,f,e,f, and gg, such that P(e,f,g)P(e,f,g) is not true. We can state this fact as follows:

¬(xDyDzDP(x,y,z))xDyDzD¬P(x,y,z).\neg\left(\forall_{x\in D} \forall_{y\in D} \forall_{z\in D} P(x,y,z)\right) \equiv \exists_{x\in D} \exists_{y\in D} \exists_{z\in D} \neg P(x,y,z).

Let’s look at a few examples.

Examples

Let’s look at a few examples:


Assume the domain to be MM, which is the set of all mammals. That is,

M={xxM = \{x | x is a mammal.}\}


Make a predicate as follows:

  • P(x)P(x): xx has four legs.

Quantify this predicate to make the following statement:

  • xP(x)\forall x P(x): Every mammal has four legs.

The negation of this statement is as follows:

  • ¬(xP(x))\neg\left(\forall x P(x)\right): It is not the case that every mammal has four legs.

The logical equivalent of this statement is as follows:

  • x¬P(x)\exists x \neg P(x): There exists a mammal that does not have four legs.

Let’s make another predicate as follows:

  • F(x)F(x): xx can not fly.

Let’s universally quantify it for MM.

  • xF(x)\forall x F(x): No mammal can fly.

Negation of the above statement is as follows:

  • ¬(xF(x))\neg (\forall x F(x)): It is not the case that no mammal can fly.

The logical equivalent of this statement is as follows:

  • x¬F(x)\exists x \neg F(x): There is a mammal that can fly:

Negation of existential quantifier

Assume the statement xP(x)\exists x P(x) for some domain DD. This statement asserts that at least one element of DD has the property PP. By negation, we mean that it is not the case. If it is not the case that even one element of DD has the property PP, then that means no element in DD has the property PP. That is,

¬(xDP(x))yD¬P(y).\neg \left(\exists_{x\in D} P(x)\right) \equiv \forall_{y \in D} \neg P(y).

Similarly, the negation has the same effect for more than one existential quantifier. Again, with a generic domain DD, assume the following statement:

xDyDzDP(x,y,z).\exists_{x\in D} \exists_{y\in D} \exists_{z\in D} P(x,y,z).

This statement asserts that there is at least one selection of three elements a,b,a,b, and cc, from DD, such that predicate P(a,b,c)P(a,b,c) is true. The negation of this statement means that it is not the case. This means that there is no selection of three elements e,f,e,f, and gg, such that P(e,f,g)P(e,f,g) is true. We can state this fact as follows:

¬(xDyDzDP(x,y,z))xDyDzD¬P(x,y,z).\neg\left(\exists_{x\in D} \exists_{y\in D} \exists_{z\in D} P(x,y,z)\right) \equiv \forall_{x\in D} \forall_{y\in D} \forall_{z\in D} \neg P(x,y,z).

Examples

Let’s look at a few examples.


Assume the domain to be SS, the set of Mathematical Logic students.

  • S={xxS=\{x| x is a student of Mathematical Logic}.\}.

Make a predicate as follows:

  • P(x)P(x): xx can not learn Mathematical Logic.

Quantify this predicate to make the following statement:

  • xP(x)\exists x P(x): There exists a student who can not learn Mathematical Logic.

The negation of the above statement is as follows:

  • ¬(xP(x))\neg(\exists x P(x)): It is not the case that there exists a student who can not learn Mathematical Logic.

We can simplify the English translation as follows:

  • ¬(xP(x))\neg(\exists x P(x)): There is no student who can not learn Mathematical Logic.

The logical equivalent of the above statement is as follows:

  • x¬P(x)\forall x \neg P(x): Every student can learn Mathematical Logic.

Consider another domain set, DD, the set of all ducks.

  • D={xxD=\{x|x is a duck}.\}.

Let’s make a predicate as follows:

  • Q(y)Q(y): yy eats green leaves.

Quantify this predicate to make the following statement:

  • yQ(y)\exists y Q(y): At least one duck eats green leaves.

The negation of this statement is as follows:

  • ¬(yQ(y))\neg (\exists y Q(y)): It is not the case that at least one duck eats green leaves.

We can simplify the English translation as follows:

  • ¬(yQ(y))\neg (\exists y Q(y)): No duck eats green leaves.

The logical equivalent of this statement is as follows:

  • y¬Q(y)\forall y\neg Q(y): Ducks do not eat green leaves.

DeMorgan’s laws for negating quantified statements

Recall the generalized DeMorgan’s laws in propositional logic; it is as follows:

¬i=1nqii=1n¬qi.\neg \bigwedge_{i=1}^n q_i \equiv \bigvee_{i=1}^n \neg q_i.

and

¬i=1nqii=1n¬qi.\neg \bigvee_{i=1}^n q_i \equiv \bigwedge_{i=1}^n \neg q_i.

Consider, ss, a universally quantified predicate, PP, for a domain, DD, having nn elements.

s=xP(x).s = \forall x P(x).

Also, consider rr to be an existentially quantified predicate.

r=xP(x).r = \exists xP(x).

As the variable xx can have 11 to nn different values from the domain, we can write ss as follows.

xP(x)P(1)P(2)P(3)P(n).\forall x P(x) \equiv P(1)\land P(2)\land P(3)\land \ldots \land P(n).

That is,

s=xP(x)i=1nP(i).s = \forall x P(x) \equiv \bigwedge_{i=1}^n P(i).

Similarly,

xP(x)P(1)P(2)P(3)P(n).\exists x P(x) \equiv P(1)\lor P(2)\lor P(3)\lor \ldots \lor P(n).

That is,

r=xP(x)i=1nP(i).r = \exists x P(x) \equiv \bigvee_{i=1}^n P(i).

If we want to negate the universal quantifier, we can see DeMorgan’s law in action.

¬s¬i=1nP(i).\neg s \equiv \neg \bigwedge_{i=1}^n P(i).

Applying generalized DeMorgan’s law on the right-hand side of the above equivalence, we get.

¬si=1n¬P(i).\neg s \equiv \bigvee_{i=1}^n \neg P(i).

On the right-hand side of the above equivalence, we can see the existential quantifier in the form of a big disjunction. Therefore,

¬xP(x)x¬P(x).\neg \forall x P(x) \equiv \exists x \neg P(x).

Now, let’s see how DeMorgan’s laws help us to negate existential quantifiers.

¬r¬i=1nP(i).\neg r \equiv \neg \bigvee_{i=1}^n P(i).

Applying generalized DeMorgan’s law on the right-hand side of the above equivalence, we get.

¬ri=1n¬P(i).\neg r \equiv \bigwedge_{i=1}^n \neg P(i).

On the right-hand side of the above equivalence, we can see the universal quantifier in the form of a big conjunction. Therefore,

¬xP(x)x¬P(x).\neg \exists x P(x) \equiv \forall x \neg P(x).

We’ll summarize these results in the following table:

¬xP(x)\neg \forall x P(x) \equiv x¬P(x)\exists x \neg P(x)
¬xP(x)\neg \exists x P(x) \equiv x¬P(x)\forall x \neg P(x)