Couple of years ago, I saw a proof in Horn's "A Second Course in Linear Algebra" of the fact that if a matrix (over a field) has a right inverse then it is automatically invertible, essentially using the fact that $M_n(K)$ is Artinian (the same works in any Artinian ring, I expect). At the time I did not know much mathematics and I was rather impressed by this proof, as the ones I'd seen previously were always "inelegant" rank-related arguments, and as a consequence it got stuck in my head.
As such, I would like to ask you to share what proofs of this kind you know, if any. Ideally, they should be either elementary using "advanced ideas" (as the one I posted might arguably be) or short one/two/three-liners directly applying more advanced results/theories. When I say "basic facts", I mean ones at the level of a ~2nd-3rd year undergrad who's had linear algebra, the basic algebra sequence, and topology (this does not refer to me necessarily, rather the hypothetical audience).
Here is a proof for the basic fact that $\sqrt{2}$ is irrational. We use Fermat's Theorem:
Proof: If $\sqrt{2}$ were rational then $\sqrt{2},\sqrt{2}$,and $2$ would be the sides of a rational right triangle with area $1$. This is a contradiction to the fact that $1$ is not a congruent number.