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

Theorem ballotlemfp1 32142
Description: If the 𝐽 th ballot is for A, (𝐹𝐶) goes up 1. If the 𝐽 th ballot is for B, (𝐹𝐶) goes down 1. (Contributed by Thierry Arnoux, 24-Nov-2016.)
Hypotheses
Ref Expression
ballotth.m 𝑀 ∈ ℕ
ballotth.n 𝑁 ∈ ℕ
ballotth.o 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
ballotth.p 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
ballotth.f 𝐹 = (𝑐𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
ballotlemfp1.c (𝜑𝐶𝑂)
ballotlemfp1.j (𝜑𝐽 ∈ ℕ)
Assertion
Ref Expression
ballotlemfp1 (𝜑 → ((¬ 𝐽𝐶 → ((𝐹𝐶)‘𝐽) = (((𝐹𝐶)‘(𝐽 − 1)) − 1)) ∧ (𝐽𝐶 → ((𝐹𝐶)‘𝐽) = (((𝐹𝐶)‘(𝐽 − 1)) + 1))))
Distinct variable groups:   𝑀,𝑐   𝑁,𝑐   𝑂,𝑐   𝑖,𝑀   𝑖,𝑁   𝑖,𝑂,𝑐   𝐹,𝑐,𝑖   𝐶,𝑖   𝑖,𝐽   𝜑,𝑖
Allowed substitution hints:   𝜑(𝑥,𝑐)   𝐶(𝑥,𝑐)   𝑃(𝑥,𝑖,𝑐)   𝐹(𝑥)   𝐽(𝑥,𝑐)   𝑀(𝑥)   𝑁(𝑥)   𝑂(𝑥)

Proof of Theorem ballotlemfp1
StepHypRef Expression
1 ballotth.m . . . . . 6 𝑀 ∈ ℕ
2 ballotth.n . . . . . 6 𝑁 ∈ ℕ
3 ballotth.o . . . . . 6 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
4 ballotth.p . . . . . 6 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
5 ballotth.f . . . . . 6 𝐹 = (𝑐𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
6 ballotlemfp1.c . . . . . 6 (𝜑𝐶𝑂)
7 ballotlemfp1.j . . . . . . 7 (𝜑𝐽 ∈ ℕ)
87nnzd 12264 . . . . . 6 (𝜑𝐽 ∈ ℤ)
91, 2, 3, 4, 5, 6, 8ballotlemfval 32140 . . . . 5 (𝜑 → ((𝐹𝐶)‘𝐽) = ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))))
109adantr 484 . . . 4 ((𝜑 ∧ ¬ 𝐽𝐶) → ((𝐹𝐶)‘𝐽) = ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))))
11 fzfi 13528 . . . . . . . . . 10 (1...(𝐽 − 1)) ∈ Fin
12 inss1 4133 . . . . . . . . . 10 ((1...(𝐽 − 1)) ∩ 𝐶) ⊆ (1...(𝐽 − 1))
13 ssfi 8840 . . . . . . . . . 10 (((1...(𝐽 − 1)) ∈ Fin ∧ ((1...(𝐽 − 1)) ∩ 𝐶) ⊆ (1...(𝐽 − 1))) → ((1...(𝐽 − 1)) ∩ 𝐶) ∈ Fin)
1411, 12, 13mp2an 692 . . . . . . . . 9 ((1...(𝐽 − 1)) ∩ 𝐶) ∈ Fin
15 hashcl 13906 . . . . . . . . 9 (((1...(𝐽 − 1)) ∩ 𝐶) ∈ Fin → (♯‘((1...(𝐽 − 1)) ∩ 𝐶)) ∈ ℕ0)
1614, 15ax-mp 5 . . . . . . . 8 (♯‘((1...(𝐽 − 1)) ∩ 𝐶)) ∈ ℕ0
1716nn0cni 12085 . . . . . . 7 (♯‘((1...(𝐽 − 1)) ∩ 𝐶)) ∈ ℂ
1817a1i 11 . . . . . 6 ((𝜑 ∧ ¬ 𝐽𝐶) → (♯‘((1...(𝐽 − 1)) ∩ 𝐶)) ∈ ℂ)
19 diffi 8895 . . . . . . . . . 10 ((1...(𝐽 − 1)) ∈ Fin → ((1...(𝐽 − 1)) ∖ 𝐶) ∈ Fin)
2011, 19ax-mp 5 . . . . . . . . 9 ((1...(𝐽 − 1)) ∖ 𝐶) ∈ Fin
21 hashcl 13906 . . . . . . . . 9 (((1...(𝐽 − 1)) ∖ 𝐶) ∈ Fin → (♯‘((1...(𝐽 − 1)) ∖ 𝐶)) ∈ ℕ0)
2220, 21ax-mp 5 . . . . . . . 8 (♯‘((1...(𝐽 − 1)) ∖ 𝐶)) ∈ ℕ0
2322nn0cni 12085 . . . . . . 7 (♯‘((1...(𝐽 − 1)) ∖ 𝐶)) ∈ ℂ
2423a1i 11 . . . . . 6 ((𝜑 ∧ ¬ 𝐽𝐶) → (♯‘((1...(𝐽 − 1)) ∖ 𝐶)) ∈ ℂ)
25 1cnd 10811 . . . . . 6 ((𝜑 ∧ ¬ 𝐽𝐶) → 1 ∈ ℂ)
2618, 24, 25subsub4d 11203 . . . . 5 ((𝜑 ∧ ¬ 𝐽𝐶) → (((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) − (♯‘((1...(𝐽 − 1)) ∖ 𝐶))) − 1) = ((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) − ((♯‘((1...(𝐽 − 1)) ∖ 𝐶)) + 1)))
27 1zzd 12191 . . . . . . . . 9 (𝜑 → 1 ∈ ℤ)
288, 27zsubcld 12270 . . . . . . . 8 (𝜑 → (𝐽 − 1) ∈ ℤ)
291, 2, 3, 4, 5, 6, 28ballotlemfval 32140 . . . . . . 7 (𝜑 → ((𝐹𝐶)‘(𝐽 − 1)) = ((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) − (♯‘((1...(𝐽 − 1)) ∖ 𝐶))))
3029adantr 484 . . . . . 6 ((𝜑 ∧ ¬ 𝐽𝐶) → ((𝐹𝐶)‘(𝐽 − 1)) = ((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) − (♯‘((1...(𝐽 − 1)) ∖ 𝐶))))
3130oveq1d 7217 . . . . 5 ((𝜑 ∧ ¬ 𝐽𝐶) → (((𝐹𝐶)‘(𝐽 − 1)) − 1) = (((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) − (♯‘((1...(𝐽 − 1)) ∖ 𝐶))) − 1))
32 elnnuz 12461 . . . . . . . . . . 11 (𝐽 ∈ ℕ ↔ 𝐽 ∈ (ℤ‘1))
337, 32sylib 221 . . . . . . . . . 10 (𝜑𝐽 ∈ (ℤ‘1))
34 fzspl 30803 . . . . . . . . . . . 12 (𝐽 ∈ (ℤ‘1) → (1...𝐽) = ((1...(𝐽 − 1)) ∪ {𝐽}))
3534ineq1d 4116 . . . . . . . . . . 11 (𝐽 ∈ (ℤ‘1) → ((1...𝐽) ∩ 𝐶) = (((1...(𝐽 − 1)) ∪ {𝐽}) ∩ 𝐶))
36 indir 4180 . . . . . . . . . . 11 (((1...(𝐽 − 1)) ∪ {𝐽}) ∩ 𝐶) = (((1...(𝐽 − 1)) ∩ 𝐶) ∪ ({𝐽} ∩ 𝐶))
3735, 36eqtrdi 2790 . . . . . . . . . 10 (𝐽 ∈ (ℤ‘1) → ((1...𝐽) ∩ 𝐶) = (((1...(𝐽 − 1)) ∩ 𝐶) ∪ ({𝐽} ∩ 𝐶)))
3833, 37syl 17 . . . . . . . . 9 (𝜑 → ((1...𝐽) ∩ 𝐶) = (((1...(𝐽 − 1)) ∩ 𝐶) ∪ ({𝐽} ∩ 𝐶)))
3938adantr 484 . . . . . . . 8 ((𝜑 ∧ ¬ 𝐽𝐶) → ((1...𝐽) ∩ 𝐶) = (((1...(𝐽 − 1)) ∩ 𝐶) ∪ ({𝐽} ∩ 𝐶)))
40 disjsn 4617 . . . . . . . . . . . 12 ((𝐶 ∩ {𝐽}) = ∅ ↔ ¬ 𝐽𝐶)
41 incom 4105 . . . . . . . . . . . . 13 (𝐶 ∩ {𝐽}) = ({𝐽} ∩ 𝐶)
4241eqeq1i 2739 . . . . . . . . . . . 12 ((𝐶 ∩ {𝐽}) = ∅ ↔ ({𝐽} ∩ 𝐶) = ∅)
4340, 42sylbb1 240 . . . . . . . . . . 11 𝐽𝐶 → ({𝐽} ∩ 𝐶) = ∅)
4443adantl 485 . . . . . . . . . 10 ((𝜑 ∧ ¬ 𝐽𝐶) → ({𝐽} ∩ 𝐶) = ∅)
4544uneq2d 4067 . . . . . . . . 9 ((𝜑 ∧ ¬ 𝐽𝐶) → (((1...(𝐽 − 1)) ∩ 𝐶) ∪ ({𝐽} ∩ 𝐶)) = (((1...(𝐽 − 1)) ∩ 𝐶) ∪ ∅))
46 un0 4295 . . . . . . . . 9 (((1...(𝐽 − 1)) ∩ 𝐶) ∪ ∅) = ((1...(𝐽 − 1)) ∩ 𝐶)
4745, 46eqtrdi 2790 . . . . . . . 8 ((𝜑 ∧ ¬ 𝐽𝐶) → (((1...(𝐽 − 1)) ∩ 𝐶) ∪ ({𝐽} ∩ 𝐶)) = ((1...(𝐽 − 1)) ∩ 𝐶))
4839, 47eqtrd 2774 . . . . . . 7 ((𝜑 ∧ ¬ 𝐽𝐶) → ((1...𝐽) ∩ 𝐶) = ((1...(𝐽 − 1)) ∩ 𝐶))
4948fveq2d 6710 . . . . . 6 ((𝜑 ∧ ¬ 𝐽𝐶) → (♯‘((1...𝐽) ∩ 𝐶)) = (♯‘((1...(𝐽 − 1)) ∩ 𝐶)))
5034difeq1d 4026 . . . . . . . . . . 11 (𝐽 ∈ (ℤ‘1) → ((1...𝐽) ∖ 𝐶) = (((1...(𝐽 − 1)) ∪ {𝐽}) ∖ 𝐶))
51 difundir 4185 . . . . . . . . . . 11 (((1...(𝐽 − 1)) ∪ {𝐽}) ∖ 𝐶) = (((1...(𝐽 − 1)) ∖ 𝐶) ∪ ({𝐽} ∖ 𝐶))
5250, 51eqtrdi 2790 . . . . . . . . . 10 (𝐽 ∈ (ℤ‘1) → ((1...𝐽) ∖ 𝐶) = (((1...(𝐽 − 1)) ∖ 𝐶) ∪ ({𝐽} ∖ 𝐶)))
5333, 52syl 17 . . . . . . . . 9 (𝜑 → ((1...𝐽) ∖ 𝐶) = (((1...(𝐽 − 1)) ∖ 𝐶) ∪ ({𝐽} ∖ 𝐶)))
54 disj3 4358 . . . . . . . . . . . 12 (({𝐽} ∩ 𝐶) = ∅ ↔ {𝐽} = ({𝐽} ∖ 𝐶))
5543, 54sylib 221 . . . . . . . . . . 11 𝐽𝐶 → {𝐽} = ({𝐽} ∖ 𝐶))
5655eqcomd 2740 . . . . . . . . . 10 𝐽𝐶 → ({𝐽} ∖ 𝐶) = {𝐽})
5756uneq2d 4067 . . . . . . . . 9 𝐽𝐶 → (((1...(𝐽 − 1)) ∖ 𝐶) ∪ ({𝐽} ∖ 𝐶)) = (((1...(𝐽 − 1)) ∖ 𝐶) ∪ {𝐽}))
5853, 57sylan9eq 2794 . . . . . . . 8 ((𝜑 ∧ ¬ 𝐽𝐶) → ((1...𝐽) ∖ 𝐶) = (((1...(𝐽 − 1)) ∖ 𝐶) ∪ {𝐽}))
5958fveq2d 6710 . . . . . . 7 ((𝜑 ∧ ¬ 𝐽𝐶) → (♯‘((1...𝐽) ∖ 𝐶)) = (♯‘(((1...(𝐽 − 1)) ∖ 𝐶) ∪ {𝐽})))
608adantr 484 . . . . . . . 8 ((𝜑 ∧ ¬ 𝐽𝐶) → 𝐽 ∈ ℤ)
61 uzid 12436 . . . . . . . . . . . 12 (𝐽 ∈ ℤ → 𝐽 ∈ (ℤ𝐽))
62 uznfz 13178 . . . . . . . . . . . 12 (𝐽 ∈ (ℤ𝐽) → ¬ 𝐽 ∈ (1...(𝐽 − 1)))
638, 61, 623syl 18 . . . . . . . . . . 11 (𝜑 → ¬ 𝐽 ∈ (1...(𝐽 − 1)))
6463adantr 484 . . . . . . . . . 10 ((𝜑 ∧ ¬ 𝐽𝐶) → ¬ 𝐽 ∈ (1...(𝐽 − 1)))
65 difss 4036 . . . . . . . . . . 11 ((1...(𝐽 − 1)) ∖ 𝐶) ⊆ (1...(𝐽 − 1))
6665sseli 3887 . . . . . . . . . 10 (𝐽 ∈ ((1...(𝐽 − 1)) ∖ 𝐶) → 𝐽 ∈ (1...(𝐽 − 1)))
6764, 66nsyl 142 . . . . . . . . 9 ((𝜑 ∧ ¬ 𝐽𝐶) → ¬ 𝐽 ∈ ((1...(𝐽 − 1)) ∖ 𝐶))
68 ssfi 8840 . . . . . . . . . 10 (((1...(𝐽 − 1)) ∈ Fin ∧ ((1...(𝐽 − 1)) ∖ 𝐶) ⊆ (1...(𝐽 − 1))) → ((1...(𝐽 − 1)) ∖ 𝐶) ∈ Fin)
6911, 65, 68mp2an 692 . . . . . . . . 9 ((1...(𝐽 − 1)) ∖ 𝐶) ∈ Fin
7067, 69jctil 523 . . . . . . . 8 ((𝜑 ∧ ¬ 𝐽𝐶) → (((1...(𝐽 − 1)) ∖ 𝐶) ∈ Fin ∧ ¬ 𝐽 ∈ ((1...(𝐽 − 1)) ∖ 𝐶)))
71 hashunsng 13942 . . . . . . . 8 (𝐽 ∈ ℤ → ((((1...(𝐽 − 1)) ∖ 𝐶) ∈ Fin ∧ ¬ 𝐽 ∈ ((1...(𝐽 − 1)) ∖ 𝐶)) → (♯‘(((1...(𝐽 − 1)) ∖ 𝐶) ∪ {𝐽})) = ((♯‘((1...(𝐽 − 1)) ∖ 𝐶)) + 1)))
7260, 70, 71sylc 65 . . . . . . 7 ((𝜑 ∧ ¬ 𝐽𝐶) → (♯‘(((1...(𝐽 − 1)) ∖ 𝐶) ∪ {𝐽})) = ((♯‘((1...(𝐽 − 1)) ∖ 𝐶)) + 1))
7359, 72eqtrd 2774 . . . . . 6 ((𝜑 ∧ ¬ 𝐽𝐶) → (♯‘((1...𝐽) ∖ 𝐶)) = ((♯‘((1...(𝐽 − 1)) ∖ 𝐶)) + 1))
7449, 73oveq12d 7220 . . . . 5 ((𝜑 ∧ ¬ 𝐽𝐶) → ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))) = ((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) − ((♯‘((1...(𝐽 − 1)) ∖ 𝐶)) + 1)))
7526, 31, 743eqtr4rd 2785 . . . 4 ((𝜑 ∧ ¬ 𝐽𝐶) → ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))) = (((𝐹𝐶)‘(𝐽 − 1)) − 1))
7610, 75eqtrd 2774 . . 3 ((𝜑 ∧ ¬ 𝐽𝐶) → ((𝐹𝐶)‘𝐽) = (((𝐹𝐶)‘(𝐽 − 1)) − 1))
7776ex 416 . 2 (𝜑 → (¬ 𝐽𝐶 → ((𝐹𝐶)‘𝐽) = (((𝐹𝐶)‘(𝐽 − 1)) − 1)))
789adantr 484 . . . 4 ((𝜑𝐽𝐶) → ((𝐹𝐶)‘𝐽) = ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))))
7917a1i 11 . . . . . 6 ((𝜑𝐽𝐶) → (♯‘((1...(𝐽 − 1)) ∩ 𝐶)) ∈ ℂ)
80 1cnd 10811 . . . . . 6 ((𝜑𝐽𝐶) → 1 ∈ ℂ)
8123a1i 11 . . . . . 6 ((𝜑𝐽𝐶) → (♯‘((1...(𝐽 − 1)) ∖ 𝐶)) ∈ ℂ)
8279, 80, 81addsubd 11193 . . . . 5 ((𝜑𝐽𝐶) → (((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) + 1) − (♯‘((1...(𝐽 − 1)) ∖ 𝐶))) = (((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) − (♯‘((1...(𝐽 − 1)) ∖ 𝐶))) + 1))
8338fveq2d 6710 . . . . . . . 8 (𝜑 → (♯‘((1...𝐽) ∩ 𝐶)) = (♯‘(((1...(𝐽 − 1)) ∩ 𝐶) ∪ ({𝐽} ∩ 𝐶))))
8483adantr 484 . . . . . . 7 ((𝜑𝐽𝐶) → (♯‘((1...𝐽) ∩ 𝐶)) = (♯‘(((1...(𝐽 − 1)) ∩ 𝐶) ∪ ({𝐽} ∩ 𝐶))))
85 snssi 4711 . . . . . . . . . . 11 (𝐽𝐶 → {𝐽} ⊆ 𝐶)
86 df-ss 3874 . . . . . . . . . . 11 ({𝐽} ⊆ 𝐶 ↔ ({𝐽} ∩ 𝐶) = {𝐽})
8785, 86sylib 221 . . . . . . . . . 10 (𝐽𝐶 → ({𝐽} ∩ 𝐶) = {𝐽})
8887uneq2d 4067 . . . . . . . . 9 (𝐽𝐶 → (((1...(𝐽 − 1)) ∩ 𝐶) ∪ ({𝐽} ∩ 𝐶)) = (((1...(𝐽 − 1)) ∩ 𝐶) ∪ {𝐽}))
8988fveq2d 6710 . . . . . . . 8 (𝐽𝐶 → (♯‘(((1...(𝐽 − 1)) ∩ 𝐶) ∪ ({𝐽} ∩ 𝐶))) = (♯‘(((1...(𝐽 − 1)) ∩ 𝐶) ∪ {𝐽})))
9089adantl 485 . . . . . . 7 ((𝜑𝐽𝐶) → (♯‘(((1...(𝐽 − 1)) ∩ 𝐶) ∪ ({𝐽} ∩ 𝐶))) = (♯‘(((1...(𝐽 − 1)) ∩ 𝐶) ∪ {𝐽})))
91 simpr 488 . . . . . . . 8 ((𝜑𝐽𝐶) → 𝐽𝐶)
928adantr 484 . . . . . . . . . . 11 ((𝜑𝐽𝐶) → 𝐽 ∈ ℤ)
9392, 61, 623syl 18 . . . . . . . . . 10 ((𝜑𝐽𝐶) → ¬ 𝐽 ∈ (1...(𝐽 − 1)))
9412sseli 3887 . . . . . . . . . 10 (𝐽 ∈ ((1...(𝐽 − 1)) ∩ 𝐶) → 𝐽 ∈ (1...(𝐽 − 1)))
9593, 94nsyl 142 . . . . . . . . 9 ((𝜑𝐽𝐶) → ¬ 𝐽 ∈ ((1...(𝐽 − 1)) ∩ 𝐶))
9695, 14jctil 523 . . . . . . . 8 ((𝜑𝐽𝐶) → (((1...(𝐽 − 1)) ∩ 𝐶) ∈ Fin ∧ ¬ 𝐽 ∈ ((1...(𝐽 − 1)) ∩ 𝐶)))
97 hashunsng 13942 . . . . . . . 8 (𝐽𝐶 → ((((1...(𝐽 − 1)) ∩ 𝐶) ∈ Fin ∧ ¬ 𝐽 ∈ ((1...(𝐽 − 1)) ∩ 𝐶)) → (♯‘(((1...(𝐽 − 1)) ∩ 𝐶) ∪ {𝐽})) = ((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) + 1)))
9891, 96, 97sylc 65 . . . . . . 7 ((𝜑𝐽𝐶) → (♯‘(((1...(𝐽 − 1)) ∩ 𝐶) ∪ {𝐽})) = ((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) + 1))
9984, 90, 983eqtrd 2778 . . . . . 6 ((𝜑𝐽𝐶) → (♯‘((1...𝐽) ∩ 𝐶)) = ((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) + 1))
10053fveq2d 6710 . . . . . . . 8 (𝜑 → (♯‘((1...𝐽) ∖ 𝐶)) = (♯‘(((1...(𝐽 − 1)) ∖ 𝐶) ∪ ({𝐽} ∖ 𝐶))))
101100adantr 484 . . . . . . 7 ((𝜑𝐽𝐶) → (♯‘((1...𝐽) ∖ 𝐶)) = (♯‘(((1...(𝐽 − 1)) ∖ 𝐶) ∪ ({𝐽} ∖ 𝐶))))
102 difin2 4196 . . . . . . . . . . . 12 ({𝐽} ⊆ 𝐶 → ({𝐽} ∖ 𝐶) = ((𝐶𝐶) ∩ {𝐽}))
103 difid 4275 . . . . . . . . . . . . . 14 (𝐶𝐶) = ∅
104103ineq1i 4113 . . . . . . . . . . . . 13 ((𝐶𝐶) ∩ {𝐽}) = (∅ ∩ {𝐽})
105 0in 4298 . . . . . . . . . . . . 13 (∅ ∩ {𝐽}) = ∅
106104, 105eqtri 2762 . . . . . . . . . . . 12 ((𝐶𝐶) ∩ {𝐽}) = ∅
107102, 106eqtrdi 2790 . . . . . . . . . . 11 ({𝐽} ⊆ 𝐶 → ({𝐽} ∖ 𝐶) = ∅)
10885, 107syl 17 . . . . . . . . . 10 (𝐽𝐶 → ({𝐽} ∖ 𝐶) = ∅)
109108uneq2d 4067 . . . . . . . . 9 (𝐽𝐶 → (((1...(𝐽 − 1)) ∖ 𝐶) ∪ ({𝐽} ∖ 𝐶)) = (((1...(𝐽 − 1)) ∖ 𝐶) ∪ ∅))
110109fveq2d 6710 . . . . . . . 8 (𝐽𝐶 → (♯‘(((1...(𝐽 − 1)) ∖ 𝐶) ∪ ({𝐽} ∖ 𝐶))) = (♯‘(((1...(𝐽 − 1)) ∖ 𝐶) ∪ ∅)))
111110adantl 485 . . . . . . 7 ((𝜑𝐽𝐶) → (♯‘(((1...(𝐽 − 1)) ∖ 𝐶) ∪ ({𝐽} ∖ 𝐶))) = (♯‘(((1...(𝐽 − 1)) ∖ 𝐶) ∪ ∅)))
112 un0 4295 . . . . . . . . 9 (((1...(𝐽 − 1)) ∖ 𝐶) ∪ ∅) = ((1...(𝐽 − 1)) ∖ 𝐶)
113112a1i 11 . . . . . . . 8 ((𝜑𝐽𝐶) → (((1...(𝐽 − 1)) ∖ 𝐶) ∪ ∅) = ((1...(𝐽 − 1)) ∖ 𝐶))
114113fveq2d 6710 . . . . . . 7 ((𝜑𝐽𝐶) → (♯‘(((1...(𝐽 − 1)) ∖ 𝐶) ∪ ∅)) = (♯‘((1...(𝐽 − 1)) ∖ 𝐶)))
115101, 111, 1143eqtrd 2778 . . . . . 6 ((𝜑𝐽𝐶) → (♯‘((1...𝐽) ∖ 𝐶)) = (♯‘((1...(𝐽 − 1)) ∖ 𝐶)))
11699, 115oveq12d 7220 . . . . 5 ((𝜑𝐽𝐶) → ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))) = (((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) + 1) − (♯‘((1...(𝐽 − 1)) ∖ 𝐶))))
11729adantr 484 . . . . . 6 ((𝜑𝐽𝐶) → ((𝐹𝐶)‘(𝐽 − 1)) = ((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) − (♯‘((1...(𝐽 − 1)) ∖ 𝐶))))
118117oveq1d 7217 . . . . 5 ((𝜑𝐽𝐶) → (((𝐹𝐶)‘(𝐽 − 1)) + 1) = (((♯‘((1...(𝐽 − 1)) ∩ 𝐶)) − (♯‘((1...(𝐽 − 1)) ∖ 𝐶))) + 1))
11982, 116, 1183eqtr4d 2784 . . . 4 ((𝜑𝐽𝐶) → ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))) = (((𝐹𝐶)‘(𝐽 − 1)) + 1))
12078, 119eqtrd 2774 . . 3 ((𝜑𝐽𝐶) → ((𝐹𝐶)‘𝐽) = (((𝐹𝐶)‘(𝐽 − 1)) + 1))
121120ex 416 . 2 (𝜑 → (𝐽𝐶 → ((𝐹𝐶)‘𝐽) = (((𝐹𝐶)‘(𝐽 − 1)) + 1)))
12277, 121jca 515 1 (𝜑 → ((¬ 𝐽𝐶 → ((𝐹𝐶)‘𝐽) = (((𝐹𝐶)‘(𝐽 − 1)) − 1)) ∧ (𝐽𝐶 → ((𝐹𝐶)‘𝐽) = (((𝐹𝐶)‘(𝐽 − 1)) + 1))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 399   = wceq 1543  wcel 2110  {crab 3058  cdif 3854  cun 3855  cin 3856  wss 3857  c0 4227  𝒫 cpw 4503  {csn 4531  cmpt 5124  cfv 6369  (class class class)co 7202  Fincfn 8615  cc 10710  1c1 10713   + caddc 10715  cmin 11045   / cdiv 11472  cn 11813  0cn0 12073  cz 12159  cuz 12421  ...cfz 13078  chash 13879
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2706  ax-rep 5168  ax-sep 5181  ax-nul 5188  ax-pow 5247  ax-pr 5311  ax-un 7512  ax-cnex 10768  ax-resscn 10769  ax-1cn 10770  ax-icn 10771  ax-addcl 10772  ax-addrcl 10773  ax-mulcl 10774  ax-mulrcl 10775  ax-mulcom 10776  ax-addass 10777  ax-mulass 10778  ax-distr 10779  ax-i2m1 10780  ax-1ne0 10781  ax-1rid 10782  ax-rnegex 10783  ax-rrecex 10784  ax-cnre 10785  ax-pre-lttri 10786  ax-pre-lttrn 10787  ax-pre-ltadd 10788  ax-pre-mulgt0 10789
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2537  df-eu 2566  df-clab 2713  df-cleq 2726  df-clel 2812  df-nfc 2882  df-ne 2936  df-nel 3040  df-ral 3059  df-rex 3060  df-reu 3061  df-rab 3063  df-v 3403  df-sbc 3688  df-csb 3803  df-dif 3860  df-un 3862  df-in 3864  df-ss 3874  df-pss 3876  df-nul 4228  df-if 4430  df-pw 4505  df-sn 4532  df-pr 4534  df-tp 4536  df-op 4538  df-uni 4810  df-int 4850  df-iun 4896  df-br 5044  df-opab 5106  df-mpt 5125  df-tr 5151  df-id 5444  df-eprel 5449  df-po 5457  df-so 5458  df-fr 5498  df-we 5500  df-xp 5546  df-rel 5547  df-cnv 5548  df-co 5549  df-dm 5550  df-rn 5551  df-res 5552  df-ima 5553  df-pred 6149  df-ord 6205  df-on 6206  df-lim 6207  df-suc 6208  df-iota 6327  df-fun 6371  df-fn 6372  df-f 6373  df-f1 6374  df-fo 6375  df-f1o 6376  df-fv 6377  df-riota 7159  df-ov 7205  df-oprab 7206  df-mpo 7207  df-om 7634  df-1st 7750  df-2nd 7751  df-wrecs 8036  df-recs 8097  df-rdg 8135  df-1o 8191  df-oadd 8195  df-er 8380  df-en 8616  df-dom 8617  df-sdom 8618  df-fin 8619  df-dju 9500  df-card 9538  df-pnf 10852  df-mnf 10853  df-xr 10854  df-ltxr 10855  df-le 10856  df-sub 11047  df-neg 11048  df-nn 11814  df-n0 12074  df-z 12160  df-uz 12422  df-fz 13079  df-hash 13880
This theorem is referenced by:  ballotlemfc0  32143  ballotlemfcc  32144  ballotlem4  32149  ballotlemi1  32153  ballotlemii  32154  ballotlemic  32157  ballotlem1c  32158
  Copyright terms: Public domain W3C validator