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

Theorem r1pval 21628
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 14221 . . . 4  |-  ( F  e.  B  ->  R  e.  _V )
43adantr 465 . . 3  |-  ( ( F  e.  B  /\  G  e.  B )  ->  R  e.  _V )
5 r1pval.e . . . 4  |-  E  =  (rem1p `  R )
6 fveq2 5691 . . . . . . . . . 10  |-  ( r  =  R  ->  (Poly1 `  r )  =  (Poly1 `  R ) )
76, 1syl6eqr 2493 . . . . . . . . 9  |-  ( r  =  R  ->  (Poly1 `  r )  =  P )
87fveq2d 5695 . . . . . . . 8  |-  ( r  =  R  ->  ( Base `  (Poly1 `  r ) )  =  ( Base `  P
) )
98, 2syl6eqr 2493 . . . . . . 7  |-  ( r  =  R  ->  ( Base `  (Poly1 `  r ) )  =  B )
109csbeq1d 3295 . . . . . 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 5701 . . . . . . . . 9  |-  ( Base `  P )  e.  _V
122, 11eqeltri 2513 . . . . . . . 8  |-  B  e. 
_V
1312a1i 11 . . . . . . 7  |-  ( r  =  R  ->  B  e.  _V )
14 simpr 461 . . . . . . . 8  |-  ( ( r  =  R  /\  b  =  B )  ->  b  =  B )
157fveq2d 5695 . . . . . . . . . . 11  |-  ( r  =  R  ->  ( -g `  (Poly1 `  r ) )  =  ( -g `  P
) )
16 r1pval.m . . . . . . . . . . 11  |-  .-  =  ( -g `  P )
1715, 16syl6eqr 2493 . . . . . . . . . 10  |-  ( r  =  R  ->  ( -g `  (Poly1 `  r ) )  =  .-  )
18 eqidd 2444 . . . . . . . . . 10  |-  ( r  =  R  ->  f  =  f )
197fveq2d 5695 . . . . . . . . . . . 12  |-  ( r  =  R  ->  ( .r `  (Poly1 `  r ) )  =  ( .r `  P ) )
20 r1pval.t . . . . . . . . . . . 12  |-  .x.  =  ( .r `  P )
2119, 20syl6eqr 2493 . . . . . . . . . . 11  |-  ( r  =  R  ->  ( .r `  (Poly1 `  r ) )  =  .x.  )
22 fveq2 5691 . . . . . . . . . . . . 13  |-  ( r  =  R  ->  (quot1p `  r )  =  (quot1p `  R ) )
23 r1pval.q . . . . . . . . . . . . 13  |-  Q  =  (quot1p `  R )
2422, 23syl6eqr 2493 . . . . . . . . . . . 12  |-  ( r  =  R  ->  (quot1p `  r )  =  Q )
2524oveqd 6108 . . . . . . . . . . 11  |-  ( r  =  R  ->  (
f (quot1p `  r ) g )  =  ( f Q g ) )
26 eqidd 2444 . . . . . . . . . . 11  |-  ( r  =  R  ->  g  =  g )
2721, 25, 26oveq123d 6112 . . . . . . . . . 10  |-  ( r  =  R  ->  (
( f (quot1p `  r
) g ) ( .r `  (Poly1 `  r
) ) g )  =  ( ( f Q g )  .x.  g ) )
2817, 18, 27oveq123d 6112 . . . . . . . . 9  |-  ( r  =  R  ->  (
f ( -g `  (Poly1 `  r ) ) ( ( f (quot1p `  r
) g ) ( .r `  (Poly1 `  r
) ) g ) )  =  ( f 
.-  ( ( f Q g )  .x.  g ) ) )
2928adantr 465 . . . . . . . 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 6148 . . . . . . 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 3314 . . . . . 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 2475 . . . . 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 21605 . . . . 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 6650 . . . . 5  |-  ( f  e.  B ,  g  e.  B  |->  ( f 
.-  ( ( f Q g )  .x.  g ) ) )  e.  _V
3532, 33, 34fvmpt 5774 . . . 4  |-  ( R  e.  _V  ->  (rem1p `  R )  =  ( f  e.  B , 
g  e.  B  |->  ( f  .-  ( ( f Q g ) 
.x.  g ) ) ) )
365, 35syl5eq 2487 . . 3  |-  ( R  e.  _V  ->  E  =  ( f  e.  B ,  g  e.  B  |->  ( f  .-  ( ( f Q g )  .x.  g
) ) ) )
374, 36syl 16 . 2  |-  ( ( F  e.  B  /\  G  e.  B )  ->  E  =  ( f  e.  B ,  g  e.  B  |->  ( f 
.-  ( ( f Q g )  .x.  g ) ) ) )
38 simpl 457 . . . 4  |-  ( ( f  =  F  /\  g  =  G )  ->  f  =  F )
39 oveq12 6100 . . . . 5  |-  ( ( f  =  F  /\  g  =  G )  ->  ( f Q g )  =  ( F Q G ) )
40 simpr 461 . . . . 5  |-  ( ( f  =  F  /\  g  =  G )  ->  g  =  G )
4139, 40oveq12d 6109 . . . 4  |-  ( ( f  =  F  /\  g  =  G )  ->  ( ( f Q g )  .x.  g
)  =  ( ( F Q G ) 
.x.  G ) )
4238, 41oveq12d 6109 . . 3  |-  ( ( f  =  F  /\  g  =  G )  ->  ( f  .-  (
( f Q g )  .x.  g ) )  =  ( F 
.-  ( ( F Q G )  .x.  G ) ) )
4342adantl 466 . 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 457 . 2  |-  ( ( F  e.  B  /\  G  e.  B )  ->  F  e.  B )
45 simpr 461 . 2  |-  ( ( F  e.  B  /\  G  e.  B )  ->  G  e.  B )
46 ovex 6116 . . 3  |-  ( F 
.-  ( ( F Q G )  .x.  G ) )  e. 
_V
4746a1i 11 . 2  |-  ( ( F  e.  B  /\  G  e.  B )  ->  ( F  .-  (
( F Q G )  .x.  G ) )  e.  _V )
4837, 43, 44, 45, 47ovmpt2d 6218 1  |-  ( ( F  e.  B  /\  G  e.  B )  ->  ( F E G )  =  ( F 
.-  ( ( F Q G )  .x.  G ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    = wceq 1369    e. wcel 1756   _Vcvv 2972   [_csb 3288   ` cfv 5418  (class class class)co 6091    e. cmpt2 6093   Basecbs 14174   .rcmulr 14239   -gcsg 15413  Poly1cpl1 17633  quot1pcq1p 21599  rem1pcr1p 21600
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2423  ax-rep 4403  ax-sep 4413  ax-nul 4421  ax-pow 4470  ax-pr 4531  ax-un 6372
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2257  df-mo 2258  df-clab 2430  df-cleq 2436  df-clel 2439  df-nfc 2568  df-ne 2608  df-ral 2720  df-rex 2721  df-reu 2722  df-rab 2724  df-v 2974  df-sbc 3187  df-csb 3289  df-dif 3331  df-un 3333  df-in 3335  df-ss 3342  df-nul 3638  df-if 3792  df-pw 3862  df-sn 3878  df-pr 3880  df-op 3884  df-uni 4092  df-iun 4173  df-br 4293  df-opab 4351  df-mpt 4352  df-id 4636  df-xp 4846  df-rel 4847  df-cnv 4848  df-co 4849  df-dm 4850  df-rn 4851  df-res 4852  df-ima 4853  df-iota 5381  df-fun 5420  df-fn 5421  df-f 5422  df-f1 5423  df-fo 5424  df-f1o 5425  df-fv 5426  df-ov 6094  df-oprab 6095  df-mpt2 6096  df-1st 6577  df-2nd 6578  df-slot 14178  df-base 14179  df-r1p 21605
This theorem is referenced by:  r1pcl  21629  r1pdeglt  21630  r1pid  21631  dvdsr1p  21633  ig1pdvds  21648
  Copyright terms: Public domain W3C validator