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

Theorem coe1termlem 19639
Description: The coefficient function of a monomial. (Contributed by Mario Carneiro, 26-Jul-2014.) (Revised by Mario Carneiro, 23-Aug-2014.)
Hypothesis
Ref Expression
coe1term.1  |-  F  =  ( z  e.  CC  |->  ( A  x.  (
z ^ N ) ) )
Assertion
Ref Expression
coe1termlem  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  -> 
( (coeff `  F
)  =  ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) )  /\  ( A  =/=  0  ->  (deg `  F )  =  N ) ) )
Distinct variable groups:    z, n, A    n, N, z
Allowed substitution hints:    F( z, n)

Proof of Theorem coe1termlem
Dummy variable  k is distinct from all other variables.
StepHypRef Expression
1 ssid 3197 . . . 4  |-  CC  C_  CC
2 coe1term.1 . . . . 5  |-  F  =  ( z  e.  CC  |->  ( A  x.  (
z ^ N ) ) )
32ply1term 19586 . . . 4  |-  ( ( CC  C_  CC  /\  A  e.  CC  /\  N  e. 
NN0 )  ->  F  e.  (Poly `  CC )
)
41, 3mp3an1 1264 . . 3  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  ->  F  e.  (Poly `  CC ) )
5 simpr 447 . . 3  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  ->  N  e.  NN0 )
6 simpl 443 . . . . . 6  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  ->  A  e.  CC )
7 0cn 8831 . . . . . 6  |-  0  e.  CC
8 ifcl 3601 . . . . . 6  |-  ( ( A  e.  CC  /\  0  e.  CC )  ->  if ( n  =  N ,  A , 
0 )  e.  CC )
96, 7, 8sylancl 643 . . . . 5  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  ->  if ( n  =  N ,  A ,  0 )  e.  CC )
109adantr 451 . . . 4  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  n  e.  NN0 )  ->  if ( n  =  N ,  A ,  0 )  e.  CC )
11 eqid 2283 . . . 4  |-  ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) )  =  ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) )
1210, 11fmptd 5684 . . 3  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  -> 
( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) : NN0 --> CC )
13 simpr 447 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  k  e.  NN0 )  ->  k  e.  NN0 )
14 ifcl 3601 . . . . . . . . . 10  |-  ( ( A  e.  CC  /\  0  e.  CC )  ->  if ( k  =  N ,  A , 
0 )  e.  CC )
156, 7, 14sylancl 643 . . . . . . . . 9  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  ->  if ( k  =  N ,  A ,  0 )  e.  CC )
1615adantr 451 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  k  e.  NN0 )  ->  if ( k  =  N ,  A ,  0 )  e.  CC )
17 eqeq1 2289 . . . . . . . . . 10  |-  ( n  =  k  ->  (
n  =  N  <->  k  =  N ) )
1817ifbid 3583 . . . . . . . . 9  |-  ( n  =  k  ->  if ( n  =  N ,  A ,  0 )  =  if ( k  =  N ,  A ,  0 ) )
1918, 11fvmptg 5600 . . . . . . . 8  |-  ( ( k  e.  NN0  /\  if ( k  =  N ,  A ,  0 )  e.  CC )  ->  ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  k )  =  if ( k  =  N ,  A ,  0 ) )
2013, 16, 19syl2anc 642 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  k  e.  NN0 )  ->  ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  k )  =  if ( k  =  N ,  A ,  0 ) )
2120neeq1d 2459 . . . . . 6  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  k  e.  NN0 )  ->  ( ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  k )  =/=  0  <->  if (
k  =  N ,  A ,  0 )  =/=  0 ) )
22 nn0re 9974 . . . . . . . . 9  |-  ( N  e.  NN0  ->  N  e.  RR )
2322leidd 9339 . . . . . . . 8  |-  ( N  e.  NN0  ->  N  <_  N )
2423ad2antlr 707 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  k  e.  NN0 )  ->  N  <_  N
)
25 iffalse 3572 . . . . . . . . 9  |-  ( -.  k  =  N  ->  if ( k  =  N ,  A ,  0 )  =  0 )
2625necon1ai 2488 . . . . . . . 8  |-  ( if ( k  =  N ,  A ,  0 )  =/=  0  -> 
k  =  N )
2726breq1d 4033 . . . . . . 7  |-  ( if ( k  =  N ,  A ,  0 )  =/=  0  -> 
( k  <_  N  <->  N  <_  N ) )
2824, 27syl5ibrcom 213 . . . . . 6  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  k  e.  NN0 )  ->  ( if ( k  =  N ,  A ,  0 )  =/=  0  ->  k  <_  N ) )
2921, 28sylbid 206 . . . . 5  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  k  e.  NN0 )  ->  ( ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  k )  =/=  0  ->  k  <_  N ) )
3029ralrimiva 2626 . . . 4  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  ->  A. k  e.  NN0  ( ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  k )  =/=  0  ->  k  <_  N ) )
31 plyco0 19574 . . . . 5  |-  ( ( N  e.  NN0  /\  ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) : NN0 --> CC )  ->  ( (
( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) " ( ZZ>=
`  ( N  + 
1 ) ) )  =  { 0 }  <->  A. k  e.  NN0  ( ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  k )  =/=  0  ->  k  <_  N ) ) )
325, 12, 31syl2anc 642 . . . 4  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  -> 
( ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) " ( ZZ>= `  ( N  +  1
) ) )  =  { 0 }  <->  A. k  e.  NN0  ( ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  k )  =/=  0  ->  k  <_  N ) ) )
3330, 32mpbird 223 . . 3  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  -> 
( ( n  e. 
NN0  |->  if ( n  =  N ,  A ,  0 ) )
" ( ZZ>= `  ( N  +  1 ) ) )  =  {
0 } )
342ply1termlem 19585 . . . 4  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  ->  F  =  ( z  e.  CC  |->  sum_ k  e.  ( 0 ... N ) ( if ( k  =  N ,  A ,  0 )  x.  ( z ^ k
) ) ) )
35 elfznn0 10822 . . . . . . 7  |-  ( k  e.  ( 0 ... N )  ->  k  e.  NN0 )
3620oveq1d 5873 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  k  e.  NN0 )  ->  ( ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  k )  x.  ( z ^
k ) )  =  ( if ( k  =  N ,  A ,  0 )  x.  ( z ^ k
) ) )
3735, 36sylan2 460 . . . . . 6  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  k  e.  (
0 ... N ) )  ->  ( ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  k )  x.  ( z ^
k ) )  =  ( if ( k  =  N ,  A ,  0 )  x.  ( z ^ k
) ) )
3837sumeq2dv 12176 . . . . 5  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  ->  sum_ k  e.  ( 0 ... N ) ( ( ( n  e. 
NN0  |->  if ( n  =  N ,  A ,  0 ) ) `
 k )  x.  ( z ^ k
) )  =  sum_ k  e.  ( 0 ... N ) ( if ( k  =  N ,  A , 
0 )  x.  (
z ^ k ) ) )
3938mpteq2dv 4107 . . . 4  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  -> 
( z  e.  CC  |->  sum_ k  e.  ( 0 ... N ) ( ( ( n  e. 
NN0  |->  if ( n  =  N ,  A ,  0 ) ) `
 k )  x.  ( z ^ k
) ) )  =  ( z  e.  CC  |->  sum_ k  e.  ( 0 ... N ) ( if ( k  =  N ,  A , 
0 )  x.  (
z ^ k ) ) ) )
4034, 39eqtr4d 2318 . . 3  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  ->  F  =  ( z  e.  CC  |->  sum_ k  e.  ( 0 ... N ) ( ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  k )  x.  ( z ^
k ) ) ) )
414, 5, 12, 33, 40coeeq 19609 . 2  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  -> 
(coeff `  F )  =  ( n  e. 
NN0  |->  if ( n  =  N ,  A ,  0 ) ) )
424adantr 451 . . . 4  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  A  =/=  0
)  ->  F  e.  (Poly `  CC ) )
435adantr 451 . . . 4  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  A  =/=  0
)  ->  N  e.  NN0 )
4412adantr 451 . . . 4  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  A  =/=  0
)  ->  ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) : NN0 --> CC )
4533adantr 451 . . . 4  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  A  =/=  0
)  ->  ( (
n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) " ( ZZ>= `  ( N  +  1
) ) )  =  { 0 } )
4640adantr 451 . . . 4  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  A  =/=  0
)  ->  F  =  ( z  e.  CC  |->  sum_ k  e.  ( 0 ... N ) ( ( ( n  e. 
NN0  |->  if ( n  =  N ,  A ,  0 ) ) `
 k )  x.  ( z ^ k
) ) ) )
47 iftrue 3571 . . . . . . . 8  |-  ( n  =  N  ->  if ( n  =  N ,  A ,  0 )  =  A )
4847, 11fvmptg 5600 . . . . . . 7  |-  ( ( N  e.  NN0  /\  A  e.  CC )  ->  ( ( n  e. 
NN0  |->  if ( n  =  N ,  A ,  0 ) ) `
 N )  =  A )
4948ancoms 439 . . . . . 6  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  -> 
( ( n  e. 
NN0  |->  if ( n  =  N ,  A ,  0 ) ) `
 N )  =  A )
5049neeq1d 2459 . . . . 5  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  -> 
( ( ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  N )  =/=  0  <->  A  =/=  0 ) )
5150biimpar 471 . . . 4  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  A  =/=  0
)  ->  ( (
n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) ) `  N )  =/=  0 )
5242, 43, 44, 45, 46, 51dgreq 19626 . . 3  |-  ( ( ( A  e.  CC  /\  N  e.  NN0 )  /\  A  =/=  0
)  ->  (deg `  F
)  =  N )
5352ex 423 . 2  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  -> 
( A  =/=  0  ->  (deg `  F )  =  N ) )
5441, 53jca 518 1  |-  ( ( A  e.  CC  /\  N  e.  NN0 )  -> 
( (coeff `  F
)  =  ( n  e.  NN0  |->  if ( n  =  N ,  A ,  0 ) )  /\  ( A  =/=  0  ->  (deg `  F )  =  N ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358    = wceq 1623    e. wcel 1684    =/= wne 2446   A.wral 2543    C_ wss 3152   ifcif 3565   {csn 3640   class class class wbr 4023    e. cmpt 4077   "cima 4692   -->wf 5251   ` cfv 5255  (class class class)co 5858   CCcc 8735   0cc0 8737   1c1 8738    + caddc 8740    x. cmul 8742    <_ cle 8868   NN0cn0 9965   ZZ>=cuz 10230   ...cfz 10782   ^cexp 11104   sum_csu 12158  Polycply 19566  coeffccoe 19568  degcdgr 19569
This theorem is referenced by:  coe1term  19640  dgr1term  19641
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  ax-inf2 7342  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  ax-addf 8816
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-int 3863  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-se 4353  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-isom 5264  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-of 6078  df-1st 6122  df-2nd 6123  df-riota 6304  df-recs 6388  df-rdg 6423  df-1o 6479  df-oadd 6483  df-er 6660  df-map 6774  df-pm 6775  df-en 6864  df-dom 6865  df-sdom 6866  df-fin 6867  df-sup 7194  df-oi 7225  df-card 7572  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-fz 10783  df-fzo 10871  df-fl 10925  df-seq 11047  df-exp 11105  df-hash 11338  df-cj 11584  df-re 11585  df-im 11586  df-sqr 11720  df-abs 11721  df-clim 11962  df-rlim 11963  df-sum 12159  df-0p 19025  df-ply 19570  df-coe 19572  df-dgr 19573
  Copyright terms: Public domain W3C validator