| Mathbox for Thierry Arnoux |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > Mathboxes > ballotlemi | Structured version Visualization version GIF version | ||
| Description: Value of 𝐼 for a given counting 𝐶. (Contributed by Thierry Arnoux, 1-Dec-2016.) (Revised by AV, 6-Oct-2020.) |
| 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}, ℝ, < )) |
| Ref | Expression |
|---|---|
| ballotlemi | ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝐼‘𝐶) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝐶)‘𝑘) = 0}, ℝ, < )) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | fveq2 6881 | . . . . . 6 ⊢ (𝑑 = 𝐶 → (𝐹‘𝑑) = (𝐹‘𝐶)) | |
| 2 | 1 | fveq1d 6883 | . . . . 5 ⊢ (𝑑 = 𝐶 → ((𝐹‘𝑑)‘𝑘) = ((𝐹‘𝐶)‘𝑘)) |
| 3 | 2 | eqeq1d 2764 | . . . 4 ⊢ (𝑑 = 𝐶 → (((𝐹‘𝑑)‘𝑘) = 0 ↔ ((𝐹‘𝐶)‘𝑘) = 0)) |
| 4 | 3 | rabbidv 3422 | . . 3 ⊢ (𝑑 = 𝐶 → {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0} = {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝐶)‘𝑘) = 0}) |
| 5 | 4 | infeq1d 9436 | . 2 ⊢ (𝑑 = 𝐶 → inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0}, ℝ, < ) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝐶)‘𝑘) = 0}, ℝ, < )) |
| 6 | ballotth.i | . . 3 ⊢ 𝐼 = (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑐)‘𝑘) = 0}, ℝ, < )) | |
| 7 | fveq2 6881 | . . . . . . . 8 ⊢ (𝑐 = 𝑑 → (𝐹‘𝑐) = (𝐹‘𝑑)) | |
| 8 | 7 | fveq1d 6883 | . . . . . . 7 ⊢ (𝑐 = 𝑑 → ((𝐹‘𝑐)‘𝑘) = ((𝐹‘𝑑)‘𝑘)) |
| 9 | 8 | eqeq1d 2764 | . . . . . 6 ⊢ (𝑐 = 𝑑 → (((𝐹‘𝑐)‘𝑘) = 0 ↔ ((𝐹‘𝑑)‘𝑘) = 0)) |
| 10 | 9 | rabbidv 3422 | . . . . 5 ⊢ (𝑐 = 𝑑 → {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑐)‘𝑘) = 0} = {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0}) |
| 11 | 10 | infeq1d 9436 | . . . 4 ⊢ (𝑐 = 𝑑 → inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑐)‘𝑘) = 0}, ℝ, < ) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0}, ℝ, < )) |
| 12 | 11 | cbvmptv 5214 | . . 3 ⊢ (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑐)‘𝑘) = 0}, ℝ, < )) = (𝑑 ∈ (𝑂 ∖ 𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0}, ℝ, < )) |
| 13 | 6, 12 | eqtri 2785 | . 2 ⊢ 𝐼 = (𝑑 ∈ (𝑂 ∖ 𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0}, ℝ, < )) |
| 14 | ltso 11296 | . . 3 ⊢ < Or ℝ | |
| 15 | 14 | infex 9453 | . 2 ⊢ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝐶)‘𝑘) = 0}, ℝ, < ) ∈ V |
| 16 | 5, 13, 15 | fvmpt 6989 | 1 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝐼‘𝐶) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝐶)‘𝑘) = 0}, ℝ, < )) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: → wi 4 = wceq 1569 ∈ wcel 2142 ∀wral 3078 {crab 3415 ∖ cdif 3901 ∩ cin 3903 𝒫 cpw 4561 class class class wbr 5108 ↦ cmpt 5191 ‘cfv 6536 (class class class)co 7412 infcinf 9399 ℝcr 11105 0cc0 11106 1c1 11107 + caddc 11109 < clt 11249 − cmin 11447 / cdiv 11877 ℕcn 12239 ℤcz 12597 ...cfz 13541 ♯chash 14373 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1824 ax-4 1838 ax-5 1939 ax-6 1996 ax-7 2037 ax-8 2144 ax-9 2152 ax-10 2175 ax-11 2191 ax-12 2212 ax-ext 2734 ax-sep 5256 ax-nul 5268 ax-pow 5335 ax-pr 5403 ax-un 7734 ax-resscn 11163 ax-pre-lttri 11180 ax-pre-lttrn 11181 |
| This proof depends on definitions: df-bi 210 df-an 401 df-or 861 df-3or 1103 df-3an 1104 df-tru 1572 df-fal 1582 df-ex 1809 df-nf 1813 df-sb 2096 df-mo 2566 df-eu 2596 df-clab 2741 df-cleq 2754 df-clel 2837 df-nfc 2911 df-ne 2958 df-nel 3064 df-ral 3079 df-rex 3089 df-rmo 3368 df-rab 3416 df-v 3456 df-sbc 3744 df-csb 3853 df-dif 3907 df-un 3909 df-in 3911 df-ss 3921 df-nul 4286 df-if 4487 df-pw 4563 df-sn 4589 df-pr 4591 df-op 4595 df-uni 4872 df-br 5109 df-opab 5173 df-mpt 5192 df-id 5555 df-po 5568 df-so 5569 df-xp 5666 df-rel 5667 df-cnv 5668 df-co 5669 df-dm 5670 df-rn 5671 df-res 5672 df-ima 5673 df-iota 6492 df-fun 6538 df-fn 6539 df-f 6540 df-f1 6541 df-fo 6542 df-f1o 6543 df-fv 6544 df-er 8692 df-en 8942 df-dom 8943 df-sdom 8944 df-sup 9400 df-inf 9401 df-pnf 11251 df-mnf 11252 df-ltxr 11254 |
| This theorem is used by: ballotlemiex 34901 ballotlemimin 34905 ballotlemfrcn0 34929 ballotlemirc 34931 |
| Copyright terms: Public domain | W3C validator |