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

Theorem qredeu 13035
Description: Every rational number has a unique reduced form. (Contributed by Jeff Hankins, 29-Sep-2013.)
Assertion
Ref Expression
qredeu  |-  ( A  e.  QQ  ->  E! x  e.  ( ZZ  X.  NN ) ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) ) )
Distinct variable group:    x, A

Proof of Theorem qredeu
Dummy variables  n  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nnz 10236 . . . . . . . . . 10  |-  ( n  e.  NN  ->  n  e.  ZZ )
2 gcddvds 12943 . . . . . . . . . . 11  |-  ( ( z  e.  ZZ  /\  n  e.  ZZ )  ->  ( ( z  gcd  n )  ||  z  /\  ( z  gcd  n
)  ||  n )
)
32simpld 446 . . . . . . . . . 10  |-  ( ( z  e.  ZZ  /\  n  e.  ZZ )  ->  ( z  gcd  n
)  ||  z )
41, 3sylan2 461 . . . . . . . . 9  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( z  gcd  n
)  ||  z )
5 gcdcl 12945 . . . . . . . . . . . 12  |-  ( ( z  e.  ZZ  /\  n  e.  ZZ )  ->  ( z  gcd  n
)  e.  NN0 )
61, 5sylan2 461 . . . . . . . . . . 11  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( z  gcd  n
)  e.  NN0 )
76nn0zd 10306 . . . . . . . . . 10  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( z  gcd  n
)  e.  ZZ )
8 simpl 444 . . . . . . . . . . . 12  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  z  e.  ZZ )
91adantl 453 . . . . . . . . . . . 12  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  n  e.  ZZ )
10 nnne0 9965 . . . . . . . . . . . . . . 15  |-  ( n  e.  NN  ->  n  =/=  0 )
1110neneqd 2567 . . . . . . . . . . . . . 14  |-  ( n  e.  NN  ->  -.  n  =  0 )
1211intnand 883 . . . . . . . . . . . . 13  |-  ( n  e.  NN  ->  -.  ( z  =  0  /\  n  =  0 ) )
1312adantl 453 . . . . . . . . . . . 12  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  -.  ( z  =  0  /\  n  =  0 ) )
14 gcdn0cl 12942 . . . . . . . . . . . 12  |-  ( ( ( z  e.  ZZ  /\  n  e.  ZZ )  /\  -.  ( z  =  0  /\  n  =  0 ) )  ->  ( z  gcd  n )  e.  NN )
158, 9, 13, 14syl21anc 1183 . . . . . . . . . . 11  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( z  gcd  n
)  e.  NN )
16 nnne0 9965 . . . . . . . . . . 11  |-  ( ( z  gcd  n )  e.  NN  ->  (
z  gcd  n )  =/=  0 )
1715, 16syl 16 . . . . . . . . . 10  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( z  gcd  n
)  =/=  0 )
18 dvdsval2 12783 . . . . . . . . . 10  |-  ( ( ( z  gcd  n
)  e.  ZZ  /\  ( z  gcd  n
)  =/=  0  /\  z  e.  ZZ )  ->  ( ( z  gcd  n )  ||  z 
<->  ( z  /  (
z  gcd  n )
)  e.  ZZ ) )
197, 17, 8, 18syl3anc 1184 . . . . . . . . 9  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( z  gcd  n )  ||  z  <->  ( z  /  ( z  gcd  n ) )  e.  ZZ ) )
204, 19mpbid 202 . . . . . . . 8  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( z  /  (
z  gcd  n )
)  e.  ZZ )
21203adant3 977 . . . . . . 7  |-  ( ( z  e.  ZZ  /\  n  e.  NN  /\  A  =  ( z  /  n ) )  -> 
( z  /  (
z  gcd  n )
)  e.  ZZ )
222simprd 450 . . . . . . . . . . . 12  |-  ( ( z  e.  ZZ  /\  n  e.  ZZ )  ->  ( z  gcd  n
)  ||  n )
231, 22sylan2 461 . . . . . . . . . . 11  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( z  gcd  n
)  ||  n )
24 dvdsval2 12783 . . . . . . . . . . . 12  |-  ( ( ( z  gcd  n
)  e.  ZZ  /\  ( z  gcd  n
)  =/=  0  /\  n  e.  ZZ )  ->  ( ( z  gcd  n )  ||  n 
<->  ( n  /  (
z  gcd  n )
)  e.  ZZ ) )
257, 17, 9, 24syl3anc 1184 . . . . . . . . . . 11  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( z  gcd  n )  ||  n  <->  ( n  /  ( z  gcd  n ) )  e.  ZZ ) )
2623, 25mpbid 202 . . . . . . . . . 10  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( n  /  (
z  gcd  n )
)  e.  ZZ )
27 nnre 9940 . . . . . . . . . . . 12  |-  ( n  e.  NN  ->  n  e.  RR )
2827adantl 453 . . . . . . . . . . 11  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  n  e.  RR )
296nn0red 10208 . . . . . . . . . . 11  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( z  gcd  n
)  e.  RR )
30 nngt0 9962 . . . . . . . . . . . 12  |-  ( n  e.  NN  ->  0  <  n )
3130adantl 453 . . . . . . . . . . 11  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  0  <  n )
32 nngt0 9962 . . . . . . . . . . . 12  |-  ( ( z  gcd  n )  e.  NN  ->  0  <  ( z  gcd  n
) )
3315, 32syl 16 . . . . . . . . . . 11  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  0  <  ( z  gcd  n ) )
3428, 29, 31, 33divgt0d 9879 . . . . . . . . . 10  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  0  <  ( n  /  ( z  gcd  n ) ) )
3526, 34jca 519 . . . . . . . . 9  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( n  / 
( z  gcd  n
) )  e.  ZZ  /\  0  <  ( n  /  ( z  gcd  n ) ) ) )
36353adant3 977 . . . . . . . 8  |-  ( ( z  e.  ZZ  /\  n  e.  NN  /\  A  =  ( z  /  n ) )  -> 
( ( n  / 
( z  gcd  n
) )  e.  ZZ  /\  0  <  ( n  /  ( z  gcd  n ) ) ) )
37 elnnz 10225 . . . . . . . 8  |-  ( ( n  /  ( z  gcd  n ) )  e.  NN  <->  ( (
n  /  ( z  gcd  n ) )  e.  ZZ  /\  0  <  ( n  /  (
z  gcd  n )
) ) )
3836, 37sylibr 204 . . . . . . 7  |-  ( ( z  e.  ZZ  /\  n  e.  NN  /\  A  =  ( z  /  n ) )  -> 
( n  /  (
z  gcd  n )
)  e.  NN )
39 opelxpi 4851 . . . . . . 7  |-  ( ( ( z  /  (
z  gcd  n )
)  e.  ZZ  /\  ( n  /  (
z  gcd  n )
)  e.  NN )  ->  <. ( z  / 
( z  gcd  n
) ) ,  ( n  /  ( z  gcd  n ) )
>.  e.  ( ZZ  X.  NN ) )
4021, 38, 39syl2anc 643 . . . . . 6  |-  ( ( z  e.  ZZ  /\  n  e.  NN  /\  A  =  ( z  /  n ) )  ->  <. ( z  /  (
z  gcd  n )
) ,  ( n  /  ( z  gcd  n ) ) >.  e.  ( ZZ  X.  NN ) )
4120, 26gcdcld 12946 . . . . . . . . 9  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( z  / 
( z  gcd  n
) )  gcd  (
n  /  ( z  gcd  n ) ) )  e.  NN0 )
4241nn0cnd 10209 . . . . . . . 8  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( z  / 
( z  gcd  n
) )  gcd  (
n  /  ( z  gcd  n ) ) )  e.  CC )
43 ax-1cn 8982 . . . . . . . . 9  |-  1  e.  CC
4443a1i 11 . . . . . . . 8  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  1  e.  CC )
456nn0cnd 10209 . . . . . . . 8  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( z  gcd  n
)  e.  CC )
4645mulid1d 9039 . . . . . . . . 9  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( z  gcd  n )  x.  1 )  =  ( z  gcd  n ) )
47 zcn 10220 . . . . . . . . . . . 12  |-  ( z  e.  ZZ  ->  z  e.  CC )
4847adantr 452 . . . . . . . . . . 11  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  z  e.  CC )
4948, 45, 17divcan2d 9725 . . . . . . . . . 10  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( z  gcd  n )  x.  (
z  /  ( z  gcd  n ) ) )  =  z )
50 nncn 9941 . . . . . . . . . . . 12  |-  ( n  e.  NN  ->  n  e.  CC )
5150adantl 453 . . . . . . . . . . 11  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  n  e.  CC )
5251, 45, 17divcan2d 9725 . . . . . . . . . 10  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( z  gcd  n )  x.  (
n  /  ( z  gcd  n ) ) )  =  n )
5349, 52oveq12d 6039 . . . . . . . . 9  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( ( z  gcd  n )  x.  ( z  /  (
z  gcd  n )
) )  gcd  (
( z  gcd  n
)  x.  ( n  /  ( z  gcd  n ) ) ) )  =  ( z  gcd  n ) )
54 mulgcd 12974 . . . . . . . . . 10  |-  ( ( ( z  gcd  n
)  e.  NN0  /\  ( z  /  (
z  gcd  n )
)  e.  ZZ  /\  ( n  /  (
z  gcd  n )
)  e.  ZZ )  ->  ( ( ( z  gcd  n )  x.  ( z  / 
( z  gcd  n
) ) )  gcd  ( ( z  gcd  n )  x.  (
n  /  ( z  gcd  n ) ) ) )  =  ( ( z  gcd  n
)  x.  ( ( z  /  ( z  gcd  n ) )  gcd  ( n  / 
( z  gcd  n
) ) ) ) )
556, 20, 26, 54syl3anc 1184 . . . . . . . . 9  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( ( z  gcd  n )  x.  ( z  /  (
z  gcd  n )
) )  gcd  (
( z  gcd  n
)  x.  ( n  /  ( z  gcd  n ) ) ) )  =  ( ( z  gcd  n )  x.  ( ( z  /  ( z  gcd  n ) )  gcd  ( n  /  (
z  gcd  n )
) ) ) )
5646, 53, 553eqtr2rd 2427 . . . . . . . 8  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( z  gcd  n )  x.  (
( z  /  (
z  gcd  n )
)  gcd  ( n  /  ( z  gcd  n ) ) ) )  =  ( ( z  gcd  n )  x.  1 ) )
5742, 44, 45, 17, 56mulcanad 9590 . . . . . . 7  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( z  / 
( z  gcd  n
) )  gcd  (
n  /  ( z  gcd  n ) ) )  =  1 )
58573adant3 977 . . . . . 6  |-  ( ( z  e.  ZZ  /\  n  e.  NN  /\  A  =  ( z  /  n ) )  -> 
( ( z  / 
( z  gcd  n
) )  gcd  (
n  /  ( z  gcd  n ) ) )  =  1 )
5910adantl 453 . . . . . . . . 9  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  n  =/=  0 )
6048, 51, 45, 59, 17divcan7d 9751 . . . . . . . 8  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( ( z  / 
( z  gcd  n
) )  /  (
n  /  ( z  gcd  n ) ) )  =  ( z  /  n ) )
6160eqeq2d 2399 . . . . . . 7  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( A  =  ( ( z  /  (
z  gcd  n )
)  /  ( n  /  ( z  gcd  n ) ) )  <-> 
A  =  ( z  /  n ) ) )
6261biimp3ar 1284 . . . . . 6  |-  ( ( z  e.  ZZ  /\  n  e.  NN  /\  A  =  ( z  /  n ) )  ->  A  =  ( (
z  /  ( z  gcd  n ) )  /  ( n  / 
( z  gcd  n
) ) ) )
63 ovex 6046 . . . . . . . . . . 11  |-  ( z  /  ( z  gcd  n ) )  e. 
_V
64 ovex 6046 . . . . . . . . . . 11  |-  ( n  /  ( z  gcd  n ) )  e. 
_V
6563, 64op1std 6297 . . . . . . . . . 10  |-  ( x  =  <. ( z  / 
( z  gcd  n
) ) ,  ( n  /  ( z  gcd  n ) )
>.  ->  ( 1st `  x
)  =  ( z  /  ( z  gcd  n ) ) )
6663, 64op2ndd 6298 . . . . . . . . . 10  |-  ( x  =  <. ( z  / 
( z  gcd  n
) ) ,  ( n  /  ( z  gcd  n ) )
>.  ->  ( 2nd `  x
)  =  ( n  /  ( z  gcd  n ) ) )
6765, 66oveq12d 6039 . . . . . . . . 9  |-  ( x  =  <. ( z  / 
( z  gcd  n
) ) ,  ( n  /  ( z  gcd  n ) )
>.  ->  ( ( 1st `  x )  gcd  ( 2nd `  x ) )  =  ( ( z  /  ( z  gcd  n ) )  gcd  ( n  /  (
z  gcd  n )
) ) )
6867eqeq1d 2396 . . . . . . . 8  |-  ( x  =  <. ( z  / 
( z  gcd  n
) ) ,  ( n  /  ( z  gcd  n ) )
>.  ->  ( ( ( 1st `  x )  gcd  ( 2nd `  x
) )  =  1  <-> 
( ( z  / 
( z  gcd  n
) )  gcd  (
n  /  ( z  gcd  n ) ) )  =  1 ) )
6965, 66oveq12d 6039 . . . . . . . . 9  |-  ( x  =  <. ( z  / 
( z  gcd  n
) ) ,  ( n  /  ( z  gcd  n ) )
>.  ->  ( ( 1st `  x )  /  ( 2nd `  x ) )  =  ( ( z  /  ( z  gcd  n ) )  / 
( n  /  (
z  gcd  n )
) ) )
7069eqeq2d 2399 . . . . . . . 8  |-  ( x  =  <. ( z  / 
( z  gcd  n
) ) ,  ( n  /  ( z  gcd  n ) )
>.  ->  ( A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) )  <->  A  =  ( ( z  / 
( z  gcd  n
) )  /  (
n  /  ( z  gcd  n ) ) ) ) )
7168, 70anbi12d 692 . . . . . . 7  |-  ( x  =  <. ( z  / 
( z  gcd  n
) ) ,  ( n  /  ( z  gcd  n ) )
>.  ->  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  <-> 
( ( ( z  /  ( z  gcd  n ) )  gcd  ( n  /  (
z  gcd  n )
) )  =  1  /\  A  =  ( ( z  /  (
z  gcd  n )
)  /  ( n  /  ( z  gcd  n ) ) ) ) ) )
7271rspcev 2996 . . . . . 6  |-  ( (
<. ( z  /  (
z  gcd  n )
) ,  ( n  /  ( z  gcd  n ) ) >.  e.  ( ZZ  X.  NN )  /\  ( ( ( z  /  ( z  gcd  n ) )  gcd  ( n  / 
( z  gcd  n
) ) )  =  1  /\  A  =  ( ( z  / 
( z  gcd  n
) )  /  (
n  /  ( z  gcd  n ) ) ) ) )  ->  E. x  e.  ( ZZ  X.  NN ) ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) ) )
7340, 58, 62, 72syl12anc 1182 . . . . 5  |-  ( ( z  e.  ZZ  /\  n  e.  NN  /\  A  =  ( z  /  n ) )  ->  E. x  e.  ( ZZ  X.  NN ) ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) ) )
74 elxp6 6318 . . . . . . 7  |-  ( x  e.  ( ZZ  X.  NN )  <->  ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) ) )
75 elxp6 6318 . . . . . . 7  |-  ( y  e.  ( ZZ  X.  NN )  <->  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )
76 simprl 733 . . . . . . . . . . . 12  |-  ( ( x  =  <. ( 1st `  x ) ,  ( 2nd `  x
) >.  /\  ( ( 1st `  x )  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  ->  ( 1st `  x )  e.  ZZ )
7776ad2antrr 707 . . . . . . . . . . 11  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  ( 1st `  x )  e.  ZZ )
78 simprr 734 . . . . . . . . . . . 12  |-  ( ( x  =  <. ( 1st `  x ) ,  ( 2nd `  x
) >.  /\  ( ( 1st `  x )  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  ->  ( 2nd `  x )  e.  NN )
7978ad2antrr 707 . . . . . . . . . . 11  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  ( 2nd `  x )  e.  NN )
80 simprll 739 . . . . . . . . . . 11  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  (
( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1 )
81 simprl 733 . . . . . . . . . . . 12  |-  ( ( y  =  <. ( 1st `  y ) ,  ( 2nd `  y
) >.  /\  ( ( 1st `  y )  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) )  ->  ( 1st `  y )  e.  ZZ )
8281ad2antlr 708 . . . . . . . . . . 11  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  ( 1st `  y )  e.  ZZ )
83 simprr 734 . . . . . . . . . . . 12  |-  ( ( y  =  <. ( 1st `  y ) ,  ( 2nd `  y
) >.  /\  ( ( 1st `  y )  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) )  ->  ( 2nd `  y )  e.  NN )
8483ad2antlr 708 . . . . . . . . . . 11  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  ( 2nd `  y )  e.  NN )
85 simprrl 741 . . . . . . . . . . 11  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  (
( 1st `  y
)  gcd  ( 2nd `  y ) )  =  1 )
86 simprlr 740 . . . . . . . . . . . 12  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  A  =  ( ( 1st `  x )  /  ( 2nd `  x ) ) )
87 simprrr 742 . . . . . . . . . . . 12  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  A  =  ( ( 1st `  y )  /  ( 2nd `  y ) ) )
8886, 87eqtr3d 2422 . . . . . . . . . . 11  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  (
( 1st `  x
)  /  ( 2nd `  x ) )  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) )
89 qredeq 13034 . . . . . . . . . . 11  |-  ( ( ( ( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN  /\  (
( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1 )  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN  /\  (
( 1st `  y
)  gcd  ( 2nd `  y ) )  =  1 )  /\  (
( 1st `  x
)  /  ( 2nd `  x ) )  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) )  ->  ( ( 1st `  x )  =  ( 1st `  y )  /\  ( 2nd `  x
)  =  ( 2nd `  y ) ) )
9077, 79, 80, 82, 84, 85, 88, 89syl331anc 1209 . . . . . . . . . 10  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  (
( 1st `  x
)  =  ( 1st `  y )  /\  ( 2nd `  x )  =  ( 2nd `  y
) ) )
91 fvex 5683 . . . . . . . . . . 11  |-  ( 1st `  x )  e.  _V
92 fvex 5683 . . . . . . . . . . 11  |-  ( 2nd `  x )  e.  _V
9391, 92opth 4377 . . . . . . . . . 10  |-  ( <.
( 1st `  x
) ,  ( 2nd `  x ) >.  =  <. ( 1st `  y ) ,  ( 2nd `  y
) >. 
<->  ( ( 1st `  x
)  =  ( 1st `  y )  /\  ( 2nd `  x )  =  ( 2nd `  y
) ) )
9490, 93sylibr 204 . . . . . . . . 9  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  <. ( 1st `  x ) ,  ( 2nd `  x
) >.  =  <. ( 1st `  y ) ,  ( 2nd `  y
) >. )
95 simplll 735 . . . . . . . . 9  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  x  =  <. ( 1st `  x
) ,  ( 2nd `  x ) >. )
96 simplrl 737 . . . . . . . . 9  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  y  =  <. ( 1st `  y
) ,  ( 2nd `  y ) >. )
9794, 95, 963eqtr4d 2430 . . . . . . . 8  |-  ( ( ( ( x  = 
<. ( 1st `  x
) ,  ( 2nd `  x ) >.  /\  (
( 1st `  x
)  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  ( y  = 
<. ( 1st `  y
) ,  ( 2nd `  y ) >.  /\  (
( 1st `  y
)  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  /\  ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )  ->  x  =  y )
9897ex 424 . . . . . . 7  |-  ( ( ( x  =  <. ( 1st `  x ) ,  ( 2nd `  x
) >.  /\  ( ( 1st `  x )  e.  ZZ  /\  ( 2nd `  x )  e.  NN ) )  /\  (
y  =  <. ( 1st `  y ) ,  ( 2nd `  y
) >.  /\  ( ( 1st `  y )  e.  ZZ  /\  ( 2nd `  y )  e.  NN ) ) )  -> 
( ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) )  ->  x  =  y ) )
9974, 75, 98syl2anb 466 . . . . . 6  |-  ( ( x  e.  ( ZZ 
X.  NN )  /\  y  e.  ( ZZ  X.  NN ) )  -> 
( ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) )  ->  x  =  y ) )
10099rgen2a 2716 . . . . 5  |-  A. x  e.  ( ZZ  X.  NN ) A. y  e.  ( ZZ  X.  NN ) ( ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) )  ->  x  =  y )
10173, 100jctir 525 . . . 4  |-  ( ( z  e.  ZZ  /\  n  e.  NN  /\  A  =  ( z  /  n ) )  -> 
( E. x  e.  ( ZZ  X.  NN ) ( ( ( 1st `  x )  gcd  ( 2nd `  x
) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  A. x  e.  ( ZZ  X.  NN ) A. y  e.  ( ZZ  X.  NN ) ( ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) )  ->  x  =  y ) ) )
1021013expia 1155 . . 3  |-  ( ( z  e.  ZZ  /\  n  e.  NN )  ->  ( A  =  ( z  /  n )  ->  ( E. x  e.  ( ZZ  X.  NN ) ( ( ( 1st `  x )  gcd  ( 2nd `  x
) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  A. x  e.  ( ZZ  X.  NN ) A. y  e.  ( ZZ  X.  NN ) ( ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) )  ->  x  =  y ) ) ) )
103102rexlimivv 2779 . 2  |-  ( E. z  e.  ZZ  E. n  e.  NN  A  =  ( z  /  n )  ->  ( E. x  e.  ( ZZ  X.  NN ) ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  A. x  e.  ( ZZ  X.  NN ) A. y  e.  ( ZZ  X.  NN ) ( ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) )  ->  x  =  y ) ) )
104 elq 10509 . 2  |-  ( A  e.  QQ  <->  E. z  e.  ZZ  E. n  e.  NN  A  =  ( z  /  n ) )
105 fveq2 5669 . . . . . 6  |-  ( x  =  y  ->  ( 1st `  x )  =  ( 1st `  y
) )
106 fveq2 5669 . . . . . 6  |-  ( x  =  y  ->  ( 2nd `  x )  =  ( 2nd `  y
) )
107105, 106oveq12d 6039 . . . . 5  |-  ( x  =  y  ->  (
( 1st `  x
)  gcd  ( 2nd `  x ) )  =  ( ( 1st `  y
)  gcd  ( 2nd `  y ) ) )
108107eqeq1d 2396 . . . 4  |-  ( x  =  y  ->  (
( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  <->  ( ( 1st `  y )  gcd  ( 2nd `  y ) )  =  1 ) )
109105, 106oveq12d 6039 . . . . 5  |-  ( x  =  y  ->  (
( 1st `  x
)  /  ( 2nd `  x ) )  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) )
110109eqeq2d 2399 . . . 4  |-  ( x  =  y  ->  ( A  =  ( ( 1st `  x )  / 
( 2nd `  x
) )  <->  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) )
111108, 110anbi12d 692 . . 3  |-  ( x  =  y  ->  (
( ( ( 1st `  x )  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x )  /  ( 2nd `  x ) ) )  <->  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) ) )
112111reu4 3072 . 2  |-  ( E! x  e.  ( ZZ 
X.  NN ) ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  <-> 
( E. x  e.  ( ZZ  X.  NN ) ( ( ( 1st `  x )  gcd  ( 2nd `  x
) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  A. x  e.  ( ZZ  X.  NN ) A. y  e.  ( ZZ  X.  NN ) ( ( ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) )  /\  ( ( ( 1st `  y )  gcd  ( 2nd `  y
) )  =  1  /\  A  =  ( ( 1st `  y
)  /  ( 2nd `  y ) ) ) )  ->  x  =  y ) ) )
113103, 104, 1123imtr4i 258 1  |-  ( A  e.  QQ  ->  E! x  e.  ( ZZ  X.  NN ) ( ( ( 1st `  x
)  gcd  ( 2nd `  x ) )  =  1  /\  A  =  ( ( 1st `  x
)  /  ( 2nd `  x ) ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 177    /\ wa 359    /\ w3a 936    = wceq 1649    e. wcel 1717    =/= wne 2551   A.wral 2650   E.wrex 2651   E!wreu 2652   <.cop 3761   class class class wbr 4154    X. cxp 4817   ` cfv 5395  (class class class)co 6021   1stc1st 6287   2ndc2nd 6288   CCcc 8922   RRcr 8923   0cc0 8924   1c1 8925    x. cmul 8929    < clt 9054    / cdiv 9610   NNcn 9933   NN0cn0 10154   ZZcz 10215   QQcq 10507    || cdivides 12780    gcd cgcd 12934
This theorem is referenced by:  qnumdencl  13059  qnumdenbi  13064
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 2369  ax-sep 4272  ax-nul 4280  ax-pow 4319  ax-pr 4345  ax-un 4642  ax-cnex 8980  ax-resscn 8981  ax-1cn 8982  ax-icn 8983  ax-addcl 8984  ax-addrcl 8985  ax-mulcl 8986  ax-mulrcl 8987  ax-mulcom 8988  ax-addass 8989  ax-mulass 8990  ax-distr 8991  ax-i2m1 8992  ax-1ne0 8993  ax-1rid 8994  ax-rnegex 8995  ax-rrecex 8996  ax-cnre 8997  ax-pre-lttri 8998  ax-pre-lttrn 8999  ax-pre-ltadd 9000  ax-pre-mulgt0 9001  ax-pre-sup 9002
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 2243  df-mo 2244  df-clab 2375  df-cleq 2381  df-clel 2384  df-nfc 2513  df-ne 2553  df-nel 2554  df-ral 2655  df-rex 2656  df-reu 2657  df-rmo 2658  df-rab 2659  df-v 2902  df-sbc 3106  df-csb 3196  df-dif 3267  df-un 3269  df-in 3271  df-ss 3278  df-pss 3280  df-nul 3573  df-if 3684  df-pw 3745  df-sn 3764  df-pr 3765  df-tp 3766  df-op 3767  df-uni 3959  df-iun 4038  df-br 4155  df-opab 4209  df-mpt 4210  df-tr 4245  df-eprel 4436  df-id 4440  df-po 4445  df-so 4446  df-fr 4483  df-we 4485  df-ord 4526  df-on 4527  df-lim 4528  df-suc 4529  df-om 4787  df-xp 4825  df-rel 4826  df-cnv 4827  df-co 4828  df-dm 4829  df-rn 4830  df-res 4831  df-ima 4832  df-iota 5359  df-fun 5397  df-fn 5398  df-f 5399  df-f1 5400  df-fo 5401  df-f1o 5402  df-fv 5403  df-ov 6024  df-oprab 6025  df-mpt2 6026  df-1st 6289  df-2nd 6290  df-riota 6486  df-recs 6570  df-rdg 6605  df-er 6842  df-en 7047  df-dom 7048  df-sdom 7049  df-sup 7382  df-pnf 9056  df-mnf 9057  df-xr 9058  df-ltxr 9059  df-le 9060  df-sub 9226  df-neg 9227  df-div 9611  df-nn 9934  df-2 9991  df-3 9992  df-n0 10155  df-z 10216  df-uz 10422  df-q 10508  df-rp 10546  df-fl 11130  df-mod 11179  df-seq 11252  df-exp 11311  df-cj 11832  df-re 11833  df-im 11834  df-sqr 11968  df-abs 11969  df-dvds 12781  df-gcd 12935
  Copyright terms: Public domain W3C validator