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

Theorem coinfliprv 34897
Description: The 𝑋 we defined for coin-flip is a random variable. (Contributed by Thierry Arnoux, 12-Jan-2017.)
Hypotheses
Ref Expression
coinflip.h 𝐻 ∈ V
coinflip.t 𝑇 ∈ V
coinflip.th 𝐻𝑇
coinflip.2 𝑃 = ((♯ ↾ 𝒫 {𝐻, 𝑇}) ∘f/c / 2)
coinflip.3 𝑋 = {⟨𝐻, 1⟩, ⟨𝑇, 0⟩}
Assertion
Ref Expression
coinfliprv 𝑋 ∈ (rRndVar‘𝑃)

Proof of Theorem coinfliprv
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 coinflip.th . . . . . 6 𝐻𝑇
2 coinflip.h . . . . . . 7 𝐻 ∈ V
3 coinflip.t . . . . . . 7 𝑇 ∈ V
4 1ex 11221 . . . . . . 7 1 ∈ V
5 c0ex 11218 . . . . . . 7 0 ∈ V
62, 3, 4, 5fpr 7158 . . . . . 6 (𝐻𝑇 → {⟨𝐻, 1⟩, ⟨𝑇, 0⟩}:{𝐻, 𝑇}⟶{1, 0})
71, 6ax-mp 5 . . . . 5 {⟨𝐻, 1⟩, ⟨𝑇, 0⟩}:{𝐻, 𝑇}⟶{1, 0}
8 coinflip.3 . . . . . 6 𝑋 = {⟨𝐻, 1⟩, ⟨𝑇, 0⟩}
98feq1i 6703 . . . . 5 (𝑋:{𝐻, 𝑇}⟶{1, 0} ↔ {⟨𝐻, 1⟩, ⟨𝑇, 0⟩}:{𝐻, 𝑇}⟶{1, 0})
107, 9mpbir 234 . . . 4 𝑋:{𝐻, 𝑇}⟶{1, 0}
11 coinflip.2 . . . . . 6 𝑃 = ((♯ ↾ 𝒫 {𝐻, 𝑇}) ∘f/c / 2)
122, 3, 1, 11, 8coinflipuniv 34896 . . . . 5 dom 𝑃 = {𝐻, 𝑇}
1312feq2i 6704 . . . 4 (𝑋: dom 𝑃⟶{1, 0} ↔ 𝑋:{𝐻, 𝑇}⟶{1, 0})
1410, 13mpbir 234 . . 3 𝑋: dom 𝑃⟶{1, 0}
15 1re 11226 . . . . 5 1 ∈ ℝ
16 0re 11228 . . . . 5 0 ∈ ℝ
1715, 16pm3.2i 476 . . . 4 (1 ∈ ℝ ∧ 0 ∈ ℝ)
184, 5prss 4791 . . . 4 ((1 ∈ ℝ ∧ 0 ∈ ℝ) ↔ {1, 0} ⊆ ℝ)
1917, 18mpbi 233 . . 3 {1, 0} ⊆ ℝ
20 fss 6729 . . 3 ((𝑋: dom 𝑃⟶{1, 0} ∧ {1, 0} ⊆ ℝ) → 𝑋: dom 𝑃⟶ℝ)
2114, 19, 20mp2an 705 . 2 𝑋: dom 𝑃⟶ℝ
22 imassrn 6078 . . . . 5 (𝑋𝑦) ⊆ ran 𝑋
23 dfdm4 5890 . . . . . 6 dom 𝑋 = ran 𝑋
2410fdmi 6724 . . . . . 6 dom 𝑋 = {𝐻, 𝑇}
2523, 24eqtr3i 2791 . . . . 5 ran 𝑋 = {𝐻, 𝑇}
2622, 25sseqtri 3988 . . . 4 (𝑋𝑦) ⊆ {𝐻, 𝑇}
272, 3, 1, 11, 8coinflipspace 34895 . . . . . . 7 dom 𝑃 = 𝒫 {𝐻, 𝑇}
2827eleq2i 2858 . . . . . 6 ((𝑋𝑦) ∈ dom 𝑃 ↔ (𝑋𝑦) ∈ 𝒫 {𝐻, 𝑇})
29 prex 5414 . . . . . . . . 9 {⟨𝐻, 1⟩, ⟨𝑇, 0⟩} ∈ V
308, 29eqeltri 2862 . . . . . . . 8 𝑋 ∈ V
31 cnvexg 7930 . . . . . . . 8 (𝑋 ∈ V → 𝑋 ∈ V)
32 imaexg 7919 . . . . . . . 8 (𝑋 ∈ V → (𝑋𝑦) ∈ V)
3330, 31, 32mp2b 10 . . . . . . 7 (𝑋𝑦) ∈ V
3433elpw 4571 . . . . . 6 ((𝑋𝑦) ∈ 𝒫 {𝐻, 𝑇} ↔ (𝑋𝑦) ⊆ {𝐻, 𝑇})
3528, 34bitr2i 279 . . . . 5 ((𝑋𝑦) ⊆ {𝐻, 𝑇} ↔ (𝑋𝑦) ∈ dom 𝑃)
3635biimpi 219 . . . 4 ((𝑋𝑦) ⊆ {𝐻, 𝑇} → (𝑋𝑦) ∈ dom 𝑃)
3726, 36mp1i 14 . . 3 (𝑦 ∈ 𝔅 → (𝑋𝑦) ∈ dom 𝑃)
3837rgen 3084 . 2 𝑦 ∈ 𝔅 (𝑋𝑦) ∈ dom 𝑃
392, 3, 1, 11, 8coinflipprob 34894 . . . . 5 𝑃 ∈ Prob
4039a1i 11 . . . 4 (𝐻 ∈ V → 𝑃 ∈ Prob)
4140isrrvv 34857 . . 3 (𝐻 ∈ V → (𝑋 ∈ (rRndVar‘𝑃) ↔ (𝑋: dom 𝑃⟶ℝ ∧ ∀𝑦 ∈ 𝔅 (𝑋𝑦) ∈ dom 𝑃)))
422, 41ax-mp 5 . 2 (𝑋 ∈ (rRndVar‘𝑃) ↔ (𝑋: dom 𝑃⟶ℝ ∧ ∀𝑦 ∈ 𝔅 (𝑋𝑦) ∈ dom 𝑃))
4321, 38, 42mpbir2an 724 1 𝑋 ∈ (rRndVar‘𝑃)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wb 209  wa 401   = wceq 1570  wcel 2146  wne 2961  wral 3082  Vcvv 3458  wss 3908  𝒫 cpw 4567  {cpr 4596  cop 4600   cuni 4877  ccnv 5665  dom cdm 5666  ran crn 5667  cres 5668  cima 5669  wf 6539  cfv 6543  (class class class)co 7423  cr 11117  0cc0 11118  1c1 11119   / cdiv 11889  2c2 12313  chash 14386  f/c cofc 34509  𝔅cbrsiga 34595  Probcprb 34821  rRndVarcrrv 34854
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 2148  ax-9 2156  ax-10 2179  ax-11 2195  ax-12 2216  ax-ext 2738  ax-rep 5243  ax-sep 5262  ax-nul 5274  ax-pow 5341  ax-pr 5409  ax-un 7745  ax-inf2 9620  ax-cnex 11174  ax-resscn 11175  ax-1cn 11176  ax-icn 11177  ax-addcl 11178  ax-addrcl 11179  ax-mulcl 11180  ax-mulrcl 11181  ax-mulcom 11182  ax-addass 11183  ax-mulass 11184  ax-distr 11185  ax-i2m1 11186  ax-1ne0 11187  ax-1rid 11188  ax-rnegex 11189  ax-rrecex 11190  ax-cnre 11191  ax-pre-lttri 11192  ax-pre-lttrn 11193  ax-pre-ltadd 11194  ax-pre-mulgt0 11195  ax-pre-sup 11196  ax-addf 11197  ax-mulf 11198
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 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2841  df-nfc 2915  df-ne 2962  df-nel 3068  df-ral 3083  df-rex 3093  df-rmo 3372  df-reu 3373  df-rab 3420  df-v 3460  df-sbc 3748  df-csb 3857  df-dif 3911  df-un 3913  df-in 3915  df-ss 3925  df-pss 3928  df-nul 4290  df-if 4493  df-pw 4569  df-sn 4595  df-pr 4597  df-tp 4599  df-op 4601  df-uni 4878  df-int 4918  df-iun 4963  df-iin 4964  df-disj 5082  df-br 5115  df-opab 5179  df-mpt 5198  df-tr 5224  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-se 5620  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 6309  df-ord 6370  df-on 6371  df-lim 6372  df-suc 6373  df-iota 6499  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-isom 6552  df-riota 7380  df-ov 7426  df-oprab 7427  df-mpo 7428  df-of 7687  df-om 7872  df-1st 7995  df-2nd 7996  df-supp 8166  df-frecs 8287  df-wrecs 8318  df-recs 8367  df-rdg 8406  df-1o 8462  df-2o 8463  df-oadd 8466  df-er 8703  df-map 8835  df-pm 8836  df-ixp 8905  df-en 8953  df-dom 8954  df-sdom 8955  df-fin 8956  df-fsupp 9332  df-fi 9381  df-sup 9412  df-inf 9413  df-oi 9482  df-dju 9906  df-card 9944  df-pnf 11263  df-mnf 11264  df-xr 11265  df-ltxr 11266  df-le 11267  df-sub 11461  df-neg 11462  df-div 11890  df-nn 12252  df-2 12321  df-3 12322  df-4 12323  df-5 12324  df-6 12325  df-7 12326  df-8 12327  df-9 12328  df-n0 12523  df-xnn0 12596  df-z 12610  df-dec 12730  df-uz 12881  df-q 12991  df-rp 13035  df-xneg 13155  df-xadd 13156  df-xmul 13157  df-ioo 13394  df-ioc 13395  df-ico 13396  df-icc 13397  df-fz 13554  df-fzo 13702  df-fl 13845  df-mod 13923  df-seq 14058  df-exp 14118  df-fac 14330  df-bc 14359  df-hash 14387  df-shft 15130  df-cj 15176  df-re 15177  df-im 15178  df-sqrt 15312  df-abs 15313  df-limsup 15548  df-clim 15565  df-rlim 15566  df-sum 15764  df-ef 16146  df-sin 16148  df-cos 16149  df-pi 16151  df-struct 17232  df-sets 17249  df-slot 17267  df-ndx 17279  df-base 17295  df-ress 17316  df-plusg 17348  df-mulr 17349  df-starv 17350  df-sca 17351  df-vsca 17352  df-ip 17353  df-tset 17354  df-ple 17355  df-ds 17357  df-unif 17358  df-hom 17359  df-cco 17360  df-rest 17500  df-topn 17501  df-0g 17519  df-gsum 17520  df-topgen 17521  df-pt 17522  df-prds 17525  df-ordt 17580  df-xrs 17581  df-qtop 17586  df-imas 17587  df-xps 17589  df-mre 17663  df-mrc 17664  df-acs 17666  df-ps 18647  df-tsr 18648  df-plusf 18722  df-mgm 18723  df-sgrp 18802  df-mnd 18818  df-mhm 18866  df-submnd 18867  df-grp 19028  df-minusg 19029  df-sbg 19030  df-mulg 19159  df-subg 19214  df-cntz 19412  df-cmn 19877  df-abl 19878  df-mgp 20242  df-rng 20256  df-ur 20289  df-ring 20342  df-cring 20343  df-subrng 20675  df-subrg 20699  df-abv 20942  df-lmod 21013  df-scaf 21014  df-sra 21324  df-rgmod 21325  df-psmet 21544  df-xmet 21545  df-met 21546  df-bl 21547  df-mopn 21548  df-fbas 21549  df-fg 21550  df-cnfld 21553  df-top 23081  df-topon 23098  df-topsp 23120  df-bases 23133  df-cld 23206  df-ntr 23207  df-cls 23208  df-nei 23285  df-lp 23323  df-perf 23324  df-cn 23414  df-cnp 23415  df-haus 23502  df-tx 23749  df-hmeo 23942  df-fil 24033  df-fm 24125  df-flim 24126  df-flf 24127  df-tmd 24259  df-tgp 24260  df-tsms 24314  df-trg 24347  df-xms 24507  df-ms 24508  df-tms 24509  df-nm 24769  df-ngp 24770  df-nrg 24772  df-nlm 24773  df-ii 25066  df-cncf 25067  df-limc 26055  df-dv 26056  df-log 26751  df-xdiv 33267  df-esum 34442  df-ofc 34510  df-siga 34523  df-sigagen 34553  df-brsiga 34596  df-meas 34610  df-mbfm 34664  df-prob 34822  df-rrv 34855
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator