MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  seqof2 Structured version   Visualization version   GIF version

Theorem seqof2 12676
Description: Distribute function operation through a sequence. Maps-to notation version of seqof 12675. (Contributed by Mario Carneiro, 7-Jul-2017.)
Hypotheses
Ref Expression
seqof2.1 (𝜑𝐴𝑉)
seqof2.2 (𝜑𝑁 ∈ (ℤ𝑀))
seqof2.3 (𝜑 → (𝑀...𝑁) ⊆ 𝐵)
seqof2.4 ((𝜑 ∧ (𝑥𝐵𝑧𝐴)) → 𝑋𝑊)
Assertion
Ref Expression
seqof2 (𝜑 → (seq𝑀( ∘𝑓 + , (𝑥𝐵 ↦ (𝑧𝐴𝑋)))‘𝑁) = (𝑧𝐴 ↦ (seq𝑀( + , (𝑥𝐵𝑋))‘𝑁)))
Distinct variable groups:   𝑥,𝑧,𝐴   𝑥,𝑀,𝑧   𝑥,𝑁,𝑧   𝜑,𝑥,𝑧   𝑧, +   𝑥,𝐵
Allowed substitution hints:   𝐵(𝑧)   + (𝑥)   𝑉(𝑥,𝑧)   𝑊(𝑥,𝑧)   𝑋(𝑥,𝑧)

