| 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 6882 | . . . . . 6 ⊢ (𝑑 = 𝐶 → (𝐹‘𝑑) = (𝐹‘𝐶)) | |
| 2 | 1 | fveq1d 6884 | . . . . 5 ⊢ (𝑑 = 𝐶 → ((𝐹‘𝑑)‘𝑘) = ((𝐹‘𝐶)‘𝑘)) |
| 3 | 2 | eqeq1d 2764 | . . . 4 ⊢ (𝑑 = 𝐶 → (((𝐹‘𝑑)‘𝑘) = 0 ↔ ((𝐹‘𝐶)‘𝑘) = 0)) |
| 4 | 3 | rabbidv 3421 | . . 3 ⊢ (𝑑 = 𝐶 → {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0} = {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝐶)‘𝑘) = 0}) |
| 5 | 4 | infeq1d 9451 | . 2 ⊢ (𝑑 = 𝐶 → inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0}, ℝ, < ) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝐶)‘𝑘) = 0}, ℝ, < )) |
| 6 | ballotth.i | . . 3 ⊢ 𝐼 = (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑐)‘𝑘) = 0}, ℝ, < )) | |
| 7 | fveq2 6882 | . . . . . . . 8 ⊢ (𝑐 = 𝑑 → (𝐹‘𝑐) = (𝐹‘𝑑)) | |
| 8 | 7 | fveq1d 6884 | . . . . . . 7 ⊢ (𝑐 = 𝑑 → ((𝐹‘𝑐)‘𝑘) = ((𝐹‘𝑑)‘𝑘)) |
| 9 | 8 | eqeq1d 2764 | . . . . . 6 ⊢ (𝑐 = 𝑑 → (((𝐹‘𝑐)‘𝑘) = 0 ↔ ((𝐹‘𝑑)‘𝑘) = 0)) |
| 10 | 9 | rabbidv 3421 | . . . . 5 ⊢ (𝑐 = 𝑑 → {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑐)‘𝑘) = 0} = {𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0}) |
| 11 | 10 | infeq1d 9451 | . . . 4 ⊢ (𝑐 = 𝑑 → inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑐)‘𝑘) = 0}, ℝ, < ) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0}, ℝ, < )) |
| 12 | 11 | cbvmptv 5213 | . . 3 ⊢ (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑐)‘𝑘) = 0}, ℝ, < )) = (𝑑 ∈ (𝑂 ∖ 𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0}, ℝ, < )) |
| 13 | 6, 12 | eqtri 2785 | . 2 ⊢ 𝐼 = (𝑑 ∈ (𝑂 ∖ 𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑑)‘𝑘) = 0}, ℝ, < )) |
| 14 | ltso 11317 | . . 3 ⊢ < Or ℝ | |
| 15 | 14 | infex 9468 | . 2 ⊢ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝐶)‘𝑘) = 0}, ℝ, < ) ∈ V |
| 16 | 5, 13, 15 | fvmpt 6990 | 1 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝐼‘𝐶) = inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝐶)‘𝑘) = 0}, ℝ, < )) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: → wi 4 = wceq 1570 ∈ wcel 2145 ∀wral 3078 {crab 3414 ∖ cdif 3899 ∩ cin 3901 𝒫 cpw 4560 class class class wbr 5107 ↦ cmpt 5190 ‘cfv 6537 (class class class)co 7416 infcinf 9414 ℝcr 11126 0cc0 11127 1c1 11128 + caddc 11130 < clt 11270 − cmin 11468 / cdiv 11898 ℕcn 12260 ℤcz 12618 ...cfz 13563 ♯chash 14396 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1828 ax-4 1842 ax-5 1943 ax-6 2000 ax-7 2041 ax-8 2147 ax-9 2155 ax-10 2178 ax-11 2194 ax-12 2215 ax-ext 2734 ax-sep 5255 ax-nul 5267 ax-pow 5334 ax-pr 5402 ax-un 7739 ax-resscn 11184 ax-pre-lttri 11201 ax-pre-lttrn 11202 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-3or 1104 df-3an 1105 df-tru 1573 df-fal 1583 df-ex 1813 df-nf 1817 df-sb 2100 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 3367 df-rab 3415 df-v 3455 df-sbc 3743 df-csb 3851 df-dif 3905 df-un 3907 df-in 3909 df-ss 3919 df-nul 4283 df-if 4486 df-pw 4562 df-sn 4588 df-pr 4590 df-op 4594 df-uni 4871 df-br 5108 df-opab 5172 df-mpt 5191 df-id 5554 df-po 5567 df-so 5568 df-xp 5665 df-rel 5666 df-cnv 5667 df-co 5668 df-dm 5669 df-rn 5670 df-res 5671 df-ima 5672 df-iota 6493 df-fun 6539 df-fn 6540 df-f 6541 df-f1 6542 df-fo 6543 df-f1o 6544 df-fv 6545 df-er 8699 df-en 8956 df-dom 8957 df-sdom 8958 df-sup 9415 df-inf 9416 df-pnf 11272 df-mnf 11273 df-ltxr 11275 |
| This theorem is used by: ballotlemiex 35000 ballotlemimin 35004 ballotlemfrcn0 35028 ballotlemirc 35030 |
| Copyright terms: Public domain | W3C validator |