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

Theorem pell14qrdich 26954
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 26934 . . 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 470 . 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 737 . . . . . . . 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 10038 . . . . . . . 8  |-  ( b  e.  ZZ  <->  ( b  e.  RR  /\  ( b  e.  NN0  \/  -u b  e.  NN0 ) ) )
53, 4sylib 188 . . . . . . 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 449 . . . . . 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 731 . . . . . . . . . . 11  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  A  e.  RR )
87ad2antrr 706 . . . . . . . . . 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 732 . . . . . . . . . . . 12  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  a  e.  NN0 )
109ad2antrr 706 . . . . . . . . . . 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 447 . . . . . . . . . . 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 731 . . . . . . . . . . 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 2606 . . . . . . . . . . 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 1182 . . . . . . . . . 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 518 . . . . . . . . 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 423 . . . . . . . 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 26932 . . . . . . . . . 10  |-  ( 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 ) ) ) )
1817adantr 451 . . . . . . . . 9  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  -> 
( 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 ) ) ) )
1918ad3antrrr 710 . . . . . . . 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 ) ) ) )
2016, 19sylibrd 225 . . . . . . 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
) ) )
217ad2antrr 706 . . . . . . . . . . 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 )
22 simpll 730 . . . . . . . . . . . . 13  |-  ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  ->  D  e.  ( NN  \NN ) )
2322ad3antrrr 710 . . . . . . . . . . . 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 )  ->  D  e.  ( NN 
\NN ) )
24 simplr 731 . . . . . . . . . . . . 13  |-  ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  ->  A  e.  (Pell14QR `  D )
)
2524ad3antrrr 710 . . . . . . . . . . . 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 )  ->  A  e.  (Pell14QR `  D
) )
26 pell14qrne0 26943 . . . . . . . . . . . 12  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  ->  A  =/=  0 )
2723, 25, 26syl2anc 642 . . . . . . . . . . 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 )
2821, 27rereccld 9587 . . . . . . . . . 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 )
299ad2antrr 706 . . . . . . . . . . 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 )
30 simpr 447 . . . . . . . . . . . 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 )
31 pell14qrre 26942 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  ->  A  e.  RR )
3231recnd 8861 . . . . . . . . . . . . . . . . . . 19  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  ->  A  e.  CC )
3332, 26recidd 9531 . . . . . . . . . . . . . . . . . 18  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  -> 
( A  x.  (
1  /  A ) )  =  1 )
3433ad3antrrr 710 . . . . . . . . . . . . . . . . 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 )
35 simprr 733 . . . . . . . . . . . . . . . . 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 )
3634, 35eqtr4d 2318 . . . . . . . . . . . . . . . 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 ) ) ) )
37 nn0cn 9975 . . . . . . . . . . . . . . . . . . . . 21  |-  ( a  e.  NN0  ->  a  e.  CC )
3837ad2antrl 708 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  a  e.  CC )
3938adantr 451 . . . . . . . . . . . . . . . . . . 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 )
40 eldifi 3298 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( D  e.  ( NN  \NN )  ->  D  e.  NN )
4140nncnd 9762 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( D  e.  ( NN  \NN )  ->  D  e.  CC )
4241ad3antrrr 710 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  D  e.  CC )
4342sqrcld 11919 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( sqr `  D )  e.  CC )
44 zcn 10029 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( b  e.  ZZ  ->  b  e.  CC )
4544ad2antll 709 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  b  e.  CC )
4643, 45mulcld 8855 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( ( sqr `  D )  x.  b )  e.  CC )
4746adantr 451 . . . . . . . . . . . . . . . . . . 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 )
48 subsq 11210 . . . . . . . . . . . . . . . . . . 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 ) ) ) )
4939, 47, 48syl2anc 642 . . . . . . . . . . . . . . . . . 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 ) ) ) )
5043, 45sqmuld 11257 . . . . . . . . . . . . . . . . . . . . 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 ) ) )
5142sqsqrd 11921 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( ( sqr `  D ) ^
2 )  =  D )
5251oveq1d 5873 . . . . . . . . . . . . . . . . . . . . 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 ) ) )
5350, 52eqtr2d 2316 . . . . . . . . . . . . . . . . . . . 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 ) )
5453oveq2d 5874 . . . . . . . . . . . . . . . . . . 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 ) ) )
5554adantr 451 . . . . . . . . . . . . . . . . . 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 ) ) )
56 simpr 447 . . . . . . . . . . . . . . . . . . 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 ) ) )
5743, 45mulneg2d 9233 . . . . . . . . . . . . . . . . . . . . . 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 ) )
5857oveq2d 5874 . . . . . . . . . . . . . . . . . . . . 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 ) ) )
59 negsub 9095 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( a  e.  CC  /\  ( ( sqr `  D
)  x.  b )  e.  CC )  -> 
( a  +  -u ( ( sqr `  D
)  x.  b ) )  =  ( a  -  ( ( sqr `  D )  x.  b
) ) )
6059eqcomd 2288 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( a  e.  CC  /\  ( ( sqr `  D
)  x.  b )  e.  CC )  -> 
( a  -  (
( sqr `  D
)  x.  b ) )  =  ( a  +  -u ( ( sqr `  D )  x.  b
) ) )
6138, 46, 60syl2anc 642 . . . . . . . . . . . . . . . . . . . . 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 ) ) )
6258, 61eqtr4d 2318 . . . . . . . . . . . . . . . . . . . 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 ) ) )
6362adantr 451 . . . . . . . . . . . . . . . . . . 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 ) ) )
6456, 63oveq12d 5876 . . . . . . . . . . . . . . . . . 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
) ) ) )
6549, 55, 643eqtr4d 2325 . . . . . . . . . . . . . . . . 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
) ) ) )
6665adantrr 697 . . . . . . . . . . . . . . . 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
) ) ) )
6736, 66eqtrd 2315 . . . . . . . . . . . . . . 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
) ) ) )
6832, 26reccld 9529 . . . . . . . . . . . . . . . . 17  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  -> 
( 1  /  A
)  e.  CC )
6968ad3antrrr 710 . . . . . . . . . . . . . . . 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 ) )  -> 
( 1  /  A
)  e.  CC )
7045negcld 9144 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  -u b  e.  CC )
7143, 70mulcld 8855 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ( D  e.  ( NN  \NN )  /\  A  e.  (Pell14QR `  D )
)  /\  A  e.  RR )  /\  (
a  e.  NN0  /\  b  e.  ZZ )
)  ->  ( ( sqr `  D )  x.  -u b )  e.  CC )
7238, 71addcld 8854 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( 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 )
7372adantr 451 . . . . . . . . . . . . . . . 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  +  ( ( sqr `  D
)  x.  -u b
) )  e.  CC )
7432ad3antrrr 710 . . . . . . . . . . . . . . . 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  e.  CC )
7526ad3antrrr 710 . . . . . . . . . . . . . . . 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  =/=  0 )
7669, 73, 74, 75mulcand 9401 . . . . . . . . . . . . . . 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
) ) )  <->  ( 1  /  A )  =  ( a  +  ( ( sqr `  D
)  x.  -u b
) ) ) )
7767, 76mpbid 201 . . . . . . . . . . . . . 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
) ) )
7877adantr 451 . . . . . . . . . . . . 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
) ) )
7945ad2antrr 706 . . . . . . . . . . . . . . . . 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 )
80 sqneg 11164 . . . . . . . . . . . . . . . . 17  |-  ( b  e.  CC  ->  ( -u b ^ 2 )  =  ( b ^
2 ) )
8179, 80syl 15 . . . . . . . . . . . . . . . 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 ) )
8281oveq2d 5874 . . . . . . . . . . . . . . 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 ) ) )
8382oveq2d 5874 . . . . . . . . . . . . . 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 ) ) ) )
84 simplrr 737 . . . . . . . . . . . . . 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 )
8583, 84eqtrd 2315 . . . . . . . . . . . . 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 )
8678, 85jca 518 . . . . . . . . . . . 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 ) )
87 oveq2 5866 . . . . . . . . . . . . . . . 16  |-  ( c  =  -u b  ->  (
( sqr `  D
)  x.  c )  =  ( ( sqr `  D )  x.  -u b
) )
8887oveq2d 5874 . . . . . . . . . . . . . . 15  |-  ( c  =  -u b  ->  (
a  +  ( ( sqr `  D )  x.  c ) )  =  ( a  +  ( ( sqr `  D
)  x.  -u b
) ) )
8988eqeq2d 2294 . . . . . . . . . . . . . 14  |-  ( c  =  -u b  ->  (
( 1  /  A
)  =  ( a  +  ( ( sqr `  D )  x.  c
) )  <->  ( 1  /  A )  =  ( a  +  ( ( sqr `  D
)  x.  -u b
) ) ) )
90 oveq1 5865 . . . . . . . . . . . . . . . . 17  |-  ( c  =  -u b  ->  (
c ^ 2 )  =  ( -u b ^ 2 ) )
9190oveq2d 5874 . . . . . . . . . . . . . . . 16  |-  ( c  =  -u b  ->  ( D  x.  ( c ^ 2 ) )  =  ( D  x.  ( -u b ^ 2 ) ) )
9291oveq2d 5874 . . . . . . . . . . . . . . 15  |-  ( c  =  -u b  ->  (
( a ^ 2 )  -  ( D  x.  ( c ^
2 ) ) )  =  ( ( a ^ 2 )  -  ( D  x.  ( -u b ^ 2 ) ) ) )
9392eqeq1d 2291 . . . . . . . . . . . . . 14  |-  ( c  =  -u b  ->  (
( ( a ^
2 )  -  ( D  x.  ( c ^ 2 ) ) )  =  1  <->  (
( a ^ 2 )  -  ( D  x.  ( -u b ^ 2 ) ) )  =  1 ) )
9489, 93anbi12d 691 . . . . . . . . . . . . 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 ) ) )
9594rspcev 2884 . . . . . . . . . . . 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 ) )
9630, 86, 95syl2anc 642 . . . . . . . . . . 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 ) )
97 rspe 2604 . . . . . . . . . . 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 ) )
9829, 96, 97syl2anc 642 . . . . . . . . . 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 ) )
9928, 98jca 518 . . . . . . . . 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 ) ) )
10099ex 423 . . . . . . . 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 ) ) ) )
101 elpell1qr 26932 . . . . . . . . . 10  |-  ( 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 ) ) ) )
102101adantr 451 . . . . . . . . 9  |-  ( ( D  e.  ( NN 
\NN )  /\  A  e.  (Pell14QR `  D ) )  -> 
( ( 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 ) ) ) )
103102ad3antrrr 710 . . . . . . . 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 ) ) ) )
104100, 103sylibrd 225 . . . . . . 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
) ) )
10520, 104orim12d 811 . . . . . 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 )
) ) )
1066, 105mpd 14 . . . . 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
) ) )
107106ex 423 . . . 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
) ) ) )
108107rexlimdvva 2674 . . 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 )
) ) )
109108expimpd 586 . 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
) ) ) )
1102, 109mpd 14 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 176    \/ wo 357    /\ wa 358    = wceq 1623    e. wcel 1684    =/= wne 2446   E.wrex 2544    \ cdif 3149   ` cfv 5255  (class class class)co 5858   CCcc 8735   RRcr 8736   0cc0 8737   1c1 8738    + caddc 8740    x. cmul 8742    - cmin 9037   -ucneg 9038    / cdiv 9423   NNcn 9746   2c2 9795   NN0cn0 9965   ZZcz 10024   ^cexp 11104   sqrcsqr 11718  ◻NNcsquarenn 26921  Pell1QRcpell1qr 26922  Pell14QRcpell14qr 26924
This theorem is referenced by:  elpell1qr2  26957
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-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512  ax-cnex 8793  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814  ax-pre-sup 8815
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  df-rmo 2551  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-pss 3168  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-tp 3648  df-op 3649  df-uni 3828  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-tr 4114  df-eprel 4305  df-id 4309  df-po 4314  df-so 4315  df-fr 4352  df-we 4354  df-ord 4395  df-on 4396  df-lim 4397  df-suc 4398  df-om 4657  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-2nd 6123  df-riota 6304  df-recs 6388  df-rdg 6423  df-er 6660  df-en 6864  df-dom 6865  df-sdom 6866  df-sup 7194  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-div 9424  df-nn 9747  df-2 9804  df-3 9805  df-n0 9966  df-z 10025  df-uz 10231  df-rp 10355  df-seq 11047  df-exp 11105  df-cj 11584  df-re 11585  df-im 11586  df-sqr 11720  df-abs 11721  df-pell1qr 26927  df-pell14qr 26928  df-pell1234qr 26929
  Copyright terms: Public domain W3C validator