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 41206
Description: For all but finitely many. Some authors say "cofinitely many". Some authors say "ultimately". Compare with eliuniin 40904 and eliuniin2 40926 (here, the precondition can be dropped; see eliuniincex 40915). (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 2874 . . . . 5 (𝑋𝐴𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵)
32biimpi 217 . . . 4 (𝑋𝐴𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵)
4 eliun 4829 . . . 4 (𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
53, 4sylib 219 . . 3 (𝑋𝐴 → ∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
6 nfcv 2949 . . . . 5 𝑛𝑋
7 nfiu1 4856 . . . . . 6 𝑛 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵
81, 7nfcxfr 2947 . . . . 5 𝑛𝐴
96, 8nfel 2961 . . . 4 𝑛 𝑋𝐴
10 eliin 4830 . . . . . 6 (𝑋𝐴 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
1110biimpd 230 . . . . 5 (𝑋𝐴 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 → ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
1211a1d 25 . . . 4 (𝑋𝐴 → (𝑛𝑍 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 → ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵)))
139, 12reximdai 3272 . . 3 (𝑋𝐴 → (∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵 → ∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵))
145, 13mpd 15 . 2 (𝑋𝐴 → ∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵)
15 simpr 485 . . . . . . 7 ((𝑛𝑍 ∧ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵) → ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵)
16 allbutfi.z . . . . . . . . . . . . 13 𝑍 = (ℤ𝑀)
1716eleq2i 2874 . . . . . . . . . . . 12 (𝑛𝑍𝑛 ∈ (ℤ𝑀))
1817biimpi 217 . . . . . . . . . . 11 (𝑛𝑍𝑛 ∈ (ℤ𝑀))
19 eluzelz 12103 . . . . . . . . . . 11 (𝑛 ∈ (ℤ𝑀) → 𝑛 ∈ ℤ)
20 uzid 12108 . . . . . . . . . . 11 (𝑛 ∈ ℤ → 𝑛 ∈ (ℤ𝑛))
2118, 19, 203syl 18 . . . . . . . . . 10 (𝑛𝑍𝑛 ∈ (ℤ𝑛))
2221ne0d 4221 . . . . . . . . 9 (𝑛𝑍 → (ℤ𝑛) ≠ ∅)
23 eliin2 40922 . . . . . . . . 9 ((ℤ𝑛) ≠ ∅ → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
2422, 23syl 17 . . . . . . . 8 (𝑛𝑍 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
2524adantr 481 . . . . . . 7 ((𝑛𝑍 ∧ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵) → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
2615, 25mpbird 258 . . . . . 6 ((𝑛𝑍 ∧ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵) → 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
2726ex 413 . . . . 5 (𝑛𝑍 → (∀𝑚 ∈ (ℤ𝑛)𝑋𝐵𝑋 𝑚 ∈ (ℤ𝑛)𝐵))
2827reximia 3206 . . . 4 (∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵 → ∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
2928, 4sylibr 235 . . 3 (∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵)
3029, 1syl6eleqr 2894 . 2 (∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵𝑋𝐴)
3114, 30impbii 210 1 (𝑋𝐴 ↔ ∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 207  wa 396   = wceq 1522  wcel 2081  wne 2984  wral 3105  wrex 3106  c0 4211   ciun 4825   ciin 4826  cfv 6225  cz 11829  cuz 12093
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1777  ax-4 1791  ax-5 1888  ax-6 1947  ax-7 1992  ax-8 2083  ax-9 2091  ax-10 2112  ax-11 2126  ax-12 2141  ax-13 2344  ax-ext 2769  ax-sep 5094  ax-nul 5101  ax-pow 5157  ax-pr 5221  ax-un 7319  ax-cnex 10439  ax-resscn 10440  ax-pre-lttri 10457
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 843  df-3or 1081  df-3an 1082  df-tru 1525  df-ex 1762  df-nf 1766  df-sb 2043  df-mo 2576  df-eu 2612  df-clab 2776  df-cleq 2788  df-clel 2863  df-nfc 2935  df-ne 2985  df-nel 3091  df-ral 3110  df-rex 3111  df-rab 3114  df-v 3439  df-sbc 3707  df-csb 3812  df-dif 3862  df-un 3864  df-in 3866  df-ss 3874  df-nul 4212  df-if 4382  df-pw 4455  df-sn 4473  df-pr 4475  df-op 4479  df-uni 4746  df-iun 4827  df-iin 4828  df-br 4963  df-opab 5025  df-mpt 5042  df-id 5348  df-xp 5449  df-rel 5450  df-cnv 5451  df-co 5452  df-dm 5453  df-rn 5454  df-res 5455  df-ima 5456  df-iota 6189  df-fun 6227  df-fn 6228  df-f 6229  df-f1 6230  df-fo 6231  df-f1o 6232  df-fv 6233  df-ov 7019  df-er 8139  df-en 8358  df-dom 8359  df-sdom 8360  df-pnf 10523  df-mnf 10524  df-xr 10525  df-ltxr 10526  df-le 10527  df-neg 10720  df-z 11830  df-uz 12094
This theorem is referenced by:  allbutfiinf  41236  allbutfifvre  41498  smflimlem3  42591  smfliminflem  42646
  Copyright terms: Public domain W3C validator