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 30343
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 6148 . . . . . 6 (𝑑 = 𝐶 → (𝐹𝑑) = (𝐹𝐶))
21fveq1d 6150 . . . . 5 (𝑑 = 𝐶 → ((𝐹𝑑)‘𝑘) = ((𝐹𝐶)‘𝑘))
32eqeq1d 2623 . . . 4 (𝑑 = 𝐶 → (((𝐹𝑑)‘𝑘) = 0 ↔ ((𝐹𝐶)‘𝑘) = 0))
43rabbidv 3177 . . 3 (𝑑 = 𝐶 → {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0} = {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝐶)‘𝑘) = 0})
54infeq1d 8327 . 2 (𝑑 = 𝐶 → inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0}, ℝ, < ) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝐶)‘𝑘) = 0}, ℝ, < ))
6 ballotth.i . . 3 𝐼 = (𝑐 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0}, ℝ, < ))
7 fveq2 6148 . . . . . . . 8 (𝑐 = 𝑑 → (𝐹𝑐) = (𝐹𝑑))
87fveq1d 6150 . . . . . . 7 (𝑐 = 𝑑 → ((𝐹𝑐)‘𝑘) = ((𝐹𝑑)‘𝑘))
98eqeq1d 2623 . . . . . 6 (𝑐 = 𝑑 → (((𝐹𝑐)‘𝑘) = 0 ↔ ((𝐹𝑑)‘𝑘) = 0))
109rabbidv 3177 . . . . 5 (𝑐 = 𝑑 → {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0} = {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0})
1110infeq1d 8327 . . . 4 (𝑐 = 𝑑 → inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0}, ℝ, < ) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0}, ℝ, < ))
1211cbvmptv 4710 . . 3 (𝑐 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0}, ℝ, < )) = (𝑑 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0}, ℝ, < ))
136, 12eqtri 2643 . 2 𝐼 = (𝑑 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑑)‘𝑘) = 0}, ℝ, < ))
14 ltso 10062 . . 3 < Or ℝ
1514infex 8343 . 2 inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝐶)‘𝑘) = 0}, ℝ, < ) ∈ V
165, 13, 15fvmpt 6239 1 (𝐶 ∈ (𝑂𝐸) → (𝐼𝐶) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝐶)‘𝑘) = 0}, ℝ, < ))
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1480  wcel 1987  wral 2907  {crab 2911  cdif 3552  cin 3554  𝒫 cpw 4130   class class class wbr 4613  cmpt 4673  cfv 5847  (class class class)co 6604  infcinf 8291  cr 9879  0cc0 9880  1c1 9881   + caddc 9883   < clt 10018  cmin 10210   / cdiv 10628  cn 10964  cz 11321  ...cfz 12268  #chash 13057
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4741  ax-nul 4749  ax-pow 4803  ax-pr 4867  ax-un 6902  ax-resscn 9937  ax-pre-lttri 9954  ax-pre-lttrn 9955
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-rmo 2915  df-rab 2916  df-v 3188  df-sbc 3418  df-csb 3515  df-dif 3558  df-un 3560  df-in 3562  df-ss 3569  df-nul 3892  df-if 4059  df-pw 4132  df-sn 4149  df-pr 4151  df-op 4155  df-uni 4403  df-br 4614  df-opab 4674  df-mpt 4675  df-id 4989  df-po 4995  df-so 4996  df-xp 5080  df-rel 5081  df-cnv 5082  df-co 5083  df-dm 5084  df-rn 5085  df-res 5086  df-ima 5087  df-iota 5810  df-fun 5849  df-fn 5850  df-f 5851  df-f1 5852  df-fo 5853  df-f1o 5854  df-fv 5855  df-er 7687  df-en 7900  df-dom 7901  df-sdom 7902  df-sup 8292  df-inf 8293  df-pnf 10020  df-mnf 10021  df-ltxr 10023
This theorem is referenced by:  ballotlemiex  30344  ballotlemimin  30348  ballotlemfrcn0  30372  ballotlemirc  30374
  Copyright terms: Public domain W3C validator