Mathbox for Thierry Arnoux |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > Mathboxes > ballotlem1ri | Structured version Visualization version GIF version |
Description: When the vote on the first tie is for A, the first vote is also for A on the reverse counting. (Contributed by Thierry Arnoux, 18-Apr-2017.) |
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}, ℝ, < )) |
ballotth.s | ⊢ 𝑆 = (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ (𝑖 ∈ (1...(𝑀 + 𝑁)) ↦ if(𝑖 ≤ (𝐼‘𝑐), (((𝐼‘𝑐) + 1) − 𝑖), 𝑖))) |
ballotth.r | ⊢ 𝑅 = (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ ((𝑆‘𝑐) “ 𝑐)) |
Ref | Expression |
---|---|
ballotlem1ri | ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (1 ∈ (𝑅‘𝐶) ↔ (𝐼‘𝐶) ∈ 𝐶)) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | ballotth.m | . . . . . 6 ⊢ 𝑀 ∈ ℕ | |
2 | ballotth.n | . . . . . 6 ⊢ 𝑁 ∈ ℕ | |
3 | nnaddcl 11711 | . . . . . 6 ⊢ ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑀 + 𝑁) ∈ ℕ) | |
4 | 1, 2, 3 | mp2an 691 | . . . . 5 ⊢ (𝑀 + 𝑁) ∈ ℕ |
5 | nnuz 12335 | . . . . 5 ⊢ ℕ = (ℤ≥‘1) | |
6 | 4, 5 | eleqtri 2851 | . . . 4 ⊢ (𝑀 + 𝑁) ∈ (ℤ≥‘1) |
7 | eluzfz1 12977 | . . . 4 ⊢ ((𝑀 + 𝑁) ∈ (ℤ≥‘1) → 1 ∈ (1...(𝑀 + 𝑁))) | |
8 | 6, 7 | mp1i 13 | . . 3 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → 1 ∈ (1...(𝑀 + 𝑁))) |
9 | ballotth.o | . . . . . 6 ⊢ 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀} | |
10 | ballotth.p | . . . . . 6 ⊢ 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂))) | |
11 | ballotth.f | . . . . . 6 ⊢ 𝐹 = (𝑐 ∈ 𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐))))) | |
12 | ballotth.e | . . . . . 6 ⊢ 𝐸 = {𝑐 ∈ 𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹‘𝑐)‘𝑖)} | |
13 | ballotth.mgtn | . . . . . 6 ⊢ 𝑁 < 𝑀 | |
14 | ballotth.i | . . . . . 6 ⊢ 𝐼 = (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑐)‘𝑘) = 0}, ℝ, < )) | |
15 | 1, 2, 9, 10, 11, 12, 13, 14 | ballotlemiex 32001 | . . . . 5 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → ((𝐼‘𝐶) ∈ (1...(𝑀 + 𝑁)) ∧ ((𝐹‘𝐶)‘(𝐼‘𝐶)) = 0)) |
16 | 15 | simpld 498 | . . . 4 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝐼‘𝐶) ∈ (1...(𝑀 + 𝑁))) |
17 | elfzle1 12973 | . . . 4 ⊢ ((𝐼‘𝐶) ∈ (1...(𝑀 + 𝑁)) → 1 ≤ (𝐼‘𝐶)) | |
18 | 16, 17 | syl 17 | . . 3 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → 1 ≤ (𝐼‘𝐶)) |
19 | ballotth.s | . . . 4 ⊢ 𝑆 = (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ (𝑖 ∈ (1...(𝑀 + 𝑁)) ↦ if(𝑖 ≤ (𝐼‘𝑐), (((𝐼‘𝑐) + 1) − 𝑖), 𝑖))) | |
20 | ballotth.r | . . . 4 ⊢ 𝑅 = (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ ((𝑆‘𝑐) “ 𝑐)) | |
21 | 1, 2, 9, 10, 11, 12, 13, 14, 19, 20 | ballotlemrv1 32020 | . . 3 ⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 1 ∈ (1...(𝑀 + 𝑁)) ∧ 1 ≤ (𝐼‘𝐶)) → (1 ∈ (𝑅‘𝐶) ↔ (((𝐼‘𝐶) + 1) − 1) ∈ 𝐶)) |
22 | 8, 18, 21 | mpd3an23 1461 | . 2 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (1 ∈ (𝑅‘𝐶) ↔ (((𝐼‘𝐶) + 1) − 1) ∈ 𝐶)) |
23 | elfzelz 12970 | . . . . . 6 ⊢ ((𝐼‘𝐶) ∈ (1...(𝑀 + 𝑁)) → (𝐼‘𝐶) ∈ ℤ) | |
24 | 16, 23 | syl 17 | . . . . 5 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝐼‘𝐶) ∈ ℤ) |
25 | 24 | zcnd 12141 | . . . 4 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝐼‘𝐶) ∈ ℂ) |
26 | 1cnd 10688 | . . . 4 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → 1 ∈ ℂ) | |
27 | 25, 26 | pncand 11050 | . . 3 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (((𝐼‘𝐶) + 1) − 1) = (𝐼‘𝐶)) |
28 | 27 | eleq1d 2837 | . 2 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → ((((𝐼‘𝐶) + 1) − 1) ∈ 𝐶 ↔ (𝐼‘𝐶) ∈ 𝐶)) |
29 | 22, 28 | bitrd 282 | 1 ⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (1 ∈ (𝑅‘𝐶) ↔ (𝐼‘𝐶) ∈ 𝐶)) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ↔ wb 209 = wceq 1539 ∈ wcel 2112 ∀wral 3071 {crab 3075 ∖ cdif 3858 ∩ cin 3860 ifcif 4424 𝒫 cpw 4498 class class class wbr 5037 ↦ cmpt 5117 “ cima 5532 ‘cfv 6341 (class class class)co 7157 infcinf 8952 ℝcr 10588 0cc0 10589 1c1 10590 + caddc 10592 < clt 10727 ≤ cle 10728 − cmin 10922 / cdiv 11349 ℕcn 11688 ℤcz 12034 ℤ≥cuz 12296 ...cfz 12953 ♯chash 13754 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1798 ax-4 1812 ax-5 1912 ax-6 1971 ax-7 2016 ax-8 2114 ax-9 2122 ax-10 2143 ax-11 2159 ax-12 2176 ax-ext 2730 ax-rep 5161 ax-sep 5174 ax-nul 5181 ax-pow 5239 ax-pr 5303 ax-un 7466 ax-cnex 10645 ax-resscn 10646 ax-1cn 10647 ax-icn 10648 ax-addcl 10649 ax-addrcl 10650 ax-mulcl 10651 ax-mulrcl 10652 ax-mulcom 10653 ax-addass 10654 ax-mulass 10655 ax-distr 10656 ax-i2m1 10657 ax-1ne0 10658 ax-1rid 10659 ax-rnegex 10660 ax-rrecex 10661 ax-cnre 10662 ax-pre-lttri 10663 ax-pre-lttrn 10664 ax-pre-ltadd 10665 ax-pre-mulgt0 10666 |
This theorem depends on definitions: df-bi 210 df-an 400 df-or 845 df-3or 1086 df-3an 1087 df-tru 1542 df-fal 1552 df-ex 1783 df-nf 1787 df-sb 2071 df-mo 2558 df-eu 2589 df-clab 2737 df-cleq 2751 df-clel 2831 df-nfc 2902 df-ne 2953 df-nel 3057 df-ral 3076 df-rex 3077 df-reu 3078 df-rmo 3079 df-rab 3080 df-v 3412 df-sbc 3700 df-csb 3809 df-dif 3864 df-un 3866 df-in 3868 df-ss 3878 df-pss 3880 df-nul 4229 df-if 4425 df-pw 4500 df-sn 4527 df-pr 4529 df-tp 4531 df-op 4533 df-uni 4803 df-int 4843 df-iun 4889 df-br 5038 df-opab 5100 df-mpt 5118 df-tr 5144 df-id 5435 df-eprel 5440 df-po 5448 df-so 5449 df-fr 5488 df-we 5490 df-xp 5535 df-rel 5536 df-cnv 5537 df-co 5538 df-dm 5539 df-rn 5540 df-res 5541 df-ima 5542 df-pred 6132 df-ord 6178 df-on 6179 df-lim 6180 df-suc 6181 df-iota 6300 df-fun 6343 df-fn 6344 df-f 6345 df-f1 6346 df-fo 6347 df-f1o 6348 df-fv 6349 df-riota 7115 df-ov 7160 df-oprab 7161 df-mpo 7162 df-om 7587 df-1st 7700 df-2nd 7701 df-wrecs 7964 df-recs 8025 df-rdg 8063 df-1o 8119 df-oadd 8123 df-er 8306 df-en 8542 df-dom 8543 df-sdom 8544 df-fin 8545 df-sup 8953 df-inf 8954 df-dju 9377 df-card 9415 df-pnf 10729 df-mnf 10730 df-xr 10731 df-ltxr 10732 df-le 10733 df-sub 10924 df-neg 10925 df-nn 11689 df-2 11751 df-n0 11949 df-z 12035 df-uz 12297 df-rp 12445 df-fz 12954 df-hash 13755 |
This theorem is referenced by: ballotlem7 32035 |
Copyright terms: Public domain | W3C validator |