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

Theorem ballotlemi 30902
Description: Value of 𝐼 for a given counting 𝐶. (Contributed by Thierry Arnoux, 1-Dec-2016.) (Revised by AV, 6-Oct-2020.)
Hypotheses
Ref Expression
ballotth.m 𝑀 ∈ ℕ
ballotth.n 𝑁 ∈ ℕ
ballotth.o 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
ballotth.p 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
ballotth.f 𝐹 = (𝑐𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
ballotth.e 𝐸 = {𝑐𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝑐)‘𝑖)}
ballotth.mgtn 𝑁 < 𝑀
ballotth.i 𝐼 = (𝑐 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0}, ℝ, < ))
Assertion
Ref Expression
ballotlemi (𝐶 ∈ (𝑂𝐸) → (𝐼𝐶) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝐶)‘𝑘) = 0}, ℝ, < ))
Distinct variable groups:   𝑀,𝑐   𝑁,𝑐   𝑂,𝑐   𝑖,𝑀   𝑖,𝑁   𝑖,𝑂   𝑘,𝑀   𝑘,𝑁   𝑘,𝑂   𝑖,𝑐,𝐹,𝑘   𝐶,𝑖,𝑘   𝑖,𝐸,𝑘   𝐶,𝑘   𝑘,𝐼   𝑘,𝑐,𝐸
Allowed substitution hints:   𝐶(𝑥,𝑐)   𝑃(𝑥,𝑖,𝑘,𝑐)   𝐸(𝑥)   𝐹(𝑥)   𝐼(𝑥,𝑖,𝑐)   𝑀(𝑥)   𝑁(𝑥)   𝑂(𝑥)

Proof of Theorem ballotlemi
Dummy variable 𝑑 is distinct from all other variables.
StepHypRef Expression
1 fveq2 6333 . . . . . 6 (𝑑 = 𝐶 → (𝐹𝑑) = (𝐹𝐶))
21fveq1d 6335 . . . . 5 (𝑑 = 𝐶 → ((𝐹𝑑)‘𝑘) = ((𝐹𝐶)‘𝑘))
32eqeq1d 2773 . . . 4 (𝑑 = 𝐶 → (((𝐹𝑑)‘𝑘) = 0 ↔ ((𝐹𝐶)‘𝑘) = 0))
43rabbidv 3339 . . 3 (𝑑 = 𝐶 → {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0} = {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝐶)‘𝑘) = 0})
54infeq1d 8543 . 2 (𝑑 = 𝐶 → inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0}, ℝ, < ) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝐶)‘𝑘) = 0}, ℝ, < ))
6 ballotth.i . . 3 𝐼 = (𝑐 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0}, ℝ, < ))
7 fveq2 6333 . . . . . . . 8 (𝑐 = 𝑑 → (𝐹𝑐) = (𝐹𝑑))
87fveq1d 6335 . . . . . . 7 (𝑐 = 𝑑 → ((𝐹𝑐)‘𝑘) = ((𝐹𝑑)‘𝑘))
98eqeq1d 2773 . . . . . 6 (𝑐 = 𝑑 → (((𝐹𝑐)‘𝑘) = 0 ↔ ((𝐹𝑑)‘𝑘) = 0))
109rabbidv 3339 . . . . 5 (𝑐 = 𝑑 → {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0} = {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0})
1110infeq1d 8543 . . . 4 (𝑐 = 𝑑 → inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0}, ℝ, < ) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0}, ℝ, < ))
1211cbvmptv 4885 . . 3 (𝑐 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0}, ℝ, < )) = (𝑑 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0}, ℝ, < ))
136, 12eqtri 2793 . 2 𝐼 = (𝑑 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0}, ℝ, < ))
14 ltso 10324 . . 3 < Or ℝ
1514infex 8559 . 2 inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝐶)‘𝑘) = 0}, ℝ, < ) ∈ V
165, 13, 15fvmpt 6426 1 (𝐶 ∈ (𝑂𝐸) → (𝐼𝐶) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝐶)‘𝑘) = 0}, ℝ, < ))
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1631  wcel 2145  wral 3061  {crab 3065  cdif 3720  cin 3722  𝒫 cpw 4298   class class class wbr 4787  cmpt 4864  cfv 6030  (class class class)co 6796  infcinf 8507  cr 10141  0cc0 10142  1c1 10143   + caddc 10145   < clt 10280  cmin 10472   / cdiv 10890  cn 11226  cz 11584  ...cfz 12533  chash 13321
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1870  ax-4 1885  ax-5 1991  ax-6 2057  ax-7 2093  ax-8 2147  ax-9 2154  ax-10 2174  ax-11 2190  ax-12 2203  ax-13 2408  ax-ext 2751  ax-sep 4916  ax-nul 4924  ax-pow 4975  ax-pr 5035  ax-un 7100  ax-resscn 10199  ax-pre-lttri 10216  ax-pre-lttrn 10217
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 837  df-3or 1072  df-3an 1073  df-tru 1634  df-ex 1853  df-nf 1858  df-sb 2050  df-eu 2622  df-mo 2623  df-clab 2758  df-cleq 2764  df-clel 2767  df-nfc 2902  df-ne 2944  df-nel 3047  df-ral 3066  df-rex 3067  df-rmo 3069  df-rab 3070  df-v 3353  df-sbc 3588  df-csb 3683  df-dif 3726  df-un 3728  df-in 3730  df-ss 3737  df-nul 4064  df-if 4227  df-pw 4300  df-sn 4318  df-pr 4320  df-op 4324  df-uni 4576  df-br 4788  df-opab 4848  df-mpt 4865  df-id 5158  df-po 5171  df-so 5172  df-xp 5256  df-rel 5257  df-cnv 5258  df-co 5259  df-dm 5260  df-rn 5261  df-res 5262  df-ima 5263  df-iota 5993  df-fun 6032  df-fn 6033  df-f 6034  df-f1 6035  df-fo 6036  df-f1o 6037  df-fv 6038  df-er 7900  df-en 8114  df-dom 8115  df-sdom 8116  df-sup 8508  df-inf 8509  df-pnf 10282  df-mnf 10283  df-ltxr 10285
This theorem is referenced by:  ballotlemiex  30903  ballotlemimin  30907  ballotlemfrcn0  30931  ballotlemirc  30933
  Copyright terms: Public domain W3C validator