Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  ballotlemfrceq Structured version   Visualization version   GIF version

Theorem ballotlemfrceq 32395
Description: Value of 𝐹 for a reverse counting (𝑅𝐶). (Contributed by Thierry Arnoux, 27-Apr-2017.)
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}, ℝ, < ))
ballotth.s 𝑆 = (𝑐 ∈ (𝑂𝐸) ↦ (𝑖 ∈ (1...(𝑀 + 𝑁)) ↦ if(𝑖 ≤ (𝐼𝑐), (((𝐼𝑐) + 1) − 𝑖), 𝑖)))
ballotth.r 𝑅 = (𝑐 ∈ (𝑂𝐸) ↦ ((𝑆𝑐) “ 𝑐))
ballotlemg = (𝑢 ∈ Fin, 𝑣 ∈ Fin ↦ ((♯‘(𝑣𝑢)) − (♯‘(𝑣𝑢))))
Assertion
Ref Expression
ballotlemfrceq ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) = -((𝐹‘(𝑅𝐶))‘𝐽))
Distinct variable groups:   𝑀,𝑐   𝑁,𝑐   𝑂,𝑐   𝑖,𝑀   𝑖,𝑁   𝑖,𝑂   𝑘,𝑀   𝑘,𝑁   𝑘,𝑂   𝑖,𝑐,𝐹,𝑘   𝐶,𝑖,𝑘   𝑖,𝐸,𝑘   𝐶,𝑘   𝑘,𝐼,𝑐   𝐸,𝑐   𝑖,𝐼,𝑐   𝑘,𝐽   𝑆,𝑘,𝑖,𝑐   𝑅,𝑖   𝑣,𝑢,𝐶   𝑢,𝐼,𝑣   𝑢,𝐽,𝑣   𝑢,𝑅,𝑣   𝑢,𝑆,𝑣   𝑖,𝐽
Allowed substitution hints:   𝐶(𝑥,𝑐)   𝑃(𝑥,𝑣,𝑢,𝑖,𝑘,𝑐)   𝑅(𝑥,𝑘,𝑐)   𝑆(𝑥)   𝐸(𝑥,𝑣,𝑢)   (𝑥,𝑣,𝑢,𝑖,𝑘,𝑐)   𝐹(𝑥,𝑣,𝑢)   𝐼(𝑥)   𝐽(𝑥,𝑐)   𝑀(𝑥,𝑣,𝑢)   𝑁(𝑥,𝑣,𝑢)   𝑂(𝑥,𝑣,𝑢)

