Localization of Ring is Unique

Theorem
Let $A$ be a commutative ring with unity.

Let $S \subseteq A$ be a multiplicatively closed subset.

Let $(A_S,\iota)$, $(\tilde A_S,\tilde \iota)$ both satisfy the definition of the localisation of $A$ at $S$.

Then there is a canonical isomorphism $\phi : A_S \to \tilde A_S$.

Proof
By the definition of localisation, there are unique homomorphisms $g : A_S \to \tilde A_S$, $h : \tilde A_S \to A_S$ such that $h \circ \iota = \tilde \iota$ and $ g\circ \tilde \iota = \iota$.

Therefore,


 * $\tilde \iota = h\circ \iota = h \circ (g \circ \tilde \iota) = (h \circ g) \circ \tilde \iota$

The identity also satisfies this equality (that is, $\tilde \iota = (h \circ g) \circ \tilde \iota$).

Therefore by the uniqueness of $h$ and $g$ we have $h \circ g = \operatorname{id}_{\tilde A_S}$.

Similarly we have that $g \circ h = \operatorname{id}_{A_S}$.

Therefore by Bijection iff Left and Right Inverse $g = \phi$ is a bijective homomorphism, i.e. an isomorphism.