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

Theorem pell14qrdich 26830
Description: A positive Pell solution is either in the first quadrant, or its reciprocal is. (Contributed by Stefan O'Rear, 18-Sep-2014.)
Assertion
Ref Expression
pell14qrdich  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  -> 
( A  e.  (Pell1QR `  D )  \/  (
1  /  A )  e.  (Pell1QR `  D
) ) )

Proof of Theorem pell14qrdich
Dummy variables  a 
b  c are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elpell14qr 26810 . . 3  |-  ( D  e.  ( NN  \NN )  -> 
( A  e.  (Pell14QR `  D )  <->  ( A  e.  RR  /\  E. a  e.  NN0  E. b  e.  ZZ  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) ) ) )
21biimpa 471 . 2  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  -> 
( A  e.  RR  /\ 
E. a  e.  NN0  E. b  e.  ZZ  ( A  =  ( a  +  ( ( sqr `  D )  x.  b
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( b ^
2 ) ) )  =  1 ) ) )
3 simplrr 738 . . . . . . . 8  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
b  e.  ZZ )
4 elznn0 10260 . . . . . . . 8  |-  ( b  e.  ZZ  <->  ( b  e.  RR  /\  ( b  e.  NN0  \/  -u b  e.  NN0 ) ) )
53, 4sylib 189 . . . . . . 7  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( b  e.  RR  /\  ( b  e.  NN0  \/  -u b  e.  NN0 ) ) )
65simprd 450 . . . . . 6  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( b  e.  NN0  \/  -u b  e.  NN0 ) )
7 simplr 732 . . . . . . . . . . 11  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  A  e.  RR )
87ad2antrr 707 . . . . . . . . . 10  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  b  e.  NN0 )  ->  A  e.  RR )
9 simprl 733 . . . . . . . . . . . 12  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  a  e.  NN0 )
109ad2antrr 707 . . . . . . . . . . 11  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  b  e.  NN0 )  -> 
a  e.  NN0 )
11 simpr 448 . . . . . . . . . . 11  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  b  e.  NN0 )  -> 
b  e.  NN0 )
12 simplr 732 . . . . . . . . . . 11  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  b  e.  NN0 )  -> 
( A  =  ( a  +  ( ( sqr `  D )  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  (
b ^ 2 ) ) )  =  1 ) )
13 rsp2e 2737 . . . . . . . . . . 11  |-  ( ( a  e.  NN0  /\  b  e.  NN0  /\  ( A  =  ( a  +  ( ( sqr `  D )  x.  b
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( b ^
2 ) ) )  =  1 ) )  ->  E. a  e.  NN0  E. b  e.  NN0  ( A  =  ( a  +  ( ( sqr `  D )  x.  b
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( b ^
2 ) ) )  =  1 ) )
1410, 11, 12, 13syl3anc 1184 . . . . . . . . . 10  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  b  e.  NN0 )  ->  E. a  e.  NN0  E. b  e.  NN0  ( A  =  ( a  +  ( ( sqr `  D )  x.  b
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( b ^
2 ) ) )  =  1 ) )
158, 14jca 519 . . . . . . . . 9  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  b  e.  NN0 )  -> 
( A  e.  RR  /\ 
E. a  e.  NN0  E. b  e.  NN0  ( A  =  ( a  +  ( ( sqr `  D )  x.  b
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( b ^
2 ) ) )  =  1 ) ) )
1615ex 424 . . . . . . . 8  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( b  e.  NN0  ->  ( A  e.  RR  /\ 
E. a  e.  NN0  E. b  e.  NN0  ( A  =  ( a  +  ( ( sqr `  D )  x.  b
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( b ^
2 ) ) )  =  1 ) ) ) )
17 elpell1qr 26808 . . . . . . . . 9  |-  ( D  e.  ( NN  \NN )  -> 
( A  e.  (Pell1QR `  D )  <->  ( A  e.  RR  /\  E. a  e.  NN0  E. b  e. 
NN0  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) ) ) )
1817ad4antr 713 . . . . . . . 8  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( A  e.  (Pell1QR `  D )  <->  ( A  e.  RR  /\  E. a  e.  NN0  E. b  e. 
NN0  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) ) ) )
1916, 18sylibrd 226 . . . . . . 7  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( b  e.  NN0  ->  A  e.  (Pell1QR `  D
) ) )
207ad2antrr 707 . . . . . . . . . . 11  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  A  e.  RR )
21 pell14qrne0 26819 . . . . . . . . . . . 12  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  ->  A  =/=  0 )
2221ad4antr 713 . . . . . . . . . . 11  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  A  =/=  0 )
2320, 22rereccld 9805 . . . . . . . . . 10  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  ( 1  /  A
)  e.  RR )
249ad2antrr 707 . . . . . . . . . . 11  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  a  e.  NN0 )
25 simpr 448 . . . . . . . . . . . 12  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  -> 
-u b  e.  NN0 )
26 pell14qrre 26818 . . . . . . . . . . . . . . . . . 18  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  ->  A  e.  RR )
2726recnd 9078 . . . . . . . . . . . . . . . . 17  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  ->  A  e.  CC )
2827, 21reccld 9747 . . . . . . . . . . . . . . . 16  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  -> 
( 1  /  A
)  e.  CC )
2928ad3antrrr 711 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( 1  /  A
)  e.  CC )
30 nn0cn 10195 . . . . . . . . . . . . . . . . . 18  |-  ( a  e.  NN0  ->  a  e.  CC )
3130ad2antrl 709 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  a  e.  CC )
32 eldifi 3437 . . . . . . . . . . . . . . . . . . . . 21  |-  ( D  e.  ( NN  \NN )  ->  D  e.  NN )
3332nncnd 9980 . . . . . . . . . . . . . . . . . . . 20  |-  ( D  e.  ( NN  \NN )  ->  D  e.  CC )
3433ad3antrrr 711 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  D  e.  CC )
3534sqrcld 12202 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( sqr `  D )  e.  CC )
36 zcn 10251 . . . . . . . . . . . . . . . . . . . 20  |-  ( b  e.  ZZ  ->  b  e.  CC )
3736ad2antll 710 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  b  e.  CC )
3837negcld 9362 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  -u b  e.  CC )
3935, 38mulcld 9072 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( ( sqr `  D )  x.  -u b )  e.  CC )
4031, 39addcld 9071 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( a  +  ( ( sqr `  D )  x.  -u b
) )  e.  CC )
4140adantr 452 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( a  +  ( ( sqr `  D
)  x.  -u b
) )  e.  CC )
4227ad3antrrr 711 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  ->  A  e.  CC )
4321ad3antrrr 711 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  ->  A  =/=  0 )
4427, 21recidd 9749 . . . . . . . . . . . . . . . . . 18  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  -> 
( A  x.  (
1  /  A ) )  =  1 )
4544ad3antrrr 711 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( A  x.  (
1  /  A ) )  =  1 )
46 simprr 734 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( ( a ^
2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 )
4745, 46eqtr4d 2447 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( A  x.  (
1  /  A ) )  =  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) ) )
4831adantr 452 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  A  =  ( a  +  ( ( sqr `  D
)  x.  b ) ) )  ->  a  e.  CC )
4935, 37mulcld 9072 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( ( sqr `  D )  x.  b )  e.  CC )
5049adantr 452 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  A  =  ( a  +  ( ( sqr `  D
)  x.  b ) ) )  ->  (
( sqr `  D
)  x.  b )  e.  CC )
51 subsq 11451 . . . . . . . . . . . . . . . . . . 19  |-  ( ( a  e.  CC  /\  ( ( sqr `  D
)  x.  b )  e.  CC )  -> 
( ( a ^
2 )  -  (
( ( sqr `  D
)  x.  b ) ^ 2 ) )  =  ( ( a  +  ( ( sqr `  D )  x.  b
) )  x.  (
a  -  ( ( sqr `  D )  x.  b ) ) ) )
5248, 50, 51syl2anc 643 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  A  =  ( a  +  ( ( sqr `  D
)  x.  b ) ) )  ->  (
( a ^ 2 )  -  ( ( ( sqr `  D
)  x.  b ) ^ 2 ) )  =  ( ( a  +  ( ( sqr `  D )  x.  b
) )  x.  (
a  -  ( ( sqr `  D )  x.  b ) ) ) )
5335, 37sqmuld 11498 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( (
( sqr `  D
)  x.  b ) ^ 2 )  =  ( ( ( sqr `  D ) ^ 2 )  x.  ( b ^ 2 ) ) )
5434sqsqrd 12204 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( ( sqr `  D ) ^
2 )  =  D )
5554oveq1d 6063 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( (
( sqr `  D
) ^ 2 )  x.  ( b ^
2 ) )  =  ( D  x.  (
b ^ 2 ) ) )
5653, 55eqtr2d 2445 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( D  x.  ( b ^ 2 ) )  =  ( ( ( sqr `  D
)  x.  b ) ^ 2 ) )
5756oveq2d 6064 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( (
a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  ( ( a ^
2 )  -  (
( ( sqr `  D
)  x.  b ) ^ 2 ) ) )
5857adantr 452 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  A  =  ( a  +  ( ( sqr `  D
)  x.  b ) ) )  ->  (
( a ^ 2 )  -  ( D  x.  ( b ^
2 ) ) )  =  ( ( a ^ 2 )  -  ( ( ( sqr `  D )  x.  b
) ^ 2 ) ) )
59 simpr 448 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  A  =  ( a  +  ( ( sqr `  D
)  x.  b ) ) )  ->  A  =  ( a  +  ( ( sqr `  D
)  x.  b ) ) )
6035, 37mulneg2d 9451 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( ( sqr `  D )  x.  -u b )  =  -u ( ( sqr `  D
)  x.  b ) )
6160oveq2d 6064 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( a  +  ( ( sqr `  D )  x.  -u b
) )  =  ( a  +  -u (
( sqr `  D
)  x.  b ) ) )
62 negsub 9313 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( a  e.  CC  /\  ( ( sqr `  D
)  x.  b )  e.  CC )  -> 
( a  +  -u ( ( sqr `  D
)  x.  b ) )  =  ( a  -  ( ( sqr `  D )  x.  b
) ) )
6362eqcomd 2417 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( a  e.  CC  /\  ( ( sqr `  D
)  x.  b )  e.  CC )  -> 
( a  -  (
( sqr `  D
)  x.  b ) )  =  ( a  +  -u ( ( sqr `  D )  x.  b
) ) )
6431, 49, 63syl2anc 643 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( a  -  ( ( sqr `  D )  x.  b
) )  =  ( a  +  -u (
( sqr `  D
)  x.  b ) ) )
6561, 64eqtr4d 2447 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( a  +  ( ( sqr `  D )  x.  -u b
) )  =  ( a  -  ( ( sqr `  D )  x.  b ) ) )
6665adantr 452 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  A  =  ( a  +  ( ( sqr `  D
)  x.  b ) ) )  ->  (
a  +  ( ( sqr `  D )  x.  -u b ) )  =  ( a  -  ( ( sqr `  D
)  x.  b ) ) )
6759, 66oveq12d 6066 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  A  =  ( a  +  ( ( sqr `  D
)  x.  b ) ) )  ->  ( A  x.  ( a  +  ( ( sqr `  D )  x.  -u b
) ) )  =  ( ( a  +  ( ( sqr `  D
)  x.  b ) )  x.  ( a  -  ( ( sqr `  D )  x.  b
) ) ) )
6852, 58, 673eqtr4d 2454 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  A  =  ( a  +  ( ( sqr `  D
)  x.  b ) ) )  ->  (
( a ^ 2 )  -  ( D  x.  ( b ^
2 ) ) )  =  ( A  x.  ( a  +  ( ( sqr `  D
)  x.  -u b
) ) ) )
6968adantrr 698 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( ( a ^
2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  ( A  x.  ( a  +  ( ( sqr `  D
)  x.  -u b
) ) ) )
7047, 69eqtrd 2444 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( A  x.  (
1  /  A ) )  =  ( A  x.  ( a  +  ( ( sqr `  D
)  x.  -u b
) ) ) )
7129, 41, 42, 43, 70mulcanad 9621 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( 1  /  A
)  =  ( a  +  ( ( sqr `  D )  x.  -u b
) ) )
7271adantr 452 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  ( 1  /  A
)  =  ( a  +  ( ( sqr `  D )  x.  -u b
) ) )
7337ad2antrr 707 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  b  e.  CC )
74 sqneg 11405 . . . . . . . . . . . . . . . . 17  |-  ( b  e.  CC  ->  ( -u b ^ 2 )  =  ( b ^
2 ) )
7573, 74syl 16 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  ( -u b ^
2 )  =  ( b ^ 2 ) )
7675oveq2d 6064 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  ( D  x.  ( -u b ^ 2 ) )  =  ( D  x.  ( b ^
2 ) ) )
7776oveq2d 6064 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  ( ( a ^
2 )  -  ( D  x.  ( -u b ^ 2 ) ) )  =  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) ) )
78 simplrr 738 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  ( ( a ^
2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 )
7977, 78eqtrd 2444 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  ( ( a ^
2 )  -  ( D  x.  ( -u b ^ 2 ) ) )  =  1 )
8072, 79jca 519 . . . . . . . . . . . 12  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  ( ( 1  /  A )  =  ( a  +  ( ( sqr `  D )  x.  -u b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( -u b ^ 2 ) ) )  =  1 ) )
81 oveq2 6056 . . . . . . . . . . . . . . . 16  |-  ( c  =  -u b  ->  (
( sqr `  D
)  x.  c )  =  ( ( sqr `  D )  x.  -u b
) )
8281oveq2d 6064 . . . . . . . . . . . . . . 15  |-  ( c  =  -u b  ->  (
a  +  ( ( sqr `  D )  x.  c ) )  =  ( a  +  ( ( sqr `  D
)  x.  -u b
) ) )
8382eqeq2d 2423 . . . . . . . . . . . . . 14  |-  ( c  =  -u b  ->  (
( 1  /  A
)  =  ( a  +  ( ( sqr `  D )  x.  c
) )  <->  ( 1  /  A )  =  ( a  +  ( ( sqr `  D
)  x.  -u b
) ) ) )
84 oveq1 6055 . . . . . . . . . . . . . . . . 17  |-  ( c  =  -u b  ->  (
c ^ 2 )  =  ( -u b ^ 2 ) )
8584oveq2d 6064 . . . . . . . . . . . . . . . 16  |-  ( c  =  -u b  ->  ( D  x.  ( c ^ 2 ) )  =  ( D  x.  ( -u b ^ 2 ) ) )
8685oveq2d 6064 . . . . . . . . . . . . . . 15  |-  ( c  =  -u b  ->  (
( a ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  ( ( a ^ 2 )  -  ( D  x.  ( -u b ^ 2 ) ) ) )
8786eqeq1d 2420 . . . . . . . . . . . . . 14  |-  ( c  =  -u b  ->  (
( ( a ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  1  <->  (
( a ^ 2 )  -  ( D  x.  ( -u b ^ 2 ) ) )  =  1 ) )
8883, 87anbi12d 692 . . . . . . . . . . . . 13  |-  ( c  =  -u b  ->  (
( ( 1  /  A )  =  ( a  +  ( ( sqr `  D )  x.  c ) )  /\  ( ( a ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  1 )  <->  ( ( 1  /  A )  =  ( a  +  ( ( sqr `  D
)  x.  -u b
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( -u b ^ 2 ) ) )  =  1 ) ) )
8988rspcev 3020 . . . . . . . . . . . 12  |-  ( (
-u b  e.  NN0  /\  ( ( 1  /  A )  =  ( a  +  ( ( sqr `  D )  x.  -u b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( -u b ^ 2 ) ) )  =  1 ) )  ->  E. c  e.  NN0  ( ( 1  /  A )  =  ( a  +  ( ( sqr `  D
)  x.  c ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  1 ) )
9025, 80, 89syl2anc 643 . . . . . . . . . . 11  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  E. c  e.  NN0  ( ( 1  /  A )  =  ( a  +  ( ( sqr `  D )  x.  c ) )  /\  ( ( a ^ 2 )  -  ( D  x.  (
c ^ 2 ) ) )  =  1 ) )
91 rspe 2735 . . . . . . . . . . 11  |-  ( ( a  e.  NN0  /\  E. c  e.  NN0  (
( 1  /  A
)  =  ( a  +  ( ( sqr `  D )  x.  c
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  1 ) )  ->  E. a  e.  NN0  E. c  e.  NN0  (
( 1  /  A
)  =  ( a  +  ( ( sqr `  D )  x.  c
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  1 ) )
9224, 90, 91syl2anc 643 . . . . . . . . . 10  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  E. a  e.  NN0  E. c  e.  NN0  (
( 1  /  A
)  =  ( a  +  ( ( sqr `  D )  x.  c
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  1 ) )
9323, 92jca 519 . . . . . . . . 9  |-  ( ( ( ( ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  /\  A  e.  RR )  /\  ( a  e.  NN0  /\  b  e.  ZZ ) )  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  /\  -u b  e.  NN0 )  ->  ( ( 1  /  A )  e.  RR  /\ 
E. a  e.  NN0  E. c  e.  NN0  (
( 1  /  A
)  =  ( a  +  ( ( sqr `  D )  x.  c
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  1 ) ) )
9493ex 424 . . . . . . . 8  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( -u b  e.  NN0  ->  ( ( 1  /  A )  e.  RR  /\ 
E. a  e.  NN0  E. c  e.  NN0  (
( 1  /  A
)  =  ( a  +  ( ( sqr `  D )  x.  c
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  1 ) ) ) )
95 elpell1qr 26808 . . . . . . . . 9  |-  ( D  e.  ( NN  \NN )  -> 
( ( 1  /  A )  e.  (Pell1QR `  D )  <->  ( (
1  /  A )  e.  RR  /\  E. a  e.  NN0  E. c  e.  NN0  ( ( 1  /  A )  =  ( a  +  ( ( sqr `  D
)  x.  c ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  1 ) ) ) )
9695ad4antr 713 . . . . . . . 8  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( ( 1  /  A )  e.  (Pell1QR `  D )  <->  ( (
1  /  A )  e.  RR  /\  E. a  e.  NN0  E. c  e.  NN0  ( ( 1  /  A )  =  ( a  +  ( ( sqr `  D
)  x.  c ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  1 ) ) ) )
9794, 96sylibrd 226 . . . . . . 7  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( -u b  e.  NN0  ->  ( 1  /  A
)  e.  (Pell1QR `  D
) ) )
9819, 97orim12d 812 . . . . . 6  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( ( b  e. 
NN0  \/  -u b  e. 
NN0 )  ->  ( A  e.  (Pell1QR `  D
)  \/  ( 1  /  A )  e.  (Pell1QR `  D )
) ) )
996, 98mpd 15 . . . . 5  |-  ( ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D
) )  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  /\  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( A  e.  (Pell1QR `  D )  \/  (
1  /  A )  e.  (Pell1QR `  D
) ) )
10099ex 424 . . . 4  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( ( A  =  ( a  +  ( ( sqr `  D )  x.  b
) )  /\  (
( a ^ 2 )  -  ( D  x.  ( b ^
2 ) ) )  =  1 )  -> 
( A  e.  (Pell1QR `  D )  \/  (
1  /  A )  e.  (Pell1QR `  D
) ) ) )
101100rexlimdvva 2805 . . 3  |-  ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  ->  ( E. a  e.  NN0  E. b  e.  ZZ  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 )  ->  ( A  e.  (Pell1QR `  D
)  \/  ( 1  /  A )  e.  (Pell1QR `  D )
) ) )
102101expimpd 587 . 2  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  -> 
( ( A  e.  RR  /\  E. a  e.  NN0  E. b  e.  ZZ  ( A  =  ( a  +  ( ( sqr `  D
)  x.  b ) )  /\  ( ( a ^ 2 )  -  ( D  x.  ( b ^ 2 ) ) )  =  1 ) )  -> 
( A  e.  (Pell1QR `  D )  \/  (
1  /  A )  e.  (Pell1QR `  D
) ) ) )
1032, 102mpd 15 1  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  -> 
( A  e.  (Pell1QR `  D )  \/  (
1  /  A )  e.  (Pell1QR `  D
) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 177    \/ wo 358    /\ wa 359    = wceq 1649    e. wcel 1721    =/= wne 2575   E.wrex 2675    \ cdif 3285   ` cfv 5421  (class class class)co 6048   CCcc 8952   RRcr 8953   0cc0 8954   1c1 8955    + caddc 8957    x. cmul 8959    - cmin 9255   -ucneg 9256    / cdiv 9641   NNcn 9964   2c2 10013   NN0cn0 10185   ZZcz 10246   ^cexp 11345   sqrcsqr 12001  ◻NNcsquarenn 26797  Pell1QRcpell1qr 26798  Pell14QRcpell14qr 26800
This theorem is referenced by:  elpell1qr2  26833
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1662  ax-8 1683  ax-13 1723  ax-14 1725  ax-6 1740  ax-7 1745  ax-11 1757  ax-12 1946  ax-ext 2393  ax-sep 4298  ax-nul 4306  ax-pow 4345  ax-pr 4371  ax-un 4668  ax-cnex 9010  ax-resscn 9011  ax-1cn 9012  ax-icn 9013  ax-addcl 9014  ax-addrcl 9015  ax-mulcl 9016  ax-mulrcl 9017  ax-mulcom 9018  ax-addass 9019  ax-mulass 9020  ax-distr 9021  ax-i2m1 9022  ax-1ne0 9023  ax-1rid 9024  ax-rnegex 9025  ax-rrecex 9026  ax-cnre 9027  ax-pre-lttri 9028  ax-pre-lttrn 9029  ax-pre-ltadd 9030  ax-pre-mulgt0 9031  ax-pre-sup 9032
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2266  df-mo 2267  df-clab 2399  df-cleq 2405  df-clel 2408  df-nfc 2537  df-ne 2577  df-nel 2578  df-ral 2679  df-rex 2680  df-reu 2681  df-rmo 2682  df-rab 2683  df-v 2926  df-sbc 3130  df-csb 3220  df-dif 3291  df-un 3293  df-in 3295  df-ss 3302  df-pss 3304  df-nul 3597  df-if 3708  df-pw 3769  df-sn 3788  df-pr 3789  df-tp 3790  df-op 3791  df-uni 3984  df-iun 4063  df-br 4181  df-opab 4235  df-mpt 4236  df-tr 4271  df-eprel 4462  df-id 4466  df-po 4471  df-so 4472  df-fr 4509  df-we 4511  df-ord 4552  df-on 4553  df-lim 4554  df-suc 4555  df-om 4813  df-xp 4851  df-rel 4852  df-cnv 4853  df-co 4854  df-dm 4855  df-rn 4856  df-res 4857  df-ima 4858  df-iota 5385  df-fun 5423  df-fn 5424  df-f 5425  df-f1 5426  df-fo 5427  df-f1o 5428  df-fv 5429  df-ov 6051  df-oprab 6052  df-mpt2 6053  df-2nd 6317  df-riota 6516  df-recs 6600  df-rdg 6635  df-er 6872  df-en 7077  df-dom 7078  df-sdom 7079  df-sup 7412  df-pnf 9086  df-mnf 9087  df-xr 9088  df-ltxr 9089  df-le 9090  df-sub 9257  df-neg 9258  df-div 9642  df-nn 9965  df-2 10022  df-3 10023  df-n0 10186  df-z 10247  df-uz 10453  df-rp 10577  df-seq 11287  df-exp 11346  df-cj 11867  df-re 11868  df-im 11869  df-sqr 12003  df-abs 12004  df-pell1qr 26803  df-pell14qr 26804  df-pell1234qr 26805
  Copyright terms: Public domain W3C validator