ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  diffisn GIF version

Theorem diffisn 6689
Description: Subtracting a singleton from a finite set produces a finite set. (Contributed by Jim Kingdon, 11-Sep-2021.)
Assertion
Ref Expression
diffisn ((𝐴 ∈ Fin ∧ 𝐵𝐴) → (𝐴 ∖ {𝐵}) ∈ Fin)

Proof of Theorem diffisn
Dummy variables 𝑚 𝑛 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 isfi 6558 . . . 4 (𝐴 ∈ Fin ↔ ∃𝑛 ∈ ω 𝐴𝑛)
21biimpi 119 . . 3 (𝐴 ∈ Fin → ∃𝑛 ∈ ω 𝐴𝑛)
32adantr 271 . 2 ((𝐴 ∈ Fin ∧ 𝐵𝐴) → ∃𝑛 ∈ ω 𝐴𝑛)
4 elex2 2649 . . . . . . . . 9 (𝐵𝐴 → ∃𝑥 𝑥𝐴)
54adantl 272 . . . . . . . 8 ((𝐴 ∈ Fin ∧ 𝐵𝐴) → ∃𝑥 𝑥𝐴)
6 fin0 6681 . . . . . . . . 9 (𝐴 ∈ Fin → (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴))
76adantr 271 . . . . . . . 8 ((𝐴 ∈ Fin ∧ 𝐵𝐴) → (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴))
85, 7mpbird 166 . . . . . . 7 ((𝐴 ∈ Fin ∧ 𝐵𝐴) → 𝐴 ≠ ∅)
98adantr 271 . . . . . 6 (((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → 𝐴 ≠ ∅)
109neneqd 2283 . . . . 5 (((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → ¬ 𝐴 = ∅)
11 simplrr 504 . . . . . . 7 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝐴𝑛)
12 en0 6592 . . . . . . . . 9 (𝑛 ≈ ∅ ↔ 𝑛 = ∅)
1312biimpri 132 . . . . . . . 8 (𝑛 = ∅ → 𝑛 ≈ ∅)
1413adantl 272 . . . . . . 7 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝑛 ≈ ∅)
15 entr 6581 . . . . . . 7 ((𝐴𝑛𝑛 ≈ ∅) → 𝐴 ≈ ∅)
1611, 14, 15syl2anc 404 . . . . . 6 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝐴 ≈ ∅)
17 en0 6592 . . . . . 6 (𝐴 ≈ ∅ ↔ 𝐴 = ∅)
1816, 17sylib 121 . . . . 5 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝐴 = ∅)
1910, 18mtand 629 . . . 4 (((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → ¬ 𝑛 = ∅)
20 nn0suc 4447 . . . . . 6 (𝑛 ∈ ω → (𝑛 = ∅ ∨ ∃𝑚 ∈ ω 𝑛 = suc 𝑚))
2120orcomd 686 . . . . 5 (𝑛 ∈ ω → (∃𝑚 ∈ ω 𝑛 = suc 𝑚𝑛 = ∅))
2221ad2antrl 475 . . . 4 (((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → (∃𝑚 ∈ ω 𝑛 = suc 𝑚𝑛 = ∅))
2319, 22ecased 1292 . . 3 (((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → ∃𝑚 ∈ ω 𝑛 = suc 𝑚)
24 nnfi 6668 . . . . 5 (𝑚 ∈ ω → 𝑚 ∈ Fin)
2524ad2antrl 475 . . . 4 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ (𝑚 ∈ ω ∧ 𝑛 = suc 𝑚)) → 𝑚 ∈ Fin)
26 simprl 499 . . . . 5 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ (𝑚 ∈ ω ∧ 𝑛 = suc 𝑚)) → 𝑚 ∈ ω)
27 simplrr 504 . . . . . 6 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ (𝑚 ∈ ω ∧ 𝑛 = suc 𝑚)) → 𝐴𝑛)
28 breq2 3871 . . . . . . 7 (𝑛 = suc 𝑚 → (𝐴𝑛𝐴 ≈ suc 𝑚))
2928ad2antll 476 . . . . . 6 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ (𝑚 ∈ ω ∧ 𝑛 = suc 𝑚)) → (𝐴𝑛𝐴 ≈ suc 𝑚))
3027, 29mpbid 146 . . . . 5 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ (𝑚 ∈ ω ∧ 𝑛 = suc 𝑚)) → 𝐴 ≈ suc 𝑚)
31 simpllr 502 . . . . 5 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ (𝑚 ∈ ω ∧ 𝑛 = suc 𝑚)) → 𝐵𝐴)
32 dif1en 6675 . . . . 5 ((𝑚 ∈ ω ∧ 𝐴 ≈ suc 𝑚𝐵𝐴) → (𝐴 ∖ {𝐵}) ≈ 𝑚)
3326, 30, 31, 32syl3anc 1181 . . . 4 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ (𝑚 ∈ ω ∧ 𝑛 = suc 𝑚)) → (𝐴 ∖ {𝐵}) ≈ 𝑚)
34 enfii 6670 . . . 4 ((𝑚 ∈ Fin ∧ (𝐴 ∖ {𝐵}) ≈ 𝑚) → (𝐴 ∖ {𝐵}) ∈ Fin)
3525, 33, 34syl2anc 404 . . 3 ((((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ (𝑚 ∈ ω ∧ 𝑛 = suc 𝑚)) → (𝐴 ∖ {𝐵}) ∈ Fin)
3623, 35rexlimddv 2507 . 2 (((𝐴 ∈ Fin ∧ 𝐵𝐴) ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → (𝐴 ∖ {𝐵}) ∈ Fin)
373, 36rexlimddv 2507 1 ((𝐴 ∈ Fin ∧ 𝐵𝐴) → (𝐴 ∖ {𝐵}) ∈ Fin)
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104  wo 667   = wceq 1296  wex 1433  wcel 1445  wne 2262  wrex 2371  cdif 3010  c0 3302  {csn 3466   class class class wbr 3867  suc csuc 4216  ωcom 4433  cen 6535  Fincfn 6537
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 582  ax-in2 583  ax-io 668  ax-5 1388  ax-7 1389  ax-gen 1390  ax-ie1 1434  ax-ie2 1435  ax-8 1447  ax-10 1448  ax-11 1449  ax-i12 1450  ax-bndl 1451  ax-4 1452  ax-13 1456  ax-14 1457  ax-17 1471  ax-i9 1475  ax-ial 1479  ax-i5r 1480  ax-ext 2077  ax-coll 3975  ax-sep 3978  ax-nul 3986  ax-pow 4030  ax-pr 4060  ax-un 4284  ax-setind 4381  ax-iinf 4431
This theorem depends on definitions:  df-bi 116  df-dc 784  df-3or 928  df-3an 929  df-tru 1299  df-fal 1302  df-nf 1402  df-sb 1700  df-eu 1958  df-mo 1959  df-clab 2082  df-cleq 2088  df-clel 2091  df-nfc 2224  df-ne 2263  df-ral 2375  df-rex 2376  df-reu 2377  df-rab 2379  df-v 2635  df-sbc 2855  df-csb 2948  df-dif 3015  df-un 3017  df-in 3019  df-ss 3026  df-nul 3303  df-if 3414  df-pw 3451  df-sn 3472  df-pr 3473  df-op 3475  df-uni 3676  df-int 3711  df-iun 3754  df-br 3868  df-opab 3922  df-mpt 3923  df-tr 3959  df-id 4144  df-iord 4217  df-on 4219  df-suc 4222  df-iom 4434  df-xp 4473  df-rel 4474  df-cnv 4475  df-co 4476  df-dm 4477  df-rn 4478  df-res 4479  df-ima 4480  df-iota 5014  df-fun 5051  df-fn 5052  df-f 5053  df-f1 5054  df-fo 5055  df-f1o 5056  df-fv 5057  df-er 6332  df-en 6538  df-fin 6540
This theorem is referenced by:  diffifi  6690  zfz1isolemsplit  10358  zfz1isolem1  10360  fsumdifsnconst  10998
  Copyright terms: Public domain W3C validator