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

Theorem ballotlemfrc 30919
Description: Express the value of (𝐹‘(𝑅𝐶)) in terms of the newly defined . (Contributed by Thierry Arnoux, 21-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
ballotlemfrc ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹‘(𝑅𝐶))‘𝐽) = (𝐶 (((𝑆𝐶)‘𝐽)...(𝐼𝐶))))
Distinct variable groups:   𝑀,𝑐   𝑁,𝑐   𝑂,𝑐   𝑖,𝑀   𝑖,𝑁   𝑖,𝑂   𝑘,𝑀   𝑘,𝑁   𝑘,𝑂   𝑖,𝑐,𝐹,𝑘   𝐶,𝑖,𝑘   𝑖,𝐸,𝑘   𝐶,𝑘   𝑘,𝐼,𝑐   𝐸,𝑐   𝑖,𝐼,𝑐   𝑘,𝐽   𝑆,𝑘,𝑖,𝑐   𝑅,𝑖   𝑣,𝑢,𝐶   𝑢,𝐼,𝑣   𝑢,𝐽,𝑣   𝑢,𝑅,𝑣   𝑢,𝑆,𝑣   𝑖,𝐽
Allowed substitution hints:   𝐶(𝑥,𝑐)   𝑃(𝑥,𝑣,𝑢,𝑖,𝑘,𝑐)   𝑅(𝑥,𝑘,𝑐)   𝑆(𝑥)   𝐸(𝑥,𝑣,𝑢)   (𝑥,𝑣,𝑢,𝑖,𝑘,𝑐)   𝐹(𝑥,𝑣,𝑢)   𝐼(𝑥)   𝐽(𝑥,𝑐)   𝑀(𝑥,𝑣,𝑢)   𝑁(𝑥,𝑣,𝑢)   𝑂(𝑥,𝑣,𝑢)

