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

Theorem pell14qrval 26933
Description: Value of the set of positive Pell solutions. (Contributed by Stefan O'Rear, 17-Sep-2014.)
Assertion
Ref Expression
pell14qrval  |-  ( D  e.  ( NN  \NN )  -> 
(Pell14QR `  D )  =  { y  e.  RR  |  E. z  e.  NN0  E. w  e.  ZZ  (
y  =  ( z  +  ( ( sqr `  D )  x.  w
) )  /\  (
( z ^ 2 )  -  ( D  x.  ( w ^
2 ) ) )  =  1 ) } )
Distinct variable group:    y, z, w, D

Proof of Theorem pell14qrval
Dummy variable  a is distinct from all other variables.
StepHypRef Expression
1 fveq2 5525 . . . . . . . 8  |-  ( a  =  D  ->  ( sqr `  a )  =  ( sqr `  D
) )
21oveq1d 5873 . . . . . . 7  |-  ( a  =  D  ->  (
( sqr `  a
)  x.  w )  =  ( ( sqr `  D )  x.  w
) )
32oveq2d 5874 . . . . . 6  |-  ( a  =  D  ->  (
z  +  ( ( sqr `  a )  x.  w ) )  =  ( z  +  ( ( sqr `  D
)  x.  w ) ) )
43eqeq2d 2294 . . . . 5  |-  ( a  =  D  ->  (
y  =  ( z  +  ( ( sqr `  a )  x.  w
) )  <->  y  =  ( z  +  ( ( sqr `  D
)  x.  w ) ) ) )
5 oveq1 5865 . . . . . . 7  |-  ( a  =  D  ->  (
a  x.  ( w ^ 2 ) )  =  ( D  x.  ( w ^ 2 ) ) )
65oveq2d 5874 . . . . . 6  |-  ( a  =  D  ->  (
( z ^ 2 )  -  ( a  x.  ( w ^
2 ) ) )  =  ( ( z ^ 2 )  -  ( D  x.  (
w ^ 2 ) ) ) )
76eqeq1d 2291 . . . . 5  |-  ( a  =  D  ->  (
( ( z ^
2 )  -  (
a  x.  ( w ^ 2 ) ) )  =  1  <->  (
( z ^ 2 )  -  ( D  x.  ( w ^
2 ) ) )  =  1 ) )
84, 7anbi12d 691 . . . 4  |-  ( a  =  D  ->  (
( y  =  ( z  +  ( ( sqr `  a )  x.  w ) )  /\  ( ( z ^ 2 )  -  ( a  x.  (
w ^ 2 ) ) )  =  1 )  <->  ( y  =  ( z  +  ( ( sqr `  D
)  x.  w ) )  /\  ( ( z ^ 2 )  -  ( D  x.  ( w ^ 2 ) ) )  =  1 ) ) )
982rexbidv 2586 . . 3  |-  ( a  =  D  ->  ( E. z  e.  NN0  E. w  e.  ZZ  (
y  =  ( z  +  ( ( sqr `  a )  x.  w
) )  /\  (
( z ^ 2 )  -  ( a  x.  ( w ^
2 ) ) )  =  1 )  <->  E. z  e.  NN0  E. w  e.  ZZ  ( y  =  ( z  +  ( ( sqr `  D
)  x.  w ) )  /\  ( ( z ^ 2 )  -  ( D  x.  ( w ^ 2 ) ) )  =  1 ) ) )
109rabbidv 2780 . 2  |-  ( a  =  D  ->  { y  e.  RR  |  E. z  e.  NN0  E. w  e.  ZZ  ( y  =  ( z  +  ( ( sqr `  a
)  x.  w ) )  /\  ( ( z ^ 2 )  -  ( a  x.  ( w ^ 2 ) ) )  =  1 ) }  =  { y  e.  RR  |  E. z  e.  NN0  E. w  e.  ZZ  (
y  =  ( z  +  ( ( sqr `  D )  x.  w
) )  /\  (
( z ^ 2 )  -  ( D  x.  ( w ^
2 ) ) )  =  1 ) } )
11 df-pell14qr 26928 . 2  |- Pell14QR  =  ( a  e.  ( NN 
\NN )  |->  { y  e.  RR  |  E. z  e.  NN0  E. w  e.  ZZ  ( y  =  ( z  +  ( ( sqr `  a
)  x.  w ) )  /\  ( ( z ^ 2 )  -  ( a  x.  ( w ^ 2 ) ) )  =  1 ) } )
12 reex 8828 . . 3  |-  RR  e.  _V
1312rabex 4165 . 2  |-  { y  e.  RR  |  E. z  e.  NN0  E. w  e.  ZZ  ( y  =  ( z  +  ( ( sqr `  D
)  x.  w ) )  /\  ( ( z ^ 2 )  -  ( D  x.  ( w ^ 2 ) ) )  =  1 ) }  e.  _V
1410, 11, 13fvmpt 5602 1  |-  ( D  e.  ( NN  \NN )  -> 
(Pell14QR `  D )  =  { y  e.  RR  |  E. z  e.  NN0  E. w  e.  ZZ  (
y  =  ( z  +  ( ( sqr `  D )  x.  w
) )  /\  (
( z ^ 2 )  -  ( D  x.  ( w ^
2 ) ) )  =  1 ) } )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    = wceq 1623    e. wcel 1684   E.wrex 2544   {crab 2547    \ cdif 3149   ` cfv 5255  (class class class)co 5858   RRcr 8736   1c1 8738    + caddc 8740    x. cmul 8742    - cmin 9037   NNcn 9746   2c2 9795   NN0cn0 9965   ZZcz 10024   ^cexp 11104   sqrcsqr 11718  ◻NNcsquarenn 26921  Pell14QRcpell14qr 26924
This theorem is referenced by:  elpell14qr  26934  rmxyelqirr  26995
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-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-sep 4141  ax-nul 4149  ax-pr 4214  ax-cnex 8793  ax-resscn 8794
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  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-ral 2548  df-rex 2549  df-rab 2552  df-v 2790  df-sbc 2992  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3456  df-if 3566  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-br 4024  df-opab 4078  df-mpt 4079  df-id 4309  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-iota 5219  df-fun 5257  df-fv 5263  df-ov 5861  df-pell14qr 26928
  Copyright terms: Public domain W3C validator