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

Theorem coinfliplem 34473
Description: Division in the extended real numbers can be used for the coin-flip example. (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
coinfliplem 𝑃 = ((♯ ↾ 𝒫 {𝐻, 𝑇}) ∘f/c /𝑒 2)

Proof of Theorem coinfliplem
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 coinflip.2 . 2 𝑃 = ((♯ ↾ 𝒫 {𝐻, 𝑇}) ∘f/c / 2)
2 coinflip.h . . 3 𝐻 ∈ V
3 simpr 484 . . . . . 6 ((𝐻 ∈ V ∧ 𝑥 ∈ 𝒫 {𝐻, 𝑇}) → 𝑥 ∈ 𝒫 {𝐻, 𝑇})
4 fvres 6930 . . . . . 6 (𝑥 ∈ 𝒫 {𝐻, 𝑇} → ((♯ ↾ 𝒫 {𝐻, 𝑇})‘𝑥) = (♯‘𝑥))
53, 4syl 17 . . . . 5 ((𝐻 ∈ V ∧ 𝑥 ∈ 𝒫 {𝐻, 𝑇}) → ((♯ ↾ 𝒫 {𝐻, 𝑇})‘𝑥) = (♯‘𝑥))
6 prfi 9367 . . . . . . . 8 {𝐻, 𝑇} ∈ Fin
73elpwid 4615 . . . . . . . 8 ((𝐻 ∈ V ∧ 𝑥 ∈ 𝒫 {𝐻, 𝑇}) → 𝑥 ⊆ {𝐻, 𝑇})
8 ssfi 9218 . . . . . . . 8 (({𝐻, 𝑇} ∈ Fin ∧ 𝑥 ⊆ {𝐻, 𝑇}) → 𝑥 ∈ Fin)
96, 7, 8sylancr 587 . . . . . . 7 ((𝐻 ∈ V ∧ 𝑥 ∈ 𝒫 {𝐻, 𝑇}) → 𝑥 ∈ Fin)
10 hashcl 14398 . . . . . . 7 (𝑥 ∈ Fin → (♯‘𝑥) ∈ ℕ0)
119, 10syl 17 . . . . . 6 ((𝐻 ∈ V ∧ 𝑥 ∈ 𝒫 {𝐻, 𝑇}) → (♯‘𝑥) ∈ ℕ0)
1211nn0red 12592 . . . . 5 ((𝐻 ∈ V ∧ 𝑥 ∈ 𝒫 {𝐻, 𝑇}) → (♯‘𝑥) ∈ ℝ)
135, 12eqeltrd 2840 . . . 4 ((𝐻 ∈ V ∧ 𝑥 ∈ 𝒫 {𝐻, 𝑇}) → ((♯ ↾ 𝒫 {𝐻, 𝑇})‘𝑥) ∈ ℝ)
14 simpr 484 . . . . 5 ((𝐻 ∈ V ∧ 𝑦 ∈ ℝ) → 𝑦 ∈ ℝ)
15 2re 12344 . . . . . 6 2 ∈ ℝ
1615a1i 11 . . . . 5 ((𝐻 ∈ V ∧ 𝑦 ∈ ℝ) → 2 ∈ ℝ)
17 2ne0 12374 . . . . . 6 2 ≠ 0
1817a1i 11 . . . . 5 ((𝐻 ∈ V ∧ 𝑦 ∈ ℝ) → 2 ≠ 0)
19 rexdiv 32906 . . . . 5 ((𝑦 ∈ ℝ ∧ 2 ∈ ℝ ∧ 2 ≠ 0) → (𝑦 /𝑒 2) = (𝑦 / 2))
2014, 16, 18, 19syl3anc 1371 . . . 4 ((𝐻 ∈ V ∧ 𝑦 ∈ ℝ) → (𝑦 /𝑒 2) = (𝑦 / 2))
21 hashresfn 14382 . . . . 5 (♯ ↾ 𝒫 {𝐻, 𝑇}) Fn 𝒫 {𝐻, 𝑇}
2221a1i 11 . . . 4 (𝐻 ∈ V → (♯ ↾ 𝒫 {𝐻, 𝑇}) Fn 𝒫 {𝐻, 𝑇})
23 pwfi 9361 . . . . . 6 ({𝐻, 𝑇} ∈ Fin ↔ 𝒫 {𝐻, 𝑇} ∈ Fin)
246, 23mpbi 230 . . . . 5 𝒫 {𝐻, 𝑇} ∈ Fin
2524a1i 11 . . . 4 (𝐻 ∈ V → 𝒫 {𝐻, 𝑇} ∈ Fin)
2615a1i 11 . . . 4 (𝐻 ∈ V → 2 ∈ ℝ)
2713, 20, 22, 25, 26ofcfeqd2 34095 . . 3 (𝐻 ∈ V → ((♯ ↾ 𝒫 {𝐻, 𝑇}) ∘f/c /𝑒 2) = ((♯ ↾ 𝒫 {𝐻, 𝑇}) ∘f/c / 2))
282, 27ax-mp 5 . 2 ((♯ ↾ 𝒫 {𝐻, 𝑇}) ∘f/c /𝑒 2) = ((♯ ↾ 𝒫 {𝐻, 𝑇}) ∘f/c / 2)
291, 28eqtr4i 2767 1 𝑃 = ((♯ ↾ 𝒫 {𝐻, 𝑇}) ∘f/c /𝑒 2)
Colors of variables: wff setvar class
Syntax hints:  wa 395   = wceq 1538  wcel 2107  wne 2939  Vcvv 3479  wss 3964  𝒫 cpw 4606  {cpr 4634  cop 4638  cres 5692   Fn wfn 6561  cfv 6566  (class class class)co 7435  Fincfn 8990  cr 11158  0cc0 11159  1c1 11160   / cdiv 11924  2c2 12325  0cn0 12530  chash 14372   /𝑒 cxdiv 32897  f/c cofc 34089
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1793  ax-4 1807  ax-5 1909  ax-6 1966  ax-7 2006  ax-8 2109  ax-9 2117  ax-10 2140  ax-11 2156  ax-12 2176  ax-ext 2707  ax-rep 5286  ax-sep 5303  ax-nul 5313  ax-pow 5372  ax-pr 5439  ax-un 7758  ax-cnex 11215  ax-resscn 11216  ax-1cn 11217  ax-icn 11218  ax-addcl 11219  ax-addrcl 11220  ax-mulcl 11221  ax-mulrcl 11222  ax-mulcom 11223  ax-addass 11224  ax-mulass 11225  ax-distr 11226  ax-i2m1 11227  ax-1ne0 11228  ax-1rid 11229  ax-rnegex 11230  ax-rrecex 11231  ax-cnre 11232  ax-pre-lttri 11233  ax-pre-lttrn 11234  ax-pre-ltadd 11235  ax-pre-mulgt0 11236
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1541  df-fal 1551  df-ex 1778  df-nf 1782  df-sb 2064  df-mo 2539  df-eu 2568  df-clab 2714  df-cleq 2728  df-clel 2815  df-nfc 2891  df-ne 2940  df-nel 3046  df-ral 3061  df-rex 3070  df-rmo 3379  df-reu 3380  df-rab 3435  df-v 3481  df-sbc 3793  df-csb 3910  df-dif 3967  df-un 3969  df-in 3971  df-ss 3981  df-pss 3984  df-nul 4341  df-if 4533  df-pw 4608  df-sn 4633  df-pr 4635  df-op 4639  df-uni 4914  df-int 4953  df-iun 4999  df-br 5150  df-opab 5212  df-mpt 5233  df-tr 5267  df-id 5584  df-eprel 5590  df-po 5598  df-so 5599  df-fr 5642  df-we 5644  df-xp 5696  df-rel 5697  df-cnv 5698  df-co 5699  df-dm 5700  df-rn 5701  df-res 5702  df-ima 5703  df-pred 6326  df-ord 6392  df-on 6393  df-lim 6394  df-suc 6395  df-iota 6519  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-riota 7392  df-ov 7438  df-oprab 7439  df-mpo 7440  df-om 7892  df-1st 8019  df-2nd 8020  df-frecs 8311  df-wrecs 8342  df-recs 8416  df-rdg 8455  df-1o 8511  df-2o 8512  df-er 8750  df-en 8991  df-dom 8992  df-sdom 8993  df-fin 8994  df-card 9983  df-pnf 11301  df-mnf 11302  df-xr 11303  df-ltxr 11304  df-le 11305  df-sub 11498  df-neg 11499  df-div 11925  df-nn 12271  df-2 12333  df-n0 12531  df-xnn0 12604  df-z 12618  df-uz 12883  df-xneg 13158  df-xmul 13160  df-hash 14373  df-xdiv 32898  df-ofc 34090
This theorem is referenced by:  coinflipprob  34474
  Copyright terms: Public domain W3C validator