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

Theorem pellex 26920
Description: Every Pell equation has a nontrivial solution. Theorem 62 in [vandenDries] p. 43. (Contributed by Stefan O'Rear, 19-Oct-2014.)
Assertion
Ref Expression
pellex  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  E. x  e.  NN  E. y  e.  NN  (
( x ^ 2 )  -  ( D  x.  ( y ^
2 ) ) )  =  1 )
Distinct variable group:    x, D, y

Proof of Theorem pellex
Dummy variables  a 
b  c  d  e  f  g are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 pellexlem5 26918 . 2  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  E. a  e.  ZZ  ( a  =/=  0  /\  { <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) }  ~~  NN ) )
2 fzfi 11034 . . . . . . . . . 10  |-  ( 0 ... ( ( abs `  a )  -  1 ) )  e.  Fin
3 xpfi 7128 . . . . . . . . . 10  |-  ( ( ( 0 ... (
( abs `  a
)  -  1 ) )  e.  Fin  /\  ( 0 ... (
( abs `  a
)  -  1 ) )  e.  Fin )  ->  ( ( 0 ... ( ( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) )  e. 
Fin )
42, 2, 3mp2an 653 . . . . . . . . 9  |-  ( ( 0 ... ( ( abs `  a )  -  1 ) )  X.  ( 0 ... ( ( abs `  a
)  -  1 ) ) )  e.  Fin
5 isfinite 7353 . . . . . . . . 9  |-  ( ( ( 0 ... (
( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) )  e. 
Fin 
<->  ( ( 0 ... ( ( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) )  ~<  om )
64, 5mpbi 199 . . . . . . . 8  |-  ( ( 0 ... ( ( abs `  a )  -  1 ) )  X.  ( 0 ... ( ( abs `  a
)  -  1 ) ) )  ~<  om
7 nnenom 11042 . . . . . . . . 9  |-  NN  ~~  om
87ensymi 6911 . . . . . . . 8  |-  om  ~~  NN
9 sdomentr 6995 . . . . . . . 8  |-  ( ( ( ( 0 ... ( ( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) )  ~<  om  /\  om  ~~  NN )  ->  ( ( 0 ... ( ( abs `  a )  -  1 ) )  X.  (
0 ... ( ( abs `  a )  -  1 ) ) )  ~<  NN )
106, 8, 9mp2an 653 . . . . . . 7  |-  ( ( 0 ... ( ( abs `  a )  -  1 ) )  X.  ( 0 ... ( ( abs `  a
)  -  1 ) ) )  ~<  NN
11 ensym 6910 . . . . . . . 8  |-  ( {
<. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) } 
~~  NN  ->  NN  ~~  {
<. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) } )
1211ad2antll 709 . . . . . . 7  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  (
a  =/=  0  /\ 
{ <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) }  ~~  NN ) )  ->  NN  ~~  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) } )
13 sdomentr 6995 . . . . . . 7  |-  ( ( ( ( 0 ... ( ( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) )  ~<  NN  /\  NN  ~~  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) } )  ->  ( (
0 ... ( ( abs `  a )  -  1 ) )  X.  (
0 ... ( ( abs `  a )  -  1 ) ) )  ~<  { <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) } )
1410, 12, 13sylancr 644 . . . . . 6  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  (
a  =/=  0  /\ 
{ <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) }  ~~  NN ) )  ->  ( (
0 ... ( ( abs `  a )  -  1 ) )  X.  (
0 ... ( ( abs `  a )  -  1 ) ) )  ~<  { <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) } )
15 opabssxp 4762 . . . . . . . . . 10  |-  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) }  C_  ( NN  X.  NN )
1615sseli 3176 . . . . . . . . 9  |-  ( d  e.  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) }  ->  d  e.  ( NN  X.  NN ) )
17 simprrl 740 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )  ->  ( 1st `  d )  e.  NN )
1817nnzd 10116 . . . . . . . . . . . . 13  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )  ->  ( 1st `  d )  e.  ZZ )
19 simpllr 735 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )  ->  a  e.  ZZ )
20 simplr 731 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )  ->  a  =/=  0 )
21 nnabscl 11809 . . . . . . . . . . . . . 14  |-  ( ( a  e.  ZZ  /\  a  =/=  0 )  -> 
( abs `  a
)  e.  NN )
2219, 20, 21syl2anc 642 . . . . . . . . . . . . 13  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )  ->  ( abs `  a )  e.  NN )
23 zmodfz 10991 . . . . . . . . . . . . 13  |-  ( ( ( 1st `  d
)  e.  ZZ  /\  ( abs `  a )  e.  NN )  -> 
( ( 1st `  d
)  mod  ( abs `  a ) )  e.  ( 0 ... (
( abs `  a
)  -  1 ) ) )
2418, 22, 23syl2anc 642 . . . . . . . . . . . 12  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )  ->  (
( 1st `  d
)  mod  ( abs `  a ) )  e.  ( 0 ... (
( abs `  a
)  -  1 ) ) )
25 simprrr 741 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )  ->  ( 2nd `  d )  e.  NN )
2625nnzd 10116 . . . . . . . . . . . . 13  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )  ->  ( 2nd `  d )  e.  ZZ )
27 zmodfz 10991 . . . . . . . . . . . . 13  |-  ( ( ( 2nd `  d
)  e.  ZZ  /\  ( abs `  a )  e.  NN )  -> 
( ( 2nd `  d
)  mod  ( abs `  a ) )  e.  ( 0 ... (
( abs `  a
)  -  1 ) ) )
2826, 22, 27syl2anc 642 . . . . . . . . . . . 12  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )  ->  (
( 2nd `  d
)  mod  ( abs `  a ) )  e.  ( 0 ... (
( abs `  a
)  -  1 ) ) )
2924, 28jca 518 . . . . . . . . . . 11  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )  ->  (
( ( 1st `  d
)  mod  ( abs `  a ) )  e.  ( 0 ... (
( abs `  a
)  -  1 ) )  /\  ( ( 2nd `  d )  mod  ( abs `  a
) )  e.  ( 0 ... ( ( abs `  a )  -  1 ) ) ) )
3029ex 423 . . . . . . . . . 10  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0 )  ->  (
( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d
)  e.  NN  /\  ( 2nd `  d )  e.  NN ) )  ->  ( ( ( 1st `  d )  mod  ( abs `  a
) )  e.  ( 0 ... ( ( abs `  a )  -  1 ) )  /\  ( ( 2nd `  d )  mod  ( abs `  a ) )  e.  ( 0 ... ( ( abs `  a
)  -  1 ) ) ) ) )
31 elxp7 6152 . . . . . . . . . 10  |-  ( d  e.  ( NN  X.  NN )  <->  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )
32 opelxp 4719 . . . . . . . . . 10  |-  ( <.
( ( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  e.  ( ( 0 ... ( ( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) )  <->  ( (
( 1st `  d
)  mod  ( abs `  a ) )  e.  ( 0 ... (
( abs `  a
)  -  1 ) )  /\  ( ( 2nd `  d )  mod  ( abs `  a
) )  e.  ( 0 ... ( ( abs `  a )  -  1 ) ) ) )
3330, 31, 323imtr4g 261 . . . . . . . . 9  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0 )  ->  (
d  e.  ( NN 
X.  NN )  ->  <. ( ( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  e.  ( ( 0 ... ( ( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) ) ) )
3416, 33syl5 28 . . . . . . . 8  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0 )  ->  (
d  e.  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) }  ->  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  e.  ( ( 0 ... ( ( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) ) ) )
3534imp 418 . . . . . . 7  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  d  e.  {
<. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) } )  ->  <. ( ( 1st `  d )  mod  ( abs `  a
) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  e.  ( ( 0 ... ( ( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) ) )
3635adantlrr 701 . . . . . 6  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  ( a  =/=  0  /\  { <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) }  ~~  NN ) )  /\  d  e. 
{ <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) } )  ->  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  e.  ( ( 0 ... ( ( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) ) )
37 fveq2 5525 . . . . . . . 8  |-  ( d  =  e  ->  ( 1st `  d )  =  ( 1st `  e
) )
3837oveq1d 5873 . . . . . . 7  |-  ( d  =  e  ->  (
( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) ) )
39 fveq2 5525 . . . . . . . 8  |-  ( d  =  e  ->  ( 2nd `  d )  =  ( 2nd `  e
) )
4039oveq1d 5873 . . . . . . 7  |-  ( d  =  e  ->  (
( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) )
4138, 40opeq12d 3804 . . . . . 6  |-  ( d  =  e  ->  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. )
4214, 36, 41fphpd 26899 . . . . 5  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  (
a  =/=  0  /\ 
{ <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) }  ~~  NN ) )  ->  E. d  e.  { <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) } E. e  e. 
{ <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) }  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )
43 eleq1 2343 . . . . . . . . . . . . . 14  |-  ( b  =  f  ->  (
b  e.  NN  <->  f  e.  NN ) )
44 eleq1 2343 . . . . . . . . . . . . . 14  |-  ( c  =  g  ->  (
c  e.  NN  <->  g  e.  NN ) )
4543, 44bi2anan9 843 . . . . . . . . . . . . 13  |-  ( ( b  =  f  /\  c  =  g )  ->  ( ( b  e.  NN  /\  c  e.  NN )  <->  ( f  e.  NN  /\  g  e.  NN ) ) )
46 oveq1 5865 . . . . . . . . . . . . . . 15  |-  ( b  =  f  ->  (
b ^ 2 )  =  ( f ^
2 ) )
47 oveq1 5865 . . . . . . . . . . . . . . . 16  |-  ( c  =  g  ->  (
c ^ 2 )  =  ( g ^
2 ) )
4847oveq2d 5874 . . . . . . . . . . . . . . 15  |-  ( c  =  g  ->  ( D  x.  ( c ^ 2 ) )  =  ( D  x.  ( g ^ 2 ) ) )
4946, 48oveqan12d 5877 . . . . . . . . . . . . . 14  |-  ( ( b  =  f  /\  c  =  g )  ->  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  ( ( f ^ 2 )  -  ( D  x.  ( g ^ 2 ) ) ) )
5049eqeq1d 2291 . . . . . . . . . . . . 13  |-  ( ( b  =  f  /\  c  =  g )  ->  ( ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a  <-> 
( ( f ^
2 )  -  ( D  x.  ( g ^ 2 ) ) )  =  a ) )
5145, 50anbi12d 691 . . . . . . . . . . . 12  |-  ( ( b  =  f  /\  c  =  g )  ->  ( ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a )  <->  ( (
f  e.  NN  /\  g  e.  NN )  /\  ( ( f ^
2 )  -  ( D  x.  ( g ^ 2 ) ) )  =  a ) ) )
5251cbvopabv 4088 . . . . . . . . . . 11  |-  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) }  =  { <. f ,  g >.  |  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) }
5352eleq2i 2347 . . . . . . . . . 10  |-  ( e  e.  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) }  <->  e  e.  {
<. f ,  g >.  |  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) } )
5453biimpi 186 . . . . . . . . 9  |-  ( e  e.  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) }  ->  e  e.  { <. f ,  g
>.  |  ( (
f  e.  NN  /\  g  e.  NN )  /\  ( ( f ^
2 )  -  ( D  x.  ( g ^ 2 ) ) )  =  a ) } )
55 elopab 4272 . . . . . . . . . . 11  |-  ( d  e.  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) }  <->  E. b E. c ( d  = 
<. b ,  c >.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )
56 elopab 4272 . . . . . . . . . . . . . 14  |-  ( e  e.  { <. f ,  g >.  |  ( ( f  e.  NN  /\  g  e.  NN )  /\  ( ( f ^ 2 )  -  ( D  x.  (
g ^ 2 ) ) )  =  a ) }  <->  E. f E. g ( e  = 
<. f ,  g >.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) ) )
57 simp3ll 1026 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  d  =  <. b ,  c >.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) )  ->  b  e.  NN )
58573expb 1152 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  ->  b  e.  NN )
59583ad2ant1 976 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  b  e.  NN )
60 simp3lr 1027 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  d  =  <. b ,  c >.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) )  ->  c  e.  NN )
61603expb 1152 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  ->  c  e.  NN )
62613ad2ant1 976 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  c  e.  NN )
63 simp1lr 1019 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  a  e.  ZZ )
64633adant1r 1175 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  a  e.  ZZ )
65 simpl 443 . . . . . . . . . . . . . . . . . . 19  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  D  e.  NN )
6665ad3antrrr 710 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  ->  D  e.  NN )
67663ad2ant1 976 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  D  e.  NN )
68 simpr 447 . . . . . . . . . . . . . . . . . . 19  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  -.  ( sqr `  D )  e.  QQ )
6968ad3antrrr 710 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  ->  -.  ( sqr `  D )  e.  QQ )
70693ad2ant1 976 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  -.  ( sqr `  D )  e.  QQ )
71 simp2ll 1022 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  ( ( f ^
2 )  -  ( D  x.  ( g ^ 2 ) ) )  =  a )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  f  e.  NN )
72713adant2l 1176 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  f  e.  NN )
73 simp2lr 1023 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  ( ( f ^
2 )  -  ( D  x.  ( g ^ 2 ) ) )  =  a )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  g  e.  NN )
74733adant2l 1176 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  g  e.  NN )
75 simp2l 981 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  e  =  <. f ,  g
>. )
76 simp1rl 1020 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  d  =  <. b ,  c
>. )
77 simp3l 983 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  d  =/=  e )
78 simp3 957 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( e  =  <. f ,  g >.  /\  d  =  <. b ,  c
>.  /\  d  =/=  e
)  ->  d  =/=  e )
79 simp2 956 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( e  =  <. f ,  g >.  /\  d  =  <. b ,  c
>.  /\  d  =/=  e
)  ->  d  =  <. b ,  c >.
)
80 simp1 955 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( e  =  <. f ,  g >.  /\  d  =  <. b ,  c
>.  /\  d  =/=  e
)  ->  e  =  <. f ,  g >.
)
8178, 79, 803netr3d 2472 . . . . . . . . . . . . . . . . . . 19  |-  ( ( e  =  <. f ,  g >.  /\  d  =  <. b ,  c
>.  /\  d  =/=  e
)  ->  <. b ,  c >.  =/=  <. f ,  g >. )
82 vex 2791 . . . . . . . . . . . . . . . . . . . . 21  |-  b  e. 
_V
83 vex 2791 . . . . . . . . . . . . . . . . . . . . 21  |-  c  e. 
_V
8482, 83opth 4245 . . . . . . . . . . . . . . . . . . . 20  |-  ( <.
b ,  c >.  =  <. f ,  g
>. 
<->  ( b  =  f  /\  c  =  g ) )
8584necon3abii 2476 . . . . . . . . . . . . . . . . . . 19  |-  ( <.
b ,  c >.  =/=  <. f ,  g
>. 
<->  -.  ( b  =  f  /\  c  =  g ) )
8681, 85sylib 188 . . . . . . . . . . . . . . . . . 18  |-  ( ( e  =  <. f ,  g >.  /\  d  =  <. b ,  c
>.  /\  d  =/=  e
)  ->  -.  (
b  =  f  /\  c  =  g )
)
8775, 76, 77, 86syl3anc 1182 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  -.  ( b  =  f  /\  c  =  g ) )
88 simp1lr 1019 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  a  =/=  0 )
89 simp1rr 1021 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( d  =  <. b ,  c >.  /\  (
( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) )  /\  (
e  =  <. f ,  g >.  /\  (
( f  e.  NN  /\  g  e.  NN )  /\  ( ( f ^ 2 )  -  ( D  x.  (
g ^ 2 ) ) )  =  a ) )  /\  (
d  =/=  e  /\  <.
( ( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a )
90893adant1l 1174 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a )
91 simp2rr 1025 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a )
92 simp3r 984 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. )
93 simp3 957 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>.  /\  <. ( ( 1st `  d )  mod  ( abs `  a ) ) ,  ( ( 2nd `  d )  mod  ( abs `  a ) )
>.  =  <. ( ( 1st `  e )  mod  ( abs `  a
) ) ,  ( ( 2nd `  e
)  mod  ( abs `  a ) ) >.
)  ->  <. ( ( 1st `  d )  mod  ( abs `  a
) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. )
94 ovex 5883 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( 1st `  d )  mod  ( abs `  a
) )  e.  _V
95 ovex 5883 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( 2nd `  d )  mod  ( abs `  a
) )  e.  _V
9694, 95opth 4245 . . . . . . . . . . . . . . . . . . . . 21  |-  ( <.
( ( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. 
<->  ( ( ( 1st `  d )  mod  ( abs `  a ) )  =  ( ( 1st `  e )  mod  ( abs `  a ) )  /\  ( ( 2nd `  d )  mod  ( abs `  a ) )  =  ( ( 2nd `  e )  mod  ( abs `  a ) ) ) )
9793, 96sylib 188 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>.  /\  <. ( ( 1st `  d )  mod  ( abs `  a ) ) ,  ( ( 2nd `  d )  mod  ( abs `  a ) )
>.  =  <. ( ( 1st `  e )  mod  ( abs `  a
) ) ,  ( ( 2nd `  e
)  mod  ( abs `  a ) ) >.
)  ->  ( (
( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )
98 simprl 732 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( ( 1st `  d )  mod  ( abs `  a
) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) ) )
99 simpll 730 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  d  =  <. b ,  c >.
)
10099fveq2d 5529 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( 1st `  d )  =  ( 1st `  <. b ,  c >. )
)
10182, 83op1st 6128 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 1st `  <. b ,  c
>. )  =  b
102100, 101syl6eq 2331 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( 1st `  d )  =  b )
103102oveq1d 5873 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( ( 1st `  d )  mod  ( abs `  a
) )  =  ( b  mod  ( abs `  a ) ) )
104 simplr 731 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  e  =  <. f ,  g >.
)
105104fveq2d 5529 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( 1st `  e )  =  ( 1st `  <. f ,  g >. )
)
106 vex 2791 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  f  e. 
_V
107 vex 2791 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  g  e. 
_V
108106, 107op1st 6128 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 1st `  <. f ,  g
>. )  =  f
109105, 108syl6eq 2331 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( 1st `  e )  =  f )
110109oveq1d 5873 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( ( 1st `  e )  mod  ( abs `  a
) )  =  ( f  mod  ( abs `  a ) ) )
11198, 103, 1103eqtr3d 2323 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( b  mod  ( abs `  a
) )  =  ( f  mod  ( abs `  a ) ) )
112 simprr 733 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( ( 2nd `  d )  mod  ( abs `  a
) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) )
11399fveq2d 5529 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( 2nd `  d )  =  ( 2nd `  <. b ,  c >. )
)
11482, 83op2nd 6129 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 2nd `  <. b ,  c
>. )  =  c
115113, 114syl6eq 2331 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( 2nd `  d )  =  c )
116115oveq1d 5873 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( ( 2nd `  d )  mod  ( abs `  a
) )  =  ( c  mod  ( abs `  a ) ) )
117104fveq2d 5529 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( 2nd `  e )  =  ( 2nd `  <. f ,  g >. )
)
118106, 107op2nd 6129 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 2nd `  <. f ,  g
>. )  =  g
119117, 118syl6eq 2331 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( 2nd `  e )  =  g )
120119oveq1d 5873 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( ( 2nd `  e )  mod  ( abs `  a
) )  =  ( g  mod  ( abs `  a ) ) )
121112, 116, 1203eqtr3d 2323 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( c  mod  ( abs `  a
) )  =  ( g  mod  ( abs `  a ) ) )
122111, 121jca 518 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  /\  (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) ) )  ->  ( (
b  mod  ( abs `  a ) )  =  ( f  mod  ( abs `  a ) )  /\  ( c  mod  ( abs `  a
) )  =  ( g  mod  ( abs `  a ) ) ) )
123122ex 423 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>. )  ->  ( ( ( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) )  ->  ( ( b  mod  ( abs `  a
) )  =  ( f  mod  ( abs `  a ) )  /\  ( c  mod  ( abs `  a ) )  =  ( g  mod  ( abs `  a
) ) ) ) )
1241233adant3 975 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>.  /\  <. ( ( 1st `  d )  mod  ( abs `  a ) ) ,  ( ( 2nd `  d )  mod  ( abs `  a ) )
>.  =  <. ( ( 1st `  e )  mod  ( abs `  a
) ) ,  ( ( 2nd `  e
)  mod  ( abs `  a ) ) >.
)  ->  ( (
( ( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) )  /\  ( ( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) )  ->  ( ( b  mod  ( abs `  a
) )  =  ( f  mod  ( abs `  a ) )  /\  ( c  mod  ( abs `  a ) )  =  ( g  mod  ( abs `  a
) ) ) ) )
12597, 124mpd 14 . . . . . . . . . . . . . . . . . . 19  |-  ( ( d  =  <. b ,  c >.  /\  e  =  <. f ,  g
>.  /\  <. ( ( 1st `  d )  mod  ( abs `  a ) ) ,  ( ( 2nd `  d )  mod  ( abs `  a ) )
>.  =  <. ( ( 1st `  e )  mod  ( abs `  a
) ) ,  ( ( 2nd `  e
)  mod  ( abs `  a ) ) >.
)  ->  ( (
b  mod  ( abs `  a ) )  =  ( f  mod  ( abs `  a ) )  /\  ( c  mod  ( abs `  a
) )  =  ( g  mod  ( abs `  a ) ) ) )
12676, 75, 92, 125syl3anc 1182 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  (
( b  mod  ( abs `  a ) )  =  ( f  mod  ( abs `  a
) )  /\  (
c  mod  ( abs `  a ) )  =  ( g  mod  ( abs `  a ) ) ) )
127126simpld 445 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  (
b  mod  ( abs `  a ) )  =  ( f  mod  ( abs `  a ) ) )
128126simprd 449 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  (
c  mod  ( abs `  a ) )  =  ( g  mod  ( abs `  a ) ) )
12959, 62, 64, 67, 70, 72, 74, 87, 88, 90, 91, 127, 128pellexlem6 26919 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  /\  ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  /\  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 )
1301293exp 1150 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  ->  ( (
e  =  <. f ,  g >.  /\  (
( f  e.  NN  /\  g  e.  NN )  /\  ( ( f ^ 2 )  -  ( D  x.  (
g ^ 2 ) ) )  =  a ) )  ->  (
( d  =/=  e  /\  <. ( ( 1st `  d )  mod  ( abs `  a ) ) ,  ( ( 2nd `  d )  mod  ( abs `  a ) )
>.  =  <. ( ( 1st `  e )  mod  ( abs `  a
) ) ,  ( ( 2nd `  e
)  mod  ( abs `  a ) ) >.
)  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 ) ) )
131130exlimdvv 1668 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  ->  ( E. f E. g ( e  =  <. f ,  g
>.  /\  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) )  ->  ( ( d  =/=  e  /\  <. ( ( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. )  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 ) ) )
13256, 131syl5bi 208 . . . . . . . . . . . . 13  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  ( d  =  <. b ,  c
>.  /\  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) ) )  ->  ( e  e.  { <. f ,  g
>.  |  ( (
f  e.  NN  /\  g  e.  NN )  /\  ( ( f ^
2 )  -  ( D  x.  ( g ^ 2 ) ) )  =  a ) }  ->  ( (
d  =/=  e  /\  <.
( ( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. )  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 ) ) )
133132ex 423 . . . . . . . . . . . 12  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0 )  ->  (
( d  =  <. b ,  c >.  /\  (
( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) )  ->  (
e  e.  { <. f ,  g >.  |  ( ( f  e.  NN  /\  g  e.  NN )  /\  ( ( f ^ 2 )  -  ( D  x.  (
g ^ 2 ) ) )  =  a ) }  ->  (
( d  =/=  e  /\  <. ( ( 1st `  d )  mod  ( abs `  a ) ) ,  ( ( 2nd `  d )  mod  ( abs `  a ) )
>.  =  <. ( ( 1st `  e )  mod  ( abs `  a
) ) ,  ( ( 2nd `  e
)  mod  ( abs `  a ) ) >.
)  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 ) ) ) )
134133exlimdvv 1668 . . . . . . . . . . 11  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0 )  ->  ( E. b E. c ( d  =  <. b ,  c >.  /\  (
( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) )  ->  (
e  e.  { <. f ,  g >.  |  ( ( f  e.  NN  /\  g  e.  NN )  /\  ( ( f ^ 2 )  -  ( D  x.  (
g ^ 2 ) ) )  =  a ) }  ->  (
( d  =/=  e  /\  <. ( ( 1st `  d )  mod  ( abs `  a ) ) ,  ( ( 2nd `  d )  mod  ( abs `  a ) )
>.  =  <. ( ( 1st `  e )  mod  ( abs `  a
) ) ,  ( ( 2nd `  e
)  mod  ( abs `  a ) ) >.
)  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 ) ) ) )
13555, 134syl5bi 208 . . . . . . . . . 10  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0 )  ->  (
d  e.  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) }  ->  (
e  e.  { <. f ,  g >.  |  ( ( f  e.  NN  /\  g  e.  NN )  /\  ( ( f ^ 2 )  -  ( D  x.  (
g ^ 2 ) ) )  =  a ) }  ->  (
( d  =/=  e  /\  <. ( ( 1st `  d )  mod  ( abs `  a ) ) ,  ( ( 2nd `  d )  mod  ( abs `  a ) )
>.  =  <. ( ( 1st `  e )  mod  ( abs `  a
) ) ,  ( ( 2nd `  e
)  mod  ( abs `  a ) ) >.
)  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 ) ) ) )
136135imp3a 420 . . . . . . . . 9  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0 )  ->  (
( d  e.  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) }  /\  e  e.  { <. f ,  g >.  |  ( ( f  e.  NN  /\  g  e.  NN )  /\  (
( f ^ 2 )  -  ( D  x.  ( g ^
2 ) ) )  =  a ) } )  ->  ( (
d  =/=  e  /\  <.
( ( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. )  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 ) ) )
13754, 136sylan2i 636 . . . . . . . 8  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0 )  ->  (
( d  e.  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) }  /\  e  e.  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) } )  ->  ( (
d  =/=  e  /\  <.
( ( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. )  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 ) ) )
138137rexlimdvv 2673 . . . . . . 7  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0 )  ->  ( E. d  e.  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) } E. e  e.  { <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) }  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. )  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 ) )
139138imp 418 . . . . . 6  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  a  =/=  0
)  /\  E. d  e.  { <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) } E. e  e. 
{ <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) }  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 )
140139adantlrr 701 . . . . 5  |-  ( ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  ( a  =/=  0  /\  { <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) }  ~~  NN ) )  /\  E. d  e.  { <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) } E. e  e. 
{ <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) }  ( d  =/=  e  /\  <. (
( 1st `  d
)  mod  ( abs `  a ) ) ,  ( ( 2nd `  d
)  mod  ( abs `  a ) ) >.  =  <. ( ( 1st `  e )  mod  ( abs `  a ) ) ,  ( ( 2nd `  e )  mod  ( abs `  a ) )
>. ) )  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 )
14142, 140mpdan 649 . . . 4  |-  ( ( ( ( D  e.  NN  /\  -.  ( sqr `  D )  e.  QQ )  /\  a  e.  ZZ )  /\  (
a  =/=  0  /\ 
{ <. b ,  c
>.  |  ( (
b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  a ) }  ~~  NN ) )  ->  E. x  e.  NN  E. y  e.  NN  ( ( x ^ 2 )  -  ( D  x.  (
y ^ 2 ) ) )  =  1 )
142141ex 423 . . 3  |-  ( ( ( D  e.  NN  /\ 
-.  ( sqr `  D
)  e.  QQ )  /\  a  e.  ZZ )  ->  ( ( a  =/=  0  /\  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  (
( b ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  a ) } 
~~  NN )  ->  E. x  e.  NN  E. y  e.  NN  (
( x ^ 2 )  -  ( D  x.  ( y ^
2 ) ) )  =  1 ) )
143142rexlimdva 2667 . 2  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  ( E. a  e.  ZZ  ( a  =/=  0  /\  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) }  ~~  NN )  ->  E. x  e.  NN  E. y  e.  NN  (
( x ^ 2 )  -  ( D  x.  ( y ^
2 ) ) )  =  1 ) )
1441, 143mpd 14 1  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  E. x  e.  NN  E. y  e.  NN  (
( x ^ 2 )  -  ( D  x.  ( y ^
2 ) ) )  =  1 )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 358    /\ w3a 934   E.wex 1528    = wceq 1623    e. wcel 1684    =/= wne 2446   E.wrex 2544   _Vcvv 2788   <.cop 3643   class class class wbr 4023   {copab 4076   omcom 4656    X. cxp 4687   ` cfv 5255  (class class class)co 5858   1stc1st 6120   2ndc2nd 6121    ~~ cen 6860    ~< csdm 6862   Fincfn 6863   0cc0 8737   1c1 8738    x. cmul 8742    - cmin 9037   NNcn 9746   2c2 9795   ZZcz 10024   QQcq 10316   ...cfz 10782    mod cmo 10973   ^cexp 11104   sqrcsqr 11718   abscabs 11719
This theorem is referenced by:  pellqrex  26964
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-inf2 7342  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-int 3863  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-se 4353  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-isom 5264  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-1o 6479  df-oadd 6483  df-omul 6484  df-er 6660  df-map 6774  df-en 6864  df-dom 6865  df-sdom 6866  df-fin 6867  df-sup 7194  df-oi 7225  df-card 7572  df-acn 7575  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-ico 10662  df-fz 10783  df-fl 10925  df-mod 10974  df-seq 11047  df-exp 11105  df-hash 11338  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