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

Theorem coinflippv 33482
Description: The probability of heads is one-half. (Contributed by Thierry Arnoux, 15-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
coinflippv (š‘ƒā€˜{š»}) = (1 / 2)

Proof of Theorem coinflippv
Dummy variable š‘„ is distinct from all other variables.
StepHypRef Expression
1 coinflip.2 . . 3 š‘ƒ = ((ā™Æ ā†¾ š’« {š», š‘‡}) āˆ˜f/c / 2)
21fveq1i 6893 . 2 (š‘ƒā€˜{š»}) = (((ā™Æ ā†¾ š’« {š», š‘‡}) āˆ˜f/c / 2)ā€˜{š»})
3 snsspr1 4818 . . 3 {š»} āŠ† {š», š‘‡}
4 prex 5433 . . . . 5 {š», š‘‡} āˆˆ V
54elpw2 5346 . . . 4 ({š»} āˆˆ š’« {š», š‘‡} ā†” {š»} āŠ† {š», š‘‡})
65biimpri 227 . . 3 ({š»} āŠ† {š», š‘‡} ā†’ {š»} āˆˆ š’« {š», š‘‡})
7 fveq2 6892 . . . . . 6 (š‘„ = {š»} ā†’ (ā™Æā€˜š‘„) = (ā™Æā€˜{š»}))
8 coinflip.h . . . . . . 7 š» āˆˆ V
9 hashsng 14329 . . . . . . 7 (š» āˆˆ V ā†’ (ā™Æā€˜{š»}) = 1)
108, 9ax-mp 5 . . . . . 6 (ā™Æā€˜{š»}) = 1
117, 10eqtrdi 2789 . . . . 5 (š‘„ = {š»} ā†’ (ā™Æā€˜š‘„) = 1)
1211oveq1d 7424 . . . 4 (š‘„ = {š»} ā†’ ((ā™Æā€˜š‘„) / 2) = (1 / 2))
134pwex 5379 . . . . . . 7 š’« {š», š‘‡} āˆˆ V
1413a1i 11 . . . . . 6 (š» āˆˆ V ā†’ š’« {š», š‘‡} āˆˆ V)
15 2nn0 12489 . . . . . . 7 2 āˆˆ ā„•0
1615a1i 11 . . . . . 6 (š» āˆˆ V ā†’ 2 āˆˆ ā„•0)
17 prfi 9322 . . . . . . . . 9 {š», š‘‡} āˆˆ Fin
18 elpwi 4610 . . . . . . . . 9 (š‘„ āˆˆ š’« {š», š‘‡} ā†’ š‘„ āŠ† {š», š‘‡})
19 ssfi 9173 . . . . . . . . 9 (({š», š‘‡} āˆˆ Fin āˆ§ š‘„ āŠ† {š», š‘‡}) ā†’ š‘„ āˆˆ Fin)
2017, 18, 19sylancr 588 . . . . . . . 8 (š‘„ āˆˆ š’« {š», š‘‡} ā†’ š‘„ āˆˆ Fin)
2120adantl 483 . . . . . . 7 ((š» āˆˆ V āˆ§ š‘„ āˆˆ š’« {š», š‘‡}) ā†’ š‘„ āˆˆ Fin)
22 hashcl 14316 . . . . . . 7 (š‘„ āˆˆ Fin ā†’ (ā™Æā€˜š‘„) āˆˆ ā„•0)
2321, 22syl 17 . . . . . 6 ((š» āˆˆ V āˆ§ š‘„ āˆˆ š’« {š», š‘‡}) ā†’ (ā™Æā€˜š‘„) āˆˆ ā„•0)
24 hashf 14298 . . . . . . . 8 ā™Æ:VāŸ¶(ā„•0 āˆŖ {+āˆž})
2524a1i 11 . . . . . . 7 (š» āˆˆ V ā†’ ā™Æ:VāŸ¶(ā„•0 āˆŖ {+āˆž}))
26 ssv 4007 . . . . . . . 8 š’« {š», š‘‡} āŠ† V
2726a1i 11 . . . . . . 7 (š» āˆˆ V ā†’ š’« {š», š‘‡} āŠ† V)
2825, 27feqresmpt 6962 . . . . . 6 (š» āˆˆ V ā†’ (ā™Æ ā†¾ š’« {š», š‘‡}) = (š‘„ āˆˆ š’« {š», š‘‡} ā†¦ (ā™Æā€˜š‘„)))
2914, 16, 23, 28ofcfval2 33102 . . . . 5 (š» āˆˆ V ā†’ ((ā™Æ ā†¾ š’« {š», š‘‡}) āˆ˜f/c / 2) = (š‘„ āˆˆ š’« {š», š‘‡} ā†¦ ((ā™Æā€˜š‘„) / 2)))
308, 29ax-mp 5 . . . 4 ((ā™Æ ā†¾ š’« {š», š‘‡}) āˆ˜f/c / 2) = (š‘„ āˆˆ š’« {š», š‘‡} ā†¦ ((ā™Æā€˜š‘„) / 2))
31 ovex 7442 . . . 4 (1 / 2) āˆˆ V
3212, 30, 31fvmpt 6999 . . 3 ({š»} āˆˆ š’« {š», š‘‡} ā†’ (((ā™Æ ā†¾ š’« {š», š‘‡}) āˆ˜f/c / 2)ā€˜{š»}) = (1 / 2))
333, 6, 32mp2b 10 . 2 (((ā™Æ ā†¾ š’« {š», š‘‡}) āˆ˜f/c / 2)ā€˜{š»}) = (1 / 2)
342, 33eqtri 2761 1 (š‘ƒā€˜{š»}) = (1 / 2)
Colors of variables: wff setvar class
Syntax hints:   āˆ§ wa 397   = wceq 1542   āˆˆ wcel 2107   ā‰  wne 2941  Vcvv 3475   āˆŖ cun 3947   āŠ† wss 3949  š’« cpw 4603  {csn 4629  {cpr 4631  āŸØcop 4635   ā†¦ cmpt 5232   ā†¾ cres 5679  āŸ¶wf 6540  ā€˜cfv 6544  (class class class)co 7409  Fincfn 8939  0cc0 11110  1c1 11111  +āˆžcpnf 11245   / cdiv 11871  2c2 12267  ā„•0cn0 12472  ā™Æchash 14290   āˆ˜f/c cofc 33093
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2704  ax-rep 5286  ax-sep 5300  ax-nul 5307  ax-pow 5364  ax-pr 5428  ax-un 7725  ax-cnex 11166  ax-resscn 11167  ax-1cn 11168  ax-icn 11169  ax-addcl 11170  ax-addrcl 11171  ax-mulcl 11172  ax-mulrcl 11173  ax-mulcom 11174  ax-addass 11175  ax-mulass 11176  ax-distr 11177  ax-i2m1 11178  ax-1ne0 11179  ax-1rid 11180  ax-rnegex 11181  ax-rrecex 11182  ax-cnre 11183  ax-pre-lttri 11184  ax-pre-lttrn 11185  ax-pre-ltadd 11186  ax-pre-mulgt0 11187
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ne 2942  df-nel 3048  df-ral 3063  df-rex 3072  df-reu 3378  df-rab 3434  df-v 3477  df-sbc 3779  df-csb 3895  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-pss 3968  df-nul 4324  df-if 4530  df-pw 4605  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-int 4952  df-iun 5000  df-br 5150  df-opab 5212  df-mpt 5233  df-tr 5267  df-id 5575  df-eprel 5581  df-po 5589  df-so 5590  df-fr 5632  df-we 5634  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-pred 6301  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6496  df-fun 6546  df-fn 6547  df-f 6548  df-f1 6549  df-fo 6550  df-f1o 6551  df-fv 6552  df-riota 7365  df-ov 7412  df-oprab 7413  df-mpo 7414  df-om 7856  df-1st 7975  df-2nd 7976  df-frecs 8266  df-wrecs 8297  df-recs 8371  df-rdg 8410  df-1o 8466  df-er 8703  df-en 8940  df-dom 8941  df-sdom 8942  df-fin 8943  df-card 9934  df-pnf 11250  df-mnf 11251  df-xr 11252  df-ltxr 11253  df-le 11254  df-sub 11446  df-neg 11447  df-nn 12213  df-2 12275  df-n0 12473  df-xnn0 12545  df-z 12559  df-uz 12823  df-fz 13485  df-hash 14291  df-ofc 33094
This theorem is referenced by:  coinflippvt  33483
  Copyright terms: Public domain W3C validator