Universal quantification | |
Type: | Quantifier |
Field: | Mathematical logic |
Statement: | \forallxP(x) P(x) x |
Symbolic Statement: | \forallxP(x) |
In mathematical logic, a universal quantification is a type of quantifier, a logical constant which is interpreted as "given any", "for all", or "for any". It expresses that a predicate can be satisfied by every member of a domain of discourse. In other words, it is the predication of a property or relation to every member of the domain. It asserts that a predicate within the scope of a universal quantifier is true of every value of a predicate variable.
It is usually denoted by the turned A (∀) logical operator symbol, which, when used together with a predicate variable, is called a universal quantifier ("", "", or sometimes by "" alone). Universal quantification is distinct from existential quantification ("there exists"), which only asserts that the property or relation holds for at least one member of the domain.
Quantification in general is covered in the article on quantification (logic). The universal quantifier is encoded as in Unicode, and as \forall
in LaTeX and related formula editors.
Suppose it is given that
2·0 = 0 + 0, and 2·1 = 1 + 1, and, etc.This would seem to be a logical conjunction because of the repeated use of "and". However, the "etc." cannot be interpreted as a conjunction in formal logic. Instead, the statement must be rephrased:
For all natural numbers n, one has 2·n = n + n.This is a single statement using universal quantification.
This statement can be said to be more precise than the original one. While the "etc." informally includes natural numbers, and nothing more, this was not rigorously given. In the universal quantification, on the other hand, the natural numbers are mentioned explicitly.
This particular example is true, because any natural number could be substituted for n and the statement "2·n = n + n" would be true. In contrast,
For all natural numbers n, one has 2·n > 2 + nis false, because if n is substituted with, for instance, 1, the statement "2·1 > 2 + 1" is false. It is immaterial that "2·n > 2 + n" is true for most natural numbers n: even the existence of a single counterexample is enough to prove the universal quantification false.
On the other hand,for all composite numbers n, one has 2·n > 2 + nis true, because none of the counterexamples are composite numbers. This indicates the importance of the domain of discourse, which specifies which values n can take.[1] In particular, note that if the domain of discourse is restricted to consist only of those objects that satisfy a certain predicate, then for universal quantification this requires a logical conditional. For example,
For all composite numbers n, one has 2·n > 2 + nis logically equivalent to
For all natural numbers n, if n is composite, then 2·n > 2 + n.Here the "if ... then" construction indicates the logical conditional.
In symbolic logic, the universal quantifier symbol
\forall
\exists
For example, if P(n) is the predicate "2·n > 2 + n" and N is the set of natural numbers, then
\foralln\inN P(n)
"for all natural numbers n, one has 2·n > 2 + n".
Similarly, if Q(n) is the predicate "n is composite", then
\foralln\inN l(Q(n) → P(n)r)
"for all natural numbers n, if n is composite, then ".
Several variations in the notation for quantification (which apply to all forms) can be found in the Quantifier article.
The negation of a universally quantified function is obtained by changing the universal quantifier into an existential quantifier and negating the quantified formula. That is,
lnot\forallx P(x) isequivalentto \existsx lnotP(x)
lnot
For example, if is the propositional function " is married", then, for the set of all living human beings, the universal quantification
Given any living person, that person is marriedis written
\forallx\inXP(x)
This statement is false. Truthfully, it is stated that
It is not the case that, given any living person, that person is marriedor, symbolically:
lnot \forallx\inXP(x)
If the function is not true for every element of, then there must be at least one element for which the statement is false. That is, the negation of
\forallx\inXP(x)
\existsx\inXlnotP(x)
It is erroneous to confuse "all persons are not married" (i.e. "there exists no person who is married") with "not all persons are married" (i.e. "there exists a person who is not married"):
lnot \existsx\inXP(x)\equiv \forallx\inXlnotP(x)\not\equiv lnot \forallx\inXP(x)\equiv \existsx\inXlnotP(x)
The universal (and existential) quantifier moves unchanged across the logical connectives ∧, ∨, →, and ↚, as long as the other operand is not affected;[3] that is:
\begin{align} P(x)\land(\exists{y}{\in}YQ(y))&\equiv \exists{y}{\in}Y(P(x)\landQ(y))\\ P(x)\lor(\exists{y}{\in}YQ(y))&\equiv \exists{y}{\in}Y(P(x)\lorQ(y)),&providedthatY ≠ \emptyset\\ P(x)\to(\exists{y}{\in}YQ(y))&\equiv \exists{y}{\in}Y(P(x)\toQ(y)),&providedthatY ≠ \emptyset\\ P(x)\nleftarrow(\exists{y}{\in}YQ(y))&\equiv \exists{y}{\in}Y(P(x)\nleftarrowQ(y))\\ P(x)\land(\forall{y}{\in}YQ(y))&\equiv \forall{y}{\in}Y(P(x)\landQ(y)),&providedthatY ≠ \emptyset\\ P(x)\lor(\forall{y}{\in}YQ(y))&\equiv \forall{y}{\in}Y(P(x)\lorQ(y))\\ P(x)\to(\forall{y}{\in}YQ(y))&\equiv \forall{y}{\in}Y(P(x)\toQ(y))\\ P(x)\nleftarrow(\forall{y}{\in}YQ(y))&\equiv \forall{y}{\in}Y(P(x)\nleftarrowQ(y)),&providedthatY ≠ \emptyset \end{align}
Conversely, for the logical connectives ↑, ↓, ↛, and ←, the quantifiers flip:
\begin{align} P(x)\uparrow(\exists{y}{\in}YQ(y))&\equiv \forall{y}{\in}Y(P(x)\uparrowQ(y))\\ P(x)\downarrow(\exists{y}{\in}YQ(y))&\equiv \forall{y}{\in}Y(P(x)\downarrowQ(y)),&providedthatY ≠ \emptyset\\ P(x)\nrightarrow(\exists{y}{\in}YQ(y))&\equiv \forall{y}{\in}Y(P(x)\nrightarrowQ(y)),&providedthatY ≠ \emptyset\\ P(x)\gets(\exists{y}{\in}YQ(y))&\equiv \forall{y}{\in}Y(P(x)\getsQ(y))\\ P(x)\uparrow(\forall{y}{\in}YQ(y))&\equiv \exists{y}{\in}Y(P(x)\uparrowQ(y)),&providedthatY ≠ \emptyset\\ P(x)\downarrow(\forall{y}{\in}YQ(y))&\equiv \exists{y}{\in}Y(P(x)\downarrowQ(y))\\ P(x)\nrightarrow(\forall{y}{\in}YQ(y))&\equiv \exists{y}{\in}Y(P(x)\nrightarrowQ(y))\\ P(x)\gets(\forall{y}{\in}YQ(y))&\equiv \exists{y}{\in}Y(P(x)\getsQ(y)),&providedthatY ≠ \emptyset\\ \end{align}
A rule of inference is a rule justifying a logical step from hypothesis to conclusion. There are several rules of inference which utilize the universal quantifier.
Universal instantiation concludes that, if the propositional function is known to be universally true, then it must be true for any arbitrary element of the universe of discourse. Symbolically, this is represented as
\forall{x}{\in}XP(x)\toP(c)
where c is a completely arbitrary element of the universe of discourse.
Universal generalization concludes the propositional function must be universally true if it is true for any arbitrary element of the universe of discourse. Symbolically, for an arbitrary c,
P(c)\to \forall{x}{\in}XP(x).
The element c must be completely arbitrary; else, the logic does not follow: if c is not arbitrary, and is instead a specific element of the universe of discourse, then P(c) only implies an existential quantification of the propositional function.
By convention, the formula
\forall{x}{\in}\emptysetP(x)
The universal closure of a formula φ is the formula with no free variables obtained by adding a universal quantifier for every free variable in φ. For example, the universal closure of
P(y)\land\existsxQ(x,z)
\forally\forallz(P(y)\land\existsxQ(x,z))
In category theory and the theory of elementary topoi, the universal quantifier can be understood as the right adjoint of a functor between power sets, the inverse image functor of a function between sets; likewise, the existential quantifier is the left adjoint.[4]
For a set
X
l{P}X
f:X\toY
X
Y
f*:l{P}Y\tol{P}X
\existsf
\forallf
That is,
\existsf\colonl{P}X\tol{P}Y
S\subsetX
\existsfS\subsetY
\existsfS=\{y\inY | \existsx\inX. f(x)=y \land x\inS\},
y
S
f
\forallf\colonl{P}X\tol{P}Y
S\subsetX
\forallfS\subsetY
\forallfS=\{y\inY | \forallx\inX. f(x)=y \implies x\inS\},
y
f
S
The more familiar form of the quantifiers as used in first-order logic is obtained by taking the function f to be the unique function
!:X\to1
l{P}(1)=\{T,F\}
S(x)
\begin{array}{rl}l{P}(!)\colonl{P}(1)&\tol{P}(X)\ T&\mapstoX\ F&\mapsto\{\}\end{array}
\exists!S=\existsx.S(x),
S
\forall!S=\forallx.S(x),
The universal and existential quantifiers given above generalize to the presheaf category.
y
P(x)