Metamath Proof Explorer


Theorem qsqcl

Description: The square of a rational is rational. (Contributed by Stefan O'Rear, 15-Sep-2014)

Ref Expression
Assertion qsqcl A A 2

Proof

Step Hyp Ref Expression
1 qcn A A
2 sqval A A 2 = A A
3 1 2 syl A A 2 = A A
4 qmulcl A A A A
5 4 anidms A A A
6 3 5 eqeltrd A A 2