Understanding universal quantification [01A5]
- September 22, 2026
- Marcelo Fiore, Jon Sterling
Another important kind of complex statement used in mathematics is the universally quantified statement. To understand these, we must graps how to prove universal quantified statements as goals, and make good use of them as assumptions.
A universally quantified statement takes the following form:
For all individuals x of [some type], the [some predicate] holds of x.
The type of individual being quantified over is important; in discrete mathematics, one is often quantifying over integers or over vertices of a given graph, or even over all finite automata.
Anatomy of a universal quantification [01A6]
- September 22, 2026
- Jon Sterling
A universal quantification can be written symbolically as follows:
\forall x:\tau \mathpunct {.} P(x)In the above, x is a placeholder variable that is bound by the quantifier \forall : if the symbol x already referred something outside the quantifier, the x on the inside is understood to take precedence over it. This is like variable shadowing in your favorite programming language. Because x is just a placeholder, the two statements \forall x:\tau \mathpunct {.} P(x) and \forall y:\tau \mathpunct {.} P(y) are literally identical.
\tau refers to the type of thing being quantified over. For example, it might be the set of integers \mathbb {Z}.
For this universal quantification to actually be a mathematical statement, it must be the case that P(x) is the sort of thing you can say about things of type \tau . If that fails, the expression \forall x:\tau \mathpunct {.} P(x) fails to mean anything at all: it is “not even wrong”. It is not the sort of thing that can be right or wrong.
So, for example, \forall x:\mathbb {Z}\mathpunct {.} x > 0 is a meaningful (but false) statement, whereas \forall x:\mathbb {Z}\mathpunct {.} \pi \in x would be a meaningless expression because integers don’t contain things; they are just integers. (It is a statement of formal set theory, however: remember that set theory is not the same thing as mathematics, but rather a tool for modelling certain aspects of mathematical reasoning that was developed in a bygone era when doubt had been cast on the validity of mathematical reasoning.)
Example Universal quantification in the wild [01A7]
- September 22, 2026
- Marcelo Fiore, Jon Sterling
We have already seen several examples of universal quantification.
- Closure of oddness under multiplication
- Square root reflects rationality
- Squaring preserves and reflects evenness
- Parity in terms of congruence
In fact, any statement that begins with something like “Let x be an integer” or “Fix a real number x” is a universally quantified statement. We have been implicitly using the rules of universal quantification without even knowing it; now we will make those rules explicit.
How to prove a universally quantified statement [01A8]
- September 22, 2026
- Marcelo Fiore, Jon Sterling
To prove a goal of the form \forall x:\tau \mathpunct {.} P(x) we let x stand for an individual of type \tau and then we try to prove P(x).
Previously, said that in the course of a proof you should keep track of your current assumptions and your current goals at all times. We have been a little sloppy about the differences between assumptions take the form of statements (like Q) and assumptions that introduce placeholders standing for new individuals (like x:\mathbb {Z}). From now on, you should keep track of both kinds of assumption.
How to use a universally quantified statement [01AA]
- September 22, 2026
- Jon Sterling
If you have an assumption like \forall x:\tau \mathpunct {.} P(x), then you may pick (yourself!) some individual t of type \tau and conclude P(t).
This is called universal instantiation.
If your goal was some Q that is not literaly of the form P(t) for some t:\tau , have no fear: if you know which t you are going to want to use, then you may work as follows:
To prove Q assuming \forall x:\tau \mathpunct {.} P(x), having chosen some t:\tau , it suffices to prove that P(t) implies Q.
Now we will see an example that involves proving and using universally quantified statements.
Proposition Interaction between congruence and multiplication [01A9]
- September 22, 2026
- Marcelo Fiore, Jon Sterling
Fix a positive integer m. For integers a and b, we have that a \equiv b\mod m if and only if for all positive integers n we have that n\cdot a \equiv n\cdot b \mod n\cdot m.
Exegesis.
- September 22, 2026
- Marcelo Fiore, Jon Sterling
First of all, it is instructive to understand how the informal mathematical language of the proposition’s statement maps onto the more formal notions of universal quantification and bi-implication that we are learning.
- “Fix a positive integer m…” is a universal quantification over the collection of positive integers, and might be written \forall m:\mathbb {Z}^+.
- “For all integers a and b…” This is a pair of universal quantifications over the integers, and might be written \forall a,b:\mathbb {Z}.
- “…we have a\equiv b\mod m if and only if for all positive integers n we have n\cdot a\equiv n\cdot b \mod n\cdot m” is a bi-implication between a simple statement and a universally quantified statement, and it can be written like so: (a\equiv b\mod m) \Longleftrightarrow \forall n:\mathbb {Z}^+\mathpunct {.} n\cdot a \equiv n\cdot b \mod n\cdot m
So, in whole, the entire proposition may be written symbolically as follows:
\forall m:\mathbb {Z}^+\mathpunct {.} \forall a,b:\mathbb {Z}\mathpunct {.} (a\equiv b\mod m) \Longleftrightarrow \forall n:\mathbb {Z}^+\mathpunct {.} n\cdot a \equiv n\cdot b \mod n\cdot mProof.
- September 22, 2026
- Marcelo Fiore, Jon Sterling
Let m be a positive integer, and let a and b be arbitrary integers. We prove the bi-implication in either direction below..
- In the forward direction, we assume a\equiv b\mod m and fix positive n to show that n\cdot a \equiv n\cdot b \mod n\cdot m\text {.} Unravelling the definition of congruence, this is to say that n\cdot m \mid (n\cdot a - n\cdot b) or equivalently n\cdot m \mid n\cdot (a - b)\text {.} By our assumption a\equiv b \mod m we have some integer k such that m\cdot k = a - b, and so our goal may be rewritten as n\cdot m \mid n \cdot m \cdot k, which is immediate.
- In the backward direction, we assume that for all positive n we have n\cdot a \equiv n\cdot b \mod n\cdot m, and we must show that a\equiv b\mod m. We instantiate our assumption by choosing n to be 1, from which we may deduce 1\cdot a \equiv 1\cdot b \mod 1\cdot n, which is equivalent to our goal by the unit law of multiplication.