MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  elfz2 Structured version   Visualization version   GIF version

Theorem elfz2 12902
Description: Membership in a finite set of sequential integers. We use the fact that an operation's value is empty outside of its domain to show 𝑀 ∈ ℤ and 𝑁 ∈ ℤ. (Contributed by NM, 6-Sep-2005.) (Revised by Mario Carneiro, 28-Apr-2015.)
Assertion
Ref Expression
elfz2 (𝐾 ∈ (𝑀...𝑁) ↔ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ (𝑀𝐾𝐾𝑁)))

Proof of Theorem elfz2
StepHypRef Expression
1 anass 471 . 2 ((((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝐾 ∈ ℤ) ∧ (𝑀𝐾𝐾𝑁)) ↔ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝐾 ∈ ℤ ∧ (𝑀𝐾𝐾𝑁))))
2 df-3an 1085 . . 3 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ↔ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝐾 ∈ ℤ))
32anbi1i 625 . 2 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ (𝑀𝐾𝐾𝑁)) ↔ (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝐾 ∈ ℤ) ∧ (𝑀𝐾𝐾𝑁)))
4 elfz1 12900 . . . 4 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝐾 ∈ (𝑀...𝑁) ↔ (𝐾 ∈ ℤ ∧ 𝑀𝐾𝐾𝑁)))
5 3anass 1091 . . . . 5 ((𝐾 ∈ ℤ ∧ 𝑀𝐾𝐾𝑁) ↔ (𝐾 ∈ ℤ ∧ (𝑀𝐾𝐾𝑁)))
6 ibar 531 . . . . 5 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝐾 ∈ ℤ ∧ (𝑀𝐾𝐾𝑁)) ↔ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝐾 ∈ ℤ ∧ (𝑀𝐾𝐾𝑁)))))
75, 6syl5bb 285 . . . 4 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝐾 ∈ ℤ ∧ 𝑀𝐾𝐾𝑁) ↔ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝐾 ∈ ℤ ∧ (𝑀𝐾𝐾𝑁)))))
84, 7bitrd 281 . . 3 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝐾 ∈ (𝑀...𝑁) ↔ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝐾 ∈ ℤ ∧ (𝑀𝐾𝐾𝑁)))))
9 fzf 12899 . . . . . . 7 ...:(ℤ × ℤ)⟶𝒫 ℤ
109fdmi 6526 . . . . . 6 dom ... = (ℤ × ℤ)
1110ndmov 7334 . . . . 5 (¬ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀...𝑁) = ∅)
1211eleq2d 2900 . . . 4 (¬ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝐾 ∈ (𝑀...𝑁) ↔ 𝐾 ∈ ∅))
13 noel 4298 . . . . . 6 ¬ 𝐾 ∈ ∅
1413pm2.21i 119 . . . . 5 (𝐾 ∈ ∅ → (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ))
15 simpl 485 . . . . 5 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝐾 ∈ ℤ ∧ (𝑀𝐾𝐾𝑁))) → (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ))
1614, 15pm5.21ni 381 . . . 4 (¬ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝐾 ∈ ∅ ↔ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝐾 ∈ ℤ ∧ (𝑀𝐾𝐾𝑁)))))
1712, 16bitrd 281 . . 3 (¬ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝐾 ∈ (𝑀...𝑁) ↔ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝐾 ∈ ℤ ∧ (𝑀𝐾𝐾𝑁)))))
188, 17pm2.61i 184 . 2 (𝐾 ∈ (𝑀...𝑁) ↔ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝐾 ∈ ℤ ∧ (𝑀𝐾𝐾𝑁))))
191, 3, 183bitr4ri 306 1 (𝐾 ∈ (𝑀...𝑁) ↔ ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ (𝑀𝐾𝐾𝑁)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 208  wa 398  w3a 1083  wcel 2114  c0 4293  𝒫 cpw 4541   class class class wbr 5068   × cxp 5555  (class class class)co 7158  cle 10678  cz 11984  ...cfz 12895
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 2795  ax-sep 5205  ax-nul 5212  ax-pow 5268  ax-pr 5332  ax-un 7463  ax-cnex 10595  ax-resscn 10596
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 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ne 3019  df-ral 3145  df-rex 3146  df-rab 3149  df-v 3498  df-sbc 3775  df-csb 3886  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-nul 4294  df-if 4470  df-pw 4543  df-sn 4570  df-pr 4572  df-op 4576  df-uni 4841  df-iun 4923  df-br 5069  df-opab 5131  df-mpt 5149  df-id 5462  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-dm 5567  df-rn 5568  df-res 5569  df-ima 5570  df-iota 6316  df-fun 6359  df-fn 6360  df-f 6361  df-fv 6365  df-ov 7161  df-oprab 7162  df-mpo 7163  df-1st 7691  df-2nd 7692  df-neg 10875  df-z 11985  df-fz 12896
This theorem is referenced by:  elfz4  12904  elfzuzb  12905  0nelfz1  12929  uzsubsubfz  12932  fzmmmeqm  12943  ssfzunsnext  12955  fzpreddisj  12959  elfz1b  12979  fzp1nel  12994  elfz0ubfz0  13014  elfz0fzfz0  13015  fz0fzelfz0  13016  fz0fzdiffz0  13019  elfzmlbp  13021  preduz  13032  fzoun  13077  fzind2  13158  swrdswrdlem  14068  swrdswrd  14069  pfxccatin12lem2a  14091  pfxccatin12lem1  14092  swrdccatin2  14093  pfxccatin12lem2  14095  pfxccat3  14098  2cshwcshw  14189  cshwcsh2id  14192  fprodntriv  15298  fprodeq0  15331  prmgaplem4  16392  chfacfscmulgsum  21470  chfacfpmmulgsum  21474  gausslemma2dlem3  25946  2lgslem1a1  25967  crctcshwlkn0lem3  27592  wwlksnextproplem2  27691  wrdt2ind  30629  monoords  41571  uzfissfz  41601  iuneqfzuzlem  41609  ssuzfz  41624  elfzd  41690  fmul01lt1lem1  41872  fmul01lt1lem2  41873  mccllem  41885  sumnnodd  41918  dvnmul  42235  dvnprodlem1  42238  dvnprodlem2  42239  itgspltprt  42271  stoweidlem3  42295  stoweidlem34  42326  stoweidlem51  42343  fourierdlem12  42411  fourierdlem14  42413  fourierdlem41  42440  fourierdlem48  42446  fourierdlem49  42447  fourierdlem50  42448  fourierdlem79  42477  fourierdlem92  42490  fourierdlem93  42491  elaa2lem  42525  etransclem3  42529  etransclem7  42533  etransclem10  42536  etransclem24  42550  etransclem27  42553  etransclem28  42554  etransclem35  42561  etransclem38  42564  etransclem44  42570  iundjiun  42749  caratheodorylem1  42815  elfzelfzlble  43528  iccpartiltu  43589  31prm  43767  nnsum4primeseven  43972  nnsum4primesevenALTV  43973
  Copyright terms: Public domain W3C validator