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

Theorem fin0or 6370
Description: A finite set is either empty or inhabited. (Contributed by Jim Kingdon, 30-Sep-2021.)
Assertion
Ref Expression
fin0or (𝐴 ∈ Fin → (𝐴 = ∅ ∨ ∃𝑥 𝑥𝐴))
Distinct variable group:   𝑥,𝐴

Proof of Theorem fin0or
Dummy variables 𝑓 𝑚 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 isfi 6264 . . 3 (𝐴 ∈ Fin ↔ ∃𝑛 ∈ ω 𝐴𝑛)
21biimpi 118 . 2 (𝐴 ∈ Fin → ∃𝑛 ∈ ω 𝐴𝑛)
3 nn0suc 4345 . . . 4 (𝑛 ∈ ω → (𝑛 = ∅ ∨ ∃𝑚 ∈ ω 𝑛 = suc 𝑚))
43ad2antrl 473 . . 3 ((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → (𝑛 = ∅ ∨ ∃𝑚 ∈ ω 𝑛 = suc 𝑚))
5 simplrr 502 . . . . . . 7 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝐴𝑛)
6 simpr 108 . . . . . . 7 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝑛 = ∅)
75, 6breqtrd 3809 . . . . . 6 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝐴 ≈ ∅)
8 en0 6298 . . . . . 6 (𝐴 ≈ ∅ ↔ 𝐴 = ∅)
97, 8sylib 120 . . . . 5 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝐴 = ∅)
109ex 113 . . . 4 ((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → (𝑛 = ∅ → 𝐴 = ∅))
11 simplrr 502 . . . . . . . . . 10 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) → 𝐴𝑛)
1211adantr 270 . . . . . . . . 9 ((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝐴𝑛)
1312ensymd 6286 . . . . . . . 8 ((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝑛𝐴)
14 bren 6251 . . . . . . . 8 (𝑛𝐴 ↔ ∃𝑓 𝑓:𝑛1-1-onto𝐴)
1513, 14sylib 120 . . . . . . 7 ((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → ∃𝑓 𝑓:𝑛1-1-onto𝐴)
16 f1of 5146 . . . . . . . . . 10 (𝑓:𝑛1-1-onto𝐴𝑓:𝑛𝐴)
1716adantl 271 . . . . . . . . 9 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → 𝑓:𝑛𝐴)
18 sucidg 4171 . . . . . . . . . . 11 (𝑚 ∈ ω → 𝑚 ∈ suc 𝑚)
1918ad3antlr 476 . . . . . . . . . 10 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → 𝑚 ∈ suc 𝑚)
20 simplr 496 . . . . . . . . . 10 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → 𝑛 = suc 𝑚)
2119, 20eleqtrrd 2158 . . . . . . . . 9 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → 𝑚𝑛)
2217, 21ffvelrnd 5324 . . . . . . . 8 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → (𝑓𝑚) ∈ 𝐴)
23 elex2 2615 . . . . . . . 8 ((𝑓𝑚) ∈ 𝐴 → ∃𝑥 𝑥𝐴)
2422, 23syl 14 . . . . . . 7 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → ∃𝑥 𝑥𝐴)
2515, 24exlimddv 1819 . . . . . 6 ((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → ∃𝑥 𝑥𝐴)
2625ex 113 . . . . 5 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) → (𝑛 = suc 𝑚 → ∃𝑥 𝑥𝐴))
2726rexlimdva 2477 . . . 4 ((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → (∃𝑚 ∈ ω 𝑛 = suc 𝑚 → ∃𝑥 𝑥𝐴))
2810, 27orim12d 732 . . 3 ((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → ((𝑛 = ∅ ∨ ∃𝑚 ∈ ω 𝑛 = suc 𝑚) → (𝐴 = ∅ ∨ ∃𝑥 𝑥𝐴)))
294, 28mpd 13 . 2 ((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → (𝐴 = ∅ ∨ ∃𝑥 𝑥𝐴))
302, 29rexlimddv 2481 1 (𝐴 ∈ Fin → (𝐴 = ∅ ∨ ∃𝑥 𝑥𝐴))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 102  wo 661   = wceq 1284  wex 1421  wcel 1433  wrex 2349  c0 3251   class class class wbr 3785  suc csuc 4120  ωcom 4331  wf 4918  1-1-ontowf1o 4921  cfv 4922  cen 6242  Fincfn 6244
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 576  ax-in2 577  ax-io 662  ax-5 1376  ax-7 1377  ax-gen 1378  ax-ie1 1422  ax-ie2 1423  ax-8 1435  ax-10 1436  ax-11 1437  ax-i12 1438  ax-bndl 1439  ax-4 1440  ax-13 1444  ax-14 1445  ax-17 1459  ax-i9 1463  ax-ial 1467  ax-i5r 1468  ax-ext 2063  ax-sep 3896  ax-nul 3904  ax-pow 3948  ax-pr 3964  ax-un 4188  ax-iinf 4329
This theorem depends on definitions:  df-bi 115  df-3an 921  df-tru 1287  df-fal 1290  df-nf 1390  df-sb 1686  df-eu 1944  df-mo 1945  df-clab 2068  df-cleq 2074  df-clel 2077  df-nfc 2208  df-ral 2353  df-rex 2354  df-v 2603  df-sbc 2816  df-dif 2975  df-un 2977  df-in 2979  df-ss 2986  df-nul 3252  df-pw 3384  df-sn 3404  df-pr 3405  df-op 3407  df-uni 3602  df-int 3637  df-br 3786  df-opab 3840  df-id 4048  df-suc 4126  df-iom 4332  df-xp 4369  df-rel 4370  df-cnv 4371  df-co 4372  df-dm 4373  df-rn 4374  df-res 4375  df-ima 4376  df-iota 4887  df-fun 4924  df-fn 4925  df-f 4926  df-f1 4927  df-fo 4928  df-f1o 4929  df-fv 4930  df-er 6129  df-en 6245  df-fin 6247
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator