ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fprodrev Unicode version

Theorem fprodrev 11554
Description: Reversal of a finite product. (Contributed by Scott Fenton, 5-Jan-2018.)
Hypotheses
Ref Expression
fprodshft.1  |-  ( ph  ->  K  e.  ZZ )
fprodshft.2  |-  ( ph  ->  M  e.  ZZ )
fprodshft.3  |-  ( ph  ->  N  e.  ZZ )
fprodshft.4  |-  ( (
ph  /\  j  e.  ( M ... N ) )  ->  A  e.  CC )
fprodrev.5  |-  ( j  =  ( K  -  k )  ->  A  =  B )
Assertion
Ref Expression
fprodrev  |-  ( ph  ->  prod_ j  e.  ( M ... N ) A  =  prod_ k  e.  ( ( K  -  N ) ... ( K  -  M )
) B )
Distinct variable groups:    A, k    B, j    j, k, ph    j, K, k    ph, k    j, M, k    j, N, k
Allowed substitution hints:    A( j)    B( k)

Proof of Theorem fprodrev
StepHypRef Expression
1 fprodrev.5 . 2  |-  ( j  =  ( K  -  k )  ->  A  =  B )
2 fprodshft.1 . . . 4  |-  ( ph  ->  K  e.  ZZ )
3 fprodshft.3 . . . 4  |-  ( ph  ->  N  e.  ZZ )
42, 3zsubcld 9312 . . 3  |-  ( ph  ->  ( K  -  N
)  e.  ZZ )
5 fprodshft.2 . . . 4  |-  ( ph  ->  M  e.  ZZ )
62, 5zsubcld 9312 . . 3  |-  ( ph  ->  ( K  -  M
)  e.  ZZ )
74, 6fzfigd 10360 . 2  |-  ( ph  ->  ( ( K  -  N ) ... ( K  -  M )
)  e.  Fin )
8 eqid 2164 . . 3  |-  ( j  e.  ( ( K  -  N ) ... ( K  -  M
) )  |->  ( K  -  j ) )  =  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  |->  ( K  -  j ) )
92adantr 274 . . . 4  |-  ( (
ph  /\  j  e.  ( ( K  -  N ) ... ( K  -  M )
) )  ->  K  e.  ZZ )
10 elfzelz 9954 . . . . 5  |-  ( j  e.  ( ( K  -  N ) ... ( K  -  M
) )  ->  j  e.  ZZ )
1110adantl 275 . . . 4  |-  ( (
ph  /\  j  e.  ( ( K  -  N ) ... ( K  -  M )
) )  ->  j  e.  ZZ )
129, 11zsubcld 9312 . . 3  |-  ( (
ph  /\  j  e.  ( ( K  -  N ) ... ( K  -  M )
) )  ->  ( K  -  j )  e.  ZZ )
132adantr 274 . . . 4  |-  ( (
ph  /\  k  e.  ( M ... N ) )  ->  K  e.  ZZ )
14 elfzelz 9954 . . . . 5  |-  ( k  e.  ( M ... N )  ->  k  e.  ZZ )
1514adantl 275 . . . 4  |-  ( (
ph  /\  k  e.  ( M ... N ) )  ->  k  e.  ZZ )
1613, 15zsubcld 9312 . . 3  |-  ( (
ph  /\  k  e.  ( M ... N ) )  ->  ( K  -  k )  e.  ZZ )
17 simprr 522 . . . . . 6  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  -> 
k  =  ( K  -  j ) )
18 simprl 521 . . . . . . 7  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  -> 
j  e.  ( ( K  -  N ) ... ( K  -  M ) ) )
195adantr 274 . . . . . . . 8  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  ->  M  e.  ZZ )
203adantr 274 . . . . . . . 8  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  ->  N  e.  ZZ )
212adantr 274 . . . . . . . 8  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  ->  K  e.  ZZ )
2210ad2antrl 482 . . . . . . . 8  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  -> 
j  e.  ZZ )
23 fzrev 10013 . . . . . . . 8  |-  ( ( ( M  e.  ZZ  /\  N  e.  ZZ )  /\  ( K  e.  ZZ  /\  j  e.  ZZ ) )  -> 
( j  e.  ( ( K  -  N
) ... ( K  -  M ) )  <->  ( K  -  j )  e.  ( M ... N
) ) )
2419, 20, 21, 22, 23syl22anc 1228 . . . . . . 7  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  -> 
( j  e.  ( ( K  -  N
) ... ( K  -  M ) )  <->  ( K  -  j )  e.  ( M ... N
) ) )
2518, 24mpbid 146 . . . . . 6  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  -> 
( K  -  j
)  e.  ( M ... N ) )
2617, 25eqeltrd 2241 . . . . 5  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  -> 
k  e.  ( M ... N ) )
27 oveq2 5847 . . . . . . 7  |-  ( k  =  ( K  -  j )  ->  ( K  -  k )  =  ( K  -  ( K  -  j
) ) )
2827ad2antll 483 . . . . . 6  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  -> 
( K  -  k
)  =  ( K  -  ( K  -  j ) ) )
292zcnd 9308 . . . . . . . 8  |-  ( ph  ->  K  e.  CC )
3029adantr 274 . . . . . . 7  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  ->  K  e.  CC )
3110zcnd 9308 . . . . . . . 8  |-  ( j  e.  ( ( K  -  N ) ... ( K  -  M
) )  ->  j  e.  CC )
3231ad2antrl 482 . . . . . . 7  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  -> 
j  e.  CC )
3330, 32nncand 8208 . . . . . 6  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  -> 
( K  -  ( K  -  j )
)  =  j )
3428, 33eqtr2d 2198 . . . . 5  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  -> 
j  =  ( K  -  k ) )
3526, 34jca 304 . . . 4  |-  ( (
ph  /\  ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) ) )  -> 
( k  e.  ( M ... N )  /\  j  =  ( K  -  k ) ) )
36 simprr 522 . . . . . 6  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  -> 
j  =  ( K  -  k ) )
37 simprl 521 . . . . . . 7  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  -> 
k  e.  ( M ... N ) )
385adantr 274 . . . . . . . 8  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  ->  M  e.  ZZ )
393adantr 274 . . . . . . . 8  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  ->  N  e.  ZZ )
402adantr 274 . . . . . . . 8  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  ->  K  e.  ZZ )
4114ad2antrl 482 . . . . . . . 8  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  -> 
k  e.  ZZ )
42 fzrev2 10014 . . . . . . . 8  |-  ( ( ( M  e.  ZZ  /\  N  e.  ZZ )  /\  ( K  e.  ZZ  /\  k  e.  ZZ ) )  -> 
( k  e.  ( M ... N )  <-> 
( K  -  k
)  e.  ( ( K  -  N ) ... ( K  -  M ) ) ) )
4338, 39, 40, 41, 42syl22anc 1228 . . . . . . 7  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  -> 
( k  e.  ( M ... N )  <-> 
( K  -  k
)  e.  ( ( K  -  N ) ... ( K  -  M ) ) ) )
4437, 43mpbid 146 . . . . . 6  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  -> 
( K  -  k
)  e.  ( ( K  -  N ) ... ( K  -  M ) ) )
4536, 44eqeltrd 2241 . . . . 5  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  -> 
j  e.  ( ( K  -  N ) ... ( K  -  M ) ) )
46 oveq2 5847 . . . . . . 7  |-  ( j  =  ( K  -  k )  ->  ( K  -  j )  =  ( K  -  ( K  -  k
) ) )
4746ad2antll 483 . . . . . 6  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  -> 
( K  -  j
)  =  ( K  -  ( K  -  k ) ) )
4829adantr 274 . . . . . . 7  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  ->  K  e.  CC )
4914zcnd 9308 . . . . . . . 8  |-  ( k  e.  ( M ... N )  ->  k  e.  CC )
5049ad2antrl 482 . . . . . . 7  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  -> 
k  e.  CC )
5148, 50nncand 8208 . . . . . 6  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  -> 
( K  -  ( K  -  k )
)  =  k )
5247, 51eqtr2d 2198 . . . . 5  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  -> 
k  =  ( K  -  j ) )
5345, 52jca 304 . . . 4  |-  ( (
ph  /\  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) )  -> 
( j  e.  ( ( K  -  N
) ... ( K  -  M ) )  /\  k  =  ( K  -  j ) ) )
5435, 53impbida 586 . . 3  |-  ( ph  ->  ( ( j  e.  ( ( K  -  N ) ... ( K  -  M )
)  /\  k  =  ( K  -  j
) )  <->  ( k  e.  ( M ... N
)  /\  j  =  ( K  -  k
) ) ) )
558, 12, 16, 54f1od 6038 . 2  |-  ( ph  ->  ( j  e.  ( ( K  -  N
) ... ( K  -  M ) )  |->  ( K  -  j ) ) : ( ( K  -  N ) ... ( K  -  M ) ) -1-1-onto-> ( M ... N ) )
56 oveq2 5847 . . 3  |-  ( j  =  k  ->  ( K  -  j )  =  ( K  -  k ) )
57 simpr 109 . . 3  |-  ( (
ph  /\  k  e.  ( ( K  -  N ) ... ( K  -  M )
) )  ->  k  e.  ( ( K  -  N ) ... ( K  -  M )
) )
582adantr 274 . . . 4  |-  ( (
ph  /\  k  e.  ( ( K  -  N ) ... ( K  -  M )
) )  ->  K  e.  ZZ )
59 elfzelz 9954 . . . . 5  |-  ( k  e.  ( ( K  -  N ) ... ( K  -  M
) )  ->  k  e.  ZZ )
6059adantl 275 . . . 4  |-  ( (
ph  /\  k  e.  ( ( K  -  N ) ... ( K  -  M )
) )  ->  k  e.  ZZ )
6158, 60zsubcld 9312 . . 3  |-  ( (
ph  /\  k  e.  ( ( K  -  N ) ... ( K  -  M )
) )  ->  ( K  -  k )  e.  ZZ )
628, 56, 57, 61fvmptd3 5576 . 2  |-  ( (
ph  /\  k  e.  ( ( K  -  N ) ... ( K  -  M )
) )  ->  (
( j  e.  ( ( K  -  N
) ... ( K  -  M ) )  |->  ( K  -  j ) ) `  k )  =  ( K  -  k ) )
63 fprodshft.4 . 2  |-  ( (
ph  /\  j  e.  ( M ... N ) )  ->  A  e.  CC )
641, 7, 55, 62, 63fprodf1o 11523 1  |-  ( ph  ->  prod_ j  e.  ( M ... N ) A  =  prod_ k  e.  ( ( K  -  N ) ... ( K  -  M )
) B )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    = wceq 1342    e. wcel 2135    |-> cmpt 4040  (class class class)co 5839   CCcc 7745    - cmin 8063   ZZcz 9185   ...cfz 9938   prod_cprod 11485
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1434  ax-7 1435  ax-gen 1436  ax-ie1 1480  ax-ie2 1481  ax-8 1491  ax-10 1492  ax-11 1493  ax-i12 1494  ax-bndl 1496  ax-4 1497  ax-17 1513  ax-i9 1517  ax-ial 1521  ax-i5r 1522  ax-13 2137  ax-14 2138  ax-ext 2146  ax-coll 4094  ax-sep 4097  ax-nul 4105  ax-pow 4150  ax-pr 4184  ax-un 4408  ax-setind 4511  ax-iinf 4562  ax-cnex 7838  ax-resscn 7839  ax-1cn 7840  ax-1re 7841  ax-icn 7842  ax-addcl 7843  ax-addrcl 7844  ax-mulcl 7845  ax-mulrcl 7846  ax-addcom 7847  ax-mulcom 7848  ax-addass 7849  ax-mulass 7850  ax-distr 7851  ax-i2m1 7852  ax-0lt1 7853  ax-1rid 7854  ax-0id 7855  ax-rnegex 7856  ax-precex 7857  ax-cnre 7858  ax-pre-ltirr 7859  ax-pre-ltwlin 7860  ax-pre-lttrn 7861  ax-pre-apti 7862  ax-pre-ltadd 7863  ax-pre-mulgt0 7864  ax-pre-mulext 7865  ax-arch 7866  ax-caucvg 7867
This theorem depends on definitions:  df-bi 116  df-dc 825  df-3or 968  df-3an 969  df-tru 1345  df-fal 1348  df-nf 1448  df-sb 1750  df-eu 2016  df-mo 2017  df-clab 2151  df-cleq 2157  df-clel 2160  df-nfc 2295  df-ne 2335  df-nel 2430  df-ral 2447  df-rex 2448  df-reu 2449  df-rmo 2450  df-rab 2451  df-v 2726  df-sbc 2950  df-csb 3044  df-dif 3116  df-un 3118  df-in 3120  df-ss 3127  df-nul 3408  df-if 3519  df-pw 3558  df-sn 3579  df-pr 3580  df-op 3582  df-uni 3787  df-int 3822  df-iun 3865  df-br 3980  df-opab 4041  df-mpt 4042  df-tr 4078  df-id 4268  df-po 4271  df-iso 4272  df-iord 4341  df-on 4343  df-ilim 4344  df-suc 4346  df-iom 4565  df-xp 4607  df-rel 4608  df-cnv 4609  df-co 4610  df-dm 4611  df-rn 4612  df-res 4613  df-ima 4614  df-iota 5150  df-fun 5187  df-fn 5188  df-f 5189  df-f1 5190  df-fo 5191  df-f1o 5192  df-fv 5193  df-isom 5194  df-riota 5795  df-ov 5842  df-oprab 5843  df-mpo 5844  df-1st 6103  df-2nd 6104  df-recs 6267  df-irdg 6332  df-frec 6353  df-1o 6378  df-oadd 6382  df-er 6495  df-en 6701  df-dom 6702  df-fin 6703  df-pnf 7929  df-mnf 7930  df-xr 7931  df-ltxr 7932  df-le 7933  df-sub 8065  df-neg 8066  df-reap 8467  df-ap 8474  df-div 8563  df-inn 8852  df-2 8910  df-3 8911  df-4 8912  df-n0 9109  df-z 9186  df-uz 9461  df-q 9552  df-rp 9584  df-fz 9939  df-fzo 10072  df-seqfrec 10375  df-exp 10449  df-ihash 10683  df-cj 10778  df-re 10779  df-im 10780  df-rsqrt 10934  df-abs 10935  df-clim 11214  df-proddc 11486
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator