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

Theorem seqof2 14196
Description: Distribute function operation through a sequence. Maps-to notation version of seqof 14195. (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 1947 . . . . . 6 Ⅎ𝑥(𝜑 ∧ 𝑛 ∈ (𝑀...𝑁))
4 nffvmpt1 6894 . . . . . . 7 Ⅎ𝑥((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛)
5 nfcv 2923 . . . . . . . 8 Ⅎ𝑥𝐴
6 nffvmpt1 6894 . . . . . . . 8 Ⅎ𝑥((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)
75, 6nfmpt 5203 . . . . . . 7 Ⅎ𝑥(𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))
84, 7nfeq 2936 . . . . . 6 Ⅎ𝑥((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))
93, 8nfim 1929 . . . . 5 Ⅎ𝑥((𝜑 ∧ 𝑛 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)))
10 eleq1w 2844 . . . . . . 7 (𝑥 = 𝑛 → (𝑥 ∈ (𝑀...𝑁) ↔ 𝑛 ∈ (𝑀...𝑁)))
1110anbi2d 642 . . . . . 6 (𝑥 = 𝑛 → ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) ↔ (𝜑 ∧ 𝑛 ∈ (𝑀...𝑁))))
12 fveq2 6883 . . . . . . 7 (𝑥 = 𝑛 → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑥) = ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛))
13 fveq2 6883 . . . . . . . 8 (𝑥 = 𝑛 → ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥) = ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))
1413mpteq2dv 5199 . . . . . . 7 (𝑥 = 𝑛 → (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥)) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)))
1512, 14eqeq12d 2777 . . . . . 6 (𝑥 = 𝑛 → (((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑥) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥)) ↔ ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))))
1611, 15imbi12d 347 . . . . 5 (𝑥 = 𝑛 → (((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑥) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥))) ↔ ((𝜑 ∧ 𝑛 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)))))
17 seqof2.3 . . . . . . . 8 (𝜑 → (𝑀...𝑁) ⊆ 𝐵)
1817sselda 3931 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → 𝑥 ∈ 𝐵)
191adantr 486 . . . . . . . 8 ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → 𝐴 ∈ 𝑉)
2019mptexd 7228 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → (𝑧 ∈ 𝐴 ↦ 𝑋) ∈ V)
21 eqid 2761 . . . . . . . 8 (𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋)) = (𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))
2221fvmpt2 7003 . . . . . . 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 2761 . . . . . . . . 9 (𝑥 ∈ 𝐵 ↦ 𝑋) = (𝑥 ∈ 𝐵 ↦ 𝑋)
3029fvmpt2 7003 . . . . . . . 8 ((𝑥 ∈ 𝐵 ∧ 𝑋 ∈ 𝑊) → ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥) = 𝑋)
3124, 28, 30syl2anc 596 . . . . . . 7 (((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) ∧ 𝑧 ∈ 𝐴) → ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥) = 𝑋)
3231mpteq2dva 5198 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥)) = (𝑧 ∈ 𝐴 ↦ 𝑋))
3323, 32eqtr4d 2799 . . . . 5 ((𝜑 ∧ 𝑥 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑥) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑥)))
349, 16, 33chvarfv 2277 . . . 4 ((𝜑 ∧ 𝑛 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)))
35 nfcv 2923 . . . . 5 Ⅎ𝑦((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)
36 nfcsb1v 3871 . . . . . 6 Ⅎ𝑧⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)
37 nfcv 2923 . . . . . 6 Ⅎ𝑧𝑛
3836, 37nffv 6893 . . . . 5 Ⅎ𝑧(⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)
39 csbeq1a 3861 . . . . . 6 (𝑧 = 𝑦 → (𝑥 ∈ 𝐵 ↦ 𝑋) = ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))
4039fveq1d 6885 . . . . 5 (𝑧 = 𝑦 → ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛) = (⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))
4135, 38, 40cbvmpt 5207 . . . 4 (𝑧 ∈ 𝐴 ↦ ((𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)) = (𝑦 ∈ 𝐴 ↦ (⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛))
4234, 41eqtrdi 2812 . . 3 ((𝜑 ∧ 𝑛 ∈ (𝑀...𝑁)) → ((𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋))‘𝑛) = (𝑦 ∈ 𝐴 ↦ (⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)‘𝑛)))
431, 2, 42seqof 14195 . 2 (𝜑 → (seq𝑀( ∘f + , (𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋)))‘𝑁) = (𝑦 ∈ 𝐴 ↦ (seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁)))
44 nfcv 2923 . . 3 Ⅎ𝑦(seq𝑀( + , (𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁)
45 nfcv 2923 . . . . 5 Ⅎ𝑧𝑀
46 nfcv 2923 . . . . 5 Ⅎ𝑧 +
4745, 46, 36nfseq 14147 . . . 4 Ⅎ𝑧seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))
48 nfcv 2923 . . . 4 Ⅎ𝑧𝑁
4947, 48nffv 6893 . . 3 Ⅎ𝑧(seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁)
5039seqeq3d 14145 . . . 4 (𝑧 = 𝑦 → seq𝑀( + , (𝑥 ∈ 𝐵 ↦ 𝑋)) = seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋)))
5150fveq1d 6885 . . 3 (𝑧 = 𝑦 → (seq𝑀( + , (𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁) = (seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁))
5244, 49, 51cbvmpt 5207 . 2 (𝑧 ∈ 𝐴 ↦ (seq𝑀( + , (𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁)) = (𝑦 ∈ 𝐴 ↦ (seq𝑀( + , ⦋𝑦 / 𝑧⦌(𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁))
5343, 52eqtr4di 2814 1 (𝜑 → (seq𝑀( ∘f + , (𝑥 ∈ 𝐵 ↦ (𝑧 ∈ 𝐴 ↦ 𝑋)))‘𝑁) = (𝑧 ∈ 𝐴 ↦ (seq𝑀( + , (𝑥 ∈ 𝐵 ↦ 𝑋))‘𝑁)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2145  Vcvv 3451  ⦋csb 3847   ⊆ wss 3899   ↦ cmpt 5186  ‘cfv 6537  (class class class)co 7418   ∘f cof 7689  ℤ≥cuz 12958  ...cfz 13632  seqcseq 14137
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7749  ax-cnex 11249  ax-resscn 11250  ax-1cn 11251  ax-icn 11252  ax-addcl 11253  ax-addrcl 11254  ax-mulcl 11255  ax-mulrcl 11256  ax-mulcom 11257  ax-addass 11258  ax-mulass 11259  ax-distr 11260  ax-i2m1 11261  ax-1ne0 11262  ax-1rid 11263  ax-rnegex 11264  ax-rrecex 11265  ax-cnre 11266  ax-pre-lttri 11267  ax-pre-lttrn 11268  ax-pre-ltadd 11269  ax-pre-mulgt0 11270
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6303  df-ord 6364  df-on 6365  df-lim 6366  df-suc 6367  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fo 6543  df-f1o 6544  df-fv 6545  df-riota 7375  df-ov 7421  df-oprab 7422  df-mpo 7423  df-of 7691  df-om 7876  df-1st 7999  df-2nd 8000  df-frecs 8292  df-wrecs 8323  df-recs 8372  df-rdg 8411  df-er 8710  df-en 8967  df-dom 8968  df-sdom 8969  df-pnf 11338  df-mnf 11339  df-xr 11340  df-ltxr 11341  df-le 11342  df-sub 11536  df-neg 11537  df-nn 12329  df-n0 12600  df-z 12687  df-uz 12959  df-fz 13633  df-seq 14138
This theorem is used by:  mtestbdd  26725  lgamgulm2  27356  lgamcvglem  27360
  Copyright terms: Public domain W3C validator