MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  qredeq Unicode version

Theorem qredeq 13026
Description: Two equal reduced fractions have the same numerator and denominator. (Contributed by Jeff Hankins, 29-Sep-2013.)
Assertion
Ref Expression
qredeq  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  /\  ( M  /  N
)  =  ( P  /  Q ) )  ->  ( M  =  P  /\  N  =  Q ) )

Proof of Theorem qredeq
StepHypRef Expression
1 zcn 10212 . . . . . . . . . 10  |-  ( M  e.  ZZ  ->  M  e.  CC )
21adantr 452 . . . . . . . . 9  |-  ( ( M  e.  ZZ  /\  N  e.  NN )  ->  M  e.  CC )
3 nncn 9933 . . . . . . . . . 10  |-  ( N  e.  NN  ->  N  e.  CC )
43adantl 453 . . . . . . . . 9  |-  ( ( M  e.  ZZ  /\  N  e.  NN )  ->  N  e.  CC )
5 nnne0 9957 . . . . . . . . . 10  |-  ( N  e.  NN  ->  N  =/=  0 )
65adantl 453 . . . . . . . . 9  |-  ( ( M  e.  ZZ  /\  N  e.  NN )  ->  N  =/=  0 )
72, 4, 6divcld 9715 . . . . . . . 8  |-  ( ( M  e.  ZZ  /\  N  e.  NN )  ->  ( M  /  N
)  e.  CC )
873adant3 977 . . . . . . 7  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  ( M  /  N )  e.  CC )
98adantr 452 . . . . . 6  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( M  /  N )  e.  CC )
10 zcn 10212 . . . . . . . . . 10  |-  ( P  e.  ZZ  ->  P  e.  CC )
1110adantr 452 . . . . . . . . 9  |-  ( ( P  e.  ZZ  /\  Q  e.  NN )  ->  P  e.  CC )
12 nncn 9933 . . . . . . . . . 10  |-  ( Q  e.  NN  ->  Q  e.  CC )
1312adantl 453 . . . . . . . . 9  |-  ( ( P  e.  ZZ  /\  Q  e.  NN )  ->  Q  e.  CC )
14 nnne0 9957 . . . . . . . . . 10  |-  ( Q  e.  NN  ->  Q  =/=  0 )
1514adantl 453 . . . . . . . . 9  |-  ( ( P  e.  ZZ  /\  Q  e.  NN )  ->  Q  =/=  0 )
1611, 13, 15divcld 9715 . . . . . . . 8  |-  ( ( P  e.  ZZ  /\  Q  e.  NN )  ->  ( P  /  Q
)  e.  CC )
17163adant3 977 . . . . . . 7  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  ( P  /  Q )  e.  CC )
1817adantl 453 . . . . . 6  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( P  /  Q )  e.  CC )
1933ad2ant2 979 . . . . . . 7  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  N  e.  CC )
2019adantr 452 . . . . . 6  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  N  e.  CC )
2153ad2ant2 979 . . . . . . 7  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  N  =/=  0 )
2221adantr 452 . . . . . 6  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  N  =/=  0
)
239, 18, 20, 22mulcand 9580 . . . . 5  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( N  x.  ( M  /  N ) )  =  ( N  x.  ( P  /  Q ) )  <-> 
( M  /  N
)  =  ( P  /  Q ) ) )
242, 4, 6divcan2d 9717 . . . . . . . 8  |-  ( ( M  e.  ZZ  /\  N  e.  NN )  ->  ( N  x.  ( M  /  N ) )  =  M )
25243adant3 977 . . . . . . 7  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  ( N  x.  ( M  /  N ) )  =  M )
2625adantr 452 . . . . . 6  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( N  x.  ( M  /  N
) )  =  M )
2726eqeq1d 2388 . . . . 5  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( N  x.  ( M  /  N ) )  =  ( N  x.  ( P  /  Q ) )  <-> 
M  =  ( N  x.  ( P  /  Q ) ) ) )
2823, 27bitr3d 247 . . . 4  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( M  /  N )  =  ( P  /  Q
)  <->  M  =  ( N  x.  ( P  /  Q ) ) ) )
2913ad2ant1 978 . . . . . . 7  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  M  e.  CC )
3029adantr 452 . . . . . 6  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  M  e.  CC )
31 mulcl 9000 . . . . . . 7  |-  ( ( N  e.  CC  /\  ( P  /  Q
)  e.  CC )  ->  ( N  x.  ( P  /  Q
) )  e.  CC )
3219, 17, 31syl2an 464 . . . . . 6  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( N  x.  ( P  /  Q
) )  e.  CC )
33123ad2ant2 979 . . . . . . 7  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  Q  e.  CC )
3433adantl 453 . . . . . 6  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  Q  e.  CC )
35143ad2ant2 979 . . . . . . 7  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  Q  =/=  0 )
3635adantl 453 . . . . . 6  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  Q  =/=  0
)
3730, 32, 34, 36mulcan2d 9581 . . . . 5  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( M  x.  Q )  =  ( ( N  x.  ( P  /  Q
) )  x.  Q
)  <->  M  =  ( N  x.  ( P  /  Q ) ) ) )
3820, 18, 34mulassd 9037 . . . . . . 7  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( N  x.  ( P  /  Q ) )  x.  Q )  =  ( N  x.  ( ( P  /  Q )  x.  Q ) ) )
3911, 13, 15divcan1d 9716 . . . . . . . . . 10  |-  ( ( P  e.  ZZ  /\  Q  e.  NN )  ->  ( ( P  /  Q )  x.  Q
)  =  P )
40393adant3 977 . . . . . . . . 9  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  (
( P  /  Q
)  x.  Q )  =  P )
4140adantl 453 . . . . . . . 8  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( P  /  Q )  x.  Q )  =  P )
4241oveq2d 6029 . . . . . . 7  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( N  x.  ( ( P  /  Q )  x.  Q
) )  =  ( N  x.  P ) )
4338, 42eqtrd 2412 . . . . . 6  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( N  x.  ( P  /  Q ) )  x.  Q )  =  ( N  x.  P ) )
4443eqeq2d 2391 . . . . 5  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( M  x.  Q )  =  ( ( N  x.  ( P  /  Q
) )  x.  Q
)  <->  ( M  x.  Q )  =  ( N  x.  P ) ) )
4537, 44bitr3d 247 . . . 4  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( M  =  ( N  x.  ( P  /  Q ) )  <-> 
( M  x.  Q
)  =  ( N  x.  P ) ) )
4628, 45bitrd 245 . . 3  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( M  /  N )  =  ( P  /  Q
)  <->  ( M  x.  Q )  =  ( N  x.  P ) ) )
47 nnz 10228 . . . . . . . . . 10  |-  ( N  e.  NN  ->  N  e.  ZZ )
48473ad2ant2 979 . . . . . . . . 9  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  N  e.  ZZ )
49 simp2 958 . . . . . . . . 9  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  Q  e.  NN )
5048, 49anim12i 550 . . . . . . . 8  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( N  e.  ZZ  /\  Q  e.  NN ) )
5150adantr 452 . . . . . . 7  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( N  e.  ZZ  /\  Q  e.  NN ) )
5248adantr 452 . . . . . . . . . 10  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  N  e.  ZZ )
53 simpl1 960 . . . . . . . . . 10  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  M  e.  ZZ )
54 nnz 10228 . . . . . . . . . . . 12  |-  ( Q  e.  NN  ->  Q  e.  ZZ )
55543ad2ant2 979 . . . . . . . . . . 11  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  Q  e.  ZZ )
5655adantl 453 . . . . . . . . . 10  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  Q  e.  ZZ )
5752, 53, 563jca 1134 . . . . . . . . 9  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( N  e.  ZZ  /\  M  e.  ZZ  /\  Q  e.  ZZ ) )
5857adantr 452 . . . . . . . 8  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( N  e.  ZZ  /\  M  e.  ZZ  /\  Q  e.  ZZ ) )
59 simp1 957 . . . . . . . . . . . 12  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  P  e.  ZZ )
60 dvdsmul1 12791 . . . . . . . . . . . 12  |-  ( ( N  e.  ZZ  /\  P  e.  ZZ )  ->  N  ||  ( N  x.  P ) )
6148, 59, 60syl2an 464 . . . . . . . . . . 11  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  N  ||  ( N  x.  P )
)
6261adantr 452 . . . . . . . . . 10  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  N  ||  ( N  x.  P )
)
63 simpr 448 . . . . . . . . . 10  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( M  x.  Q )  =  ( N  x.  P ) )
6462, 63breqtrrd 4172 . . . . . . . . 9  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  N  ||  ( M  x.  Q )
)
65 gcdcom 12940 . . . . . . . . . . . . . 14  |-  ( ( N  e.  ZZ  /\  M  e.  ZZ )  ->  ( N  gcd  M
)  =  ( M  gcd  N ) )
6647, 65sylan 458 . . . . . . . . . . . . 13  |-  ( ( N  e.  NN  /\  M  e.  ZZ )  ->  ( N  gcd  M
)  =  ( M  gcd  N ) )
6766ancoms 440 . . . . . . . . . . . 12  |-  ( ( M  e.  ZZ  /\  N  e.  NN )  ->  ( N  gcd  M
)  =  ( M  gcd  N ) )
68673adant3 977 . . . . . . . . . . 11  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  ( N  gcd  M )  =  ( M  gcd  N
) )
69 simp3 959 . . . . . . . . . . 11  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  ( M  gcd  N )  =  1 )
7068, 69eqtrd 2412 . . . . . . . . . 10  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  ( N  gcd  M )  =  1 )
7170ad2antrr 707 . . . . . . . . 9  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( N  gcd  M )  =  1 )
7264, 71jca 519 . . . . . . . 8  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( N  ||  ( M  x.  Q
)  /\  ( N  gcd  M )  =  1 ) )
73 coprmdvds 13022 . . . . . . . 8  |-  ( ( N  e.  ZZ  /\  M  e.  ZZ  /\  Q  e.  ZZ )  ->  (
( N  ||  ( M  x.  Q )  /\  ( N  gcd  M
)  =  1 )  ->  N  ||  Q
) )
7458, 72, 73sylc 58 . . . . . . 7  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  N  ||  Q
)
75 dvdsle 12815 . . . . . . 7  |-  ( ( N  e.  ZZ  /\  Q  e.  NN )  ->  ( N  ||  Q  ->  N  <_  Q )
)
7651, 74, 75sylc 58 . . . . . 6  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  N  <_  Q
)
77 simp2 958 . . . . . . . . . 10  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  N  e.  NN )
7855, 77anim12i 550 . . . . . . . . 9  |-  ( ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  /\  ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 ) )  ->  ( Q  e.  ZZ  /\  N  e.  NN ) )
7978ancoms 440 . . . . . . . 8  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( Q  e.  ZZ  /\  N  e.  NN ) )
8079adantr 452 . . . . . . 7  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( Q  e.  ZZ  /\  N  e.  NN ) )
81 simpr1 963 . . . . . . . . . 10  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  P  e.  ZZ )
8256, 81, 523jca 1134 . . . . . . . . 9  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( Q  e.  ZZ  /\  P  e.  ZZ  /\  N  e.  ZZ ) )
8382adantr 452 . . . . . . . 8  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( Q  e.  ZZ  /\  P  e.  ZZ  /\  N  e.  ZZ ) )
84 simp1 957 . . . . . . . . . . . 12  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  M  e.  ZZ )
85 dvdsmul2 12792 . . . . . . . . . . . 12  |-  ( ( M  e.  ZZ  /\  Q  e.  ZZ )  ->  Q  ||  ( M  x.  Q ) )
8684, 55, 85syl2an 464 . . . . . . . . . . 11  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  Q  ||  ( M  x.  Q )
)
8786adantr 452 . . . . . . . . . 10  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  Q  ||  ( M  x.  Q )
)
88103ad2ant1 978 . . . . . . . . . . . . 13  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  P  e.  CC )
89 mulcom 9002 . . . . . . . . . . . . 13  |-  ( ( N  e.  CC  /\  P  e.  CC )  ->  ( N  x.  P
)  =  ( P  x.  N ) )
9019, 88, 89syl2an 464 . . . . . . . . . . . 12  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( N  x.  P )  =  ( P  x.  N ) )
9190adantr 452 . . . . . . . . . . 11  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( N  x.  P )  =  ( P  x.  N ) )
9263, 91eqtrd 2412 . . . . . . . . . 10  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( M  x.  Q )  =  ( P  x.  N ) )
9387, 92breqtrd 4170 . . . . . . . . 9  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  Q  ||  ( P  x.  N )
)
94 gcdcom 12940 . . . . . . . . . . . . . 14  |-  ( ( Q  e.  ZZ  /\  P  e.  ZZ )  ->  ( Q  gcd  P
)  =  ( P  gcd  Q ) )
9554, 94sylan 458 . . . . . . . . . . . . 13  |-  ( ( Q  e.  NN  /\  P  e.  ZZ )  ->  ( Q  gcd  P
)  =  ( P  gcd  Q ) )
9695ancoms 440 . . . . . . . . . . . 12  |-  ( ( P  e.  ZZ  /\  Q  e.  NN )  ->  ( Q  gcd  P
)  =  ( P  gcd  Q ) )
97963adant3 977 . . . . . . . . . . 11  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  ( Q  gcd  P )  =  ( P  gcd  Q
) )
98 simp3 959 . . . . . . . . . . 11  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  ( P  gcd  Q )  =  1 )
9997, 98eqtrd 2412 . . . . . . . . . 10  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  ( Q  gcd  P )  =  1 )
10099ad2antlr 708 . . . . . . . . 9  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( Q  gcd  P )  =  1 )
10193, 100jca 519 . . . . . . . 8  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( Q  ||  ( P  x.  N
)  /\  ( Q  gcd  P )  =  1 ) )
102 coprmdvds 13022 . . . . . . . 8  |-  ( ( Q  e.  ZZ  /\  P  e.  ZZ  /\  N  e.  ZZ )  ->  (
( Q  ||  ( P  x.  N )  /\  ( Q  gcd  P
)  =  1 )  ->  Q  ||  N
) )
10383, 101, 102sylc 58 . . . . . . 7  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  Q  ||  N
)
104 dvdsle 12815 . . . . . . 7  |-  ( ( Q  e.  ZZ  /\  N  e.  NN )  ->  ( Q  ||  N  ->  Q  <_  N )
)
10580, 103, 104sylc 58 . . . . . 6  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  Q  <_  N
)
106 nnre 9932 . . . . . . . . 9  |-  ( N  e.  NN  ->  N  e.  RR )
1071063ad2ant2 979 . . . . . . . 8  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  N  e.  RR )
108107ad2antrr 707 . . . . . . 7  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  N  e.  RR )
109 nnre 9932 . . . . . . . . 9  |-  ( Q  e.  NN  ->  Q  e.  RR )
1101093ad2ant2 979 . . . . . . . 8  |-  ( ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  ->  Q  e.  RR )
111110ad2antlr 708 . . . . . . 7  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  Q  e.  RR )
112108, 111letri3d 9140 . . . . . 6  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( N  =  Q  <->  ( N  <_  Q  /\  Q  <_  N
) ) )
11376, 105, 112mpbir2and 889 . . . . 5  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  N  =  Q )
114 oveq2 6021 . . . . . . . . . 10  |-  ( N  =  Q  ->  ( M  x.  N )  =  ( M  x.  Q ) )
115114eqeq1d 2388 . . . . . . . . 9  |-  ( N  =  Q  ->  (
( M  x.  N
)  =  ( N  x.  P )  <->  ( M  x.  Q )  =  ( N  x.  P ) ) )
116115anbi2d 685 . . . . . . . 8  |-  ( N  =  Q  ->  (
( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  N
)  =  ( N  x.  P ) )  <-> 
( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) ) ) )
117 mulcom 9002 . . . . . . . . . . . . . 14  |-  ( ( M  e.  CC  /\  N  e.  CC )  ->  ( M  x.  N
)  =  ( N  x.  M ) )
1181, 3, 117syl2an 464 . . . . . . . . . . . . 13  |-  ( ( M  e.  ZZ  /\  N  e.  NN )  ->  ( M  x.  N
)  =  ( N  x.  M ) )
1191183adant3 977 . . . . . . . . . . . 12  |-  ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  ->  ( M  x.  N )  =  ( N  x.  M ) )
120119adantr 452 . . . . . . . . . . 11  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( M  x.  N )  =  ( N  x.  M ) )
121120eqeq1d 2388 . . . . . . . . . 10  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( M  x.  N )  =  ( N  x.  P
)  <->  ( N  x.  M )  =  ( N  x.  P ) ) )
12288adantl 453 . . . . . . . . . . 11  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  P  e.  CC )
12330, 122, 20, 22mulcand 9580 . . . . . . . . . 10  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( N  x.  M )  =  ( N  x.  P
)  <->  M  =  P
) )
124121, 123bitrd 245 . . . . . . . . 9  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( M  x.  N )  =  ( N  x.  P
)  <->  M  =  P
) )
125124biimpa 471 . . . . . . . 8  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  N
)  =  ( N  x.  P ) )  ->  M  =  P )
126116, 125syl6bir 221 . . . . . . 7  |-  ( N  =  Q  ->  (
( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  M  =  P ) )
127126com12 29 . . . . . 6  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( N  =  Q  ->  M  =  P ) )
128127ancrd 538 . . . . 5  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( N  =  Q  ->  ( M  =  P  /\  N  =  Q ) ) )
129113, 128mpd 15 . . . 4  |-  ( ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  /\  ( M  x.  Q
)  =  ( N  x.  P ) )  ->  ( M  =  P  /\  N  =  Q ) )
130129ex 424 . . 3  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( M  x.  Q )  =  ( N  x.  P
)  ->  ( M  =  P  /\  N  =  Q ) ) )
13146, 130sylbid 207 . 2  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 ) )  ->  ( ( M  /  N )  =  ( P  /  Q
)  ->  ( M  =  P  /\  N  =  Q ) ) )
1321313impia 1150 1  |-  ( ( ( M  e.  ZZ  /\  N  e.  NN  /\  ( M  gcd  N )  =  1 )  /\  ( P  e.  ZZ  /\  Q  e.  NN  /\  ( P  gcd  Q )  =  1 )  /\  ( M  /  N
)  =  ( P  /  Q ) )  ->  ( M  =  P  /\  N  =  Q ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    /\ w3a 936    = wceq 1649    e. wcel 1717    =/= wne 2543   class class class wbr 4146  (class class class)co 6013   CCcc 8914   RRcr 8915   0cc0 8916   1c1 8917    x. cmul 8921    <_ cle 9047    / cdiv 9602   NNcn 9925   ZZcz 10207    || cdivides 12772    gcd cgcd 12926
This theorem is referenced by:  qredeu  13027
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1661  ax-8 1682  ax-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2361  ax-sep 4264  ax-nul 4272  ax-pow 4311  ax-pr 4337  ax-un 4634  ax-cnex 8972  ax-resscn 8973  ax-1cn 8974  ax-icn 8975  ax-addcl 8976  ax-addrcl 8977  ax-mulcl 8978  ax-mulrcl 8979  ax-mulcom 8980  ax-addass 8981  ax-mulass 8982  ax-distr 8983  ax-i2m1 8984  ax-1ne0 8985  ax-1rid 8986  ax-rnegex 8987  ax-rrecex 8988  ax-cnre 8989  ax-pre-lttri 8990  ax-pre-lttrn 8991  ax-pre-ltadd 8992  ax-pre-mulgt0 8993  ax-pre-sup 8994
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2235  df-mo 2236  df-clab 2367  df-cleq 2373  df-clel 2376  df-nfc 2505  df-ne 2545  df-nel 2546  df-ral 2647  df-rex 2648  df-reu 2649  df-rmo 2650  df-rab 2651  df-v 2894  df-sbc 3098  df-csb 3188  df-dif 3259  df-un 3261  df-in 3263  df-ss 3270  df-pss 3272  df-nul 3565  df-if 3676  df-pw 3737  df-sn 3756  df-pr 3757  df-tp 3758  df-op 3759  df-uni 3951  df-iun 4030  df-br 4147  df-opab 4201  df-mpt 4202  df-tr 4237  df-eprel 4428  df-id 4432  df-po 4437  df-so 4438  df-fr 4475  df-we 4477  df-ord 4518  df-on 4519  df-lim 4520  df-suc 4521  df-om 4779  df-xp 4817  df-rel 4818  df-cnv 4819  df-co 4820  df-dm 4821  df-rn 4822  df-res 4823  df-ima 4824  df-iota 5351  df-fun 5389  df-fn 5390  df-f 5391  df-f1 5392  df-fo 5393  df-f1o 5394  df-fv 5395  df-ov 6016  df-oprab 6017  df-mpt2 6018  df-2nd 6282  df-riota 6478  df-recs 6562  df-rdg 6597  df-er 6834  df-en 7039  df-dom 7040  df-sdom 7041  df-sup 7374  df-pnf 9048  df-mnf 9049  df-xr 9050  df-ltxr 9051  df-le 9052  df-sub 9218  df-neg 9219  df-div 9603  df-nn 9926  df-2 9983  df-3 9984  df-n0 10147  df-z 10208  df-uz 10414  df-rp 10538  df-fl 11122  df-mod 11171  df-seq 11244  df-exp 11303  df-cj 11824  df-re 11825  df-im 11826  df-sqr 11960  df-abs 11961  df-dvds 12773  df-gcd 12927
  Copyright terms: Public domain W3C validator