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 38557
Description: For all but finitely many. Some authors say "cofinitely many". Some authors say "ultimately". Compare with eliuniin 38307 and eliuniin2 38335 (here, the precondition can be dropped; see eliuniincex 38323). (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 2680 . . . . 5 (𝑋𝐴𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵)
32biimpi 205 . . . 4 (𝑋𝐴𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵)
4 eliun 4460 . . . 4 (𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
53, 4sylib 207 . . 3 (𝑋𝐴 → ∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
6 nfcv 2751 . . . . 5 𝑛𝑋
7 nfiu1 4486 . . . . . 6 𝑛 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵
81, 7nfcxfr 2749 . . . . 5 𝑛𝐴
96, 8nfel 2763 . . . 4 𝑛 𝑋𝐴
10 eliin 4461 . . . . . 6 (𝑋𝐴 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
1110biimpd 218 . . . . 5 (𝑋𝐴 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 → ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
1211a1d 25 . . . 4 (𝑋𝐴 → (𝑛𝑍 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 → ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵)))
139, 12reximdai 2995 . . 3 (𝑋𝐴 → (∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵 → ∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵))
145, 13mpd 15 . 2 (𝑋𝐴 → ∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵)
15 simpr 476 . . . . . . 7 ((𝑛𝑍 ∧ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵) → ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵)
16 allbutfi.z . . . . . . . . . . . . 13 𝑍 = (ℤ𝑀)
1716eleq2i 2680 . . . . . . . . . . . 12 (𝑛𝑍𝑛 ∈ (ℤ𝑀))
1817biimpi 205 . . . . . . . . . . 11 (𝑛𝑍𝑛 ∈ (ℤ𝑀))
19 eluzelz 11573 . . . . . . . . . . 11 (𝑛 ∈ (ℤ𝑀) → 𝑛 ∈ ℤ)
20 uzid 11578 . . . . . . . . . . 11 (𝑛 ∈ ℤ → 𝑛 ∈ (ℤ𝑛))
2118, 19, 203syl 18 . . . . . . . . . 10 (𝑛𝑍𝑛 ∈ (ℤ𝑛))
22 ne0i 3880 . . . . . . . . . 10 (𝑛 ∈ (ℤ𝑛) → (ℤ𝑛) ≠ ∅)
2321, 22syl 17 . . . . . . . . 9 (𝑛𝑍 → (ℤ𝑛) ≠ ∅)
24 eliin2 38330 . . . . . . . . 9 ((ℤ𝑛) ≠ ∅ → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
2523, 24syl 17 . . . . . . . 8 (𝑛𝑍 → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
2625adantr 480 . . . . . . 7 ((𝑛𝑍 ∧ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵) → (𝑋 𝑚 ∈ (ℤ𝑛)𝐵 ↔ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵))
2715, 26mpbird 246 . . . . . 6 ((𝑛𝑍 ∧ ∀𝑚 ∈ (ℤ𝑛)𝑋𝐵) → 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
2827ex 449 . . . . 5 (𝑛𝑍 → (∀𝑚 ∈ (ℤ𝑛)𝑋𝐵𝑋 𝑚 ∈ (ℤ𝑛)𝐵))
2928reximia 2992 . . . 4 (∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵 → ∃𝑛𝑍 𝑋 𝑚 ∈ (ℤ𝑛)𝐵)
3029, 4sylibr 223 . . 3 (∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵𝑋 𝑛𝑍 𝑚 ∈ (ℤ𝑛)𝐵)
3130, 1syl6eleqr 2699 . 2 (∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵𝑋𝐴)
3214, 31impbii 198 1 (𝑋𝐴 ↔ ∃𝑛𝑍𝑚 ∈ (ℤ𝑛)𝑋𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 195  wa 383   = wceq 1475  wcel 1977  wne 2780  wral 2896  wrex 2897  c0 3874   ciun 4455   ciin 4456  cfv 5804  cz 11254  cuz 11563
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-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847  ax-cnex 9871  ax-resscn 9872  ax-pre-lttri 9889
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3or 1032  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-nel 2783  df-ral 2901  df-rex 2902  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  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-iun 4457  df-iin 4458  df-br 4584  df-opab 4644  df-mpt 4645  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811  df-fv 5812  df-ov 6552  df-er 7629  df-en 7842  df-dom 7843  df-sdom 7844  df-pnf 9955  df-mnf 9956  df-xr 9957  df-ltxr 9958  df-le 9959  df-neg 10148  df-z 11255  df-uz 11564
This theorem is referenced by:  allbutfifvre  38742  smflimlem3  39659
  Copyright terms: Public domain W3C validator