Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  rrvsum Structured version   Visualization version   GIF version

Theorem rrvsum 35079
Description: An indexed sum of random variables is a random variable. (Contributed by Thierry Arnoux, 22-May-2017.)
Hypotheses
Ref Expression
rrvsum.1 (𝜑 → 𝑃 ∈ Prob)
rrvsum.2 (𝜑 → 𝑋:ℕ⟶(rRndVar‘𝑃))
rrvsum.3 ((𝜑 ∧ 𝑁 ∈ ℕ) → 𝑆 = (seq1( ∘f + , 𝑋)‘𝑁))
Assertion
Ref Expression
rrvsum ((𝜑 ∧ 𝑁 ∈ ℕ) → 𝑆 ∈ (rRndVar‘𝑃))

Proof of Theorem rrvsum
Dummy variables 𝑘 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 rrvsum.3 . 2 ((𝜑 ∧ 𝑁 ∈ ℕ) → 𝑆 = (seq1( ∘f + , 𝑋)‘𝑁))
2 fveq2 6883 . . . . . 6 (𝑘 = 1 → (seq1( ∘f + , 𝑋)‘𝑘) = (seq1( ∘f + , 𝑋)‘1))
32eleq1d 2846 . . . . 5 (𝑘 = 1 → ((seq1( ∘f + , 𝑋)‘𝑘) ∈ (rRndVar‘𝑃) ↔ (seq1( ∘f + , 𝑋)‘1) ∈ (rRndVar‘𝑃)))
43imbi2d 343 . . . 4 (𝑘 = 1 → ((𝜑 → (seq1( ∘f + , 𝑋)‘𝑘) ∈ (rRndVar‘𝑃)) ↔ (𝜑 → (seq1( ∘f + , 𝑋)‘1) ∈ (rRndVar‘𝑃))))
5 fveq2 6883 . . . . . 6 (𝑘 = 𝑛 → (seq1( ∘f + , 𝑋)‘𝑘) = (seq1( ∘f + , 𝑋)‘𝑛))
65eleq1d 2846 . . . . 5 (𝑘 = 𝑛 → ((seq1( ∘f + , 𝑋)‘𝑘) ∈ (rRndVar‘𝑃) ↔ (seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃)))
76imbi2d 343 . . . 4 (𝑘 = 𝑛 → ((𝜑 → (seq1( ∘f + , 𝑋)‘𝑘) ∈ (rRndVar‘𝑃)) ↔ (𝜑 → (seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃))))
8 fveq2 6883 . . . . . 6 (𝑘 = (𝑛 + 1) → (seq1( ∘f + , 𝑋)‘𝑘) = (seq1( ∘f + , 𝑋)‘(𝑛 + 1)))
98eleq1d 2846 . . . . 5 (𝑘 = (𝑛 + 1) → ((seq1( ∘f + , 𝑋)‘𝑘) ∈ (rRndVar‘𝑃) ↔ (seq1( ∘f + , 𝑋)‘(𝑛 + 1)) ∈ (rRndVar‘𝑃)))
109imbi2d 343 . . . 4 (𝑘 = (𝑛 + 1) → ((𝜑 → (seq1( ∘f + , 𝑋)‘𝑘) ∈ (rRndVar‘𝑃)) ↔ (𝜑 → (seq1( ∘f + , 𝑋)‘(𝑛 + 1)) ∈ (rRndVar‘𝑃))))
11 fveq2 6883 . . . . . 6 (𝑘 = 𝑁 → (seq1( ∘f + , 𝑋)‘𝑘) = (seq1( ∘f + , 𝑋)‘𝑁))
1211eleq1d 2846 . . . . 5 (𝑘 = 𝑁 → ((seq1( ∘f + , 𝑋)‘𝑘) ∈ (rRndVar‘𝑃) ↔ (seq1( ∘f + , 𝑋)‘𝑁) ∈ (rRndVar‘𝑃)))
1312imbi2d 343 . . . 4 (𝑘 = 𝑁 → ((𝜑 → (seq1( ∘f + , 𝑋)‘𝑘) ∈ (rRndVar‘𝑃)) ↔ (𝜑 → (seq1( ∘f + , 𝑋)‘𝑁) ∈ (rRndVar‘𝑃))))
14 1z 12719 . . . . . 6 1 ∈ ℤ
15 seq1 14150 . . . . . 6 (1 ∈ ℤ → (seq1( ∘f + , 𝑋)‘1) = (𝑋‘1))
1614, 15ax-mp 5 . . . . 5 (seq1( ∘f + , 𝑋)‘1) = (𝑋‘1)
17 1nn 12339 . . . . . 6 1 ∈ ℕ
18 rrvsum.2 . . . . . . 7 (𝜑 → 𝑋:ℕ⟶(rRndVar‘𝑃))
1918ffvelcdmda 7082 . . . . . 6 ((𝜑 ∧ 1 ∈ ℕ) → (𝑋‘1) ∈ (rRndVar‘𝑃))
2017, 19mpan2 704 . . . . 5 (𝜑 → (𝑋‘1) ∈ (rRndVar‘𝑃))
2116, 20eqeltrid 2865 . . . 4 (𝜑 → (seq1( ∘f + , 𝑋)‘1) ∈ (rRndVar‘𝑃))
22 seqp1 14152 . . . . . . . . . 10 (𝑛 ∈ (ℤ≥‘1) → (seq1( ∘f + , 𝑋)‘(𝑛 + 1)) = ((seq1( ∘f + , 𝑋)‘𝑛) ∘f + (𝑋‘(𝑛 + 1))))
23 nnuz 12997 . . . . . . . . . 10 ℕ = (ℤ≥‘1)
2422, 23eleq2s 2879 . . . . . . . . 9 (𝑛 ∈ ℕ → (seq1( ∘f + , 𝑋)‘(𝑛 + 1)) = ((seq1( ∘f + , 𝑋)‘𝑛) ∘f + (𝑋‘(𝑛 + 1))))
2524ad2antlr 740 . . . . . . . 8 (((𝜑 ∧ 𝑛 ∈ ℕ) ∧ (seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃)) → (seq1( ∘f + , 𝑋)‘(𝑛 + 1)) = ((seq1( ∘f + , 𝑋)‘𝑛) ∘f + (𝑋‘(𝑛 + 1))))
26 rrvsum.1 . . . . . . . . . 10 (𝜑 → 𝑃 ∈ Prob)
2726ad2antrr 739 . . . . . . . . 9 (((𝜑 ∧ 𝑛 ∈ ℕ) ∧ (seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃)) → 𝑃 ∈ Prob)
28 simpr 490 . . . . . . . . 9 (((𝜑 ∧ 𝑛 ∈ ℕ) ∧ (seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃)) → (seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃))
29 peano2nn 12340 . . . . . . . . . . 11 (𝑛 ∈ ℕ → (𝑛 + 1) ∈ ℕ)
3018ffvelcdmda 7082 . . . . . . . . . . 11 ((𝜑 ∧ (𝑛 + 1) ∈ ℕ) → (𝑋‘(𝑛 + 1)) ∈ (rRndVar‘𝑃))
3129, 30sylan2 605 . . . . . . . . . 10 ((𝜑 ∧ 𝑛 ∈ ℕ) → (𝑋‘(𝑛 + 1)) ∈ (rRndVar‘𝑃))
3231adantr 486 . . . . . . . . 9 (((𝜑 ∧ 𝑛 ∈ ℕ) ∧ (seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃)) → (𝑋‘(𝑛 + 1)) ∈ (rRndVar‘𝑃))
3327, 28, 32rrvadd 35077 . . . . . . . 8 (((𝜑 ∧ 𝑛 ∈ ℕ) ∧ (seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃)) → ((seq1( ∘f + , 𝑋)‘𝑛) ∘f + (𝑋‘(𝑛 + 1))) ∈ (rRndVar‘𝑃))
3425, 33eqeltrd 2861 . . . . . . 7 (((𝜑 ∧ 𝑛 ∈ ℕ) ∧ (seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃)) → (seq1( ∘f + , 𝑋)‘(𝑛 + 1)) ∈ (rRndVar‘𝑃))
3534ex 418 . . . . . 6 ((𝜑 ∧ 𝑛 ∈ ℕ) → ((seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃) → (seq1( ∘f + , 𝑋)‘(𝑛 + 1)) ∈ (rRndVar‘𝑃)))
3635expcom 419 . . . . 5 (𝑛 ∈ ℕ → (𝜑 → ((seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃) → (seq1( ∘f + , 𝑋)‘(𝑛 + 1)) ∈ (rRndVar‘𝑃))))
3736a2d 30 . . . 4 (𝑛 ∈ ℕ → ((𝜑 → (seq1( ∘f + , 𝑋)‘𝑛) ∈ (rRndVar‘𝑃)) → (𝜑 → (seq1( ∘f + , 𝑋)‘(𝑛 + 1)) ∈ (rRndVar‘𝑃))))
384, 7, 10, 13, 21, 37nnind 12346 . . 3 (𝑁 ∈ ℕ → (𝜑 → (seq1( ∘f + , 𝑋)‘𝑁) ∈ (rRndVar‘𝑃)))
3938impcom 413 . 2 ((𝜑 ∧ 𝑁 ∈ ℕ) → (seq1( ∘f + , 𝑋)‘𝑁) ∈ (rRndVar‘𝑃))
401, 39eqeltrd 2861 1 ((𝜑 ∧ 𝑁 ∈ ℕ) → 𝑆 ∈ (rRndVar‘𝑃))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2145  ⟶wf 6533  ‘cfv 6537  (class class class)co 7418   ∘f cof 7689  1c1 11194   + caddc 11196  ℕcn 12328  ℤcz 12686  ℤ≥cuz 12958  seqcseq 14137  Probcprb 35032  rRndVarcrrv 35065
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-inf2 9635  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  ax-pre-sup 11271  ax-addf 11272
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-rmo 3366  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-tp 4589  df-op 4591  df-uni 4868  df-int 4908  df-iun 4953  df-iin 4954  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-se 5605  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-isom 6546  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-supp 8171  df-frecs 8292  df-wrecs 8323  df-recs 8372  df-rdg 8411  df-1o 8469  df-2o 8470  df-oadd 8473  df-omul 8474  df-er 8710  df-map 8842  df-pm 8843  df-ixp 8919  df-en 8967  df-dom 8968  df-sdom 8969  df-fin 8970  df-fsupp 9347  df-fi 9396  df-sup 9427  df-inf 9428  df-oi 9497  df-dju 9975  df-card 10013  df-acn 10016  df-pnf 11338  df-mnf 11339  df-xr 11340  df-ltxr 11341  df-le 11342  df-sub 11536  df-neg 11537  df-div 11967  df-nn 12329  df-2 12398  df-3 12399  df-4 12400  df-5 12401  df-6 12402  df-7 12403  df-8 12404  df-9 12405  df-n0 12600  df-z 12687  df-dec 12808  df-uz 12959  df-q 13069  df-rp 13114  df-xneg 13234  df-xadd 13235  df-xmul 13236  df-ioo 13473  df-ioc 13474  df-ico 13475  df-icc 13476  df-fz 13633  df-fzo 13782  df-fl 13925  df-mod 14003  df-seq 14138  df-exp 14198  df-fac 14411  df-bc 14440  df-hash 14468  df-shft 15213  df-cj 15259  df-re 15260  df-im 15261  df-sqrt 15395  df-abs 15396  df-limsup 15631  df-clim 15648  df-rlim 15649  df-sum 15847  df-ef 16226  df-sin 16228  df-cos 16229  df-pi 16231  df-struct 17318  df-sets 17335  df-slot 17353  df-ndx 17365  df-base 17381  df-ress 17402  df-plusg 17434  df-mulr 17435  df-starv 17436  df-sca 17437  df-vsca 17438  df-ip 17439  df-tset 17440  df-ple 17441  df-ds 17443  df-unif 17444  df-hom 17445  df-cco 17446  df-rest 17586  df-topn 17587  df-0g 17605  df-gsum 17606  df-topgen 17607  df-pt 17608  df-prds 17611  df-xrs 17667  df-qtop 17672  df-imas 17673  df-xps 17675  df-mre 17749  df-mrc 17750  df-acs 17752  df-mgm 18809  df-sgrp 18901  df-mnd 18917  df-submnd 18972  df-mulg 19271  df-cntz 19524  df-cmn 19989  df-psmet 21663  df-xmet 21664  df-met 21665  df-bl 21666  df-mopn 21667  df-fbas 21668  df-fg 21669  df-cnfld 21672  df-refld 21904  df-top 23205  df-topon 23222  df-topsp 23244  df-bases 23257  df-cld 23330  df-ntr 23331  df-cls 23332  df-nei 23409  df-lp 23447  df-perf 23448  df-cn 23538  df-cnp 23539  df-haus 23626  df-cmp 23698  df-tx 23874  df-hmeo 24067  df-fil 24158  df-fm 24250  df-flim 24251  df-flf 24252  df-fcls 24253  df-xms 24632  df-ms 24633  df-tms 24634  df-cncf 25192  df-cfil 25569  df-cmet 25571  df-cms 25649  df-limc 26179  df-dv 26180  df-log 26877  df-cxp 26878  df-logb 27086  df-esum 34653  df-siga 34734  df-sigagen 34765  df-brsiga 34808  df-sx 34815  df-meas 34822  df-mbfm 34876  df-prob 35033  df-rrv 35066
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator