Hardy essentially reproves a well-known property about the uniqueness of reduced (lowest-terms) fractions, viz. the Theorem below (sometimes called unique fractionization).
Theorem $\ $ For $\rm\:m,n,x,y\in \Bbb Z,\,$ if $\rm\ gcd(m,n) = 1,\:$ then $\rm\ \dfrac{x}y\, =\, \dfrac{m}n\ \Rightarrow\:\begin{array}{c}x\, =\, k\,m\\ \rm y\, =\, k\,n\end{array}\ \ $ for some $\rm\ k\in \Bbb Z$
Proof $\ $ By Euclid's Lemma, $\rm\ gcd(n,m)=1,\ nx = my\,\Rightarrow\,n\mid y,\:$ so $\rm\ \dfrac{x}m = \dfrac{y}n = k,\:$ for some $\rm\:k\in \Bbb Z.$
Remark $\ $ Hardy's result is the special case where $\rm\:gcd(x,y) = 1\:$ hence $\rm\:k = \pm1,\:$ i.e. two reduced fractions are essentially unique (we can force $\rm\:k = 1\:$ by requiring denominators to be positive).
The theorem can also be proved by Euclidean descent on denominators, and such a proof is often directly "inlined" in irrationality proofs (vs. being called by name). For an example of such, see the irrationality proofs by John Conway and Bill Dubuque in a prior thread here.
Note: The theorem is equivalent to Euclid's Lemma, since if $\rm\:gcd(n,m)=1\:$ and $\rm\:n\mid my,\:$ then $\rm\: nx = my,\:$ for some $\rm\:x\in \Bbb Z,\:$ so $\rm\:m/n =x/y\:$ so $\rm\:n\mid y\:$ by unique fractionization.
Unique fractionization $\!\iff\!$ unique factorization in domains like $\,\Bbb Z\,$ where ever nonunit $\ne 0$ has a factorization into atoms (irreducibles), since the primality of atoms is an immediate consequence of Euclid's Lemma or unique fractionization.