# Uniqueness quantification

In mathematics and logic, the term "uniqueness" refers to the property of being the one and only object satisfying a certain condition.[1] This sort of quantification is known as uniqueness quantification or unique existential quantification, and is often denoted with the symbols "!"[2] or "∃=1". For example, the formal statement

${\displaystyle \exists !n\in \mathbb {N} \,(n-2=4)}$

may be read as "there is exactly one natural number ${\displaystyle n}$ such that ${\displaystyle n-2=4}$".

## Proving uniqueness

The most common technique to prove the unique existence of a certain object is to first prove the existence of the entity with the desired condition, and then to prove that any two such entities (say, ${\displaystyle a}$ and ${\displaystyle b}$) must be equal to each other (i.e. ${\displaystyle a=b}$).

For example, to show that the equation ${\displaystyle x+2=5}$ has exactly one solution, one would first start by establishing that at least one solution exists, namely 3; the proof of this part is simply the verification that the equation below holds:

${\displaystyle 3+2=5.}$

To establish the uniqueness of the solution, one would then proceed by assuming that there are two solutions, namely ${\displaystyle a}$ and ${\displaystyle b}$, satisfying ${\displaystyle x+2=5}$. That is,

${\displaystyle a+2=5{\text{ and }}b+2=5.}$

By transitivity of equality,

${\displaystyle a+2=b+2.}$

Subtracting 2 from both sides then yields

${\displaystyle a=b.}$

which completes the proof that 3 is the unique solution of ${\displaystyle x+2=5}$.

In general, both existence (there exists at least one object) and uniqueness (there exists at most one object) must be proven, in order to conclude that there exists exactly one object satisfying a said condition.

An alternative way to prove uniqueness is to prove that there exists an object ${\displaystyle a}$ satisfying the condition, and then to prove that every object satisfying the condition must be equal to ${\displaystyle a}$.

## Reduction to ordinary existential and universal quantification

Uniqueness quantification can be expressed in terms of the existential and universal quantifiers of predicate logic, by defining the formula ${\displaystyle \exists !xP(x)}$ to mean

${\displaystyle \exists x\,(P(x)\,\wedge \neg \exists y\,(P(y)\wedge y\neq x)),}$

which is logically equivalent to

${\displaystyle \exists x\,(P(x)\wedge \forall y\,(P(y)\to y=x)).}$

An equivalent definition that separates the notions of existence and uniqueness into two clauses, at the expense of brevity, is

${\displaystyle \exists x\,P(x)\wedge \forall y\,\forall z\,[(P(y)\wedge P(z))\to y=z].}$

Another equivalent definition, which has the advantage of brevity, is

${\displaystyle \exists x\,\forall y\,(P(y)\leftrightarrow y=x).}$

## Generalizations

The uniqueness quantification can be generalized into counting quantification (or numerical quantification[3]). This includes both quantification of the form "exactly k objects exist such that …" as well as "infinitely many objects exist such that …" and "only finitely many objects exist such that…". The first of these forms is expressible using ordinary quantifiers, but the latter two cannot be expressed in ordinary first-order logic.[4]

Uniqueness depends on a notion of equality. Loosening this to some coarser equivalence relation yields quantification of uniqueness up to that equivalence (under this framework, regular uniqueness is "uniqueness up to equality"). For example, many concepts in category theory are defined to be unique up to isomorphism.

The exclamation mark(${\displaystyle !}$), can be also used as a separate quantification symbol, so ${\displaystyle (\exists !x.P(x))\leftrightarrow ((\exists x.P(x))\land (!x.P(x)))}$, where ${\displaystyle (!x.P(x)):=(\forall a\forall b.P(a)\land P(b)\rightarrow a=b)}$. E.g. it can be safely used in the replacement axiom, instead of ${\displaystyle \exists !}$.