Proof of Theorem ballotlemfrceq
StepHypRef Expression
1 ballotth.m . . . . . . . . 9 𝑀 ∈ ℕ
2 ballotth.n . . . . . . . . 9 𝑁 ∈ ℕ
3 ballotth.o . . . . . . . . 9 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
4 ballotth.p . . . . . . . . 9 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
5 ballotth.f . . . . . . . . 9 𝐹 = (𝑐𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
6 ballotth.e . . . . . . . . 9 𝐸 = {𝑐𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝑐)‘𝑖)}
7 ballotth.mgtn . . . . . . . . 9 𝑁 < 𝑀
8 ballotth.i . . . . . . . . 9 𝐼 = (𝑐 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0}, ℝ, < ))
9 ballotth.s . . . . . . . . 9 𝑆 = (𝑐 ∈ (𝑂𝐸) ↦ (𝑖 ∈ (1...(𝑀 + 𝑁)) ↦ if(𝑖 ≤ (𝐼𝑐), (((𝐼𝑐) + 1) − 𝑖), 𝑖)))
101, 2, 3, 4, 5, 6, 7, 8, 9ballotlemsel1i 32379 . . . . . . . 8 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶)‘𝐽) ∈ (1...(𝐼𝐶)))
11 1zzd 12281 . . . . . . . . 9 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → 1 ∈ ℤ)
121, 2, 3, 4, 5, 6, 7, 8ballotlemiex 32368 . . . . . . . . . . . 12 (𝐶 ∈ (𝑂𝐸) → ((𝐼𝐶) ∈ (1...(𝑀 + 𝑁)) ∧ ((𝐹𝐶)‘(𝐼𝐶)) = 0))
1312adantr 480 . . . . . . . . . . 11 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐼𝐶) ∈ (1...(𝑀 + 𝑁)) ∧ ((𝐹𝐶)‘(𝐼𝐶)) = 0))
1413simpld 494 . . . . . . . . . 10 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝐼𝐶) ∈ (1...(𝑀 + 𝑁)))
1514elfzelzd 13186 . . . . . . . . 9 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝐼𝐶) ∈ ℤ)
16 elfzuz3 13182 . . . . . . . . . . . . 13 ((𝐼𝐶) ∈ (1...(𝑀 + 𝑁)) → (𝑀 + 𝑁) ∈ (ℤ‘(𝐼𝐶)))
17 fzss2 13225 . . . . . . . . . . . . 13 ((𝑀 + 𝑁) ∈ (ℤ‘(𝐼𝐶)) → (1...(𝐼𝐶)) ⊆ (1...(𝑀 + 𝑁)))
1814, 16, 173syl 18 . . . . . . . . . . . 12 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (1...(𝐼𝐶)) ⊆ (1...(𝑀 + 𝑁)))
19 simpr 484 . . . . . . . . . . . 12 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → 𝐽 ∈ (1...(𝐼𝐶)))
2018, 19sseldd 3918 . . . . . . . . . . 11 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → 𝐽 ∈ (1...(𝑀 + 𝑁)))
211, 2, 3, 4, 5, 6, 7, 8, 9ballotlemsdom 32378 . . . . . . . . . . 11 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝑀 + 𝑁))) → ((𝑆𝐶)‘𝐽) ∈ (1...(𝑀 + 𝑁)))
2220, 21syldan 590 . . . . . . . . . 10 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶)‘𝐽) ∈ (1...(𝑀 + 𝑁)))
2322elfzelzd 13186 . . . . . . . . 9 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶)‘𝐽) ∈ ℤ)
24 fzsubel 13221 . . . . . . . . 9 (((1 ∈ ℤ ∧ (𝐼𝐶) ∈ ℤ) ∧ (((𝑆𝐶)‘𝐽) ∈ ℤ ∧ 1 ∈ ℤ)) → (((𝑆𝐶)‘𝐽) ∈ (1...(𝐼𝐶)) ↔ (((𝑆𝐶)‘𝐽) − 1) ∈ ((1 − 1)...((𝐼𝐶) − 1))))
2511, 15, 23, 11, 24syl22anc 835 . . . . . . . 8 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (((𝑆𝐶)‘𝐽) ∈ (1...(𝐼𝐶)) ↔ (((𝑆𝐶)‘𝐽) − 1) ∈ ((1 − 1)...((𝐼𝐶) − 1))))
2610, 25mpbid 231 . . . . . . 7 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (((𝑆𝐶)‘𝐽) − 1) ∈ ((1 − 1)...((𝐼𝐶) − 1)))
27 1m1e0 11975 . . . . . . . 8 (1 − 1) = 0
2827oveq1i 7265 . . . . . . 7 ((1 − 1)...((𝐼𝐶) − 1)) = (0...((𝐼𝐶) − 1))
2926, 28eleqtrdi 2849 . . . . . 6 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (((𝑆𝐶)‘𝐽) − 1) ∈ (0...((𝐼𝐶) − 1)))
3012simpld 494 . . . . . . . . . . 11 (𝐶 ∈ (𝑂𝐸) → (𝐼𝐶) ∈ (1...(𝑀 + 𝑁)))
3130elfzelzd 13186 . . . . . . . . . 10 (𝐶 ∈ (𝑂𝐸) → (𝐼𝐶) ∈ ℤ)
32 1zzd 12281 . . . . . . . . . 10 (𝐶 ∈ (𝑂𝐸) → 1 ∈ ℤ)
3331, 32zsubcld 12360 . . . . . . . . 9 (𝐶 ∈ (𝑂𝐸) → ((𝐼𝐶) − 1) ∈ ℤ)
34 nnaddcl 11926 . . . . . . . . . . . 12 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑀 + 𝑁) ∈ ℕ)
351, 2, 34mp2an 688 . . . . . . . . . . 11 (𝑀 + 𝑁) ∈ ℕ
3635nnzi 12274 . . . . . . . . . 10 (𝑀 + 𝑁) ∈ ℤ
3736a1i 11 . . . . . . . . 9 (𝐶 ∈ (𝑂𝐸) → (𝑀 + 𝑁) ∈ ℤ)
38 elfzle2 13189 . . . . . . . . . . 11 ((𝐼𝐶) ∈ (1...(𝑀 + 𝑁)) → (𝐼𝐶) ≤ (𝑀 + 𝑁))
3930, 38syl 17 . . . . . . . . . 10 (𝐶 ∈ (𝑂𝐸) → (𝐼𝐶) ≤ (𝑀 + 𝑁))
40 zlem1lt 12302 . . . . . . . . . . . 12 (((𝐼𝐶) ∈ ℤ ∧ (𝑀 + 𝑁) ∈ ℤ) → ((𝐼𝐶) ≤ (𝑀 + 𝑁) ↔ ((𝐼𝐶) − 1) < (𝑀 + 𝑁)))
4131, 37, 40syl2anc 583 . . . . . . . . . . 11 (𝐶 ∈ (𝑂𝐸) → ((𝐼𝐶) ≤ (𝑀 + 𝑁) ↔ ((𝐼𝐶) − 1) < (𝑀 + 𝑁)))
4233zred 12355 . . . . . . . . . . . 12 (𝐶 ∈ (𝑂𝐸) → ((𝐼𝐶) − 1) ∈ ℝ)
4337zred 12355 . . . . . . . . . . . 12 (𝐶 ∈ (𝑂𝐸) → (𝑀 + 𝑁) ∈ ℝ)
44 ltle 10994 . . . . . . . . . . . 12 ((((𝐼𝐶) − 1) ∈ ℝ ∧ (𝑀 + 𝑁) ∈ ℝ) → (((𝐼𝐶) − 1) < (𝑀 + 𝑁) → ((𝐼𝐶) − 1) ≤ (𝑀 + 𝑁)))
4542, 43, 44syl2anc 583 . . . . . . . . . . 11 (𝐶 ∈ (𝑂𝐸) → (((𝐼𝐶) − 1) < (𝑀 + 𝑁) → ((𝐼𝐶) − 1) ≤ (𝑀 + 𝑁)))
4641, 45sylbid 239 . . . . . . . . . 10 (𝐶 ∈ (𝑂𝐸) → ((𝐼𝐶) ≤ (𝑀 + 𝑁) → ((𝐼𝐶) − 1) ≤ (𝑀 + 𝑁)))
4739, 46mpd 15 . . . . . . . . 9 (𝐶 ∈ (𝑂𝐸) → ((𝐼𝐶) − 1) ≤ (𝑀 + 𝑁))
48 eluz2 12517 . . . . . . . . 9 ((𝑀 + 𝑁) ∈ (ℤ‘((𝐼𝐶) − 1)) ↔ (((𝐼𝐶) − 1) ∈ ℤ ∧ (𝑀 + 𝑁) ∈ ℤ ∧ ((𝐼𝐶) − 1) ≤ (𝑀 + 𝑁)))
4933, 37, 47, 48syl3anbrc 1341 . . . . . . . 8 (𝐶 ∈ (𝑂𝐸) → (𝑀 + 𝑁) ∈ (ℤ‘((𝐼𝐶) − 1)))
50 fzss2 13225 . . . . . . . 8 ((𝑀 + 𝑁) ∈ (ℤ‘((𝐼𝐶) − 1)) → (0...((𝐼𝐶) − 1)) ⊆ (0...(𝑀 + 𝑁)))
5149, 50syl 17 . . . . . . 7 (𝐶 ∈ (𝑂𝐸) → (0...((𝐼𝐶) − 1)) ⊆ (0...(𝑀 + 𝑁)))
5251sselda 3917 . . . . . 6 ((𝐶 ∈ (𝑂𝐸) ∧ (((𝑆𝐶)‘𝐽) − 1) ∈ (0...((𝐼𝐶) − 1))) → (((𝑆𝐶)‘𝐽) − 1) ∈ (0...(𝑀 + 𝑁)))
5329, 52syldan 590 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (((𝑆𝐶)‘𝐽) − 1) ∈ (0...(𝑀 + 𝑁)))
54 ballotth.r . . . . . 6 𝑅 = (𝑐 ∈ (𝑂𝐸) ↦ ((𝑆𝑐) “ 𝑐))
55 ballotlemg . . . . . 6 = (𝑢 ∈ Fin, 𝑣 ∈ Fin ↦ ((♯‘(𝑣𝑢)) − (♯‘(𝑣𝑢))))
561, 2, 3, 4, 5, 6, 7, 8, 9, 54, 55ballotlemfg 32392 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ (((𝑆𝐶)‘𝐽) − 1) ∈ (0...(𝑀 + 𝑁))) → ((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) = (𝐶 (1...(((𝑆𝐶)‘𝐽) − 1))))
5753, 56syldan 590 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) = (𝐶 (1...(((𝑆𝐶)‘𝐽) − 1))))
581, 2, 3, 4, 5, 6, 7, 8, 9, 54, 55ballotlemfrc 32393 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹‘(𝑅𝐶))‘𝐽) = (𝐶 (((𝑆𝐶)‘𝐽)...(𝐼𝐶))))
5957, 58oveq12d 7273 . . 3 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) + ((𝐹‘(𝑅𝐶))‘𝐽)) = ((𝐶 (1...(((𝑆𝐶)‘𝐽) − 1))) + (𝐶 (((𝑆𝐶)‘𝐽)...(𝐼𝐶)))))
60 fzsplit3 31017 . . . . . 6 (((𝑆𝐶)‘𝐽) ∈ (1...(𝐼𝐶)) → (1...(𝐼𝐶)) = ((1...(((𝑆𝐶)‘𝐽) − 1)) ∪ (((𝑆𝐶)‘𝐽)...(𝐼𝐶))))
6110, 60syl 17 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (1...(𝐼𝐶)) = ((1...(((𝑆𝐶)‘𝐽) − 1)) ∪ (((𝑆𝐶)‘𝐽)...(𝐼𝐶))))
6261oveq2d 7271 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝐶 (1...(𝐼𝐶))) = (𝐶 ((1...(((𝑆𝐶)‘𝐽) − 1)) ∪ (((𝑆𝐶)‘𝐽)...(𝐼𝐶)))))
63 fz1ssfz0 13281 . . . . . . . 8 (1...(𝑀 + 𝑁)) ⊆ (0...(𝑀 + 𝑁))
6463sseli 3913 . . . . . . 7 ((𝐼𝐶) ∈ (1...(𝑀 + 𝑁)) → (𝐼𝐶) ∈ (0...(𝑀 + 𝑁)))
651, 2, 3, 4, 5, 6, 7, 8, 9, 54, 55ballotlemfg 32392 . . . . . . 7 ((𝐶 ∈ (𝑂𝐸) ∧ (𝐼𝐶) ∈ (0...(𝑀 + 𝑁))) → ((𝐹𝐶)‘(𝐼𝐶)) = (𝐶 (1...(𝐼𝐶))))
6664, 65sylan2 592 . . . . . 6 ((𝐶 ∈ (𝑂𝐸) ∧ (𝐼𝐶) ∈ (1...(𝑀 + 𝑁))) → ((𝐹𝐶)‘(𝐼𝐶)) = (𝐶 (1...(𝐼𝐶))))
6714, 66syldan 590 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹𝐶)‘(𝐼𝐶)) = (𝐶 (1...(𝐼𝐶))))
6813simprd 495 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹𝐶)‘(𝐼𝐶)) = 0)
6967, 68eqtr3d 2780 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝐶 (1...(𝐼𝐶))) = 0)
70 fzfi 13620 . . . . . . 7 (1...(𝑀 + 𝑁)) ∈ Fin
71 eldifi 4057 . . . . . . . 8 (𝐶 ∈ (𝑂𝐸) → 𝐶𝑂)
721, 2, 3ballotlemelo 32354 . . . . . . . . 9 (𝐶𝑂 ↔ (𝐶 ⊆ (1...(𝑀 + 𝑁)) ∧ (♯‘𝐶) = 𝑀))
7372simplbi 497 . . . . . . . 8 (𝐶𝑂𝐶 ⊆ (1...(𝑀 + 𝑁)))
7471, 73syl 17 . . . . . . 7 (𝐶 ∈ (𝑂𝐸) → 𝐶 ⊆ (1...(𝑀 + 𝑁)))
75 ssfi 8918 . . . . . . 7 (((1...(𝑀 + 𝑁)) ∈ Fin ∧ 𝐶 ⊆ (1...(𝑀 + 𝑁))) → 𝐶 ∈ Fin)
7670, 74, 75sylancr 586 . . . . . 6 (𝐶 ∈ (𝑂𝐸) → 𝐶 ∈ Fin)
7776adantr 480 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → 𝐶 ∈ Fin)
78 fzfid 13621 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (1...(((𝑆𝐶)‘𝐽) − 1)) ∈ Fin)
79 fzfid 13621 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∈ Fin)
8023zred 12355 . . . . . 6 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶)‘𝐽) ∈ ℝ)
81 ltm1 11747 . . . . . 6 (((𝑆𝐶)‘𝐽) ∈ ℝ → (((𝑆𝐶)‘𝐽) − 1) < ((𝑆𝐶)‘𝐽))
82 fzdisj 13212 . . . . . 6 ((((𝑆𝐶)‘𝐽) − 1) < ((𝑆𝐶)‘𝐽) → ((1...(((𝑆𝐶)‘𝐽) − 1)) ∩ (((𝑆𝐶)‘𝐽)...(𝐼𝐶))) = ∅)
8380, 81, 823syl 18 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((1...(((𝑆𝐶)‘𝐽) − 1)) ∩ (((𝑆𝐶)‘𝐽)...(𝐼𝐶))) = ∅)
841, 2, 3, 4, 5, 6, 7, 8, 9, 54, 55, 77, 78, 79, 83ballotlemgun 32391 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝐶 ((1...(((𝑆𝐶)‘𝐽) − 1)) ∪ (((𝑆𝐶)‘𝐽)...(𝐼𝐶)))) = ((𝐶 (1...(((𝑆𝐶)‘𝐽) − 1))) + (𝐶 (((𝑆𝐶)‘𝐽)...(𝐼𝐶)))))
8562, 69, 843eqtr3rd 2787 . . 3 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐶 (1...(((𝑆𝐶)‘𝐽) − 1))) + (𝐶 (((𝑆𝐶)‘𝐽)...(𝐼𝐶)))) = 0)
8659, 85eqtrd 2778 . 2 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) + ((𝐹‘(𝑅𝐶))‘𝐽)) = 0)
8771adantr 480 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → 𝐶𝑂)
8823, 11zsubcld 12360 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (((𝑆𝐶)‘𝐽) − 1) ∈ ℤ)
891, 2, 3, 4, 5, 87, 88ballotlemfelz 32357 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) ∈ ℤ)
9089zcnd 12356 . . 3 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) ∈ ℂ)
911, 2, 3, 4, 5, 6, 7, 8, 9, 54ballotlemro 32389 . . . . . 6 (𝐶 ∈ (𝑂𝐸) → (𝑅𝐶) ∈ 𝑂)
9291adantr 480 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝑅𝐶) ∈ 𝑂)
9319elfzelzd 13186 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → 𝐽 ∈ ℤ)
941, 2, 3, 4, 5, 92, 93ballotlemfelz 32357 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹‘(𝑅𝐶))‘𝐽) ∈ ℤ)
9594zcnd 12356 . . 3 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹‘(𝑅𝐶))‘𝐽) ∈ ℂ)
96 addeq0 11328 . . 3 ((((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) ∈ ℂ ∧ ((𝐹‘(𝑅𝐶))‘𝐽) ∈ ℂ) → ((((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) + ((𝐹‘(𝑅𝐶))‘𝐽)) = 0 ↔ ((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) = -((𝐹‘(𝑅𝐶))‘𝐽)))
9790, 95, 96syl2anc 583 . 2 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) + ((𝐹‘(𝑅𝐶))‘𝐽)) = 0 ↔ ((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) = -((𝐹‘(𝑅𝐶))‘𝐽)))
9886, 97mpbid 231 1 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹𝐶)‘(((𝑆𝐶)‘𝐽) − 1)) = -((𝐹‘(𝑅𝐶))‘𝐽))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wral 3063  {crab 3067  cdif 3880  cun 3881  cin 3882  wss 3883  c0 4253  ifcif 4456  𝒫 cpw 4530   class class class wbr 5070  cmpt 5153  cima 5583  cfv 6418  (class class class)co 7255  cmpo 7257  Fincfn 8691  infcinf 9130  cc 10800  cr 10801  0cc0 10802  1c1 10803   + caddc 10805   < clt 10940  cle 10941  cmin 11135  -cneg 11136   / cdiv 11562  cn 11903  cz 12249  cuz 12511  ...cfz 13168  chash 13972
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-oadd 8271  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-sup 9131  df-inf 9132  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-2 11966  df-n0 12164  df-z 12250  df-uz 12512  df-rp 12660  df-fz 13169  df-hash 13973
This theorem is referenced by:  ballotlemfrcn0  32396
  Copyright terms: Public domain W3C validator