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

Theorem ballotlemelo 29876
Description: Elementhood in 𝑂. (Contributed by Thierry Arnoux, 17-Apr-2017.)
Hypotheses
Ref Expression
ballotth.m 𝑀 ∈ ℕ
ballotth.n 𝑁 ∈ ℕ
ballotth.o 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (#‘𝑐) = 𝑀}
Assertion
Ref Expression
ballotlemelo (𝐶𝑂 ↔ (𝐶 ⊆ (1...(𝑀 + 𝑁)) ∧ (#‘𝐶) = 𝑀))
Distinct variable groups:   𝑀,𝑐   𝑁,𝑐   𝑂,𝑐
Allowed substitution hint:   𝐶(𝑐)

Proof of Theorem ballotlemelo
Dummy variable 𝑑 is distinct from all other variables.
StepHypRef Expression
1 fveq2 6103 . . . 4 (𝑑 = 𝐶 → (#‘𝑑) = (#‘𝐶))
21eqeq1d 2612 . . 3 (𝑑 = 𝐶 → ((#‘𝑑) = 𝑀 ↔ (#‘𝐶) = 𝑀))
3 ballotth.o . . . 4 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (#‘𝑐) = 𝑀}
4 fveq2 6103 . . . . . 6 (𝑐 = 𝑑 → (#‘𝑐) = (#‘𝑑))
54eqeq1d 2612 . . . . 5 (𝑐 = 𝑑 → ((#‘𝑐) = 𝑀 ↔ (#‘𝑑) = 𝑀))
65cbvrabv 3172 . . . 4 {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (#‘𝑐) = 𝑀} = {𝑑 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (#‘𝑑) = 𝑀}
73, 6eqtri 2632 . . 3 𝑂 = {𝑑 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (#‘𝑑) = 𝑀}
82, 7elrab2 3333 . 2 (𝐶𝑂 ↔ (𝐶 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∧ (#‘𝐶) = 𝑀))
9 ovex 6577 . . . 4 (1...(𝑀 + 𝑁)) ∈ V
109elpw2 4755 . . 3 (𝐶 ∈ 𝒫 (1...(𝑀 + 𝑁)) ↔ 𝐶 ⊆ (1...(𝑀 + 𝑁)))
1110anbi1i 727 . 2 ((𝐶 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∧ (#‘𝐶) = 𝑀) ↔ (𝐶 ⊆ (1...(𝑀 + 𝑁)) ∧ (#‘𝐶) = 𝑀))
128, 11bitri 263 1 (𝐶𝑂 ↔ (𝐶 ⊆ (1...(𝑀 + 𝑁)) ∧ (#‘𝐶) = 𝑀))
Colors of variables: wff setvar class
Syntax hints:  wb 195  wa 383   = wceq 1475  wcel 1977  {crab 2900  wss 3540  𝒫 cpw 4108  cfv 5804  (class class class)co 6549  1c1 9816   + caddc 9818  cn 10897  ...cfz 12197  #chash 12979
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-rex 2902  df-rab 2905  df-v 3175  df-sbc 3403  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-pw 4110  df-sn 4126  df-pr 4128  df-op 4132  df-uni 4373  df-br 4584  df-iota 5768  df-fv 5812  df-ov 6552
This theorem is referenced by:  ballotlemscr  29907  ballotlemro  29911  ballotlemfg  29914  ballotlemfrc  29915  ballotlemfrceq  29917  ballotlemrinv0  29921
  Copyright terms: Public domain W3C validator