MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  r1pval Unicode version

Theorem r1pval 19542
Description: Value of the polynomial remainder function. (Contributed by Stefan O'Rear, 28-Mar-2015.)
Hypotheses
Ref Expression
r1pval.e  |-  E  =  (rem1p `  R )
r1pval.p  |-  P  =  (Poly1 `  R )
r1pval.b  |-  B  =  ( Base `  P
)
r1pval.q  |-  Q  =  (quot1p `  R )
r1pval.t  |-  .x.  =  ( .r `  P )
r1pval.m  |-  .-  =  ( -g `  P )
Assertion
Ref Expression
r1pval  |-  ( ( F  e.  B  /\  G  e.  B )  ->  ( F E G )  =  ( F 
.-  ( ( F Q G )  .x.  G ) ) )

Proof of Theorem r1pval
Dummy variables  b 
f  g  r are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 r1pval.p . . . . 5  |-  P  =  (Poly1 `  R )
2 r1pval.b . . . . 5  |-  B  =  ( Base `  P
)
31, 2elbasfv 13191 . . . 4  |-  ( F  e.  B  ->  R  e.  _V )
43adantr 451 . . 3  |-  ( ( F  e.  B  /\  G  e.  B )  ->  R  e.  _V )
5 r1pval.e . . . 4  |-  E  =  (rem1p `  R )
6 fveq2 5525 . . . . . . . . . 10  |-  ( r  =  R  ->  (Poly1 `  r )  =  (Poly1 `  R ) )
76, 1syl6eqr 2333 . . . . . . . . 9  |-  ( r  =  R  ->  (Poly1 `  r )  =  P )
87fveq2d 5529 . . . . . . . 8  |-  ( r  =  R  ->  ( Base `  (Poly1 `  r ) )  =  ( Base `  P
) )
98, 2syl6eqr 2333 . . . . . . 7  |-  ( r  =  R  ->  ( Base `  (Poly1 `  r ) )  =  B )
109csbeq1d 3087 . . . . . 6  |-  ( r  =  R  ->  [_ ( Base `  (Poly1 `  r ) )  /  b ]_ (
f  e.  b ,  g  e.  b  |->  ( f ( -g `  (Poly1 `  r ) ) ( ( f (quot1p `  r
) g ) ( .r `  (Poly1 `  r
) ) g ) ) )  =  [_ B  /  b ]_ (
f  e.  b ,  g  e.  b  |->  ( f ( -g `  (Poly1 `  r ) ) ( ( f (quot1p `  r
) g ) ( .r `  (Poly1 `  r
) ) g ) ) ) )
11 fvex 5539 . . . . . . . . 9  |-  ( Base `  P )  e.  _V
122, 11eqeltri 2353 . . . . . . . 8  |-  B  e. 
_V
1312a1i 10 . . . . . . 7  |-  ( r  =  R  ->  B  e.  _V )
14 simpr 447 . . . . . . . 8  |-  ( ( r  =  R  /\  b  =  B )  ->  b  =  B )
157fveq2d 5529 . . . . . . . . . . 11  |-  ( r  =  R  ->  ( -g `  (Poly1 `  r ) )  =  ( -g `  P
) )
16 r1pval.m . . . . . . . . . . 11  |-  .-  =  ( -g `  P )
1715, 16syl6eqr 2333 . . . . . . . . . 10  |-  ( r  =  R  ->  ( -g `  (Poly1 `  r ) )  =  .-  )
18 eqidd 2284 . . . . . . . . . 10  |-  ( r  =  R  ->  f  =  f )
197fveq2d 5529 . . . . . . . . . . . 12  |-  ( r  =  R  ->  ( .r `  (Poly1 `  r ) )  =  ( .r `  P ) )
20 r1pval.t . . . . . . . . . . . 12  |-  .x.  =  ( .r `  P )
2119, 20syl6eqr 2333 . . . . . . . . . . 11  |-  ( r  =  R  ->  ( .r `  (Poly1 `  r ) )  =  .x.  )
22 fveq2 5525 . . . . . . . . . . . . 13  |-  ( r  =  R  ->  (quot1p `  r )  =  (quot1p `  R ) )
23 r1pval.q . . . . . . . . . . . . 13  |-  Q  =  (quot1p `  R )
2422, 23syl6eqr 2333 . . . . . . . . . . . 12  |-  ( r  =  R  ->  (quot1p `  r )  =  Q )
2524oveqd 5875 . . . . . . . . . . 11  |-  ( r  =  R  ->  (
f (quot1p `  r ) g )  =  ( f Q g ) )
26 eqidd 2284 . . . . . . . . . . 11  |-  ( r  =  R  ->  g  =  g )
2721, 25, 26oveq123d 5879 . . . . . . . . . 10  |-  ( r  =  R  ->  (
( f (quot1p `  r
) g ) ( .r `  (Poly1 `  r
) ) g )  =  ( ( f Q g )  .x.  g ) )
2817, 18, 27oveq123d 5879 . . . . . . . . 9  |-  ( r  =  R  ->  (
f ( -g `  (Poly1 `  r ) ) ( ( f (quot1p `  r
) g ) ( .r `  (Poly1 `  r
) ) g ) )  =  ( f 
.-  ( ( f Q g )  .x.  g ) ) )
2928adantr 451 . . . . . . . 8  |-  ( ( r  =  R  /\  b  =  B )  ->  ( f ( -g `  (Poly1 `  r ) ) ( ( f (quot1p `  r ) g ) ( .r `  (Poly1 `  r ) ) g ) )  =  ( f  .-  ( ( f Q g ) 
.x.  g ) ) )
3014, 14, 29mpt2eq123dv 5910 . . . . . . 7  |-  ( ( r  =  R  /\  b  =  B )  ->  ( f  e.  b ,  g  e.  b 
|->  ( f ( -g `  (Poly1 `  r ) ) ( ( f (quot1p `  r ) g ) ( .r `  (Poly1 `  r ) ) g ) ) )  =  ( f  e.  B ,  g  e.  B  |->  ( f  .-  (
( f Q g )  .x.  g ) ) ) )
3113, 30csbied 3123 . . . . . 6  |-  ( r  =  R  ->  [_ B  /  b ]_ (
f  e.  b ,  g  e.  b  |->  ( f ( -g `  (Poly1 `  r ) ) ( ( f (quot1p `  r
) g ) ( .r `  (Poly1 `  r
) ) g ) ) )  =  ( f  e.  B , 
g  e.  B  |->  ( f  .-  ( ( f Q g ) 
.x.  g ) ) ) )
3210, 31eqtrd 2315 . . . . 5  |-  ( r  =  R  ->  [_ ( Base `  (Poly1 `  r ) )  /  b ]_ (
f  e.  b ,  g  e.  b  |->  ( f ( -g `  (Poly1 `  r ) ) ( ( f (quot1p `  r
) g ) ( .r `  (Poly1 `  r
) ) g ) ) )  =  ( f  e.  B , 
g  e.  B  |->  ( f  .-  ( ( f Q g ) 
.x.  g ) ) ) )
33 df-r1p 19519 . . . . 5  |- rem1p  =  (
r  e.  _V  |->  [_ ( Base `  (Poly1 `  r
) )  /  b ]_ ( f  e.  b ,  g  e.  b 
|->  ( f ( -g `  (Poly1 `  r ) ) ( ( f (quot1p `  r ) g ) ( .r `  (Poly1 `  r ) ) g ) ) ) )
3412, 12mpt2ex 6198 . . . . 5  |-  ( f  e.  B ,  g  e.  B  |->  ( f 
.-  ( ( f Q g )  .x.  g ) ) )  e.  _V
3532, 33, 34fvmpt 5602 . . . 4  |-  ( R  e.  _V  ->  (rem1p `  R )  =  ( f  e.  B , 
g  e.  B  |->  ( f  .-  ( ( f Q g ) 
.x.  g ) ) ) )
365, 35syl5eq 2327 . . 3  |-  ( R  e.  _V  ->  E  =  ( f  e.  B ,  g  e.  B  |->  ( f  .-  ( ( f Q g )  .x.  g
) ) ) )
374, 36syl 15 . 2  |-  ( ( F  e.  B  /\  G  e.  B )  ->  E  =  ( f  e.  B ,  g  e.  B  |->  ( f 
.-  ( ( f Q g )  .x.  g ) ) ) )
38 simpl 443 . . . 4  |-  ( ( f  =  F  /\  g  =  G )  ->  f  =  F )
39 oveq12 5867 . . . . 5  |-  ( ( f  =  F  /\  g  =  G )  ->  ( f Q g )  =  ( F Q G ) )
40 simpr 447 . . . . 5  |-  ( ( f  =  F  /\  g  =  G )  ->  g  =  G )
4139, 40oveq12d 5876 . . . 4  |-  ( ( f  =  F  /\  g  =  G )  ->  ( ( f Q g )  .x.  g
)  =  ( ( F Q G ) 
.x.  G ) )
4238, 41oveq12d 5876 . . 3  |-  ( ( f  =  F  /\  g  =  G )  ->  ( f  .-  (
( f Q g )  .x.  g ) )  =  ( F 
.-  ( ( F Q G )  .x.  G ) ) )
4342adantl 452 . 2  |-  ( ( ( F  e.  B  /\  G  e.  B
)  /\  ( f  =  F  /\  g  =  G ) )  -> 
( f  .-  (
( f Q g )  .x.  g ) )  =  ( F 
.-  ( ( F Q G )  .x.  G ) ) )
44 simpl 443 . 2  |-  ( ( F  e.  B  /\  G  e.  B )  ->  F  e.  B )
45 simpr 447 . 2  |-  ( ( F  e.  B  /\  G  e.  B )  ->  G  e.  B )
46 ovex 5883 . . 3  |-  ( F 
.-  ( ( F Q G )  .x.  G ) )  e. 
_V
4746a1i 10 . 2  |-  ( ( F  e.  B  /\  G  e.  B )  ->  ( F  .-  (
( F Q G )  .x.  G ) )  e.  _V )
4837, 43, 44, 45, 47ovmpt2d 5975 1  |-  ( ( F  e.  B  /\  G  e.  B )  ->  ( F E G )  =  ( F 
.-  ( ( F Q G )  .x.  G ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    = wceq 1623    e. wcel 1684   _Vcvv 2788   [_csb 3081   ` cfv 5255  (class class class)co 5858    e. cmpt2 5860   Basecbs 13148   .rcmulr 13209   -gcsg 14365  Poly1cpl1 16252  quot1pcq1p 19513  rem1pcr1p 19514
This theorem is referenced by:  r1pcl  19543  r1pdeglt  19544  r1pid  19545  dvdsr1p  19547  ig1pdvds  19562
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-rep 4131  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512
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-reu 2550  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-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-iun 3907  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-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-1st 6122  df-2nd 6123  df-slot 13152  df-base 13153  df-r1p 19519
  Copyright terms: Public domain W3C validator