Proof of Theorem ballotlemfrc
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, 9ballotlemsf1o 30906 . . . . . . . 8 (𝐶 ∈ (𝑂𝐸) → ((𝑆𝐶):(1...(𝑀 + 𝑁))–1-1-onto→(1...(𝑀 + 𝑁)) ∧ (𝑆𝐶) = (𝑆𝐶)))
1110simpld 477 . . . . . . 7 (𝐶 ∈ (𝑂𝐸) → (𝑆𝐶):(1...(𝑀 + 𝑁))–1-1-onto→(1...(𝑀 + 𝑁)))
12 f1of1 6299 . . . . . . 7 ((𝑆𝐶):(1...(𝑀 + 𝑁))–1-1-onto→(1...(𝑀 + 𝑁)) → (𝑆𝐶):(1...(𝑀 + 𝑁))–1-1→(1...(𝑀 + 𝑁)))
1311, 12syl 17 . . . . . 6 (𝐶 ∈ (𝑂𝐸) → (𝑆𝐶):(1...(𝑀 + 𝑁))–1-1→(1...(𝑀 + 𝑁)))
1413adantr 472 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝑆𝐶):(1...(𝑀 + 𝑁))–1-1→(1...(𝑀 + 𝑁)))
151, 2, 3, 4, 5, 6, 7, 8ballotlemiex 30894 . . . . . . . . . . 11 (𝐶 ∈ (𝑂𝐸) → ((𝐼𝐶) ∈ (1...(𝑀 + 𝑁)) ∧ ((𝐹𝐶)‘(𝐼𝐶)) = 0))
1615simpld 477 . . . . . . . . . 10 (𝐶 ∈ (𝑂𝐸) → (𝐼𝐶) ∈ (1...(𝑀 + 𝑁)))
1716adantr 472 . . . . . . . . 9 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝐼𝐶) ∈ (1...(𝑀 + 𝑁)))
18 elfzuz3 12553 . . . . . . . . 9 ((𝐼𝐶) ∈ (1...(𝑀 + 𝑁)) → (𝑀 + 𝑁) ∈ (ℤ‘(𝐼𝐶)))
1917, 18syl 17 . . . . . . . 8 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝑀 + 𝑁) ∈ (ℤ‘(𝐼𝐶)))
20 elfzuz3 12553 . . . . . . . . 9 (𝐽 ∈ (1...(𝐼𝐶)) → (𝐼𝐶) ∈ (ℤ𝐽))
2120adantl 473 . . . . . . . 8 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝐼𝐶) ∈ (ℤ𝐽))
22 uztrn 11917 . . . . . . . 8 (((𝑀 + 𝑁) ∈ (ℤ‘(𝐼𝐶)) ∧ (𝐼𝐶) ∈ (ℤ𝐽)) → (𝑀 + 𝑁) ∈ (ℤ𝐽))
2319, 21, 22syl2anc 696 . . . . . . 7 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝑀 + 𝑁) ∈ (ℤ𝐽))
24 fzss2 12595 . . . . . . 7 ((𝑀 + 𝑁) ∈ (ℤ𝐽) → (1...𝐽) ⊆ (1...(𝑀 + 𝑁)))
2523, 24syl 17 . . . . . 6 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (1...𝐽) ⊆ (1...(𝑀 + 𝑁)))
26 ssinss1 3985 . . . . . 6 ((1...𝐽) ⊆ (1...(𝑀 + 𝑁)) → ((1...𝐽) ∩ (𝑅𝐶)) ⊆ (1...(𝑀 + 𝑁)))
2725, 26syl 17 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((1...𝐽) ∩ (𝑅𝐶)) ⊆ (1...(𝑀 + 𝑁)))
28 f1ores 6314 . . . . 5 (((𝑆𝐶):(1...(𝑀 + 𝑁))–1-1→(1...(𝑀 + 𝑁)) ∧ ((1...𝐽) ∩ (𝑅𝐶)) ⊆ (1...(𝑀 + 𝑁))) → ((𝑆𝐶) ↾ ((1...𝐽) ∩ (𝑅𝐶))):((1...𝐽) ∩ (𝑅𝐶))–1-1-onto→((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶))))
2914, 27, 28syl2anc 696 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶) ↾ ((1...𝐽) ∩ (𝑅𝐶))):((1...𝐽) ∩ (𝑅𝐶))–1-1-onto→((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶))))
30 ovex 6843 . . . . . 6 (1...𝐽) ∈ V
3130inex1 4952 . . . . 5 ((1...𝐽) ∩ (𝑅𝐶)) ∈ V
3231f1oen 8145 . . . 4 (((𝑆𝐶) ↾ ((1...𝐽) ∩ (𝑅𝐶))):((1...𝐽) ∩ (𝑅𝐶))–1-1-onto→((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶))) → ((1...𝐽) ∩ (𝑅𝐶)) ≈ ((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶))))
33 hasheni 13351 . . . 4 (((1...𝐽) ∩ (𝑅𝐶)) ≈ ((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶))) → (♯‘((1...𝐽) ∩ (𝑅𝐶))) = (♯‘((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶)))))
3429, 32, 333syl 18 . . 3 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (♯‘((1...𝐽) ∩ (𝑅𝐶))) = (♯‘((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶)))))
3525ssdifssd 3892 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((1...𝐽) ∖ (𝑅𝐶)) ⊆ (1...(𝑀 + 𝑁)))
36 f1ores 6314 . . . . 5 (((𝑆𝐶):(1...(𝑀 + 𝑁))–1-1→(1...(𝑀 + 𝑁)) ∧ ((1...𝐽) ∖ (𝑅𝐶)) ⊆ (1...(𝑀 + 𝑁))) → ((𝑆𝐶) ↾ ((1...𝐽) ∖ (𝑅𝐶))):((1...𝐽) ∖ (𝑅𝐶))–1-1-onto→((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))))
3714, 35, 36syl2anc 696 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶) ↾ ((1...𝐽) ∖ (𝑅𝐶))):((1...𝐽) ∖ (𝑅𝐶))–1-1-onto→((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))))
38 difexg 4961 . . . . . 6 ((1...𝐽) ∈ V → ((1...𝐽) ∖ (𝑅𝐶)) ∈ V)
3930, 38ax-mp 5 . . . . 5 ((1...𝐽) ∖ (𝑅𝐶)) ∈ V
4039f1oen 8145 . . . 4 (((𝑆𝐶) ↾ ((1...𝐽) ∖ (𝑅𝐶))):((1...𝐽) ∖ (𝑅𝐶))–1-1-onto→((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))) → ((1...𝐽) ∖ (𝑅𝐶)) ≈ ((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))))
41 hasheni 13351 . . . 4 (((1...𝐽) ∖ (𝑅𝐶)) ≈ ((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))) → (♯‘((1...𝐽) ∖ (𝑅𝐶))) = (♯‘((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶)))))
4237, 40, 413syl 18 . . 3 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (♯‘((1...𝐽) ∖ (𝑅𝐶))) = (♯‘((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶)))))
4334, 42oveq12d 6833 . 2 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((♯‘((1...𝐽) ∩ (𝑅𝐶))) − (♯‘((1...𝐽) ∖ (𝑅𝐶)))) = ((♯‘((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶)))) − (♯‘((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))))))
44 ballotth.r . . . . 5 𝑅 = (𝑐 ∈ (𝑂𝐸) ↦ ((𝑆𝑐) “ 𝑐))
451, 2, 3, 4, 5, 6, 7, 8, 9, 44ballotlemro 30915 . . . 4 (𝐶 ∈ (𝑂𝐸) → (𝑅𝐶) ∈ 𝑂)
4645adantr 472 . . 3 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝑅𝐶) ∈ 𝑂)
47 elfzelz 12556 . . . 4 (𝐽 ∈ (1...(𝐼𝐶)) → 𝐽 ∈ ℤ)
4847adantl 473 . . 3 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → 𝐽 ∈ ℤ)
491, 2, 3, 4, 5, 46, 48ballotlemfval 30882 . 2 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹‘(𝑅𝐶))‘𝐽) = ((♯‘((1...𝐽) ∩ (𝑅𝐶))) − (♯‘((1...𝐽) ∖ (𝑅𝐶)))))
50 fzfi 12986 . . . . 5 (1...(𝑀 + 𝑁)) ∈ Fin
51 eldifi 3876 . . . . . . 7 (𝐶 ∈ (𝑂𝐸) → 𝐶𝑂)
521, 2, 3ballotlemelo 30880 . . . . . . . 8 (𝐶𝑂 ↔ (𝐶 ⊆ (1...(𝑀 + 𝑁)) ∧ (♯‘𝐶) = 𝑀))
5352simplbi 478 . . . . . . 7 (𝐶𝑂𝐶 ⊆ (1...(𝑀 + 𝑁)))
5451, 53syl 17 . . . . . 6 (𝐶 ∈ (𝑂𝐸) → 𝐶 ⊆ (1...(𝑀 + 𝑁)))
5554adantr 472 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → 𝐶 ⊆ (1...(𝑀 + 𝑁)))
56 ssfi 8348 . . . . 5 (((1...(𝑀 + 𝑁)) ∈ Fin ∧ 𝐶 ⊆ (1...(𝑀 + 𝑁))) → 𝐶 ∈ Fin)
5750, 55, 56sylancr 698 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → 𝐶 ∈ Fin)
58 fzfid 12987 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∈ Fin)
59 ballotlemg . . . . 5 = (𝑢 ∈ Fin, 𝑣 ∈ Fin ↦ ((♯‘(𝑣𝑢)) − (♯‘(𝑣𝑢))))
601, 2, 3, 4, 5, 6, 7, 8, 9, 44, 59ballotlemgval 30916 . . . 4 ((𝐶 ∈ Fin ∧ (((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∈ Fin) → (𝐶 (((𝑆𝐶)‘𝐽)...(𝐼𝐶))) = ((♯‘((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∩ 𝐶)) − (♯‘((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∖ 𝐶))))
6157, 58, 60syl2anc 696 . . 3 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝐶 (((𝑆𝐶)‘𝐽)...(𝐼𝐶))) = ((♯‘((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∩ 𝐶)) − (♯‘((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∖ 𝐶))))
62 dff1o3 6306 . . . . . . . . 9 ((𝑆𝐶):(1...(𝑀 + 𝑁))–1-1-onto→(1...(𝑀 + 𝑁)) ↔ ((𝑆𝐶):(1...(𝑀 + 𝑁))–onto→(1...(𝑀 + 𝑁)) ∧ Fun (𝑆𝐶)))
6362simprbi 483 . . . . . . . 8 ((𝑆𝐶):(1...(𝑀 + 𝑁))–1-1-onto→(1...(𝑀 + 𝑁)) → Fun (𝑆𝐶))
64 imain 6136 . . . . . . . 8 (Fun (𝑆𝐶) → ((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶))) = (((𝑆𝐶) “ (1...𝐽)) ∩ ((𝑆𝐶) “ (𝑅𝐶))))
6511, 63, 643syl 18 . . . . . . 7 (𝐶 ∈ (𝑂𝐸) → ((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶))) = (((𝑆𝐶) “ (1...𝐽)) ∩ ((𝑆𝐶) “ (𝑅𝐶))))
6665adantr 472 . . . . . 6 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶))) = (((𝑆𝐶) “ (1...𝐽)) ∩ ((𝑆𝐶) “ (𝑅𝐶))))
671, 2, 3, 4, 5, 6, 7, 8, 9ballotlemsima 30908 . . . . . . 7 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶) “ (1...𝐽)) = (((𝑆𝐶)‘𝐽)...(𝐼𝐶)))
681, 2, 3, 4, 5, 6, 7, 8, 9, 44ballotlemscr 30911 . . . . . . . 8 (𝐶 ∈ (𝑂𝐸) → ((𝑆𝐶) “ (𝑅𝐶)) = 𝐶)
6968adantr 472 . . . . . . 7 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶) “ (𝑅𝐶)) = 𝐶)
7067, 69ineq12d 3959 . . . . . 6 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (((𝑆𝐶) “ (1...𝐽)) ∩ ((𝑆𝐶) “ (𝑅𝐶))) = ((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∩ 𝐶))
7166, 70eqtrd 2795 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶))) = ((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∩ 𝐶))
7271fveq2d 6358 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (♯‘((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶)))) = (♯‘((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∩ 𝐶)))
73 imadif 6135 . . . . . . . 8 (Fun (𝑆𝐶) → ((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))) = (((𝑆𝐶) “ (1...𝐽)) ∖ ((𝑆𝐶) “ (𝑅𝐶))))
7411, 63, 733syl 18 . . . . . . 7 (𝐶 ∈ (𝑂𝐸) → ((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))) = (((𝑆𝐶) “ (1...𝐽)) ∖ ((𝑆𝐶) “ (𝑅𝐶))))
7574adantr 472 . . . . . 6 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))) = (((𝑆𝐶) “ (1...𝐽)) ∖ ((𝑆𝐶) “ (𝑅𝐶))))
7667, 69difeq12d 3873 . . . . . 6 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (((𝑆𝐶) “ (1...𝐽)) ∖ ((𝑆𝐶) “ (𝑅𝐶))) = ((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∖ 𝐶))
7775, 76eqtrd 2795 . . . . 5 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))) = ((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∖ 𝐶))
7877fveq2d 6358 . . . 4 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (♯‘((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶)))) = (♯‘((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∖ 𝐶)))
7972, 78oveq12d 6833 . . 3 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((♯‘((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶)))) − (♯‘((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))))) = ((♯‘((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∩ 𝐶)) − (♯‘((((𝑆𝐶)‘𝐽)...(𝐼𝐶)) ∖ 𝐶))))
8061, 79eqtr4d 2798 . 2 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → (𝐶 (((𝑆𝐶)‘𝐽)...(𝐼𝐶))) = ((♯‘((𝑆𝐶) “ ((1...𝐽) ∩ (𝑅𝐶)))) − (♯‘((𝑆𝐶) “ ((1...𝐽) ∖ (𝑅𝐶))))))
8143, 49, 803eqtr4d 2805 1 ((𝐶 ∈ (𝑂𝐸) ∧ 𝐽 ∈ (1...(𝐼𝐶))) → ((𝐹‘(𝑅𝐶))‘𝐽) = (𝐶 (((𝑆𝐶)‘𝐽)...(𝐼𝐶))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383   = wceq 1632  wcel 2140  wral 3051  {crab 3055  Vcvv 3341  cdif 3713  cin 3715  wss 3716  ifcif 4231  𝒫 cpw 4303   class class class wbr 4805  cmpt 4882  ccnv 5266  cres 5269  cima 5270  Fun wfun 6044  1-1wf1 6047  ontowfo 6048  1-1-ontowf1o 6049  cfv 6050  (class class class)co 6815  cmpt2 6817  cen 8121  Fincfn 8124  infcinf 8515  cr 10148  0cc0 10149  1c1 10150   + caddc 10152   < clt 10287  cle 10288  cmin 10479   / cdiv 10897  cn 11233  cz 11590  cuz 11900  ...cfz 12540  chash 13332
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1871  ax-4 1886  ax-5 1989  ax-6 2055  ax-7 2091  ax-8 2142  ax-9 2149  ax-10 2169  ax-11 2184  ax-12 2197  ax-13 2392  ax-ext 2741  ax-rep 4924  ax-sep 4934  ax-nul 4942  ax-pow 4993  ax-pr 5056  ax-un 7116  ax-cnex 10205  ax-resscn 10206  ax-1cn 10207  ax-icn 10208  ax-addcl 10209  ax-addrcl 10210  ax-mulcl 10211  ax-mulrcl 10212  ax-mulcom 10213  ax-addass 10214  ax-mulass 10215  ax-distr 10216  ax-i2m1 10217  ax-1ne0 10218  ax-1rid 10219  ax-rnegex 10220  ax-rrecex 10221  ax-cnre 10222  ax-pre-lttri 10223  ax-pre-lttrn 10224  ax-pre-ltadd 10225  ax-pre-mulgt0 10226
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1635  df-ex 1854  df-nf 1859  df-sb 2048  df-eu 2612  df-mo 2613  df-clab 2748  df-cleq 2754  df-clel 2757  df-nfc 2892  df-ne 2934  df-nel 3037  df-ral 3056  df-rex 3057  df-reu 3058  df-rmo 3059  df-rab 3060  df-v 3343  df-sbc 3578  df-csb 3676  df-dif 3719  df-un 3721  df-in 3723  df-ss 3730  df-pss 3732  df-nul 4060  df-if 4232  df-pw 4305  df-sn 4323  df-pr 4325  df-tp 4327  df-op 4329  df-uni 4590  df-int 4629  df-iun 4675  df-br 4806  df-opab 4866  df-mpt 4883  df-tr 4906  df-id 5175  df-eprel 5180  df-po 5188  df-so 5189  df-fr 5226  df-we 5228  df-xp 5273  df-rel 5274  df-cnv 5275  df-co 5276  df-dm 5277  df-rn 5278  df-res 5279  df-ima 5280  df-pred 5842  df-ord 5888  df-on 5889  df-lim 5890  df-suc 5891  df-iota 6013  df-fun 6052  df-fn 6053  df-f 6054  df-f1 6055  df-fo 6056  df-f1o 6057  df-fv 6058  df-riota 6776  df-ov 6818  df-oprab 6819  df-mpt2 6820  df-om 7233  df-1st 7335  df-2nd 7336  df-wrecs 7578  df-recs 7639  df-rdg 7677  df-1o 7731  df-oadd 7735  df-er 7914  df-en 8125  df-dom 8126  df-sdom 8127  df-fin 8128  df-sup 8516  df-inf 8517  df-card 8976  df-cda 9203  df-pnf 10289  df-mnf 10290  df-xr 10291  df-ltxr 10292  df-le 10293  df-sub 10481  df-neg 10482  df-nn 11234  df-2 11292  df-n0 11506  df-z 11591  df-uz 11901  df-rp 12047  df-fz 12541  df-hash 13333
This theorem is referenced by:  ballotlemfrci  30920  ballotlemfrceq  30921
  Copyright terms: Public domain W3C validator