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

Theorem ballotlemodife 30884
Description: Elements of (𝑂𝐸). (Contributed by Thierry Arnoux, 7-Dec-2016.)
Hypotheses
Ref Expression
ballotth.m 𝑀 ∈ ℕ
ballotth.n 𝑁 ∈ ℕ
ballotth.o 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
ballotth.p 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
ballotth.f 𝐹 = (𝑐𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
ballotth.e 𝐸 = {𝑐𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝑐)‘𝑖)}
Assertion
Ref Expression
ballotlemodife (𝐶 ∈ (𝑂𝐸) ↔ (𝐶𝑂 ∧ ∃𝑖 ∈ (1...(𝑀 + 𝑁))((𝐹𝐶)‘𝑖) ≤ 0))
Distinct variable groups:   𝑀,𝑐   𝑁,𝑐   𝑂,𝑐   𝑖,𝑀   𝑖,𝑁   𝑖,𝑂,𝑐   𝐹,𝑐,𝑖   𝐶,𝑖
Allowed substitution hints:   𝐶(𝑥,𝑐)   𝑃(𝑥,𝑖,𝑐)   𝐸(𝑥,𝑖,𝑐)   𝐹(𝑥)   𝑀(𝑥)   𝑁(𝑥)   𝑂(𝑥)

Proof of Theorem ballotlemodife
Dummy variable 𝑗 is distinct from all other variables.
StepHypRef Expression
1 eldif 3779 . 2 (𝐶 ∈ (𝑂𝐸) ↔ (𝐶𝑂 ∧ ¬ 𝐶𝐸))
2 df-or 866 . . . 4 (((𝐶𝑂 ∧ ¬ 𝐶𝑂) ∨ (𝐶𝑂 ∧ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖))) ↔ (¬ (𝐶𝑂 ∧ ¬ 𝐶𝑂) → (𝐶𝑂 ∧ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖))))
3 pm3.24 391 . . . . 5 ¬ (𝐶𝑂 ∧ ¬ 𝐶𝑂)
43a1bi 353 . . . 4 ((𝐶𝑂 ∧ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖)) ↔ (¬ (𝐶𝑂 ∧ ¬ 𝐶𝑂) → (𝐶𝑂 ∧ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖))))
52, 4bitr4i 269 . . 3 (((𝐶𝑂 ∧ ¬ 𝐶𝑂) ∨ (𝐶𝑂 ∧ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖))) ↔ (𝐶𝑂 ∧ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖)))
6 ballotth.m . . . . . . 7 𝑀 ∈ ℕ
7 ballotth.n . . . . . . 7 𝑁 ∈ ℕ
8 ballotth.o . . . . . . 7 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
9 ballotth.p . . . . . . 7 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
10 ballotth.f . . . . . . 7 𝐹 = (𝑐𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
11 ballotth.e . . . . . . 7 𝐸 = {𝑐𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝑐)‘𝑖)}
126, 7, 8, 9, 10, 11ballotleme 30883 . . . . . 6 (𝐶𝐸 ↔ (𝐶𝑂 ∧ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖)))
1312notbii 311 . . . . 5 𝐶𝐸 ↔ ¬ (𝐶𝑂 ∧ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖)))
1413anbi2i 611 . . . 4 ((𝐶𝑂 ∧ ¬ 𝐶𝐸) ↔ (𝐶𝑂 ∧ ¬ (𝐶𝑂 ∧ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖))))
15 ianor 995 . . . . 5 (¬ (𝐶𝑂 ∧ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖)) ↔ (¬ 𝐶𝑂 ∨ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖)))
1615anbi2i 611 . . . 4 ((𝐶𝑂 ∧ ¬ (𝐶𝑂 ∧ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖))) ↔ (𝐶𝑂 ∧ (¬ 𝐶𝑂 ∨ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖))))
17 andi 1021 . . . 4 ((𝐶𝑂 ∧ (¬ 𝐶𝑂 ∨ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖))) ↔ ((𝐶𝑂 ∧ ¬ 𝐶𝑂) ∨ (𝐶𝑂 ∧ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖))))
1814, 16, 173bitri 288 . . 3 ((𝐶𝑂 ∧ ¬ 𝐶𝐸) ↔ ((𝐶𝑂 ∧ ¬ 𝐶𝑂) ∨ (𝐶𝑂 ∧ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖))))
19 fz1ssfz0 12659 . . . . . . . . . . 11 (1...(𝑀 + 𝑁)) ⊆ (0...(𝑀 + 𝑁))
2019a1i 11 . . . . . . . . . 10 (𝐶𝑂 → (1...(𝑀 + 𝑁)) ⊆ (0...(𝑀 + 𝑁)))
2120sseld 3797 . . . . . . . . 9 (𝐶𝑂 → (𝑖 ∈ (1...(𝑀 + 𝑁)) → 𝑖 ∈ (0...(𝑀 + 𝑁))))
2221imdistani 560 . . . . . . . 8 ((𝐶𝑂𝑖 ∈ (1...(𝑀 + 𝑁))) → (𝐶𝑂𝑖 ∈ (0...(𝑀 + 𝑁))))
23 simpl 470 . . . . . . . . . . . 12 ((𝐶𝑂𝑗 ∈ (0...(𝑀 + 𝑁))) → 𝐶𝑂)
24 elfzelz 12565 . . . . . . . . . . . . 13 (𝑗 ∈ (0...(𝑀 + 𝑁)) → 𝑗 ∈ ℤ)
2524adantl 469 . . . . . . . . . . . 12 ((𝐶𝑂𝑗 ∈ (0...(𝑀 + 𝑁))) → 𝑗 ∈ ℤ)
266, 7, 8, 9, 10, 23, 25ballotlemfelz 30877 . . . . . . . . . . 11 ((𝐶𝑂𝑗 ∈ (0...(𝑀 + 𝑁))) → ((𝐹𝐶)‘𝑗) ∈ ℤ)
2726zred 11748 . . . . . . . . . 10 ((𝐶𝑂𝑗 ∈ (0...(𝑀 + 𝑁))) → ((𝐹𝐶)‘𝑗) ∈ ℝ)
2827sbimi 2066 . . . . . . . . 9 ([𝑖 / 𝑗](𝐶𝑂𝑗 ∈ (0...(𝑀 + 𝑁))) → [𝑖 / 𝑗]((𝐹𝐶)‘𝑗) ∈ ℝ)
29 sban 2558 . . . . . . . . . 10 ([𝑖 / 𝑗](𝐶𝑂𝑗 ∈ (0...(𝑀 + 𝑁))) ↔ ([𝑖 / 𝑗]𝐶𝑂 ∧ [𝑖 / 𝑗]𝑗 ∈ (0...(𝑀 + 𝑁))))
30 nfv 2005 . . . . . . . . . . . 12 𝑗 𝐶𝑂
3130sbf 2539 . . . . . . . . . . 11 ([𝑖 / 𝑗]𝐶𝑂𝐶𝑂)
32 clelsb3 2913 . . . . . . . . . . 11 ([𝑖 / 𝑗]𝑗 ∈ (0...(𝑀 + 𝑁)) ↔ 𝑖 ∈ (0...(𝑀 + 𝑁)))
3331, 32anbi12i 614 . . . . . . . . . 10 (([𝑖 / 𝑗]𝐶𝑂 ∧ [𝑖 / 𝑗]𝑗 ∈ (0...(𝑀 + 𝑁))) ↔ (𝐶𝑂𝑖 ∈ (0...(𝑀 + 𝑁))))
3429, 33bitri 266 . . . . . . . . 9 ([𝑖 / 𝑗](𝐶𝑂𝑗 ∈ (0...(𝑀 + 𝑁))) ↔ (𝐶𝑂𝑖 ∈ (0...(𝑀 + 𝑁))))
35 nfv 2005 . . . . . . . . . 10 𝑗((𝐹𝐶)‘𝑖) ∈ ℝ
36 fveq2 6408 . . . . . . . . . . 11 (𝑗 = 𝑖 → ((𝐹𝐶)‘𝑗) = ((𝐹𝐶)‘𝑖))
3736eleq1d 2870 . . . . . . . . . 10 (𝑗 = 𝑖 → (((𝐹𝐶)‘𝑗) ∈ ℝ ↔ ((𝐹𝐶)‘𝑖) ∈ ℝ))
3835, 37sbie 2567 . . . . . . . . 9 ([𝑖 / 𝑗]((𝐹𝐶)‘𝑗) ∈ ℝ ↔ ((𝐹𝐶)‘𝑖) ∈ ℝ)
3928, 34, 383imtr3i 282 . . . . . . . 8 ((𝐶𝑂𝑖 ∈ (0...(𝑀 + 𝑁))) → ((𝐹𝐶)‘𝑖) ∈ ℝ)
4022, 39syl 17 . . . . . . 7 ((𝐶𝑂𝑖 ∈ (1...(𝑀 + 𝑁))) → ((𝐹𝐶)‘𝑖) ∈ ℝ)
41 0red 10328 . . . . . . 7 ((𝐶𝑂𝑖 ∈ (1...(𝑀 + 𝑁))) → 0 ∈ ℝ)
4240, 41lenltd 10468 . . . . . 6 ((𝐶𝑂𝑖 ∈ (1...(𝑀 + 𝑁))) → (((𝐹𝐶)‘𝑖) ≤ 0 ↔ ¬ 0 < ((𝐹𝐶)‘𝑖)))
4342rexbidva 3237 . . . . 5 (𝐶𝑂 → (∃𝑖 ∈ (1...(𝑀 + 𝑁))((𝐹𝐶)‘𝑖) ≤ 0 ↔ ∃𝑖 ∈ (1...(𝑀 + 𝑁)) ¬ 0 < ((𝐹𝐶)‘𝑖)))
44 rexnal 3182 . . . . 5 (∃𝑖 ∈ (1...(𝑀 + 𝑁)) ¬ 0 < ((𝐹𝐶)‘𝑖) ↔ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖))
4543, 44syl6bb 278 . . . 4 (𝐶𝑂 → (∃𝑖 ∈ (1...(𝑀 + 𝑁))((𝐹𝐶)‘𝑖) ≤ 0 ↔ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖)))
4645pm5.32i 566 . . 3 ((𝐶𝑂 ∧ ∃𝑖 ∈ (1...(𝑀 + 𝑁))((𝐹𝐶)‘𝑖) ≤ 0) ↔ (𝐶𝑂 ∧ ¬ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝐶)‘𝑖)))
475, 18, 463bitr4i 294 . 2 ((𝐶𝑂 ∧ ¬ 𝐶𝐸) ↔ (𝐶𝑂 ∧ ∃𝑖 ∈ (1...(𝑀 + 𝑁))((𝐹𝐶)‘𝑖) ≤ 0))
481, 47bitri 266 1 (𝐶 ∈ (𝑂𝐸) ↔ (𝐶𝑂 ∧ ∃𝑖 ∈ (1...(𝑀 + 𝑁))((𝐹𝐶)‘𝑖) ≤ 0))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 197  wa 384  wo 865   = wceq 1637  [wsb 2060  wcel 2156  wral 3096  wrex 3097  {crab 3100  cdif 3766  cin 3768  wss 3769  𝒫 cpw 4351   class class class wbr 4844  cmpt 4923  cfv 6101  (class class class)co 6874  cr 10220  0cc0 10221  1c1 10222   + caddc 10224   < clt 10359  cle 10360  cmin 10551   / cdiv 10969  cn 11305  cz 11643  ...cfz 12549  chash 13337
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1877  ax-4 1894  ax-5 2001  ax-6 2068  ax-7 2104  ax-8 2158  ax-9 2165  ax-10 2185  ax-11 2201  ax-12 2214  ax-13 2420  ax-ext 2784  ax-rep 4964  ax-sep 4975  ax-nul 4983  ax-pow 5035  ax-pr 5096  ax-un 7179  ax-cnex 10277  ax-resscn 10278  ax-1cn 10279  ax-icn 10280  ax-addcl 10281  ax-addrcl 10282  ax-mulcl 10283  ax-mulrcl 10284  ax-mulcom 10285  ax-addass 10286  ax-mulass 10287  ax-distr 10288  ax-i2m1 10289  ax-1ne0 10290  ax-1rid 10291  ax-rnegex 10292  ax-rrecex 10293  ax-cnre 10294  ax-pre-lttri 10295  ax-pre-lttrn 10296  ax-pre-ltadd 10297  ax-pre-mulgt0 10298
This theorem depends on definitions:  df-bi 198  df-an 385  df-or 866  df-3or 1101  df-3an 1102  df-tru 1641  df-ex 1860  df-nf 1864  df-sb 2061  df-eu 2634  df-mo 2635  df-clab 2793  df-cleq 2799  df-clel 2802  df-nfc 2937  df-ne 2979  df-nel 3082  df-ral 3101  df-rex 3102  df-reu 3103  df-rab 3105  df-v 3393  df-sbc 3634  df-csb 3729  df-dif 3772  df-un 3774  df-in 3776  df-ss 3783  df-pss 3785  df-nul 4117  df-if 4280  df-pw 4353  df-sn 4371  df-pr 4373  df-tp 4375  df-op 4377  df-uni 4631  df-int 4670  df-iun 4714  df-br 4845  df-opab 4907  df-mpt 4924  df-tr 4947  df-id 5219  df-eprel 5224  df-po 5232  df-so 5233  df-fr 5270  df-we 5272  df-xp 5317  df-rel 5318  df-cnv 5319  df-co 5320  df-dm 5321  df-rn 5322  df-res 5323  df-ima 5324  df-pred 5893  df-ord 5939  df-on 5940  df-lim 5941  df-suc 5942  df-iota 6064  df-fun 6103  df-fn 6104  df-f 6105  df-f1 6106  df-fo 6107  df-f1o 6108  df-fv 6109  df-riota 6835  df-ov 6877  df-oprab 6878  df-mpt2 6879  df-om 7296  df-1st 7398  df-2nd 7399  df-wrecs 7642  df-recs 7704  df-rdg 7742  df-1o 7796  df-er 7979  df-en 8193  df-dom 8194  df-sdom 8195  df-fin 8196  df-card 9048  df-pnf 10361  df-mnf 10362  df-xr 10363  df-ltxr 10364  df-le 10365  df-sub 10553  df-neg 10554  df-nn 11306  df-n0 11560  df-z 11644  df-uz 11905  df-fz 12550  df-hash 13338
This theorem is referenced by:  ballotlem5  30886  ballotlemrc  30917
  Copyright terms: Public domain W3C validator