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

Theorem smupf 15124
Description: The sequence of partial sums of the sequence multiplication. (Contributed by Mario Carneiro, 9-Sep-2016.)
Hypotheses
Ref Expression
smuval.a (𝜑𝐴 ⊆ ℕ0)
smuval.b (𝜑𝐵 ⊆ ℕ0)
smuval.p 𝑃 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
Assertion
Ref Expression
smupf (𝜑𝑃:ℕ0⟶𝒫 ℕ0)
Distinct variable groups:   𝑚,𝑛,𝑝,𝐴   𝜑,𝑛   𝐵,𝑚,𝑛,𝑝
Allowed substitution hints:   𝜑(𝑚,𝑝)   𝑃(𝑚,𝑛,𝑝)

Proof of Theorem smupf
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 0nn0 11251 . . . . 5 0 ∈ ℕ0
2 iftrue 4064 . . . . . 6 (𝑛 = 0 → if(𝑛 = 0, ∅, (𝑛 − 1)) = ∅)
3 eqid 2621 . . . . . 6 (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))) = (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1)))
4 0ex 4750 . . . . . 6 ∅ ∈ V
52, 3, 4fvmpt 6239 . . . . 5 (0 ∈ ℕ0 → ((𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1)))‘0) = ∅)
61, 5mp1i 13 . . . 4 (𝜑 → ((𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1)))‘0) = ∅)
7 0elpw 4794 . . . 4 ∅ ∈ 𝒫 ℕ0
86, 7syl6eqel 2706 . . 3 (𝜑 → ((𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1)))‘0) ∈ 𝒫 ℕ0)
9 df-ov 6607 . . . . 5 (𝑥(𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}))𝑦) = ((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}))‘⟨𝑥, 𝑦⟩)
10 elpwi 4140 . . . . . . . . . . 11 (𝑝 ∈ 𝒫 ℕ0𝑝 ⊆ ℕ0)
1110adantr 481 . . . . . . . . . 10 ((𝑝 ∈ 𝒫 ℕ0𝑚 ∈ ℕ0) → 𝑝 ⊆ ℕ0)
12 ssrab2 3666 . . . . . . . . . 10 {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)} ⊆ ℕ0
13 sadcl 15108 . . . . . . . . . 10 ((𝑝 ⊆ ℕ0 ∧ {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)} ⊆ ℕ0) → (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}) ⊆ ℕ0)
1411, 12, 13sylancl 693 . . . . . . . . 9 ((𝑝 ∈ 𝒫 ℕ0𝑚 ∈ ℕ0) → (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}) ⊆ ℕ0)
15 nn0ex 11242 . . . . . . . . . 10 0 ∈ V
1615elpw2 4788 . . . . . . . . 9 ((𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}) ∈ 𝒫 ℕ0 ↔ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}) ⊆ ℕ0)
1714, 16sylibr 224 . . . . . . . 8 ((𝑝 ∈ 𝒫 ℕ0𝑚 ∈ ℕ0) → (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}) ∈ 𝒫 ℕ0)
1817rgen2 2969 . . . . . . 7 𝑝 ∈ 𝒫 ℕ0𝑚 ∈ ℕ0 (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}) ∈ 𝒫 ℕ0
19 eqid 2621 . . . . . . . 8 (𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})) = (𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}))
2019fmpt2 7182 . . . . . . 7 (∀𝑝 ∈ 𝒫 ℕ0𝑚 ∈ ℕ0 (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}) ∈ 𝒫 ℕ0 ↔ (𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})):(𝒫 ℕ0 × ℕ0)⟶𝒫 ℕ0)
2118, 20mpbi 220 . . . . . 6 (𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})):(𝒫 ℕ0 × ℕ0)⟶𝒫 ℕ0
2221, 7f0cli 6326 . . . . 5 ((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}))‘⟨𝑥, 𝑦⟩) ∈ 𝒫 ℕ0
239, 22eqeltri 2694 . . . 4 (𝑥(𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}))𝑦) ∈ 𝒫 ℕ0
2423a1i 11 . . 3 ((𝜑 ∧ (𝑥 ∈ 𝒫 ℕ0𝑦 ∈ V)) → (𝑥(𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)}))𝑦) ∈ 𝒫 ℕ0)
25 nn0uz 11666 . . 3 0 = (ℤ‘0)
26 0zd 11333 . . 3 (𝜑 → 0 ∈ ℤ)
27 fvex 6158 . . . 4 ((𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1)))‘𝑥) ∈ V
2827a1i 11 . . 3 ((𝜑𝑥 ∈ (ℤ‘(0 + 1))) → ((𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1)))‘𝑥) ∈ V)
298, 24, 25, 26, 28seqf2 12760 . 2 (𝜑 → seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1)))):ℕ0⟶𝒫 ℕ0)
30 smuval.p . . 3 𝑃 = seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1))))
3130feq1i 5993 . 2 (𝑃:ℕ0⟶𝒫 ℕ0 ↔ seq0((𝑝 ∈ 𝒫 ℕ0, 𝑚 ∈ ℕ0 ↦ (𝑝 sadd {𝑛 ∈ ℕ0 ∣ (𝑚𝐴 ∧ (𝑛𝑚) ∈ 𝐵)})), (𝑛 ∈ ℕ0 ↦ if(𝑛 = 0, ∅, (𝑛 − 1)))):ℕ0⟶𝒫 ℕ0)
3229, 31sylibr 224 1 (𝜑𝑃:ℕ0⟶𝒫 ℕ0)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384   = wceq 1480  wcel 1987  wral 2907  {crab 2911  Vcvv 3186  wss 3555  c0 3891  ifcif 4058  𝒫 cpw 4130  cop 4154  cmpt 4673   × cxp 5072  wf 5843  cfv 5847  (class class class)co 6604  cmpt2 6606  0cc0 9880  1c1 9881   + caddc 9883  cmin 10210  0cn0 11236  cuz 11631  seqcseq 12741   sadd csad 15066
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4741  ax-nul 4749  ax-pow 4803  ax-pr 4867  ax-un 6902  ax-cnex 9936  ax-resscn 9937  ax-1cn 9938  ax-icn 9939  ax-addcl 9940  ax-addrcl 9941  ax-mulcl 9942  ax-mulrcl 9943  ax-mulcom 9944  ax-addass 9945  ax-mulass 9946  ax-distr 9947  ax-i2m1 9948  ax-1ne0 9949  ax-1rid 9950  ax-rnegex 9951  ax-rrecex 9952  ax-cnre 9953  ax-pre-lttri 9954  ax-pre-lttrn 9955  ax-pre-ltadd 9956  ax-pre-mulgt0 9957
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-xor 1462  df-tru 1483  df-had 1530  df-cad 1543  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-reu 2914  df-rab 2916  df-v 3188  df-sbc 3418  df-csb 3515  df-dif 3558  df-un 3560  df-in 3562  df-ss 3569  df-pss 3571  df-nul 3892  df-if 4059  df-pw 4132  df-sn 4149  df-pr 4151  df-tp 4153  df-op 4155  df-uni 4403  df-iun 4487  df-br 4614  df-opab 4674  df-mpt 4675  df-tr 4713  df-eprel 4985  df-id 4989  df-po 4995  df-so 4996  df-fr 5033  df-we 5035  df-xp 5080  df-rel 5081  df-cnv 5082  df-co 5083  df-dm 5084  df-rn 5085  df-res 5086  df-ima 5087  df-pred 5639  df-ord 5685  df-on 5686  df-lim 5687  df-suc 5688  df-iota 5810  df-fun 5849  df-fn 5850  df-f 5851  df-f1 5852  df-fo 5853  df-f1o 5854  df-fv 5855  df-riota 6565  df-ov 6607  df-oprab 6608  df-mpt2 6609  df-om 7013  df-1st 7113  df-2nd 7114  df-wrecs 7352  df-recs 7413  df-rdg 7451  df-er 7687  df-en 7900  df-dom 7901  df-sdom 7902  df-pnf 10020  df-mnf 10021  df-xr 10022  df-ltxr 10023  df-le 10024  df-sub 10212  df-neg 10213  df-nn 10965  df-n0 11237  df-z 11322  df-uz 11632  df-fz 12269  df-seq 12742  df-sad 15097
This theorem is referenced by:  smupp1  15126  smuval2  15128  smupvallem  15129  smueqlem  15136
  Copyright terms: Public domain W3C validator