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

Theorem ballotlemfval 31747
Description: The value of F. (Contributed by Thierry Arnoux, 23-Nov-2016.)
Hypotheses
Ref Expression
ballotth.m 𝑀 ∈ ℕ
ballotth.n 𝑁 ∈ ℕ
ballotth.o 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
ballotth.p 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
ballotth.f 𝐹 = (𝑐𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
ballotlemfval.c (𝜑𝐶𝑂)
ballotlemfval.j (𝜑𝐽 ∈ ℤ)
Assertion
Ref Expression
ballotlemfval (𝜑 → ((𝐹𝐶)‘𝐽) = ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))))
Distinct variable groups:   𝑀,𝑐   𝑁,𝑐   𝑂,𝑐   𝑖,𝑀   𝑖,𝑁   𝑖,𝑂,𝑐   𝐹,𝑐,𝑖   𝐶,𝑖   𝑖,𝐽   𝜑,𝑖
Allowed substitution hints:   𝜑(𝑥,𝑐)   𝐶(𝑥,𝑐)   𝑃(𝑥,𝑖,𝑐)   𝐹(𝑥)   𝐽(𝑥,𝑐)   𝑀(𝑥)   𝑁(𝑥)   𝑂(𝑥)

Proof of Theorem ballotlemfval
Dummy variable 𝑏 is distinct from all other variables.
StepHypRef Expression
1 ballotlemfval.c . . 3 (𝜑𝐶𝑂)
2 simpl 485 . . . . . . . 8 ((𝑏 = 𝐶𝑖 ∈ ℤ) → 𝑏 = 𝐶)
32ineq2d 4189 . . . . . . 7 ((𝑏 = 𝐶𝑖 ∈ ℤ) → ((1...𝑖) ∩ 𝑏) = ((1...𝑖) ∩ 𝐶))
43fveq2d 6674 . . . . . 6 ((𝑏 = 𝐶𝑖 ∈ ℤ) → (♯‘((1...𝑖) ∩ 𝑏)) = (♯‘((1...𝑖) ∩ 𝐶)))
52difeq2d 4099 . . . . . . 7 ((𝑏 = 𝐶𝑖 ∈ ℤ) → ((1...𝑖) ∖ 𝑏) = ((1...𝑖) ∖ 𝐶))
65fveq2d 6674 . . . . . 6 ((𝑏 = 𝐶𝑖 ∈ ℤ) → (♯‘((1...𝑖) ∖ 𝑏)) = (♯‘((1...𝑖) ∖ 𝐶)))
74, 6oveq12d 7174 . . . . 5 ((𝑏 = 𝐶𝑖 ∈ ℤ) → ((♯‘((1...𝑖) ∩ 𝑏)) − (♯‘((1...𝑖) ∖ 𝑏))) = ((♯‘((1...𝑖) ∩ 𝐶)) − (♯‘((1...𝑖) ∖ 𝐶))))
87mpteq2dva 5161 . . . 4 (𝑏 = 𝐶 → (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑏)) − (♯‘((1...𝑖) ∖ 𝑏)))) = (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝐶)) − (♯‘((1...𝑖) ∖ 𝐶)))))
9 ballotth.f . . . . 5 𝐹 = (𝑐𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
10 ineq2 4183 . . . . . . . . 9 (𝑏 = 𝑐 → ((1...𝑖) ∩ 𝑏) = ((1...𝑖) ∩ 𝑐))
1110fveq2d 6674 . . . . . . . 8 (𝑏 = 𝑐 → (♯‘((1...𝑖) ∩ 𝑏)) = (♯‘((1...𝑖) ∩ 𝑐)))
12 difeq2 4093 . . . . . . . . 9 (𝑏 = 𝑐 → ((1...𝑖) ∖ 𝑏) = ((1...𝑖) ∖ 𝑐))
1312fveq2d 6674 . . . . . . . 8 (𝑏 = 𝑐 → (♯‘((1...𝑖) ∖ 𝑏)) = (♯‘((1...𝑖) ∖ 𝑐)))
1411, 13oveq12d 7174 . . . . . . 7 (𝑏 = 𝑐 → ((♯‘((1...𝑖) ∩ 𝑏)) − (♯‘((1...𝑖) ∖ 𝑏))) = ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐))))
1514mpteq2dv 5162 . . . . . 6 (𝑏 = 𝑐 → (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑏)) − (♯‘((1...𝑖) ∖ 𝑏)))) = (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
1615cbvmptv 5169 . . . . 5 (𝑏𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑏)) − (♯‘((1...𝑖) ∖ 𝑏))))) = (𝑐𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
179, 16eqtr4i 2847 . . . 4 𝐹 = (𝑏𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑏)) − (♯‘((1...𝑖) ∖ 𝑏)))))
18 zex 11991 . . . . 5 ℤ ∈ V
1918mptex 6986 . . . 4 (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝐶)) − (♯‘((1...𝑖) ∖ 𝐶)))) ∈ V
208, 17, 19fvmpt 6768 . . 3 (𝐶𝑂 → (𝐹𝐶) = (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝐶)) − (♯‘((1...𝑖) ∖ 𝐶)))))
211, 20syl 17 . 2 (𝜑 → (𝐹𝐶) = (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝐶)) − (♯‘((1...𝑖) ∖ 𝐶)))))
22 oveq2 7164 . . . . . 6 (𝑖 = 𝐽 → (1...𝑖) = (1...𝐽))
2322ineq1d 4188 . . . . 5 (𝑖 = 𝐽 → ((1...𝑖) ∩ 𝐶) = ((1...𝐽) ∩ 𝐶))
2423fveq2d 6674 . . . 4 (𝑖 = 𝐽 → (♯‘((1...𝑖) ∩ 𝐶)) = (♯‘((1...𝐽) ∩ 𝐶)))
2522difeq1d 4098 . . . . 5 (𝑖 = 𝐽 → ((1...𝑖) ∖ 𝐶) = ((1...𝐽) ∖ 𝐶))
2625fveq2d 6674 . . . 4 (𝑖 = 𝐽 → (♯‘((1...𝑖) ∖ 𝐶)) = (♯‘((1...𝐽) ∖ 𝐶)))
2724, 26oveq12d 7174 . . 3 (𝑖 = 𝐽 → ((♯‘((1...𝑖) ∩ 𝐶)) − (♯‘((1...𝑖) ∖ 𝐶))) = ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))))
2827adantl 484 . 2 ((𝜑𝑖 = 𝐽) → ((♯‘((1...𝑖) ∩ 𝐶)) − (♯‘((1...𝑖) ∖ 𝐶))) = ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))))
29 ballotlemfval.j . 2 (𝜑𝐽 ∈ ℤ)
30 ovexd 7191 . 2 (𝜑 → ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))) ∈ V)
3121, 28, 29, 30fvmptd 6775 1 (𝜑 → ((𝐹𝐶)‘𝐽) = ((♯‘((1...𝐽) ∩ 𝐶)) − (♯‘((1...𝐽) ∖ 𝐶))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1537  wcel 2114  {crab 3142  Vcvv 3494  cdif 3933  cin 3935  𝒫 cpw 4539  cmpt 5146  cfv 6355  (class class class)co 7156  1c1 10538   + caddc 10540  cmin 10870   / cdiv 11297  cn 11638  cz 11982  ...cfz 12893  chash 13691
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-rep 5190  ax-sep 5203  ax-nul 5210  ax-pr 5330  ax-cnex 10593  ax-resscn 10594
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-reu 3145  df-rab 3147  df-v 3496  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4839  df-iun 4921  df-br 5067  df-opab 5129  df-mpt 5147  df-id 5460  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-f1 6360  df-fo 6361  df-f1o 6362  df-fv 6363  df-ov 7159  df-neg 10873  df-z 11983
This theorem is referenced by:  ballotlemfelz  31748  ballotlemfp1  31749  ballotlemfmpn  31752  ballotlemfval0  31753  ballotlemfg  31783  ballotlemfrc  31784
  Copyright terms: Public domain W3C validator