Proof of Theorem seqof2
Dummy variables 𝑛 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 seqof2.1 . . 3 (𝜑𝐴𝑉)
2 seqof2.2 . . 3 (𝜑𝑁 ∈ (ℤ𝑀))
3 nfv 1829 . . . . . 6 𝑥(𝜑𝑛 ∈ (𝑀...𝑁))
4 nffvmpt1 6096 . . . . . . 7 𝑥((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑛)
5 nfcv 2750 . . . . . . . 8 𝑥𝐴
6 nffvmpt1 6096 . . . . . . . 8 𝑥((𝑥𝐵𝑋)‘𝑛)
75, 6nfmpt 4668 . . . . . . 7 𝑥(𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑛))
84, 7nfeq 2761 . . . . . 6 𝑥((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑛) = (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑛))
93, 8nfim 1812 . . . . 5 𝑥((𝜑𝑛 ∈ (𝑀...𝑁)) → ((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑛) = (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑛)))
10 eleq1 2675 . . . . . . 7 (𝑥 = 𝑛 → (𝑥 ∈ (𝑀...𝑁) ↔ 𝑛 ∈ (𝑀...𝑁)))
1110anbi2d 735 . . . . . 6 (𝑥 = 𝑛 → ((𝜑𝑥 ∈ (𝑀...𝑁)) ↔ (𝜑𝑛 ∈ (𝑀...𝑁))))
12 fveq2 6088 . . . . . . 7 (𝑥 = 𝑛 → ((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑥) = ((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑛))
13 fveq2 6088 . . . . . . . 8 (𝑥 = 𝑛 → ((𝑥𝐵𝑋)‘𝑥) = ((𝑥𝐵𝑋)‘𝑛))
1413mpteq2dv 4667 . . . . . . 7 (𝑥 = 𝑛 → (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑥)) = (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑛)))
1512, 14eqeq12d 2624 . . . . . 6 (𝑥 = 𝑛 → (((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑥) = (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑥)) ↔ ((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑛) = (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑛))))
1611, 15imbi12d 332 . . . . 5 (𝑥 = 𝑛 → (((𝜑𝑥 ∈ (𝑀...𝑁)) → ((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑥) = (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑥))) ↔ ((𝜑𝑛 ∈ (𝑀...𝑁)) → ((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑛) = (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑛)))))
17 seqof2.3 . . . . . . . 8 (𝜑 → (𝑀...𝑁) ⊆ 𝐵)
1817sselda 3567 . . . . . . 7 ((𝜑𝑥 ∈ (𝑀...𝑁)) → 𝑥𝐵)
191adantr 479 . . . . . . . 8 ((𝜑𝑥 ∈ (𝑀...𝑁)) → 𝐴𝑉)
20 mptexg 6367 . . . . . . . 8 (𝐴𝑉 → (𝑧𝐴𝑋) ∈ V)
2119, 20syl 17 . . . . . . 7 ((𝜑𝑥 ∈ (𝑀...𝑁)) → (𝑧𝐴𝑋) ∈ V)
22 eqid 2609 . . . . . . . 8 (𝑥𝐵 ↦ (𝑧𝐴𝑋)) = (𝑥𝐵 ↦ (𝑧𝐴𝑋))
2322fvmpt2 6185 . . . . . . 7 ((𝑥𝐵 ∧ (𝑧𝐴𝑋) ∈ V) → ((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑥) = (𝑧𝐴𝑋))
2418, 21, 23syl2anc 690 . . . . . 6 ((𝜑𝑥 ∈ (𝑀...𝑁)) → ((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑥) = (𝑧𝐴𝑋))
2518adantr 479 . . . . . . . 8 (((𝜑𝑥 ∈ (𝑀...𝑁)) ∧ 𝑧𝐴) → 𝑥𝐵)
26 simpll 785 . . . . . . . . 9 (((𝜑𝑥 ∈ (𝑀...𝑁)) ∧ 𝑧𝐴) → 𝜑)
27 simpr 475 . . . . . . . . 9 (((𝜑𝑥 ∈ (𝑀...𝑁)) ∧ 𝑧𝐴) → 𝑧𝐴)
28 seqof2.4 . . . . . . . . 9 ((𝜑 ∧ (𝑥𝐵𝑧𝐴)) → 𝑋𝑊)
2926, 25, 27, 28syl12anc 1315 . . . . . . . 8 (((𝜑𝑥 ∈ (𝑀...𝑁)) ∧ 𝑧𝐴) → 𝑋𝑊)
30 eqid 2609 . . . . . . . . 9 (𝑥𝐵𝑋) = (𝑥𝐵𝑋)
3130fvmpt2 6185 . . . . . . . 8 ((𝑥𝐵𝑋𝑊) → ((𝑥𝐵𝑋)‘𝑥) = 𝑋)
3225, 29, 31syl2anc 690 . . . . . . 7 (((𝜑𝑥 ∈ (𝑀...𝑁)) ∧ 𝑧𝐴) → ((𝑥𝐵𝑋)‘𝑥) = 𝑋)
3332mpteq2dva 4666 . . . . . 6 ((𝜑𝑥 ∈ (𝑀...𝑁)) → (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑥)) = (𝑧𝐴𝑋))
3424, 33eqtr4d 2646 . . . . 5 ((𝜑𝑥 ∈ (𝑀...𝑁)) → ((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑥) = (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑥)))
359, 16, 34chvar 2249 . . . 4 ((𝜑𝑛 ∈ (𝑀...𝑁)) → ((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑛) = (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑛)))
36 nfcv 2750 . . . . 5 𝑦((𝑥𝐵𝑋)‘𝑛)
37 nfcsb1v 3514 . . . . . 6 𝑧𝑦 / 𝑧(𝑥𝐵𝑋)
38 nfcv 2750 . . . . . 6 𝑧𝑛
3937, 38nffv 6095 . . . . 5 𝑧(𝑦 / 𝑧(𝑥𝐵𝑋)‘𝑛)
40 csbeq1a 3507 . . . . . 6 (𝑧 = 𝑦 → (𝑥𝐵𝑋) = 𝑦 / 𝑧(𝑥𝐵𝑋))
4140fveq1d 6090 . . . . 5 (𝑧 = 𝑦 → ((𝑥𝐵𝑋)‘𝑛) = (𝑦 / 𝑧(𝑥𝐵𝑋)‘𝑛))
4236, 39, 41cbvmpt 4671 . . . 4 (𝑧𝐴 ↦ ((𝑥𝐵𝑋)‘𝑛)) = (𝑦𝐴 ↦ (𝑦 / 𝑧(𝑥𝐵𝑋)‘𝑛))
4335, 42syl6eq 2659 . . 3 ((𝜑𝑛 ∈ (𝑀...𝑁)) → ((𝑥𝐵 ↦ (𝑧𝐴𝑋))‘𝑛) = (𝑦𝐴 ↦ (𝑦 / 𝑧(𝑥𝐵𝑋)‘𝑛)))
441, 2, 43seqof 12675 . 2 (𝜑 → (seq𝑀( ∘𝑓 + , (𝑥𝐵 ↦ (𝑧𝐴𝑋)))‘𝑁) = (𝑦𝐴 ↦ (seq𝑀( + , 𝑦 / 𝑧(𝑥𝐵𝑋))‘𝑁)))
45 nfcv 2750 . . 3 𝑦(seq𝑀( + , (𝑥𝐵𝑋))‘𝑁)
46 nfcv 2750 . . . . 5 𝑧𝑀
47 nfcv 2750 . . . . 5 𝑧 +
4846, 47, 37nfseq 12628 . . . 4 𝑧seq𝑀( + , 𝑦 / 𝑧(𝑥𝐵𝑋))
49 nfcv 2750 . . . 4 𝑧𝑁
5048, 49nffv 6095 . . 3 𝑧(seq𝑀( + , 𝑦 / 𝑧(𝑥𝐵𝑋))‘𝑁)
5140seqeq3d 12626 . . . 4 (𝑧 = 𝑦 → seq𝑀( + , (𝑥𝐵𝑋)) = seq𝑀( + , 𝑦 / 𝑧(𝑥𝐵𝑋)))
5251fveq1d 6090 . . 3 (𝑧 = 𝑦 → (seq𝑀( + , (𝑥𝐵𝑋))‘𝑁) = (seq𝑀( + , 𝑦 / 𝑧(𝑥𝐵𝑋))‘𝑁))
5345, 50, 52cbvmpt 4671 . 2 (𝑧𝐴 ↦ (seq𝑀( + , (𝑥𝐵𝑋))‘𝑁)) = (𝑦𝐴 ↦ (seq𝑀( + , 𝑦 / 𝑧(𝑥𝐵𝑋))‘𝑁))
5444, 53syl6eqr 2661 1 (𝜑 → (seq𝑀( ∘𝑓 + , (𝑥𝐵 ↦ (𝑧𝐴𝑋)))‘𝑁) = (𝑧𝐴 ↦ (seq𝑀( + , (𝑥𝐵𝑋))‘𝑁)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 382   = wceq 1474  wcel 1976  Vcvv 3172  csb 3498  wss 3539  cmpt 4637  cfv 5790  (class class class)co 6527  𝑓 cof 6770  cuz 11519  ...cfz 12152  seqcseq 12618
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1712  ax-4 1727  ax-5 1826  ax-6 1874  ax-7 1921  ax-8 1978  ax-9 1985  ax-10 2005  ax-11 2020  ax-12 2033  ax-13 2233  ax-ext 2589  ax-rep 4693  ax-sep 4703  ax-nul 4712  ax-pow 4764  ax-pr 4828  ax-un 6824  ax-cnex 9848  ax-resscn 9849  ax-1cn 9850  ax-icn 9851  ax-addcl 9852  ax-addrcl 9853  ax-mulcl 9854  ax-mulrcl 9855  ax-mulcom 9856  ax-addass 9857  ax-mulass 9858  ax-distr 9859  ax-i2m1 9860  ax-1ne0 9861  ax-1rid 9862  ax-rnegex 9863  ax-rrecex 9864  ax-cnre 9865  ax-pre-lttri 9866  ax-pre-lttrn 9867  ax-pre-ltadd 9868  ax-pre-mulgt0 9869
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-ex 1695  df-nf 1700  df-sb 1867  df-eu 2461  df-mo 2462  df-clab 2596  df-cleq 2602  df-clel 2605  df-nfc 2739  df-ne 2781  df-nel 2782  df-ral 2900  df-rex 2901  df-reu 2902  df-rab 2904  df-v 3174  df-sbc 3402  df-csb 3499  df-dif 3542  df-un 3544  df-in 3546  df-ss 3553  df-pss 3555  df-nul 3874  df-if 4036  df-pw 4109  df-sn 4125  df-pr 4127  df-tp 4129  df-op 4131  df-uni 4367  df-iun 4451  df-br 4578  df-opab 4638  df-mpt 4639  df-tr 4675  df-eprel 4939  df-id 4943  df-po 4949  df-so 4950  df-fr 4987  df-we 4989  df-xp 5034  df-rel 5035  df-cnv 5036  df-co 5037  df-dm 5038  df-rn 5039  df-res 5040  df-ima 5041  df-pred 5583  df-ord 5629  df-on 5630  df-lim 5631  df-suc 5632  df-iota 5754  df-fun 5792  df-fn 5793  df-f 5794  df-f1 5795  df-fo 5796  df-f1o 5797  df-fv 5798  df-riota 6489  df-ov 6530  df-oprab 6531  df-mpt2 6532  df-of 6772  df-om 6935  df-1st 7036  df-2nd 7037  df-wrecs 7271  df-recs 7332  df-rdg 7370  df-er 7606  df-en 7819  df-dom 7820  df-sdom 7821  df-pnf 9932  df-mnf 9933  df-xr 9934  df-ltxr 9935  df-le 9936  df-sub 10119  df-neg 10120  df-nn 10868  df-n0 11140  df-z 11211  df-uz 11520  df-fz 12153  df-seq 12619
This theorem is referenced by:  mtestbdd  23880  lgamgulm2  24479  lgamcvglem  24483
  Copyright terms: Public domain W3C validator