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

Theorem seqof2 14264
Description: Distribute function operation through a sequence. Maps-to notation version of seqof 14263. (Contributed by Mario Carneiro, 7-Jul-2017.)
Hypotheses
Ref Expression
seqof2.1 (𝜑 → 𝐴 ∈ 𝑉)
seqof2.2 (𝜑 → 𝑁 ∈ (ℤ≥‘𝑀))
seqof2.3 (𝜑 → (𝑀...𝑁) ⊆ 𝐵)
seqof2.4 ((𝜑 ∧ (𝑥 ∈ 𝐵 ∧ 𝑧 ∈ 𝐴)) → 𝑋 ∈ 𝑊)
Assertion
Ref Expression
seqof2 (𝜑 → (seq𝑀( ∘f + , (𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋)))‘𝑁) = (𝑧 ∈ 𝐴 ↦ (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 1956 . . . . . 6 Ⅎ𝑥(𝜑 ∧ 𝑛 ∈ (𝑀...𝑁))
4 nffvmpt1 6945 . . . . . . 7 Ⅎ𝑥((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛)
5 nfcv 2937 . . . . . . . 8 Ⅎ𝑥𝐴
6 nffvmpt1 6945 . . . . . . . 8 Ⅎ𝑥((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)
75, 6nfmpt 5217 . . . . . . 7 Ⅎ𝑥(𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))
84, 7nfeq 2950 . . . . . 6 Ⅎ𝑥((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))
93, 8nfim 1937 . . . . 5 Ⅎ𝑥((𝜑 ∧ 𝑛 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)))
10 eleq1w 2858 . . . . . . 7 (𝑥 = 𝑛 → (𝑥 ∈ (𝑀...𝑁) ↔ 𝑛 ∈ (𝑀...𝑁)))
1110anbi2d 642 . . . . . 6 (𝑥 = 𝑛 → ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) ↔ (𝜑 ∧ 𝑛 ∈ (𝑀...𝑁))))
12 fveq2 6934 . . . . . . 7 (𝑥 = 𝑛 → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑥) = ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛))
13 fveq2 6934 . . . . . . . 8 (𝑥 = 𝑛 → ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥) = ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))
1413mpteq2dv 5213 . . . . . . 7 (𝑥 = 𝑛 → (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥)) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)))
1512, 14eqeq12d 2790 . . . . . 6 (𝑥 = 𝑛 → (((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑥) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥)) ↔ ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))))
1611, 15imbi12d 347 . . . . 5 (𝑥 = 𝑛 → (((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑥) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥))) ↔ ((𝜑 ∧ 𝑛 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)))))
17 seqof2.3 . . . . . . . 8 (𝜑 → (𝑀...𝑁) ⊆ 𝐵)
1817sselda 3920 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → 𝑥 ∈ 𝐵)
191adantr 486 . . . . . . . 8 ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → 𝐴 ∈ 𝑉)
2019mptexd 7279 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → (𝑧 ∈ 𝐴 ↦ 𝑋) ∈ V)
21 eqid 2774 . . . . . . . 8 (𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋)) = (𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))
2221fvmpt2 7054 . . . . . . 7 ((𝑥 ∈ 𝐵 ∧ (𝑧 ∈ 𝐴 ↦ 𝑋) ∈ V) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑥) = (𝑧 ∈ 𝐴 ↦ 𝑋))
2318, 20, 22syl2anc 596 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑥) = (𝑧 ∈ 𝐴 ↦ 𝑋))
2418adantr 486 . . . . . . . 8 (((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) ∧ 𝑧 ∈ 𝐴) → 𝑥 ∈ 𝐵)
25 simpll 779 . . . . . . . . 9 (((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) ∧ 𝑧 ∈ 𝐴) → 𝜑)
26 simpr 490 . . . . . . . . 9 (((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) ∧ 𝑧 ∈ 𝐴) → 𝑧 ∈ 𝐴)
27 seqof2.4 . . . . . . . . 9 ((𝜑 ∧ (𝑥 ∈ 𝐵 ∧ 𝑧 ∈ 𝐴)) → 𝑋 ∈ 𝑊)
2825, 24, 26, 27syl12anc 850 . . . . . . . 8 (((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) ∧ 𝑧 ∈ 𝐴) → 𝑋 ∈ 𝑊)
29 eqid 2774 . . . . . . . . 9 (𝑥 ∈ 𝐵 ↦ 𝑋) = (𝑥 ∈ 𝐵 ↦ 𝑋)
3029fvmpt2 7054 . . . . . . . 8 ((𝑥 ∈ 𝐵 ∧ 𝑋 ∈ 𝑊) → ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥) = 𝑋)
3124, 28, 30syl2anc 596 . . . . . . 7 (((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) ∧ 𝑧 ∈ 𝐴) → ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥) = 𝑋)
3231mpteq2dva 5212 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥)) = (𝑧 ∈ 𝐴 ↦ 𝑋))
3323, 32eqtr4d 2812 . . . . 5 ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑥) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥)))
349, 16, 33chvarfv 2289 . . . 4 ((𝜑 ∧ 𝑛 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)))
35 nfcv 2937 . . . . 5 Ⅎ𝑦((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)
36 nfcsb1v 3882 . . . . . 6 Ⅎ𝑧⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)
37 nfcv 2937 . . . . . 6 Ⅎ𝑧𝑛
3836, 37nffv 6944 . . . . 5 Ⅎ𝑧(⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)
39 csbeq1a 3872 . . . . . 6 (𝑧 = 𝑦 → (𝑥 ∈ 𝐵 ↦ 𝑋) = ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))
4039fveq1d 6936 . . . . 5 (𝑧 = 𝑦 → ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛) = (⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))
4135, 38, 40cbvmpt 5221 . . . 4 (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)) = (𝑦 ∈ 𝐴 ↦ (⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))
4234, 41eqtrdi 2825 . . 3 ((𝜑 ∧ 𝑛 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑦 ∈ 𝐴 ↦ (⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)))
431, 2, 42seqof 14263 . 2 (𝜑 → (seq𝑀( ∘f + , (𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋)))‘𝑁) = (𝑦 ∈ 𝐴 ↦ (seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁)))
44 nfcv 2937 . . 3 Ⅎ𝑦(seq𝑀( + , (𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁)
45 nfcv 2937 . . . . 5 Ⅎ𝑧𝑀
46 nfcv 2937 . . . . 5 Ⅎ𝑧 +
4745, 46, 36nfseq 14215 . . . 4 Ⅎ𝑧seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))
48 nfcv 2937 . . . 4 Ⅎ𝑧𝑁
4947, 48nffv 6944 . . 3 Ⅎ𝑧(seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁)
5039seqeq3d 14213 . . . 4 (𝑧 = 𝑦 → seq𝑀( + , (𝑥 ∈ 𝐵 ↦ 𝑋)) = seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)))
5150fveq1d 6936 . . 3 (𝑧 = 𝑦 → (seq𝑀( + , (𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁) = (seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁))
5244, 49, 51cbvmpt 5221 . 2 (𝑧 ∈ 𝐴 ↦ (seq𝑀( + , (𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁)) = (𝑦 ∈ 𝐴 ↦ (seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁))
5343, 52eqtr4di 2827 1 (𝜑 → (seq𝑀( ∘f + , (𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋)))‘𝑁) = (𝑧 ∈ 𝐴 ↦ (seq𝑀( + , (𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2156  Vcvv 3461  ⦋csb 3858   ⊆ wss 3907   ↦ cmpt 5200  ‘cfv 6579  (class class class)co 7470   ∘f cof 7742  ℤ≥cuz 13024  ...cfz 13698  seqcseq 14205
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-rep 5246  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7802  ax-cnex 11314  ax-resscn 11315  ax-1cn 11316  ax-icn 11317  ax-addcl 11318  ax-addrcl 11319  ax-mulcl 11320  ax-mulrcl 11321  ax-mulcom 11322  ax-addass 11323  ax-mulass 11324  ax-distr 11325  ax-i2m1 11326  ax-1ne0 11327  ax-1rid 11328  ax-rnegex 11329  ax-rrecex 11330  ax-cnre 11331  ax-pre-lttri 11332  ax-pre-lttrn 11333  ax-pre-ltadd 11334  ax-pre-mulgt0 11335
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-nel 3077  df-ral 3092  df-rex 3102  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-pss 4024  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-tr 5227  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6343  df-ord 6404  df-on 6405  df-lim 6406  df-suc 6407  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-fv 6587  df-riota 7426  df-ov 7473  df-oprab 7474  df-mpo 7475  df-of 7744  df-om 7931  df-1st 8054  df-2nd 8055  df-frecs 8356  df-wrecs 8387  df-recs 8436  df-rdg 8475  df-er 8774  df-en 9031  df-dom 9032  df-sdom 9033  df-pnf 11403  df-mnf 11404  df-xr 11405  df-ltxr 11406  df-le 11407  df-sub 11601  df-neg 11602  df-nn 12395  df-n0 12666  df-z 12753  df-uz 13025  df-fz 13699  df-seq 14206
This theorem is used by:  mtestbdd  26864  lgamgulm2  27511  lgamcvglem  27515
  Copyright terms: Public domain W3C validator