Users' Mathboxes Mathbox for Glauco Siliprandi < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  allbutfi Structured version   Visualization version   GIF version

Theorem allbutfi 41672
Description: For all but finitely many. Some authors say "cofinitely many". Some authors say "ultimately". Compare with eliuniin 41372 and eliuniin2 41393 (here, the precondition can be dropped; see eliuniincex 41382). (Contributed by Glauco Siliprandi, 26-Jun-2021.)
Hypotheses
Ref Expression
allbutfi.z 𝑍 = (ℤ𝑀)
allbutfi.a 𝐴 = 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵
Assertion
Ref Expression
allbutfi (𝑋𝐴 ↔ ∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵)
Distinct variable group:   𝑚,𝑋,𝑛
Allowed substitution hints:   𝐴(𝑚,𝑛)   𝐵(𝑚,𝑛)   𝑀(𝑚,𝑛)   𝑍(𝑚,𝑛)

Proof of Theorem allbutfi
StepHypRef Expression
1 allbutfi.a . . . . . 6 𝐴 = 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵
21eleq2i 2906 . . . . 5 (𝑋𝐴𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵)
32biimpi 218 . . . 4 (𝑋𝐴𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵)
4 eliun 4925 . . . 4 (𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
53, 4sylib 220 . . 3 (𝑋𝐴 → ∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
6 nfcv 2979 . . . . 5 𝑛𝑋
7 nfiu1 4955 . . . . . 6 𝑛 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵
81, 7nfcxfr 2977 . . . . 5 𝑛𝐴
96, 8nfel 2994 . . . 4 𝑛 𝑋𝐴
10 eliin 4926 . . . . . 6 (𝑋𝐴 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
1110biimpd 231 . . . . 5 (𝑋𝐴 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 → ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
1211a1d 25 . . . 4 (𝑋𝐴 → (𝑛𝑍 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 → ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵)))
139, 12reximdai 3313 . . 3 (𝑋𝐴 → (∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵 → ∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵))
145, 13mpd 15 . 2 (𝑋𝐴 → ∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵)
15 simpr 487 . . . . . . 7 ((𝑛𝑍 ∧ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵) → ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵)
16 allbutfi.z . . . . . . . . . . . . 13 𝑍 = (ℤ𝑀)
1716eleq2i 2906 . . . . . . . . . . . 12 (𝑛𝑍𝑛 ∈ (ℤ𝑀))
1817biimpi 218 . . . . . . . . . . 11 (𝑛𝑍𝑛 ∈ (ℤ𝑀))
19 eluzelz 12256 . . . . . . . . . . 11 (𝑛 ∈ (ℤ𝑀) → 𝑛 ∈ ℤ)
20 uzid 12261 . . . . . . . . . . 11 (𝑛 ∈ ℤ → 𝑛 ∈ (ℤ𝑛))
2118, 19, 203syl 18 . . . . . . . . . 10 (𝑛𝑍𝑛 ∈ (ℤ𝑛))
2221ne0d 4303 . . . . . . . . 9 (𝑛𝑍 → (ℤ𝑛) ≠ ∅)
23 eliin2 41389 . . . . . . . . 9 ((ℤ𝑛) ≠ ∅ → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
2422, 23syl 17 . . . . . . . 8 (𝑛𝑍 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
2524adantr 483 . . . . . . 7 ((𝑛𝑍 ∧ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵) → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
2615, 25mpbird 259 . . . . . 6 ((𝑛𝑍 ∧ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵) → 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
2726ex 415 . . . . 5 (𝑛𝑍 → (∀𝑚 ∈ (ℤ𝑛)𝑋𝐵𝑋 𝑚 ∈ (ℤ𝑛)𝐵))
2827reximia 3244 . . . 4 (∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵 → ∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
2928, 4sylibr 236 . . 3 (∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵)
3029, 1eleqtrrdi 2926 . 2 (∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵𝑋𝐴)
3114, 30impbii 211 1 (𝑋𝐴 ↔ ∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1537  wcel 2114  wne 3018  wral 3140  wrex 3141  c0 4293   ciun 4921   ciin 4922  cfv 6357  cz 11984  cuz 12246
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  ax-pre-lttri 10613
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-nel 3126  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-iin 4924  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-f1 6362  df-fo 6363  df-f1o 6364  df-fv 6365  df-ov 7161  df-er 8291  df-en 8512  df-dom 8513  df-sdom 8514  df-pnf 10679  df-mnf 10680  df-xr 10681  df-ltxr 10682  df-le 10683  df-neg 10875  df-z 11985  df-uz 12247
This theorem is referenced by:  allbutfiinf  41701  allbutfifvre  41963  smflimlem3  43056  smfliminflem  43111
  Copyright terms: Public domain W3C validator