Proof of irrationality of square roots without the fundamental theorem of arithmetic
Solution 1:
That's a perceptive observation. In fact the proof works in domains more general than UFDs, e.g. it follows from the monic case of the Rational Root Test, i.e. it works in all integrally-closed domains, which are far from being UFDs. But let's looks closer at the specific proof you give. It employs $\rm\:(m,n)=1\:\Rightarrow\:(m^2,n^2)=1.\:$ This follows from a special case of Euclid's Lemma, viz. $\rm\:(a,b) = 1 = (a,c)\:$ $\Rightarrow$ $\rm\:(a,bc)=1.\:$ Namely,$\rm\: a=m,\,b=n=c\:$ yields $\rm\:(m,n^2)=1.\:$ Finally $\rm\:a=n^2,\,b = m = c\:$ yields $\rm\:(m^2,n^2) = 1.$
This special case of Euclid's Lemma holds true in any GCD domain, in particular in any UFD or any Bezout domain. But it is weaker, i.e. there are domains satisfying this identity which are not GCD domains, i.e. where some elements have no gcd. In fact this is equivalent to Gauss' Lemma, that the product of primitive polynomials is primitive (or the special case for degree $1$ polynomials). Indeed if $\rm\:(m,n)=1\:$ then $\rm\:m\,x\pm n\:$ is primitive, thus so is $\rm\:(m\,x-n)\,(m\,x+n) = m^2\, x - n^2,\:$ hence $\rm\:(m^2,n^2) = 1.\:$ Below is an excerpt of my sci.math post on 2003/5/3 (see here or here) which shows the relationships between various domains closely related to GCD domains. If you wish to understand precisely the class of rings satisfying such properties then see the links in said post, and also google "root-closed" domains.
There has been much study of domains related to GCD domains. Below are some of them, in increasing order of generality.
PID: $\ \ $ every ideal is principal
Bezout: $\ \ $ every ideal (a,b) is principal
GCD: $\ \ $ (x,y) := gcd(x,y) exists for all x,y
SCH: $\ \ $ Schreier = pre-Schreier & integrally closed
SCH0: $\ \ $ pre-Schreier: a|bc $\, \Rightarrow\, $ a = BC, B|b, C|c
D: $\ \ $ (a,b) = 1 & a|bc $\,\Rightarrow\,$ a|c
PP: $\ \ $ (a,b) = (a,c) = 1 $\,\Rightarrow\,$ (a,bc) = 1
GL: $\ \ $ Gauss Lemma: product of primitive polys is primitive
GL2: $\ \ $ Gauss Lemma holds for all polys of degree 1
AP: $\ \ $ atoms are prime [AP = PP restricted to atomic a]
Since atomic & AP $\,\Rightarrow\,$ UFD, reversing the above UFD $\,\Rightarrow\,$ AP path shows that in atomic domains all these properties (except PID, Bezout) collapse, becoming all equivalent to UFD.
There are also many properties known equivalent to D, e.g.
[a] $\ \ $ (a,b) = 1 $\,\Rightarrow\,$ a|bc $\,\Rightarrow\,$ a|c
[b] $\ \ $ (a,b) = 1 $\,\Rightarrow\,$ a,b|c $\,\Rightarrow\,$ ab|c
[c] $\ \ $ (a,b) = 1 $\,\Rightarrow\,$ (a)/\(b) = (ab)
[d] $\ \ $ (a,b) exists $\,\Rightarrow\,$ lcm(a,b) exists
[e] $\ \ $ a + b X irreducible $\,\Rightarrow\,$ prime for b $\ne$ 0 (deg = 1)
Solution 2:
See my paper, Irrationality via well-ordering, Gazette of the Australian Mathematical Society 35 (2008) 121–125, available here, for proofs without unique factorization and some history.
Solution 3:
Bezout's identity says that two integers $m, n$ are relatively prime if and only if we can find integers $a, b$ such that $$am + bn = 1.$$
Squaring this identity gives $$a^2 m^2 + 2amn + b^2 n^2 = (a^2m - 2an)m + b^2 n^2 = 1$$
from which we conclude that $\gcd(m, n^2) = 1$. Squaring again gives $\gcd(m^2, n^2) = 1$.
Note that Bezout's identity is often used as a crucial step in the proof of unique factorization. It is very close to the claim that $\mathbb{Z}$ is a principal ideal domain, and it's straightforward to prove that any principal ideal domain has unique factorization.
More generally, in situations where greatest common divisors don't always exist, Bezout's identity is taken to be the definition of being relatively prime.
Solution 4:
There is an interesting fact, a "common refinement", which is related to unique factorization:
Suppose $ab=cd$. Then there exist $p,q,r,s$ so that $ab=pqrs=cd$, with $a=pq$, $b=rs$, $c=pr$, $d=qs$.