Step | Hyp | Ref
| Expression |
1 | | imassrn 5980 |
. . . . . 6
⊢ ((𝑆‘𝐶) “ (1...𝐽)) ⊆ ran (𝑆‘𝐶) |
2 | | ballotth.m |
. . . . . . . . 9
⊢ 𝑀 ∈ ℕ |
3 | | ballotth.n |
. . . . . . . . 9
⊢ 𝑁 ∈ ℕ |
4 | | ballotth.o |
. . . . . . . . 9
⊢ 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀} |
5 | | ballotth.p |
. . . . . . . . 9
⊢ 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂))) |
6 | | ballotth.f |
. . . . . . . . 9
⊢ 𝐹 = (𝑐 ∈ 𝑂 ↦ (𝑖 ∈ ℤ ↦
((♯‘((1...𝑖)
∩ 𝑐)) −
(♯‘((1...𝑖)
∖ 𝑐))))) |
7 | | ballotth.e |
. . . . . . . . 9
⊢ 𝐸 = {𝑐 ∈ 𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹‘𝑐)‘𝑖)} |
8 | | ballotth.mgtn |
. . . . . . . . 9
⊢ 𝑁 < 𝑀 |
9 | | ballotth.i |
. . . . . . . . 9
⊢ 𝐼 = (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹‘𝑐)‘𝑘) = 0}, ℝ, < )) |
10 | | ballotth.s |
. . . . . . . . 9
⊢ 𝑆 = (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ (𝑖 ∈ (1...(𝑀 + 𝑁)) ↦ if(𝑖 ≤ (𝐼‘𝑐), (((𝐼‘𝑐) + 1) − 𝑖), 𝑖))) |
11 | 2, 3, 4, 5, 6, 7, 8, 9, 10 | ballotlemsf1o 32480 |
. . . . . . . 8
⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → ((𝑆‘𝐶):(1...(𝑀 + 𝑁))–1-1-onto→(1...(𝑀 + 𝑁)) ∧ ◡(𝑆‘𝐶) = (𝑆‘𝐶))) |
12 | 11 | simpld 495 |
. . . . . . 7
⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝑆‘𝐶):(1...(𝑀 + 𝑁))–1-1-onto→(1...(𝑀 + 𝑁))) |
13 | | f1of 6716 |
. . . . . . 7
⊢ ((𝑆‘𝐶):(1...(𝑀 + 𝑁))–1-1-onto→(1...(𝑀 + 𝑁)) → (𝑆‘𝐶):(1...(𝑀 + 𝑁))⟶(1...(𝑀 + 𝑁))) |
14 | | frn 6607 |
. . . . . . 7
⊢ ((𝑆‘𝐶):(1...(𝑀 + 𝑁))⟶(1...(𝑀 + 𝑁)) → ran (𝑆‘𝐶) ⊆ (1...(𝑀 + 𝑁))) |
15 | 12, 13, 14 | 3syl 18 |
. . . . . 6
⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → ran (𝑆‘𝐶) ⊆ (1...(𝑀 + 𝑁))) |
16 | 1, 15 | sstrid 3932 |
. . . . 5
⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → ((𝑆‘𝐶) “ (1...𝐽)) ⊆ (1...(𝑀 + 𝑁))) |
17 | | fzssuz 13297 |
. . . . . 6
⊢
(1...(𝑀 + 𝑁)) ⊆
(ℤ≥‘1) |
18 | | uzssz 12603 |
. . . . . 6
⊢
(ℤ≥‘1) ⊆ ℤ |
19 | 17, 18 | sstri 3930 |
. . . . 5
⊢
(1...(𝑀 + 𝑁)) ⊆
ℤ |
20 | 16, 19 | sstrdi 3933 |
. . . 4
⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → ((𝑆‘𝐶) “ (1...𝐽)) ⊆ ℤ) |
21 | 20 | adantr 481 |
. . 3
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → ((𝑆‘𝐶) “ (1...𝐽)) ⊆ ℤ) |
22 | 21 | sselda 3921 |
. 2
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ((𝑆‘𝐶) “ (1...𝐽))) → 𝑘 ∈ ℤ) |
23 | | elfzelz 13256 |
. . 3
⊢ (𝑘 ∈ (((𝑆‘𝐶)‘𝐽)...(𝐼‘𝐶)) → 𝑘 ∈ ℤ) |
24 | 23 | adantl 482 |
. 2
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ (((𝑆‘𝐶)‘𝐽)...(𝐼‘𝐶))) → 𝑘 ∈ ℤ) |
25 | | f1ofn 6717 |
. . . . . . 7
⊢ ((𝑆‘𝐶):(1...(𝑀 + 𝑁))–1-1-onto→(1...(𝑀 + 𝑁)) → (𝑆‘𝐶) Fn (1...(𝑀 + 𝑁))) |
26 | 12, 25 | syl 17 |
. . . . . 6
⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝑆‘𝐶) Fn (1...(𝑀 + 𝑁))) |
27 | 26 | adantr 481 |
. . . . 5
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝑆‘𝐶) Fn (1...(𝑀 + 𝑁))) |
28 | 2, 3, 4, 5, 6, 7, 8, 9 | ballotlemiex 32468 |
. . . . . . . . . 10
⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → ((𝐼‘𝐶) ∈ (1...(𝑀 + 𝑁)) ∧ ((𝐹‘𝐶)‘(𝐼‘𝐶)) = 0)) |
29 | 28 | simpld 495 |
. . . . . . . . 9
⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝐼‘𝐶) ∈ (1...(𝑀 + 𝑁))) |
30 | 29 | adantr 481 |
. . . . . . . 8
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝐼‘𝐶) ∈ (1...(𝑀 + 𝑁))) |
31 | | elfzuz3 13253 |
. . . . . . . 8
⊢ ((𝐼‘𝐶) ∈ (1...(𝑀 + 𝑁)) → (𝑀 + 𝑁) ∈
(ℤ≥‘(𝐼‘𝐶))) |
32 | 30, 31 | syl 17 |
. . . . . . 7
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝑀 + 𝑁) ∈
(ℤ≥‘(𝐼‘𝐶))) |
33 | | elfzuz3 13253 |
. . . . . . . 8
⊢ (𝐽 ∈ (1...(𝐼‘𝐶)) → (𝐼‘𝐶) ∈ (ℤ≥‘𝐽)) |
34 | 33 | adantl 482 |
. . . . . . 7
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝐼‘𝐶) ∈ (ℤ≥‘𝐽)) |
35 | | uztrn 12600 |
. . . . . . 7
⊢ (((𝑀 + 𝑁) ∈
(ℤ≥‘(𝐼‘𝐶)) ∧ (𝐼‘𝐶) ∈ (ℤ≥‘𝐽)) → (𝑀 + 𝑁) ∈ (ℤ≥‘𝐽)) |
36 | 32, 34, 35 | syl2anc 584 |
. . . . . 6
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝑀 + 𝑁) ∈ (ℤ≥‘𝐽)) |
37 | | fzss2 13296 |
. . . . . 6
⊢ ((𝑀 + 𝑁) ∈ (ℤ≥‘𝐽) → (1...𝐽) ⊆ (1...(𝑀 + 𝑁))) |
38 | 36, 37 | syl 17 |
. . . . 5
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (1...𝐽) ⊆ (1...(𝑀 + 𝑁))) |
39 | | fvelimab 6841 |
. . . . 5
⊢ (((𝑆‘𝐶) Fn (1...(𝑀 + 𝑁)) ∧ (1...𝐽) ⊆ (1...(𝑀 + 𝑁))) → (𝑘 ∈ ((𝑆‘𝐶) “ (1...𝐽)) ↔ ∃𝑗 ∈ (1...𝐽)((𝑆‘𝐶)‘𝑗) = 𝑘)) |
40 | 27, 38, 39 | syl2anc 584 |
. . . 4
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝑘 ∈ ((𝑆‘𝐶) “ (1...𝐽)) ↔ ∃𝑗 ∈ (1...𝐽)((𝑆‘𝐶)‘𝑗) = 𝑘)) |
41 | 40 | adantr 481 |
. . 3
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → (𝑘 ∈ ((𝑆‘𝐶) “ (1...𝐽)) ↔ ∃𝑗 ∈ (1...𝐽)((𝑆‘𝐶)‘𝑗) = 𝑘)) |
42 | | 1zzd 12351 |
. . . . . . . . . . 11
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → 1 ∈
ℤ) |
43 | 2 | nnzi 12344 |
. . . . . . . . . . . . 13
⊢ 𝑀 ∈ ℤ |
44 | 3 | nnzi 12344 |
. . . . . . . . . . . . 13
⊢ 𝑁 ∈ ℤ |
45 | | zaddcl 12360 |
. . . . . . . . . . . . 13
⊢ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀 + 𝑁) ∈ ℤ) |
46 | 43, 44, 45 | mp2an 689 |
. . . . . . . . . . . 12
⊢ (𝑀 + 𝑁) ∈ ℤ |
47 | 46 | a1i 11 |
. . . . . . . . . . 11
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝑀 + 𝑁) ∈ ℤ) |
48 | | elfzelz 13256 |
. . . . . . . . . . . 12
⊢ (𝐽 ∈ (1...(𝐼‘𝐶)) → 𝐽 ∈ ℤ) |
49 | 48 | adantl 482 |
. . . . . . . . . . 11
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → 𝐽 ∈ ℤ) |
50 | | elfzle1 13259 |
. . . . . . . . . . . 12
⊢ (𝐽 ∈ (1...(𝐼‘𝐶)) → 1 ≤ 𝐽) |
51 | 50 | adantl 482 |
. . . . . . . . . . 11
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → 1 ≤ 𝐽) |
52 | 49 | zred 12426 |
. . . . . . . . . . . 12
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → 𝐽 ∈ ℝ) |
53 | | elfzelz 13256 |
. . . . . . . . . . . . . . 15
⊢ ((𝐼‘𝐶) ∈ (1...(𝑀 + 𝑁)) → (𝐼‘𝐶) ∈ ℤ) |
54 | 29, 53 | syl 17 |
. . . . . . . . . . . . . 14
⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝐼‘𝐶) ∈ ℤ) |
55 | 54 | adantr 481 |
. . . . . . . . . . . . 13
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝐼‘𝐶) ∈ ℤ) |
56 | 55 | zred 12426 |
. . . . . . . . . . . 12
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝐼‘𝐶) ∈ ℝ) |
57 | 47 | zred 12426 |
. . . . . . . . . . . 12
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝑀 + 𝑁) ∈ ℝ) |
58 | | elfzle2 13260 |
. . . . . . . . . . . . 13
⊢ (𝐽 ∈ (1...(𝐼‘𝐶)) → 𝐽 ≤ (𝐼‘𝐶)) |
59 | 58 | adantl 482 |
. . . . . . . . . . . 12
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → 𝐽 ≤ (𝐼‘𝐶)) |
60 | | elfzle2 13260 |
. . . . . . . . . . . . . 14
⊢ ((𝐼‘𝐶) ∈ (1...(𝑀 + 𝑁)) → (𝐼‘𝐶) ≤ (𝑀 + 𝑁)) |
61 | 29, 60 | syl 17 |
. . . . . . . . . . . . 13
⊢ (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝐼‘𝐶) ≤ (𝑀 + 𝑁)) |
62 | 61 | adantr 481 |
. . . . . . . . . . . 12
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝐼‘𝐶) ≤ (𝑀 + 𝑁)) |
63 | 52, 56, 57, 59, 62 | letrd 11132 |
. . . . . . . . . . 11
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → 𝐽 ≤ (𝑀 + 𝑁)) |
64 | 42, 47, 49, 51, 63 | elfzd 13247 |
. . . . . . . . . 10
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → 𝐽 ∈ (1...(𝑀 + 𝑁))) |
65 | 2, 3, 4, 5, 6, 7, 8, 9, 10 | ballotlemsv 32476 |
. . . . . . . . . 10
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝑀 + 𝑁))) → ((𝑆‘𝐶)‘𝐽) = if(𝐽 ≤ (𝐼‘𝐶), (((𝐼‘𝐶) + 1) − 𝐽), 𝐽)) |
66 | 64, 65 | syldan 591 |
. . . . . . . . 9
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → ((𝑆‘𝐶)‘𝐽) = if(𝐽 ≤ (𝐼‘𝐶), (((𝐼‘𝐶) + 1) − 𝐽), 𝐽)) |
67 | | simpr 485 |
. . . . . . . . . 10
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → 𝐽 ∈ (1...(𝐼‘𝐶))) |
68 | | iftrue 4465 |
. . . . . . . . . 10
⊢ (𝐽 ≤ (𝐼‘𝐶) → if(𝐽 ≤ (𝐼‘𝐶), (((𝐼‘𝐶) + 1) − 𝐽), 𝐽) = (((𝐼‘𝐶) + 1) − 𝐽)) |
69 | 67, 58, 68 | 3syl 18 |
. . . . . . . . 9
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → if(𝐽 ≤ (𝐼‘𝐶), (((𝐼‘𝐶) + 1) − 𝐽), 𝐽) = (((𝐼‘𝐶) + 1) − 𝐽)) |
70 | 66, 69 | eqtrd 2778 |
. . . . . . . 8
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → ((𝑆‘𝐶)‘𝐽) = (((𝐼‘𝐶) + 1) − 𝐽)) |
71 | 70 | oveq1d 7290 |
. . . . . . 7
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (((𝑆‘𝐶)‘𝐽)...(𝐼‘𝐶)) = ((((𝐼‘𝐶) + 1) − 𝐽)...(𝐼‘𝐶))) |
72 | 71 | eleq2d 2824 |
. . . . . 6
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → (𝑘 ∈ (((𝑆‘𝐶)‘𝐽)...(𝐼‘𝐶)) ↔ 𝑘 ∈ ((((𝐼‘𝐶) + 1) − 𝐽)...(𝐼‘𝐶)))) |
73 | 72 | adantr 481 |
. . . . 5
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → (𝑘 ∈ (((𝑆‘𝐶)‘𝐽)...(𝐼‘𝐶)) ↔ 𝑘 ∈ ((((𝐼‘𝐶) + 1) − 𝐽)...(𝐼‘𝐶)))) |
74 | 54 | ad2antrr 723 |
. . . . . . . . 9
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → (𝐼‘𝐶) ∈ ℤ) |
75 | 74 | zcnd 12427 |
. . . . . . . 8
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → (𝐼‘𝐶) ∈ ℂ) |
76 | | 1cnd 10970 |
. . . . . . . 8
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → 1 ∈
ℂ) |
77 | 75, 76 | pncand 11333 |
. . . . . . 7
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → (((𝐼‘𝐶) + 1) − 1) = (𝐼‘𝐶)) |
78 | 77 | oveq2d 7291 |
. . . . . 6
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → ((((𝐼‘𝐶) + 1) − 𝐽)...(((𝐼‘𝐶) + 1) − 1)) = ((((𝐼‘𝐶) + 1) − 𝐽)...(𝐼‘𝐶))) |
79 | 78 | eleq2d 2824 |
. . . . 5
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → (𝑘 ∈ ((((𝐼‘𝐶) + 1) − 𝐽)...(((𝐼‘𝐶) + 1) − 1)) ↔ 𝑘 ∈ ((((𝐼‘𝐶) + 1) − 𝐽)...(𝐼‘𝐶)))) |
80 | | 1zzd 12351 |
. . . . . 6
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → 1 ∈
ℤ) |
81 | 48 | ad2antlr 724 |
. . . . . 6
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → 𝐽 ∈ ℤ) |
82 | 74 | peano2zd 12429 |
. . . . . 6
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → ((𝐼‘𝐶) + 1) ∈ ℤ) |
83 | | simpr 485 |
. . . . . 6
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → 𝑘 ∈ ℤ) |
84 | | fzrev 13319 |
. . . . . 6
⊢ (((1
∈ ℤ ∧ 𝐽
∈ ℤ) ∧ (((𝐼‘𝐶) + 1) ∈ ℤ ∧ 𝑘 ∈ ℤ)) → (𝑘 ∈ ((((𝐼‘𝐶) + 1) − 𝐽)...(((𝐼‘𝐶) + 1) − 1)) ↔ (((𝐼‘𝐶) + 1) − 𝑘) ∈ (1...𝐽))) |
85 | 80, 81, 82, 83, 84 | syl22anc 836 |
. . . . 5
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → (𝑘 ∈ ((((𝐼‘𝐶) + 1) − 𝐽)...(((𝐼‘𝐶) + 1) − 1)) ↔ (((𝐼‘𝐶) + 1) − 𝑘) ∈ (1...𝐽))) |
86 | 73, 79, 85 | 3bitr2d 307 |
. . . 4
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → (𝑘 ∈ (((𝑆‘𝐶)‘𝐽)...(𝐼‘𝐶)) ↔ (((𝐼‘𝐶) + 1) − 𝑘) ∈ (1...𝐽))) |
87 | | risset 3194 |
. . . . 5
⊢ ((((𝐼‘𝐶) + 1) − 𝑘) ∈ (1...𝐽) ↔ ∃𝑗 ∈ (1...𝐽)𝑗 = (((𝐼‘𝐶) + 1) − 𝑘)) |
88 | 87 | a1i 11 |
. . . 4
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → ((((𝐼‘𝐶) + 1) − 𝑘) ∈ (1...𝐽) ↔ ∃𝑗 ∈ (1...𝐽)𝑗 = (((𝐼‘𝐶) + 1) − 𝑘))) |
89 | | eqcom 2745 |
. . . . . . 7
⊢ ((((𝐼‘𝐶) + 1) − 𝑘) = 𝑗 ↔ 𝑗 = (((𝐼‘𝐶) + 1) − 𝑘)) |
90 | 54 | ad2antrr 723 |
. . . . . . . . . . 11
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → (𝐼‘𝐶) ∈ ℤ) |
91 | 90 | adantlr 712 |
. . . . . . . . . 10
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → (𝐼‘𝐶) ∈ ℤ) |
92 | 91 | zcnd 12427 |
. . . . . . . . 9
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → (𝐼‘𝐶) ∈ ℂ) |
93 | | 1cnd 10970 |
. . . . . . . . 9
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → 1 ∈ ℂ) |
94 | 92, 93 | addcld 10994 |
. . . . . . . 8
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → ((𝐼‘𝐶) + 1) ∈ ℂ) |
95 | | simplr 766 |
. . . . . . . . 9
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → 𝑘 ∈ ℤ) |
96 | 95 | zcnd 12427 |
. . . . . . . 8
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → 𝑘 ∈ ℂ) |
97 | | elfzelz 13256 |
. . . . . . . . . 10
⊢ (𝑗 ∈ (1...𝐽) → 𝑗 ∈ ℤ) |
98 | 97 | adantl 482 |
. . . . . . . . 9
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → 𝑗 ∈ ℤ) |
99 | 98 | zcnd 12427 |
. . . . . . . 8
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → 𝑗 ∈ ℂ) |
100 | | subsub23 11226 |
. . . . . . . 8
⊢ ((((𝐼‘𝐶) + 1) ∈ ℂ ∧ 𝑘 ∈ ℂ ∧ 𝑗 ∈ ℂ) →
((((𝐼‘𝐶) + 1) − 𝑘) = 𝑗 ↔ (((𝐼‘𝐶) + 1) − 𝑗) = 𝑘)) |
101 | 94, 96, 99, 100 | syl3anc 1370 |
. . . . . . 7
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → ((((𝐼‘𝐶) + 1) − 𝑘) = 𝑗 ↔ (((𝐼‘𝐶) + 1) − 𝑗) = 𝑘)) |
102 | 89, 101 | bitr3id 285 |
. . . . . 6
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → (𝑗 = (((𝐼‘𝐶) + 1) − 𝑘) ↔ (((𝐼‘𝐶) + 1) − 𝑗) = 𝑘)) |
103 | | simpll 764 |
. . . . . . . . . 10
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → 𝐶 ∈ (𝑂 ∖ 𝐸)) |
104 | 38 | sselda 3921 |
. . . . . . . . . 10
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → 𝑗 ∈ (1...(𝑀 + 𝑁))) |
105 | 2, 3, 4, 5, 6, 7, 8, 9, 10 | ballotlemsv 32476 |
. . . . . . . . . 10
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝑗 ∈ (1...(𝑀 + 𝑁))) → ((𝑆‘𝐶)‘𝑗) = if(𝑗 ≤ (𝐼‘𝐶), (((𝐼‘𝐶) + 1) − 𝑗), 𝑗)) |
106 | 103, 104,
105 | syl2anc 584 |
. . . . . . . . 9
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → ((𝑆‘𝐶)‘𝑗) = if(𝑗 ≤ (𝐼‘𝐶), (((𝐼‘𝐶) + 1) − 𝑗), 𝑗)) |
107 | 97 | adantl 482 |
. . . . . . . . . . . 12
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → 𝑗 ∈ ℤ) |
108 | 107 | zred 12426 |
. . . . . . . . . . 11
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → 𝑗 ∈ ℝ) |
109 | 48 | ad2antlr 724 |
. . . . . . . . . . . 12
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → 𝐽 ∈ ℤ) |
110 | 109 | zred 12426 |
. . . . . . . . . . 11
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → 𝐽 ∈ ℝ) |
111 | 90 | zred 12426 |
. . . . . . . . . . 11
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → (𝐼‘𝐶) ∈ ℝ) |
112 | | elfzle2 13260 |
. . . . . . . . . . . 12
⊢ (𝑗 ∈ (1...𝐽) → 𝑗 ≤ 𝐽) |
113 | 112 | adantl 482 |
. . . . . . . . . . 11
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → 𝑗 ≤ 𝐽) |
114 | 58 | ad2antlr 724 |
. . . . . . . . . . 11
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → 𝐽 ≤ (𝐼‘𝐶)) |
115 | 108, 110,
111, 113, 114 | letrd 11132 |
. . . . . . . . . 10
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → 𝑗 ≤ (𝐼‘𝐶)) |
116 | | iftrue 4465 |
. . . . . . . . . 10
⊢ (𝑗 ≤ (𝐼‘𝐶) → if(𝑗 ≤ (𝐼‘𝐶), (((𝐼‘𝐶) + 1) − 𝑗), 𝑗) = (((𝐼‘𝐶) + 1) − 𝑗)) |
117 | 115, 116 | syl 17 |
. . . . . . . . 9
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → if(𝑗 ≤ (𝐼‘𝐶), (((𝐼‘𝐶) + 1) − 𝑗), 𝑗) = (((𝐼‘𝐶) + 1) − 𝑗)) |
118 | 106, 117 | eqtrd 2778 |
. . . . . . . 8
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → ((𝑆‘𝐶)‘𝑗) = (((𝐼‘𝐶) + 1) − 𝑗)) |
119 | 118 | eqeq1d 2740 |
. . . . . . 7
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑗 ∈ (1...𝐽)) → (((𝑆‘𝐶)‘𝑗) = 𝑘 ↔ (((𝐼‘𝐶) + 1) − 𝑗) = 𝑘)) |
120 | 119 | adantlr 712 |
. . . . . 6
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → (((𝑆‘𝐶)‘𝑗) = 𝑘 ↔ (((𝐼‘𝐶) + 1) − 𝑗) = 𝑘)) |
121 | 102, 120 | bitr4d 281 |
. . . . 5
⊢ ((((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) ∧ 𝑗 ∈ (1...𝐽)) → (𝑗 = (((𝐼‘𝐶) + 1) − 𝑘) ↔ ((𝑆‘𝐶)‘𝑗) = 𝑘)) |
122 | 121 | rexbidva 3225 |
. . . 4
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → (∃𝑗 ∈ (1...𝐽)𝑗 = (((𝐼‘𝐶) + 1) − 𝑘) ↔ ∃𝑗 ∈ (1...𝐽)((𝑆‘𝐶)‘𝑗) = 𝑘)) |
123 | 86, 88, 122 | 3bitrd 305 |
. . 3
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → (𝑘 ∈ (((𝑆‘𝐶)‘𝐽)...(𝐼‘𝐶)) ↔ ∃𝑗 ∈ (1...𝐽)((𝑆‘𝐶)‘𝑗) = 𝑘)) |
124 | 41, 123 | bitr4d 281 |
. 2
⊢ (((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) ∧ 𝑘 ∈ ℤ) → (𝑘 ∈ ((𝑆‘𝐶) “ (1...𝐽)) ↔ 𝑘 ∈ (((𝑆‘𝐶)‘𝐽)...(𝐼‘𝐶)))) |
125 | 22, 24, 124 | eqrdav 2737 |
1
⊢ ((𝐶 ∈ (𝑂 ∖ 𝐸) ∧ 𝐽 ∈ (1...(𝐼‘𝐶))) → ((𝑆‘𝐶) “ (1...𝐽)) = (((𝑆‘𝐶)‘𝐽)...(𝐼‘𝐶))) |