Users' Mathboxes Mathbox for Stefan O'Rear < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  pellexlem3 Unicode version

Theorem pellexlem3 26916
Description: Lemma for pellex 26920. To each good rational approximation of  ( sqr `  D
), there exists a near-solution. (Contributed by Stefan O'Rear, 14-Sep-2014.)
Assertion
Ref Expression
pellexlem3  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) }  ~<_  { <. y ,  z >.  |  ( ( y  e.  NN  /\  z  e.  NN )  /\  ( ( ( y ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( y ^
2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  <  (
1  +  ( 2  x.  ( sqr `  D
) ) ) ) ) } )
Distinct variable group:    x, D, y, z

Proof of Theorem pellexlem3
Dummy variables  a 
b are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nnex 9752 . . . 4  |-  NN  e.  _V
21, 1xpex 4801 . . 3  |-  ( NN 
X.  NN )  e. 
_V
3 opabssxp 4762 . . 3  |-  { <. y ,  z >.  |  ( ( y  e.  NN  /\  z  e.  NN )  /\  ( ( ( y ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( y ^
2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  <  (
1  +  ( 2  x.  ( sqr `  D
) ) ) ) ) }  C_  ( NN  X.  NN )
42, 3ssexi 4159 . 2  |-  { <. y ,  z >.  |  ( ( y  e.  NN  /\  z  e.  NN )  /\  ( ( ( y ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( y ^
2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  <  (
1  +  ( 2  x.  ( sqr `  D
) ) ) ) ) }  e.  _V
5 simprl 732 . . . . . . . 8  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  a  e.  QQ )
6 simprrl 740 . . . . . . . 8  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  0  <  a )
7 qgt0numnn 12822 . . . . . . . 8  |-  ( ( a  e.  QQ  /\  0  <  a )  -> 
(numer `  a )  e.  NN )
85, 6, 7syl2anc 642 . . . . . . 7  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  (numer `  a )  e.  NN )
9 qdencl 12812 . . . . . . . 8  |-  ( a  e.  QQ  ->  (denom `  a )  e.  NN )
105, 9syl 15 . . . . . . 7  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  (denom `  a )  e.  NN )
118, 10jca 518 . . . . . 6  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  (
(numer `  a )  e.  NN  /\  (denom `  a )  e.  NN ) )
12 simpll 730 . . . . . . 7  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  D  e.  NN )
13 simplr 731 . . . . . . 7  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  -.  ( sqr `  D )  e.  QQ )
14 pellexlem1 26914 . . . . . . 7  |-  ( ( ( D  e.  NN  /\  (numer `  a )  e.  NN  /\  (denom `  a )  e.  NN )  /\  -.  ( sqr `  D )  e.  QQ )  ->  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) )  =/=  0 )
1512, 8, 10, 13, 14syl31anc 1185 . . . . . 6  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  (
( (numer `  a
) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) )  =/=  0 )
16 simprrr 741 . . . . . . . 8  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) )
17 qeqnumdivden 12817 . . . . . . . . . . . 12  |-  ( a  e.  QQ  ->  a  =  ( (numer `  a )  /  (denom `  a ) ) )
1817oveq1d 5873 . . . . . . . . . . 11  |-  ( a  e.  QQ  ->  (
a  -  ( sqr `  D ) )  =  ( ( (numer `  a )  /  (denom `  a ) )  -  ( sqr `  D ) ) )
1918fveq2d 5529 . . . . . . . . . 10  |-  ( a  e.  QQ  ->  ( abs `  ( a  -  ( sqr `  D ) ) )  =  ( abs `  ( ( (numer `  a )  /  (denom `  a )
)  -  ( sqr `  D ) ) ) )
2019breq1d 4033 . . . . . . . . 9  |-  ( a  e.  QQ  ->  (
( abs `  (
a  -  ( sqr `  D ) ) )  <  ( (denom `  a ) ^ -u 2
)  <->  ( abs `  (
( (numer `  a
)  /  (denom `  a ) )  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) )
215, 20syl 15 . . . . . . . 8  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  (
( abs `  (
a  -  ( sqr `  D ) ) )  <  ( (denom `  a ) ^ -u 2
)  <->  ( abs `  (
( (numer `  a
)  /  (denom `  a ) )  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) )
2216, 21mpbid 201 . . . . . . 7  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  ( abs `  ( ( (numer `  a )  /  (denom `  a ) )  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) )
23 pellexlem2 26915 . . . . . . 7  |-  ( ( ( D  e.  NN  /\  (numer `  a )  e.  NN  /\  (denom `  a )  e.  NN )  /\  ( abs `  (
( (numer `  a
)  /  (denom `  a ) )  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) )  ->  ( abs `  (
( (numer `  a
) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) ) )  <  (
1  +  ( 2  x.  ( sqr `  D
) ) ) )
2412, 8, 10, 22, 23syl31anc 1185 . . . . . 6  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D ) ) ) )
2511, 15, 24jca32 521 . . . . 5  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )  ->  (
( (numer `  a
)  e.  NN  /\  (denom `  a )  e.  NN )  /\  (
( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D ) ) ) ) ) )
2625ex 423 . . . 4  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  ( ( a  e.  QQ  /\  (
0  <  a  /\  ( abs `  ( a  -  ( sqr `  D
) ) )  < 
( (denom `  a
) ^ -u 2
) ) )  -> 
( ( (numer `  a )  e.  NN  /\  (denom `  a )  e.  NN )  /\  (
( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D ) ) ) ) ) ) )
27 breq2 4027 . . . . . 6  |-  ( x  =  a  ->  (
0  <  x  <->  0  <  a ) )
28 oveq1 5865 . . . . . . . 8  |-  ( x  =  a  ->  (
x  -  ( sqr `  D ) )  =  ( a  -  ( sqr `  D ) ) )
2928fveq2d 5529 . . . . . . 7  |-  ( x  =  a  ->  ( abs `  ( x  -  ( sqr `  D ) ) )  =  ( abs `  ( a  -  ( sqr `  D
) ) ) )
30 fveq2 5525 . . . . . . . 8  |-  ( x  =  a  ->  (denom `  x )  =  (denom `  a ) )
3130oveq1d 5873 . . . . . . 7  |-  ( x  =  a  ->  (
(denom `  x ) ^ -u 2 )  =  ( (denom `  a
) ^ -u 2
) )
3229, 31breq12d 4036 . . . . . 6  |-  ( x  =  a  ->  (
( abs `  (
x  -  ( sqr `  D ) ) )  <  ( (denom `  x ) ^ -u 2
)  <->  ( abs `  (
a  -  ( sqr `  D ) ) )  <  ( (denom `  a ) ^ -u 2
) ) )
3327, 32anbi12d 691 . . . . 5  |-  ( x  =  a  ->  (
( 0  <  x  /\  ( abs `  (
x  -  ( sqr `  D ) ) )  <  ( (denom `  x ) ^ -u 2
) )  <->  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )
3433elrab 2923 . . . 4  |-  ( a  e.  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) }  <->  ( a  e.  QQ  /\  ( 0  <  a  /\  ( abs `  ( a  -  ( sqr `  D ) ) )  <  (
(denom `  a ) ^ -u 2 ) ) ) )
35 fvex 5539 . . . . 5  |-  (numer `  a )  e.  _V
36 fvex 5539 . . . . 5  |-  (denom `  a )  e.  _V
37 eleq1 2343 . . . . . . 7  |-  ( y  =  (numer `  a
)  ->  ( y  e.  NN  <->  (numer `  a )  e.  NN ) )
3837anbi1d 685 . . . . . 6  |-  ( y  =  (numer `  a
)  ->  ( (
y  e.  NN  /\  z  e.  NN )  <->  ( (numer `  a )  e.  NN  /\  z  e.  NN ) ) )
39 oveq1 5865 . . . . . . . . 9  |-  ( y  =  (numer `  a
)  ->  ( y ^ 2 )  =  ( (numer `  a
) ^ 2 ) )
4039oveq1d 5873 . . . . . . . 8  |-  ( y  =  (numer `  a
)  ->  ( (
y ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) )  =  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( z ^
2 ) ) ) )
4140neeq1d 2459 . . . . . . 7  |-  ( y  =  (numer `  a
)  ->  ( (
( y ^ 2 )  -  ( D  x.  ( z ^
2 ) ) )  =/=  0  <->  ( (
(numer `  a ) ^ 2 )  -  ( D  x.  (
z ^ 2 ) ) )  =/=  0
) )
4240fveq2d 5529 . . . . . . . 8  |-  ( y  =  (numer `  a
)  ->  ( abs `  ( ( y ^
2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  =  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  (
z ^ 2 ) ) ) ) )
4342breq1d 4033 . . . . . . 7  |-  ( y  =  (numer `  a
)  ->  ( ( abs `  ( ( y ^ 2 )  -  ( D  x.  (
z ^ 2 ) ) ) )  < 
( 1  +  ( 2  x.  ( sqr `  D ) ) )  <-> 
( abs `  (
( (numer `  a
) ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D ) ) ) ) )
4441, 43anbi12d 691 . . . . . 6  |-  ( y  =  (numer `  a
)  ->  ( (
( ( y ^
2 )  -  ( D  x.  ( z ^ 2 ) ) )  =/=  0  /\  ( abs `  (
( y ^ 2 )  -  ( D  x.  ( z ^
2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D
) ) ) )  <-> 
( ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( z ^
2 ) ) )  =/=  0  /\  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( z ^
2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D
) ) ) ) ) )
4538, 44anbi12d 691 . . . . 5  |-  ( y  =  (numer `  a
)  ->  ( (
( y  e.  NN  /\  z  e.  NN )  /\  ( ( ( y ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( y ^
2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  <  (
1  +  ( 2  x.  ( sqr `  D
) ) ) ) )  <->  ( ( (numer `  a )  e.  NN  /\  z  e.  NN )  /\  ( ( ( (numer `  a ) ^ 2 )  -  ( D  x.  (
z ^ 2 ) ) )  =/=  0  /\  ( abs `  (
( (numer `  a
) ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D ) ) ) ) ) ) )
46 eleq1 2343 . . . . . . 7  |-  ( z  =  (denom `  a
)  ->  ( z  e.  NN  <->  (denom `  a )  e.  NN ) )
4746anbi2d 684 . . . . . 6  |-  ( z  =  (denom `  a
)  ->  ( (
(numer `  a )  e.  NN  /\  z  e.  NN )  <->  ( (numer `  a )  e.  NN  /\  (denom `  a )  e.  NN ) ) )
48 oveq1 5865 . . . . . . . . . 10  |-  ( z  =  (denom `  a
)  ->  ( z ^ 2 )  =  ( (denom `  a
) ^ 2 ) )
4948oveq2d 5874 . . . . . . . . 9  |-  ( z  =  (denom `  a
)  ->  ( D  x.  ( z ^ 2 ) )  =  ( D  x.  ( (denom `  a ) ^ 2 ) ) )
5049oveq2d 5874 . . . . . . . 8  |-  ( z  =  (denom `  a
)  ->  ( (
(numer `  a ) ^ 2 )  -  ( D  x.  (
z ^ 2 ) ) )  =  ( ( (numer `  a
) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) ) )
5150neeq1d 2459 . . . . . . 7  |-  ( z  =  (denom `  a
)  ->  ( (
( (numer `  a
) ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) )  =/=  0  <->  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) )  =/=  0 ) )
5250fveq2d 5529 . . . . . . . 8  |-  ( z  =  (denom `  a
)  ->  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( z ^
2 ) ) ) )  =  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) ) ) )
5352breq1d 4033 . . . . . . 7  |-  ( z  =  (denom `  a
)  ->  ( ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( z ^
2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D
) ) )  <->  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D ) ) ) ) )
5451, 53anbi12d 691 . . . . . 6  |-  ( z  =  (denom `  a
)  ->  ( (
( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( z ^
2 ) ) )  =/=  0  /\  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( z ^
2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D
) ) ) )  <-> 
( ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D ) ) ) ) ) )
5547, 54anbi12d 691 . . . . 5  |-  ( z  =  (denom `  a
)  ->  ( (
( (numer `  a
)  e.  NN  /\  z  e.  NN )  /\  ( ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( z ^
2 ) ) )  =/=  0  /\  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( z ^
2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D
) ) ) ) )  <->  ( ( (numer `  a )  e.  NN  /\  (denom `  a )  e.  NN )  /\  (
( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( (numer `  a ) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) ) )  <  ( 1  +  ( 2  x.  ( sqr `  D ) ) ) ) ) ) )
5635, 36, 45, 55opelopab 4286 . . . 4  |-  ( <.
(numer `  a ) ,  (denom `  a ) >.  e.  { <. y ,  z >.  |  ( ( y  e.  NN  /\  z  e.  NN )  /\  ( ( ( y ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( y ^
2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  <  (
1  +  ( 2  x.  ( sqr `  D
) ) ) ) ) }  <->  ( (
(numer `  a )  e.  NN  /\  (denom `  a )  e.  NN )  /\  ( ( ( (numer `  a ) ^ 2 )  -  ( D  x.  (
(denom `  a ) ^ 2 ) ) )  =/=  0  /\  ( abs `  (
( (numer `  a
) ^ 2 )  -  ( D  x.  ( (denom `  a ) ^ 2 ) ) ) )  <  (
1  +  ( 2  x.  ( sqr `  D
) ) ) ) ) )
5726, 34, 563imtr4g 261 . . 3  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  ( a  e. 
{ x  e.  QQ  |  ( 0  < 
x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  ( (denom `  x ) ^ -u 2
) ) }  ->  <.
(numer `  a ) ,  (denom `  a ) >.  e.  { <. y ,  z >.  |  ( ( y  e.  NN  /\  z  e.  NN )  /\  ( ( ( y ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( y ^
2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  <  (
1  +  ( 2  x.  ( sqr `  D
) ) ) ) ) } ) )
58 ssrab2 3258 . . . . . 6  |-  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) }  C_  QQ
59 simprl 732 . . . . . 6  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e. 
{ x  e.  QQ  |  ( 0  < 
x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  ( (denom `  x ) ^ -u 2
) ) }  /\  b  e.  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) } ) )  -> 
a  e.  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) } )
6058, 59sseldi 3178 . . . . 5  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e. 
{ x  e.  QQ  |  ( 0  < 
x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  ( (denom `  x ) ^ -u 2
) ) }  /\  b  e.  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) } ) )  -> 
a  e.  QQ )
61 simprr 733 . . . . . 6  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e. 
{ x  e.  QQ  |  ( 0  < 
x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  ( (denom `  x ) ^ -u 2
) ) }  /\  b  e.  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) } ) )  -> 
b  e.  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) } )
6258, 61sseldi 3178 . . . . 5  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e. 
{ x  e.  QQ  |  ( 0  < 
x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  ( (denom `  x ) ^ -u 2
) ) }  /\  b  e.  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) } ) )  -> 
b  e.  QQ )
6335, 36opth 4245 . . . . . . 7  |-  ( <.
(numer `  a ) ,  (denom `  a ) >.  =  <. (numer `  b
) ,  (denom `  b ) >.  <->  ( (numer `  a )  =  (numer `  b )  /\  (denom `  a )  =  (denom `  b ) ) )
64 simprl 732 . . . . . . . . . 10  |-  ( ( ( a  e.  QQ  /\  b  e.  QQ )  /\  ( (numer `  a )  =  (numer `  b )  /\  (denom `  a )  =  (denom `  b ) ) )  ->  (numer `  a
)  =  (numer `  b ) )
65 simprr 733 . . . . . . . . . 10  |-  ( ( ( a  e.  QQ  /\  b  e.  QQ )  /\  ( (numer `  a )  =  (numer `  b )  /\  (denom `  a )  =  (denom `  b ) ) )  ->  (denom `  a
)  =  (denom `  b ) )
6664, 65oveq12d 5876 . . . . . . . . 9  |-  ( ( ( a  e.  QQ  /\  b  e.  QQ )  /\  ( (numer `  a )  =  (numer `  b )  /\  (denom `  a )  =  (denom `  b ) ) )  ->  ( (numer `  a )  /  (denom `  a ) )  =  ( (numer `  b
)  /  (denom `  b ) ) )
67 simpll 730 . . . . . . . . . 10  |-  ( ( ( a  e.  QQ  /\  b  e.  QQ )  /\  ( (numer `  a )  =  (numer `  b )  /\  (denom `  a )  =  (denom `  b ) ) )  ->  a  e.  QQ )
6867, 17syl 15 . . . . . . . . 9  |-  ( ( ( a  e.  QQ  /\  b  e.  QQ )  /\  ( (numer `  a )  =  (numer `  b )  /\  (denom `  a )  =  (denom `  b ) ) )  ->  a  =  ( (numer `  a )  /  (denom `  a )
) )
69 simplr 731 . . . . . . . . . 10  |-  ( ( ( a  e.  QQ  /\  b  e.  QQ )  /\  ( (numer `  a )  =  (numer `  b )  /\  (denom `  a )  =  (denom `  b ) ) )  ->  b  e.  QQ )
70 qeqnumdivden 12817 . . . . . . . . . 10  |-  ( b  e.  QQ  ->  b  =  ( (numer `  b )  /  (denom `  b ) ) )
7169, 70syl 15 . . . . . . . . 9  |-  ( ( ( a  e.  QQ  /\  b  e.  QQ )  /\  ( (numer `  a )  =  (numer `  b )  /\  (denom `  a )  =  (denom `  b ) ) )  ->  b  =  ( (numer `  b )  /  (denom `  b )
) )
7266, 68, 713eqtr4d 2325 . . . . . . . 8  |-  ( ( ( a  e.  QQ  /\  b  e.  QQ )  /\  ( (numer `  a )  =  (numer `  b )  /\  (denom `  a )  =  (denom `  b ) ) )  ->  a  =  b )
7372ex 423 . . . . . . 7  |-  ( ( a  e.  QQ  /\  b  e.  QQ )  ->  ( ( (numer `  a )  =  (numer `  b )  /\  (denom `  a )  =  (denom `  b ) )  -> 
a  =  b ) )
7463, 73syl5bi 208 . . . . . 6  |-  ( ( a  e.  QQ  /\  b  e.  QQ )  ->  ( <. (numer `  a
) ,  (denom `  a ) >.  =  <. (numer `  b ) ,  (denom `  b ) >.  ->  a  =  b ) )
75 fveq2 5525 . . . . . . 7  |-  ( a  =  b  ->  (numer `  a )  =  (numer `  b ) )
76 fveq2 5525 . . . . . . 7  |-  ( a  =  b  ->  (denom `  a )  =  (denom `  b ) )
7775, 76opeq12d 3804 . . . . . 6  |-  ( a  =  b  ->  <. (numer `  a ) ,  (denom `  a ) >.  =  <. (numer `  b ) ,  (denom `  b ) >. )
7874, 77impbid1 194 . . . . 5  |-  ( ( a  e.  QQ  /\  b  e.  QQ )  ->  ( <. (numer `  a
) ,  (denom `  a ) >.  =  <. (numer `  b ) ,  (denom `  b ) >.  <->  a  =  b ) )
7960, 62, 78syl2anc 642 . . . 4  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  ( a  e. 
{ x  e.  QQ  |  ( 0  < 
x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  ( (denom `  x ) ^ -u 2
) ) }  /\  b  e.  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) } ) )  -> 
( <. (numer `  a
) ,  (denom `  a ) >.  =  <. (numer `  b ) ,  (denom `  b ) >.  <->  a  =  b ) )
8079ex 423 . . 3  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  ( ( a  e.  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) }  /\  b  e. 
{ x  e.  QQ  |  ( 0  < 
x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  ( (denom `  x ) ^ -u 2
) ) } )  ->  ( <. (numer `  a ) ,  (denom `  a ) >.  =  <. (numer `  b ) ,  (denom `  b ) >.  <->  a  =  b ) ) )
8157, 80dom2d 6902 . 2  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  ( { <. y ,  z >.  |  ( ( y  e.  NN  /\  z  e.  NN )  /\  ( ( ( y ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( y ^
2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  <  (
1  +  ( 2  x.  ( sqr `  D
) ) ) ) ) }  e.  _V  ->  { x  e.  QQ  |  ( 0  < 
x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  ( (denom `  x ) ^ -u 2
) ) }  ~<_  { <. y ,  z >.  |  ( ( y  e.  NN  /\  z  e.  NN )  /\  ( ( ( y ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( y ^
2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  <  (
1  +  ( 2  x.  ( sqr `  D
) ) ) ) ) } ) )
824, 81mpi 16 1  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  { x  e.  QQ  |  ( 0  <  x  /\  ( abs `  ( x  -  ( sqr `  D ) ) )  <  (
(denom `  x ) ^ -u 2 ) ) }  ~<_  { <. y ,  z >.  |  ( ( y  e.  NN  /\  z  e.  NN )  /\  ( ( ( y ^ 2 )  -  ( D  x.  ( z ^ 2 ) ) )  =/=  0  /\  ( abs `  ( ( y ^
2 )  -  ( D  x.  ( z ^ 2 ) ) ) )  <  (
1  +  ( 2  x.  ( sqr `  D
) ) ) ) ) } )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 176    /\ wa 358    = wceq 1623    e. wcel 1684    =/= wne 2446   {crab 2547   _Vcvv 2788   <.cop 3643   class class class wbr 4023   {copab 4076    X. cxp 4687   ` cfv 5255  (class class class)co 5858    ~<_ cdom 6861   0cc0 8737   1c1 8738    + caddc 8740    x. cmul 8742    < clt 8867    - cmin 9037   -ucneg 9038    / cdiv 9423   NNcn 9746   2c2 9795   QQcq 10316   ^cexp 11104   sqrcsqr 11718   abscabs 11719  numercnumer 12804  denomcdenom 12805
This theorem is referenced by:  pellexlem4  26917
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-rep 4131  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512  ax-cnex 8793  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814  ax-pre-sup 8815
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  df-rmo 2551  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-pss 3168  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-tp 3648  df-op 3649  df-uni 3828  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-tr 4114  df-eprel 4305  df-id 4309  df-po 4314  df-so 4315  df-fr 4352  df-we 4354  df-ord 4395  df-on 4396  df-lim 4397  df-suc 4398  df-om 4657  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-1st 6122  df-2nd 6123  df-riota 6304  df-recs 6388  df-rdg 6423  df-er 6660  df-en 6864  df-dom 6865  df-sdom 6866  df-sup 7194  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-div 9424  df-nn 9747  df-2 9804  df-3 9805  df-n0 9966  df-z 10025  df-uz 10231  df-q 10317  df-rp 10355  df-fl 10925  df-mod 10974  df-seq 11047  df-exp 11105  df-cj 11584  df-re 11585  df-im 11586  df-sqr 11720  df-abs 11721  df-dvds 12532  df-gcd 12686  df-numer 12806  df-denom 12807
  Copyright terms: Public domain W3C validator