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

Theorem pellex 26086
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
StepHypRef Expression
1 pellexlem5 26084 . 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 10912 . . . . . . . . . 10  |-  ( 0 ... ( ( abs `  a )  -  1 ) )  e.  Fin
3 xpfi 7013 . . . . . . . . . 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 656 . . . . . . . . 9  |-  ( ( 0 ... ( ( abs `  a )  -  1 ) )  X.  ( 0 ... ( ( abs `  a
)  -  1 ) ) )  e.  Fin
5 isfinite 7237 . . . . . . . . 9  |-  ( ( ( 0 ... (
( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) )  e. 
Fin 
<->  ( ( 0 ... ( ( abs `  a
)  -  1 ) )  X.  ( 0 ... ( ( abs `  a )  -  1 ) ) )  ~<  om )
64, 5mpbi 201 . . . . . . . 8  |-  ( ( 0 ... ( ( abs `  a )  -  1 ) )  X.  ( 0 ... ( ( abs `  a
)  -  1 ) ) )  ~<  om
7 nnenom 10920 . . . . . . . . 9  |-  NN  ~~  om
87ensymi 6797 . . . . . . . 8  |-  om  ~~  NN
9 sdomentr 6880 . . . . . . . 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 656 . . . . . . 7  |-  ( ( 0 ... ( ( abs `  a )  -  1 ) )  X.  ( 0 ... ( ( abs `  a
)  -  1 ) ) )  ~<  NN
11 ensym 6796 . . . . . . . 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 712 . . . . . . 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 6880 . . . . . . 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 647 . . . . . 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 4669 . . . . . . . . . 10  |-  { <. b ,  c >.  |  ( ( b  e.  NN  /\  c  e.  NN )  /\  ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a ) }  C_  ( NN  X.  NN )
1615sseli 3099 . . . . . . . . 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 743 . . . . . . . . . . . . . 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 9995 . . . . . . . . . . . . 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 738 . . . . . . . . . . . . . 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 734 . . . . . . . . . . . . . 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 11686 . . . . . . . . . . . . . 14  |-  ( ( a  e.  ZZ  /\  a  =/=  0 )  -> 
( abs `  a
)  e.  NN )
2219, 20, 21syl2anc 645 . . . . . . . . . . . . 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 10869 . . . . . . . . . . . . 13  |-  ( ( ( 1st `  d
)  e.  ZZ  /\  ( abs `  a )  e.  NN )  -> 
( ( 1st `  d
)  mod  ( abs `  a ) )  e.  ( 0 ... (
( abs `  a
)  -  1 ) ) )
2418, 22, 23syl2anc 645 . . . . . . . . . . . 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 744 . . . . . . . . . . . . . 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 9995 . . . . . . . . . . . . 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 10869 . . . . . . . . . . . . 13  |-  ( ( ( 2nd `  d
)  e.  ZZ  /\  ( abs `  a )  e.  NN )  -> 
( ( 2nd `  d
)  mod  ( abs `  a ) )  e.  ( 0 ... (
( abs `  a
)  -  1 ) ) )
2826, 22, 27syl2anc 645 . . . . . . . . . . . 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 520 . . . . . . . . . . 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 425 . . . . . . . . . 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 6004 . . . . . . . . . 10  |-  ( d  e.  ( NN  X.  NN )  <->  ( d  e.  ( _V  X.  _V )  /\  ( ( 1st `  d )  e.  NN  /\  ( 2nd `  d
)  e.  NN ) ) )
32 opelxp 4626 . . . . . . . . . 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 263 . . . . . . . . 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 30 . . . . . . . 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 420 . . . . . . 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 704 . . . . . 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 5377 . . . . . . . 8  |-  ( d  =  e  ->  ( 1st `  d )  =  ( 1st `  e
) )
3837oveq1d 5725 . . . . . . 7  |-  ( d  =  e  ->  (
( 1st `  d
)  mod  ( abs `  a ) )  =  ( ( 1st `  e
)  mod  ( abs `  a ) ) )
39 fveq2 5377 . . . . . . . 8  |-  ( d  =  e  ->  ( 2nd `  d )  =  ( 2nd `  e
) )
4039oveq1d 5725 . . . . . . 7  |-  ( d  =  e  ->  (
( 2nd `  d
)  mod  ( abs `  a ) )  =  ( ( 2nd `  e
)  mod  ( abs `  a ) ) )
4138, 40opeq12d 3704 . . . . . 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 26065 . . . . 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 2313 . . . . . . . . . . . . . 14  |-  ( b  =  f  ->  (
b  e.  NN  <->  f  e.  NN ) )
44 eleq1 2313 . . . . . . . . . . . . . 14  |-  ( c  =  g  ->  (
c  e.  NN  <->  g  e.  NN ) )
4543, 44bi2anan9 848 . . . . . . . . . . . . 13  |-  ( ( b  =  f  /\  c  =  g )  ->  ( ( b  e.  NN  /\  c  e.  NN )  <->  ( f  e.  NN  /\  g  e.  NN ) ) )
46 oveq1 5717 . . . . . . . . . . . . . . 15  |-  ( b  =  f  ->  (
b ^ 2 )  =  ( f ^
2 ) )
47 oveq1 5717 . . . . . . . . . . . . . . . 16  |-  ( c  =  g  ->  (
c ^ 2 )  =  ( g ^
2 ) )
4847oveq2d 5726 . . . . . . . . . . . . . . 15  |-  ( c  =  g  ->  ( D  x.  ( c ^ 2 ) )  =  ( D  x.  ( g ^ 2 ) ) )
4946, 48oveqan12d 5729 . . . . . . . . . . . . . 14  |-  ( ( b  =  f  /\  c  =  g )  ->  ( ( b ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  ( ( f ^ 2 )  -  ( D  x.  ( g ^ 2 ) ) ) )
5049eqeq1d 2261 . . . . . . . . . . . . 13  |-  ( ( b  =  f  /\  c  =  g )  ->  ( ( ( b ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  a  <-> 
( ( f ^
2 )  -  ( D  x.  ( g ^ 2 ) ) )  =  a ) )
5145, 50anbi12d 694 . . . . . . . . . . . 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 3985 . . . . . . . . . . 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 2317 . . . . . . . . . 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 188 . . . . . . . . 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 4165 . . . . . . . . . . 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 4165 . . . . . . . . . . . . . 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 1031 . . . . . . . . . . . . . . . . . . 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 1157 . . . . . . . . . . . . . . . . . 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 981 . . . . . . . . . . . . . . . . 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 1032 . . . . . . . . . . . . . . . . . . 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 1157 . . . . . . . . . . . . . . . . . 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 981 . . . . . . . . . . . . . . . . 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 1024 . . . . . . . . . . . . . . . . . 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 1180 . . . . . . . . . . . . . . . . 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 445 . . . . . . . . . . . . . . . . . . 19  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  D  e.  NN )
6665ad3antrrr 713 . . . . . . . . . . . . . . . . . 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 981 . . . . . . . . . . . . . . . . 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 449 . . . . . . . . . . . . . . . . . . 19  |-  ( ( D  e.  NN  /\  -.  ( sqr `  D
)  e.  QQ )  ->  -.  ( sqr `  D )  e.  QQ )
6968ad3antrrr 713 . . . . . . . . . . . . . . . . . 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 981 . . . . . . . . . . . . . . . . 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 1027 . . . . . . . . . . . . . . . . . 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 1181 . . . . . . . . . . . . . . . . 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 1028 . . . . . . . . . . . . . . . . . 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 1181 . . . . . . . . . . . . . . . . 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 986 . . . . . . . . . . . . . . . . . 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 1025 . . . . . . . . . . . . . . . . . 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 988 . . . . . . . . . . . . . . . . . 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 962 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( e  =  <. f ,  g >.  /\  d  =  <. b ,  c
>.  /\  d  =/=  e
)  ->  d  =/=  e )
79 simp2 961 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( e  =  <. f ,  g >.  /\  d  =  <. b ,  c
>.  /\  d  =/=  e
)  ->  d  =  <. b ,  c >.
)
80 simp1 960 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( e  =  <. f ,  g >.  /\  d  =  <. b ,  c
>.  /\  d  =/=  e
)  ->  e  =  <. f ,  g >.
)
8178, 79, 803netr3d 2438 . . . . . . . . . . . . . . . . . . 19  |-  ( ( e  =  <. f ,  g >.  /\  d  =  <. b ,  c
>.  /\  d  =/=  e
)  ->  <. b ,  c >.  =/=  <. f ,  g >. )
82 vex 2730 . . . . . . . . . . . . . . . . . . . . 21  |-  b  e. 
_V
83 vex 2730 . . . . . . . . . . . . . . . . . . . . 21  |-  c  e. 
_V
8482, 83opth 4138 . . . . . . . . . . . . . . . . . . . 20  |-  ( <.
b ,  c >.  =  <. f ,  g
>. 
<->  ( b  =  f  /\  c  =  g ) )
8584necon3abii 2442 . . . . . . . . . . . . . . . . . . 19  |-  ( <.
b ,  c >.  =/=  <. f ,  g
>. 
<->  -.  ( b  =  f  /\  c  =  g ) )
8681, 85sylib 190 . . . . . . . . . . . . . . . . . 18  |-  ( ( e  =  <. f ,  g >.  /\  d  =  <. b ,  c
>.  /\  d  =/=  e
)  ->  -.  (
b  =  f  /\  c  =  g )
)
8775, 76, 77, 86syl3anc 1187 . . . . . . . . . . . . . . . . 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 1024 . . . . . . . . . . . . . . . . 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 1026 . . . . . . . . . . . . . . . . . 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 1179 . . . . . . . . . . . . . . . . 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 1030 . . . . . . . . . . . . . . . . 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 989 . . . . . . . . . . . . . . . . . . 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 962 . . . . . . . . . . . . . . . . . . . . 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 5735 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( 1st `  d )  mod  ( abs `  a
) )  e.  _V
95 ovex 5735 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( 2nd `  d )  mod  ( abs `  a
) )  e.  _V
9694, 95opth 4138 . . . . . . . . . . . . . . . . . . . . 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 190 . . . . . . . . . . . . . . . . . . . 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 735 . . . . . . . . . . . . . . . . . . . . . . . 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 733 . . . . . . . . . . . . . . . . . . . . . . . . . . 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 5381 . . . . . . . . . . . . . . . . . . . . . . . . . 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 5980 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 1st `  <. b ,  c
>. )  =  b
102100, 101syl6eq 2301 . . . . . . . . . . . . . . . . . . . . . . . . 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 5725 . . . . . . . . . . . . . . . . . . . . . . . 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 734 . . . . . . . . . . . . . . . . . . . . . . . . . . 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 5381 . . . . . . . . . . . . . . . . . . . . . . . . . 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 2730 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  f  e. 
_V
107 vex 2730 . . . . . . . . . . . . . . . . . . . . . . . . . . 27  |-  g  e. 
_V
108106, 107op1st 5980 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 1st `  <. f ,  g
>. )  =  f
109105, 108syl6eq 2301 . . . . . . . . . . . . . . . . . . . . . . . . 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 5725 . . . . . . . . . . . . . . . . . . . . . . . 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 2293 . . . . . . . . . . . . . . . . . . . . . . 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 736 . . . . . . . . . . . . . . . . . . . . . . . 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 5381 . . . . . . . . . . . . . . . . . . . . . . . . . 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 5981 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 2nd `  <. b ,  c
>. )  =  c
115113, 114syl6eq 2301 . . . . . . . . . . . . . . . . . . . . . . . . 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 5725 . . . . . . . . . . . . . . . . . . . . . . . 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 5381 . . . . . . . . . . . . . . . . . . . . . . . . . 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 5981 . . . . . . . . . . . . . . . . . . . . . . . . . 26  |-  ( 2nd `  <. f ,  g
>. )  =  g
119117, 118syl6eq 2301 . . . . . . . . . . . . . . . . . . . . . . . . 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 5725 . . . . . . . . . . . . . . . . . . . . . . . 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 2293 . . . . . . . . . . . . . . . . . . . . . . 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 520 . . . . . . . . . . . . . . . . . . . . . 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 425 . . . . . . . . . . . . . . . . . . . . 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 980 . . . . . . . . . . . . . . . . . . . 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 16 . . . . . . . . . . . . . . . . . . 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 1187 . . . . . . . . . . . . . . . . . 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 447 . . . . . . . . . . . . . . . . 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 451 . . . . . . . . . . . . . . . . 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 26085 . . . . . . . . . . . . . . . 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 1155 . . . . . . . . . . . . . . 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 2026 . . . . . . . . . . . . . 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 210 . . . . . . . . . . . . 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 425 . . . . . . . . . . . 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 2026 . . . . . . . . . . 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 210 . . . . . . . . . 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 422 . . . . . . . . 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 639 . . . . . . . 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 2635 . . . . . . 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 420 . . . . . 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 704 . . . . 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 652 . . . 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 425 . . 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 2629 . 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 16 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 5    -> wi 6    /\ wa 360    /\ w3a 939   E.wex 1537    = wceq 1619    e. wcel 1621    =/= wne 2412   E.wrex 2510   _Vcvv 2727   <.cop 3547   class class class wbr 3920   {copab 3973   omcom 4547    X. cxp 4578   ` cfv 4592  (class class class)co 5710   1stc1st 5972   2ndc2nd 5973    ~~ cen 6746    ~< csdm 6748   Fincfn 6749   0cc0 8617   1c1 8618    x. cmul 8622    - cmin 8917   NNcn 9626   2c2 9675   ZZcz 9903   QQcq 10195   ...cfz 10660    mod cmo 10851   ^cexp 10982   sqrcsqr 11595   abscabs 11596
This theorem is referenced by:  pellqrex  26130
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-5 1533  ax-6 1534  ax-7 1535  ax-gen 1536  ax-8 1623  ax-11 1624  ax-13 1625  ax-14 1626  ax-17 1628  ax-12o 1664  ax-10 1678  ax-9 1684  ax-4 1692  ax-16 1926  ax-ext 2234  ax-rep 4028  ax-sep 4038  ax-nul 4046  ax-pow 4082  ax-pr 4108  ax-un 4403  ax-inf2 7226  ax-cnex 8673  ax-resscn 8674  ax-1cn 8675  ax-icn 8676  ax-addcl 8677  ax-addrcl 8678  ax-mulcl 8679  ax-mulrcl 8680  ax-mulcom 8681  ax-addass 8682  ax-mulass 8683  ax-distr 8684  ax-i2m1 8685  ax-1ne0 8686  ax-1rid 8687  ax-rnegex 8688  ax-rrecex 8689  ax-cnre 8690  ax-pre-lttri 8691  ax-pre-lttrn 8692  ax-pre-ltadd 8693  ax-pre-mulgt0 8694  ax-pre-sup 8695
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 940  df-3an 941  df-tru 1315  df-ex 1538  df-nf 1540  df-sb 1883  df-eu 2118  df-mo 2119  df-clab 2240  df-cleq 2246  df-clel 2249  df-nfc 2374  df-ne 2414  df-nel 2415  df-ral 2513  df-rex 2514  df-reu 2515  df-rab 2516  df-v 2729  df-sbc 2922  df-csb 3010  df-dif 3081  df-un 3083  df-in 3085  df-ss 3089  df-pss 3091  df-nul 3363  df-if 3471  df-pw 3532  df-sn 3550  df-pr 3551  df-tp 3552  df-op 3553  df-uni 3728  df-int 3761  df-iun 3805  df-br 3921  df-opab 3975  df-mpt 3976  df-tr 4011  df-eprel 4198  df-id 4202  df-po 4207  df-so 4208  df-fr 4245  df-se 4246  df-we 4247  df-ord 4288  df-on 4289  df-lim 4290  df-suc 4291  df-om 4548  df-xp 4594  df-rel 4595  df-cnv 4596  df-co 4597  df-dm 4598  df-rn 4599  df-res 4600  df-ima 4601  df-fun 4602  df-fn 4603  df-f 4604  df-f1 4605  df-fo 4606  df-f1o 4607  df-fv 4608  df-isom 4609  df-ov 5713  df-oprab 5714  df-mpt2 5715  df-1st 5974  df-2nd 5975  df-iota 6143  df-riota 6190  df-recs 6274  df-rdg 6309  df-1o 6365  df-oadd 6369  df-omul 6370  df-er 6546  df-map 6660  df-en 6750  df-dom 6751  df-sdom 6752  df-fin 6753  df-sup 7078  df-oi 7109  df-card 7456  df-acn 7459  df-pnf 8749  df-mnf 8750  df-xr 8751  df-ltxr 8752  df-le 8753  df-sub 8919  df-neg 8920  df-div 9304  df-n 9627  df-2 9684  df-3 9685  df-n0 9845  df-z 9904  df-uz 10110  df-q 10196  df-rp 10234  df-ico 10540  df-fz 10661  df-fl 10803  df-mod 10852  df-seq 10925  df-exp 10983  df-hash 11216  df-cj 11461  df-re 11462  df-im 11463  df-sqr 11597  df-abs 11598  df-divides 12406  df-gcd 12560  df-numer 12680  df-denom 12681
  Copyright terms: Public domain W3C validator