Metamath Proof Explorer


Theorem qsubcl

Description: Closure of subtraction of rationals. (Contributed by NM, 2-Aug-2004)

Ref Expression
Assertion qsubcl A B A B

Proof

Step Hyp Ref Expression
1 qcn A A
2 qcn B B
3 negsub A B A + B = A B
4 1 2 3 syl2an A B A + B = A B
5 qnegcl B B
6 qaddcl A B A + B
7 5 6 sylan2 A B A + B
8 4 7 eqeltrrd A B A B