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 34940
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 11220 . . . . . . 7 1 ∈ V
5 c0ex 11217 . . . . . . 7 0 ∈ V
62, 3, 4, 5fpr 7157 . . . . . 6 (𝐻𝑇 → {⟨𝐻, 1⟩, ⟨𝑇, 0⟩}:{𝐻, 𝑇}⟶{1, 0})
71, 6ax-mp 5 . . . . 5 {⟨𝐻, 1⟩, ⟨𝑇, 0⟩}:{𝐻, 𝑇}⟶{1, 0}
8 coinflip.3 . . . . . 6 𝑋 = {⟨𝐻, 1⟩, ⟨𝑇, 0⟩}
98feq1i 6700 . . . . 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 34939 . . . . 5 dom 𝑃 = {𝐻, 𝑇}
1312feq2i 6701 . . . 4 (𝑋: dom 𝑃⟶{1, 0} ↔ 𝑋:{𝐻, 𝑇}⟶{1, 0})
1410, 13mpbir 234 . . 3 𝑋: dom 𝑃⟶{1, 0}
15 1re 11225 . . . . 5 1 ∈ ℝ
16 0re 11227 . . . . 5 0 ∈ ℝ
1715, 16pm3.2i 476 . . . 4 (1 ∈ ℝ ∧ 0 ∈ ℝ)
184, 5prss 4788 . . . 4 ((1 ∈ ℝ ∧ 0 ∈ ℝ) ↔ {1, 0} ⊆ ℝ)
1917, 18mpbi 233 . . 3 {1, 0} ⊆ ℝ
20 fss 6726 . . 3 ((𝑋: dom 𝑃⟶{1, 0} ∧ {1, 0} ⊆ ℝ) → 𝑋: dom 𝑃⟶ℝ)
2114, 19, 20mp2an 705 . 2 𝑋: dom 𝑃⟶ℝ
22 imassrn 6075 . . . . 5 (𝑋𝑦) ⊆ ran 𝑋
23 dfdm4 5887 . . . . . 6 dom 𝑋 = ran 𝑋
2410fdmi 6721 . . . . . 6 dom 𝑋 = {𝐻, 𝑇}
2523, 24eqtr3i 2790 . . . . 5 ran 𝑋 = {𝐻, 𝑇}
2622, 25sseqtri 3986 . . . 4 (𝑋𝑦) ⊆ {𝐻, 𝑇}
272, 3, 1, 11, 8coinflipspace 34938 . . . . . . 7 dom 𝑃 = 𝒫 {𝐻, 𝑇}
2827eleq2i 2857 . . . . . 6 ((𝑋𝑦) ∈ dom 𝑃 ↔ (𝑋𝑦) ∈ 𝒫 {𝐻, 𝑇})
29 prex 5411 . . . . . . . . 9 {⟨𝐻, 1⟩, ⟨𝑇, 0⟩} ∈ V
308, 29eqeltri 2861 . . . . . . . 8 𝑋 ∈ V
31 cnvexg 7927 . . . . . . . 8 (𝑋 ∈ V → 𝑋 ∈ V)
32 imaexg 7916 . . . . . . . 8 (𝑋 ∈ V → (𝑋𝑦) ∈ V)
3330, 31, 32mp2b 10 . . . . . . 7 (𝑋𝑦) ∈ V
3433elpw 4568 . . . . . 6 ((𝑋𝑦) ∈ 𝒫 {𝐻, 𝑇} ↔ (𝑋𝑦) ⊆ {𝐻, 𝑇})
3528, 34bitr2i 279 . . . . 5 ((𝑋𝑦) ⊆ {𝐻, 𝑇} ↔ (𝑋𝑦) ∈ dom 𝑃)
3635biimpi 219 . . . 4 ((𝑋𝑦) ⊆ {𝐻, 𝑇} → (𝑋𝑦) ∈ dom 𝑃)
3726, 36mp1i 14 . . 3 (𝑦 ∈ 𝔅 → (𝑋𝑦) ∈ dom 𝑃)
3837rgen 3083 . 2 𝑦 ∈ 𝔅 (𝑋𝑦) ∈ dom 𝑃
392, 3, 1, 11, 8coinflipprob 34937 . . . . 5 𝑃 ∈ Prob
4039a1i 11 . . . 4 (𝐻 ∈ V → 𝑃 ∈ Prob)
4140isrrvv 34900 . . 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 2960  wral 3081  Vcvv 3457  wss 3906  𝒫 cpw 4564  {cpr 4593  cop 4597   cuni 4874  ccnv 5662  dom cdm 5663  ran crn 5664  cres 5665  cima 5666  wf 6536  cfv 6540  (class class class)co 7419  cr 11116  0cc0 11117  1c1 11118   / cdiv 11888  2c2 12312  chash 14386  f/c cofc 34551  𝔅cbrsiga 34638  Probcprb 34864  rRndVarcrrv 34897
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 2737  ax-rep 5240  ax-sep 5259  ax-nul 5271  ax-pow 5338  ax-pr 5406  ax-un 7742  ax-inf2 9617  ax-cnex 11173  ax-resscn 11174  ax-1cn 11175  ax-icn 11176  ax-addcl 11177  ax-addrcl 11178  ax-mulcl 11179  ax-mulrcl 11180  ax-mulcom 11181  ax-addass 11182  ax-mulass 11183  ax-distr 11184  ax-i2m1 11185  ax-1ne0 11186  ax-1rid 11187  ax-rnegex 11188  ax-rrecex 11189  ax-cnre 11190  ax-pre-lttri 11191  ax-pre-lttrn 11192  ax-pre-ltadd 11193  ax-pre-mulgt0 11194  ax-pre-sup 11195  ax-addf 11196  ax-mulf 11197
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 2569  df-eu 2599  df-clab 2744  df-cleq 2757  df-clel 2840  df-nfc 2914  df-ne 2961  df-nel 3067  df-ral 3082  df-rex 3092  df-rmo 3371  df-reu 3372  df-rab 3419  df-v 3459  df-sbc 3747  df-csb 3855  df-dif 3909  df-un 3911  df-in 3913  df-ss 3923  df-pss 3926  df-nul 4287  df-if 4490  df-pw 4566  df-sn 4592  df-pr 4594  df-tp 4596  df-op 4598  df-uni 4875  df-int 4915  df-iun 4960  df-iin 4961  df-disj 5079  df-br 5112  df-opab 5176  df-mpt 5195  df-tr 5221  df-id 5558  df-eprel 5563  df-po 5571  df-so 5572  df-fr 5616  df-se 5617  df-we 5618  df-xp 5669  df-rel 5670  df-cnv 5671  df-co 5672  df-dm 5673  df-rn 5674  df-res 5675  df-ima 5676  df-pred 6306  df-ord 6367  df-on 6368  df-lim 6369  df-suc 6370  df-iota 6496  df-fun 6542  df-fn 6543  df-f 6544  df-f1 6545  df-fo 6546  df-f1o 6547  df-fv 6548  df-isom 6549  df-riota 7376  df-ov 7422  df-oprab 7423  df-mpo 7424  df-of 7684  df-om 7869  df-1st 7992  df-2nd 7993  df-supp 8163  df-frecs 8284  df-wrecs 8315  df-recs 8364  df-rdg 8403  df-1o 8459  df-2o 8460  df-oadd 8463  df-er 8700  df-map 8832  df-pm 8833  df-ixp 8902  df-en 8950  df-dom 8951  df-sdom 8952  df-fin 8953  df-fsupp 9329  df-fi 9378  df-sup 9409  df-inf 9410  df-oi 9479  df-dju 9903  df-card 9941  df-pnf 11262  df-mnf 11263  df-xr 11264  df-ltxr 11265  df-le 11266  df-sub 11460  df-neg 11461  df-div 11889  df-nn 12251  df-2 12320  df-3 12321  df-4 12322  df-5 12323  df-6 12324  df-7 12325  df-8 12326  df-9 12327  df-n0 12522  df-xnn0 12595  df-z 12609  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 16145  df-sin 16147  df-cos 16148  df-pi 16150  df-struct 17231  df-sets 17248  df-slot 17266  df-ndx 17278  df-base 17294  df-ress 17315  df-plusg 17347  df-mulr 17348  df-starv 17349  df-sca 17350  df-vsca 17351  df-ip 17352  df-tset 17353  df-ple 17354  df-ds 17356  df-unif 17357  df-hom 17358  df-cco 17359  df-rest 17499  df-topn 17500  df-0g 17518  df-gsum 17519  df-topgen 17520  df-pt 17521  df-prds 17524  df-ordt 17579  df-xrs 17580  df-qtop 17585  df-imas 17586  df-xps 17588  df-mre 17662  df-mrc 17663  df-acs 17665  df-ps 18646  df-tsr 18647  df-plusf 18721  df-mgm 18722  df-sgrp 18811  df-mnd 18827  df-mhm 18880  df-submnd 18881  df-grp 19049  df-minusg 19050  df-sbg 19051  df-mulg 19180  df-subg 19235  df-cntz 19433  df-cmn 19898  df-abl 19899  df-mgp 20263  df-rng 20277  df-ur 20310  df-ring 20363  df-cring 20364  df-subrng 20697  df-subrg 20721  df-abv 20964  df-lmod 21035  df-scaf 21036  df-sra 21346  df-rgmod 21347  df-psmet 21566  df-xmet 21567  df-met 21568  df-bl 21569  df-mopn 21570  df-fbas 21571  df-fg 21572  df-cnfld 21575  df-top 23103  df-topon 23120  df-topsp 23142  df-bases 23155  df-cld 23228  df-ntr 23229  df-cls 23230  df-nei 23307  df-lp 23345  df-perf 23346  df-cn 23436  df-cnp 23437  df-haus 23524  df-tx 23772  df-hmeo 23965  df-fil 24056  df-fm 24148  df-flim 24149  df-flf 24150  df-tmd 24282  df-tgp 24283  df-tsms 24337  df-trg 24370  df-xms 24530  df-ms 24531  df-tms 24532  df-nm 24792  df-ngp 24793  df-nrg 24795  df-nlm 24796  df-ii 25089  df-cncf 25090  df-limc 26078  df-dv 26079  df-log 26774  df-xdiv 33309  df-esum 34484  df-ofc 34552  df-siga 34565  df-sigagen 34596  df-brsiga 34639  df-meas 34653  df-mbfm 34707  df-prob 34865  df-rrv 34898
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator