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

Theorem plyrem 21774
Description: The polynomial remainder theorem, or little Bézout's theorem (by contrast to the regular Bézout's theorem bezout 13729). If a polynomial  F is divided by the linear factor  x  -  A, the remainder is equal to  F ( A ), the evaluation of the polynomial at  A (interpreted as a constant polynomial). This is part of Metamath 100 proof #89. (Contributed by Mario Carneiro, 26-Jul-2014.)
Hypotheses
Ref Expression
plyrem.1  |-  G  =  ( Xp  oF  -  ( CC 
X.  { A }
) )
plyrem.2  |-  R  =  ( F  oF  -  ( G  oF  x.  ( F quot  G ) ) )
Assertion
Ref Expression
plyrem  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  R  =  ( CC  X.  { ( F `  A ) } ) )

Proof of Theorem plyrem
StepHypRef Expression
1 plyssc 21671 . . . . . . . 8  |-  (Poly `  S )  C_  (Poly `  CC )
2 simpl 457 . . . . . . . 8  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  F  e.  (Poly `  S )
)
31, 2sseldi 3357 . . . . . . 7  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  F  e.  (Poly `  CC )
)
4 plyrem.1 . . . . . . . . . 10  |-  G  =  ( Xp  oF  -  ( CC 
X.  { A }
) )
54plyremlem 21773 . . . . . . . . 9  |-  ( A  e.  CC  ->  ( G  e.  (Poly `  CC )  /\  (deg `  G
)  =  1  /\  ( `' G " { 0 } )  =  { A }
) )
65adantl 466 . . . . . . . 8  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( G  e.  (Poly `  CC )  /\  (deg `  G
)  =  1  /\  ( `' G " { 0 } )  =  { A }
) )
76simp1d 1000 . . . . . . 7  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  G  e.  (Poly `  CC )
)
86simp2d 1001 . . . . . . . . 9  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (deg `  G )  =  1 )
9 ax-1ne0 9354 . . . . . . . . . 10  |-  1  =/=  0
109a1i 11 . . . . . . . . 9  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  1  =/=  0 )
118, 10eqnetrd 2629 . . . . . . . 8  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (deg `  G )  =/=  0
)
12 fveq2 5694 . . . . . . . . . 10  |-  ( G  =  0p  -> 
(deg `  G )  =  (deg `  0p
) )
13 dgr0 21732 . . . . . . . . . 10  |-  (deg ` 
0p )  =  0
1412, 13syl6eq 2491 . . . . . . . . 9  |-  ( G  =  0p  -> 
(deg `  G )  =  0 )
1514necon3i 2653 . . . . . . . 8  |-  ( (deg
`  G )  =/=  0  ->  G  =/=  0p )
1611, 15syl 16 . . . . . . 7  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  G  =/=  0p )
17 plyrem.2 . . . . . . . 8  |-  R  =  ( F  oF  -  ( G  oF  x.  ( F quot  G ) ) )
1817quotdgr 21772 . . . . . . 7  |-  ( ( F  e.  (Poly `  CC )  /\  G  e.  (Poly `  CC )  /\  G  =/=  0p )  ->  ( R  =  0p  \/  (deg `  R )  <  (deg `  G )
) )
193, 7, 16, 18syl3anc 1218 . . . . . 6  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( R  =  0p  \/  (deg `  R )  <  (deg `  G )
) )
20 0lt1 9865 . . . . . . . 8  |-  0  <  1
2120, 8syl5breqr 4331 . . . . . . 7  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  0  <  (deg `  G )
)
22 fveq2 5694 . . . . . . . . 9  |-  ( R  =  0p  -> 
(deg `  R )  =  (deg `  0p
) )
2322, 13syl6eq 2491 . . . . . . . 8  |-  ( R  =  0p  -> 
(deg `  R )  =  0 )
2423breq1d 4305 . . . . . . 7  |-  ( R  =  0p  -> 
( (deg `  R
)  <  (deg `  G
)  <->  0  <  (deg `  G ) ) )
2521, 24syl5ibrcom 222 . . . . . 6  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( R  =  0p 
->  (deg `  R )  <  (deg `  G )
) )
26 pm2.62 409 . . . . . 6  |-  ( ( R  =  0p  \/  (deg `  R
)  <  (deg `  G
) )  ->  (
( R  =  0p  ->  (deg `  R
)  <  (deg `  G
) )  ->  (deg `  R )  <  (deg `  G ) ) )
2719, 25, 26sylc 60 . . . . 5  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (deg `  R )  <  (deg `  G ) )
2827, 8breqtrd 4319 . . . 4  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (deg `  R )  <  1
)
29 quotcl2 21771 . . . . . . . . . 10  |-  ( ( F  e.  (Poly `  CC )  /\  G  e.  (Poly `  CC )  /\  G  =/=  0p )  ->  ( F quot  G )  e.  (Poly `  CC ) )
303, 7, 16, 29syl3anc 1218 . . . . . . . . 9  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( F quot  G )  e.  (Poly `  CC ) )
31 plymulcl 21692 . . . . . . . . 9  |-  ( ( G  e.  (Poly `  CC )  /\  ( F quot  G )  e.  (Poly `  CC ) )  -> 
( G  oF  x.  ( F quot  G
) )  e.  (Poly `  CC ) )
327, 30, 31syl2anc 661 . . . . . . . 8  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( G  oF  x.  ( F quot  G ) )  e.  (Poly `  CC )
)
33 plysubcl 21693 . . . . . . . 8  |-  ( ( F  e.  (Poly `  CC )  /\  ( G  oF  x.  ( F quot  G ) )  e.  (Poly `  CC )
)  ->  ( F  oF  -  ( G  oF  x.  ( F quot  G ) ) )  e.  (Poly `  CC ) )
343, 32, 33syl2anc 661 . . . . . . 7  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( F  oF  -  ( G  oF  x.  ( F quot  G ) ) )  e.  (Poly `  CC ) )
3517, 34syl5eqel 2527 . . . . . 6  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  R  e.  (Poly `  CC )
)
36 dgrcl 21704 . . . . . 6  |-  ( R  e.  (Poly `  CC )  ->  (deg `  R
)  e.  NN0 )
3735, 36syl 16 . . . . 5  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (deg `  R )  e.  NN0 )
38 nn0lt10b 10709 . . . . 5  |-  ( (deg
`  R )  e. 
NN0  ->  ( (deg `  R )  <  1  <->  (deg
`  R )  =  0 ) )
3937, 38syl 16 . . . 4  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (
(deg `  R )  <  1  <->  (deg `  R )  =  0 ) )
4028, 39mpbid 210 . . 3  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (deg `  R )  =  0 )
41 0dgrb 21717 . . . 4  |-  ( R  e.  (Poly `  CC )  ->  ( (deg `  R )  =  0  <-> 
R  =  ( CC 
X.  { ( R `
 0 ) } ) ) )
