Suppose that sr2 is rational. Then it can be expressed as two integers with no common factors[0], p and q, as p/q.
sr2 = p/q (1)
Thus 2 = p^2/q^2 (2)
2q^2 = p^2 (3)
So p^2 is divisible by 2. Since 2 is prime, and 2 divides p*p, it must also divide p. So p = 2p'.Plugging this back into (3) we have
2q^2 = 4p'^2
Which implies q^2 = 2p'^2
Which means that q is also divisible by 2. Which means both p and q are divisible by 2 which violates are orginal assumption [0] that p and q shared no common factors, which can be assumed for any rational number, which means that sr2 cannot be rational.Compare the above with:
https://coq.inria.fr/distrib/8.2/contribs/QArithSternBrocot....
and you get an idea of the work that needs to be done to make proof assistants more ergonomic before wide adoption in mathematics. The benefit from ensuring no mistakes were made (I'm betting I messed up somewhere above; like not specifying that p and q are not zero) is dwarfed by the difficulty in expressing the core intuition and thus reusability of the proof.