Metamath Proof Explorer


Theorem enqbreq2

Description: Equivalence relation for positive fractions in terms of positive integers. (Contributed by Mario Carneiro, 8-May-2013) (New usage is discouraged.)

Ref Expression
Assertion enqbreq2 A𝑵×𝑵B𝑵×𝑵A~𝑸B1stA𝑵2ndB=1stB𝑵2ndA

Proof

Step Hyp Ref Expression
1 1st2nd2 A𝑵×𝑵A=1stA2ndA
2 1st2nd2 B𝑵×𝑵B=1stB2ndB
3 1 2 breqan12d A𝑵×𝑵B𝑵×𝑵A~𝑸B1stA2ndA~𝑸1stB2ndB
4 xp1st A𝑵×𝑵1stA𝑵
5 xp2nd A𝑵×𝑵2ndA𝑵
6 4 5 jca A𝑵×𝑵1stA𝑵2ndA𝑵
7 xp1st B𝑵×𝑵1stB𝑵
8 xp2nd B𝑵×𝑵2ndB𝑵
9 7 8 jca B𝑵×𝑵1stB𝑵2ndB𝑵
10 enqbreq 1stA𝑵2ndA𝑵1stB𝑵2ndB𝑵1stA2ndA~𝑸1stB2ndB1stA𝑵2ndB=2ndA𝑵1stB
11 6 9 10 syl2an A𝑵×𝑵B𝑵×𝑵1stA2ndA~𝑸1stB2ndB1stA𝑵2ndB=2ndA𝑵1stB
12 mulcompi 2ndA𝑵1stB=1stB𝑵2ndA
13 12 eqeq2i 1stA𝑵2ndB=2ndA𝑵1stB1stA𝑵2ndB=1stB𝑵2ndA
14 13 a1i A𝑵×𝑵B𝑵×𝑵1stA𝑵2ndB=2ndA𝑵1stB1stA𝑵2ndB=1stB𝑵2ndA
15 3 11 14 3bitrd A𝑵×𝑵B𝑵×𝑵A~𝑸B1stA𝑵2ndB=1stB𝑵2ndA