4235, 41syl 16 . . 3  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (
(deg `  R )  =  0  <->  R  =  ( CC  X.  { ( R `  0 ) } ) ) )
4340, 42mpbid 210 . 2  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  R  =  ( CC  X.  { ( R ` 
0 ) } ) )
4443fveq1d 5696 . . . . 5  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( R `  A )  =  ( ( CC 
X.  { ( R `
 0 ) } ) `  A ) )
4517fveq1i 5695 . . . . . . 7  |-  ( R `
 A )  =  ( ( F  oF  -  ( G  oF  x.  ( F quot  G ) ) ) `
 A )
46 plyf 21669 . . . . . . . . . . 11  |-  ( F  e.  (Poly `  S
)  ->  F : CC
--> CC )
4746adantr 465 . . . . . . . . . 10  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  F : CC --> CC )
48 ffn 5562 . . . . . . . . . 10  |-  ( F : CC --> CC  ->  F  Fn  CC )
4947, 48syl 16 . . . . . . . . 9  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  F  Fn  CC )
50 plyf 21669 . . . . . . . . . . . 12  |-  ( G  e.  (Poly `  CC )  ->  G : CC --> CC )
517, 50syl 16 . . . . . . . . . . 11  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  G : CC --> CC )
52 ffn 5562 . . . . . . . . . . 11  |-  ( G : CC --> CC  ->  G  Fn  CC )
5351, 52syl 16 . . . . . . . . . 10  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  G  Fn  CC )
54 plyf 21669 . . . . . . . . . . . 12  |-  ( ( F quot  G )  e.  (Poly `  CC )  ->  ( F quot  G ) : CC --> CC )
5530, 54syl 16 . . . . . . . . . . 11  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( F quot  G ) : CC --> CC )
56 ffn 5562 . . . . . . . . . . 11  |-  ( ( F quot  G ) : CC --> CC  ->  ( F quot  G )  Fn  CC )
5755, 56syl 16 . . . . . . . . . 10  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( F quot  G )  Fn  CC )
58 cnex 9366 . . . . . . . . . . 11  |-  CC  e.  _V
5958a1i 11 . . . . . . . . . 10  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  CC  e.  _V )
60 inidm 3562 . . . . . . . . . 10  |-  ( CC 
i^i  CC )  =  CC
6153, 57, 59, 59, 60offn 6334 . . . . . . . . 9  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( G  oF  x.  ( F quot  G ) )  Fn  CC )
62 eqidd 2444 . . . . . . . . 9  |-  ( ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  /\  A  e.  CC )  ->  ( F `  A )  =  ( F `  A ) )
636simp3d 1002 . . . . . . . . . . . . . . 15  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( `' G " { 0 } )  =  { A } )
64 ssun1 3522 . . . . . . . . . . . . . . 15  |-  ( `' G " { 0 } )  C_  (
( `' G " { 0 } )  u.  ( `' ( F quot  G ) " { 0 } ) )
6563, 64syl6eqssr 3410 . . . . . . . . . . . . . 14  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  { A }  C_  ( ( `' G " { 0 } )  u.  ( `' ( F quot  G
) " { 0 } ) ) )
66 snssg 4010 . . . . . . . . . . . . . . 15  |-  ( A  e.  CC  ->  ( A  e.  ( ( `' G " { 0 } )  u.  ( `' ( F quot  G
) " { 0 } ) )  <->  { A }  C_  ( ( `' G " { 0 } )  u.  ( `' ( F quot  G
) " { 0 } ) ) ) )
6766adantl 466 . . . . . . . . . . . . . 14  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( A  e.  ( ( `' G " { 0 } )  u.  ( `' ( F quot  G
) " { 0 } ) )  <->  { A }  C_  ( ( `' G " { 0 } )  u.  ( `' ( F quot  G
) " { 0 } ) ) ) )
6865, 67mpbird 232 . . . . . . . . . . . . 13  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  A  e.  ( ( `' G " { 0 } )  u.  ( `' ( F quot  G ) " { 0 } ) ) )
69 ofmulrt 21751 . . . . . . . . . . . . . 14  |-  ( ( CC  e.  _V  /\  G : CC --> CC  /\  ( F quot  G ) : CC --> CC )  -> 
( `' ( G  oF  x.  ( F quot  G ) ) " { 0 } )  =  ( ( `' G " { 0 } )  u.  ( `' ( F quot  G
) " { 0 } ) ) )
7059, 51, 55, 69syl3anc 1218 . . . . . . . . . . . . 13  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( `' ( G  oF  x.  ( F quot  G ) ) " {
0 } )  =  ( ( `' G " { 0 } )  u.  ( `' ( F quot  G ) " { 0 } ) ) )
7168, 70eleqtrrd 2520 . . . . . . . . . . . 12  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  A  e.  ( `' ( G  oF  x.  ( F quot  G ) ) " { 0 } ) )
72 fniniseg 5827 . . . . . . . . . . . . 13  |-  ( ( G  oF  x.  ( F quot  G ) )  Fn  CC  ->  ( A  e.  ( `' ( G  oF  x.  ( F quot  G
) ) " {
0 } )  <->  ( A  e.  CC  /\  ( ( G  oF  x.  ( F quot  G ) ) `  A )  =  0 ) ) )
7361, 72syl 16 . . . . . . . . . . . 12  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( A  e.  ( `' ( G  oF  x.  ( F quot  G ) ) " { 0 } )  <->  ( A  e.  CC  /\  ( ( G  oF  x.  ( F quot  G ) ) `  A )  =  0 ) ) )
7471, 73mpbid 210 . . . . . . . . . . 11  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( A  e.  CC  /\  (
( G  oF  x.  ( F quot  G
) ) `  A
)  =  0 ) )
7574simprd 463 . . . . . . . . . 10  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (
( G  oF  x.  ( F quot  G
) ) `  A
)  =  0 )
7675adantr 465 . . . . . . . . 9  |-  ( ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  /\  A  e.  CC )  ->  (
( G  oF  x.  ( F quot  G
) ) `  A
)  =  0 )
7749, 61, 59, 59, 60, 62, 76ofval 6332 . . . . . . . 8  |-  ( ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  /\  A  e.  CC )  ->  (
( F  oF  -  ( G  oF  x.  ( F quot  G ) ) ) `  A )  =  ( ( F `  A
)  -  0 ) )
7877anabss3 819 . . . . . . 7  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (
( F  oF  -  ( G  oF  x.  ( F quot  G ) ) ) `  A )  =  ( ( F `  A
)  -  0 ) )
7945, 78syl5eq 2487 . . . . . 6  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( R `  A )  =  ( ( F `
 A )  - 
0 ) )
8046ffvelrnda 5846 . . . . . . 7  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( F `  A )  e.  CC )
8180subid1d 9711 . . . . . 6  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (
( F `  A
)  -  0 )  =  ( F `  A ) )
8279, 81eqtrd 2475 . . . . 5  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( R `  A )  =  ( F `  A ) )
83 fvex 5704 . . . . . . 7  |-  ( R `
 0 )  e. 
_V
8483fvconst2 5936 . . . . . 6  |-  ( A  e.  CC  ->  (
( CC  X.  {
( R `  0
) } ) `  A )  =  ( R `  0 ) )
8584adantl 466 . . . . 5  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  (
( CC  X.  {
( R `  0
) } ) `  A )  =  ( R `  0 ) )
8644, 82, 853eqtr3d 2483 . . . 4  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( F `  A )  =  ( R ` 
0 ) )
8786sneqd 3892 . . 3  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  { ( F `  A ) }  =  { ( R `  0 ) } )
8887xpeq2d 4867 . 2  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  ( CC  X.  { ( F `
 A ) } )  =  ( CC 
X.  { ( R `
 0 ) } ) )
8943, 88eqtr4d 2478 1  |-  ( ( F  e.  (Poly `  S )  /\  A  e.  CC )  ->  R  =  ( CC  X.  { ( F `  A ) } ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    \/ wo 368    /\ wa 369    /\ w3a 965    = wceq 1369    e. wcel 1756    =/= wne 2609   _Vcvv 2975    u. cun 3329    C_ wss 3331   {csn 3880   class class class wbr 4295    X. cxp 4841   `'ccnv 4842   "cima 4846    Fn wfn 5416   -->wf 5417   ` cfv 5421  (class class class)co 6094    oFcof 6321   CCcc 9283   0cc0 9285   1c1 9286    x. cmul 9290    < clt 9421    - cmin 9598   NN0cn0 10582   0pc0p 21150  Polycply 21655   Xpcidp 21656  degcdgr 21658   quot cquot 21759
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 4406  ax-sep 4416  ax-nul 4424  ax-pow 4473  ax-pr 4534  ax-un 6375  ax-inf2 7850  ax-cnex 9341  ax-resscn 9342  ax-1cn 9343  ax-icn 9344  ax-addcl 9345  ax-addrcl 9346  ax-mulcl 9347  ax-mulrcl 9348  ax-mulcom 9349  ax-addass 9350  ax-mulass 9351  ax-distr 9352  ax-i2m1 9353  ax-1ne0 9354  ax-1rid 9355  ax-rnegex 9356  ax-rrecex 9357  ax-cnre 9358  ax-pre-lttri 9359  ax-pre-lttrn 9360  ax-pre-ltadd 9361  ax-pre-mulgt0 9362  ax-pre-sup 9363  ax-addf 9364
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1372  df-fal 1375  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 2571  df-ne 2611  df-nel 2612  df-ral 2723  df-rex 2724  df-reu 2725  df-rmo 2726  df-rab 2727  df-v 2977  df-sbc 3190  df-csb 3292  df-dif 3334  df-un 3336  df-in 3338  df-ss 3345  df-pss 3347  df-nul 3641  df-if 3795  df-pw 3865  df-sn 3881  df-pr 3883  df-tp 3885  df-op 3887  df-uni 4095  df-int 4132  df-iun 4176  df-br 4296  df-opab 4354  df-mpt 4355  df-tr 4389  df-eprel 4635  df-id 4639  df-po 4644  df-so 4645  df-fr 4682  df-se 4683  df-we 4684  df-ord 4725  df-on 4726  df-lim 4727  df-suc 4728  df-xp 4849  df-rel 4850  df-cnv 4851  df-co 4852  df-dm 4853  df-rn 4854  df-res 4855  df-ima 4856  df-iota 5384  df-fun 5423  df-fn 5424  df-f 5425  df-f1 5426  df-fo 5427  df-f1o 5428  df-fv 5429  df-isom 5430  df-riota 6055  df-ov 6097  df-oprab 6098  df-mpt2 6099  df-of 6323  df-om 6480  df-1st 6580  df-2nd 6581  df-recs 6835  df-rdg 6869  df-1o 6923  df-oadd 6927  df-er 7104  df-map 7219  df-pm 7220  df-en 7314  df-dom 7315  df-sdom 7316  df-fin 7317  df-sup 7694  df-oi 7727  df-card 8112  df-pnf 9423  df-mnf 9424  df-xr 9425  df-ltxr 9426  df-le 9427  df-sub 9600  df-neg 9601  df-div 9997  df-nn 10326  df-2 10383  df-3 10384  df-n0 10583  df-z 10650  df-uz 10865  df-rp 10995  df-fz 11441  df-fzo 11552  df-fl 11645  df-seq 11810  df-exp 11869  df-hash 12107  df-cj 12591  df-re 12592  df-im 12593  df-sqr 12727  df-abs 12728  df-clim 12969  df-rlim 12970  df-sum 13167  df-0p 21151  df-ply 21659  df-idp 21660  df-coe 21661  df-dgr 21662  df-quot 21760
This theorem is referenced by:  facth  21775
  Copyright terms: Public domain W3C validator