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

Theorem fin0 6708
Description: A nonempty finite set has at least one element. (Contributed by Jim Kingdon, 10-Sep-2021.)
Assertion
Ref Expression
fin0 (𝐴 ∈ Fin → (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴))
Distinct variable group:   𝑥,𝐴

Proof of Theorem fin0
Dummy variables 𝑓 𝑚 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 isfi 6585 . . 3 (𝐴 ∈ Fin ↔ ∃𝑛 ∈ ω 𝐴𝑛)
21biimpi 119 . 2 (𝐴 ∈ Fin → ∃𝑛 ∈ ω 𝐴𝑛)
3 simplrr 506 . . . . . . 7 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝐴𝑛)
4 simpr 109 . . . . . . 7 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝑛 = ∅)
53, 4breqtrd 3899 . . . . . 6 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝐴 ≈ ∅)
6 en0 6619 . . . . . 6 (𝐴 ≈ ∅ ↔ 𝐴 = ∅)
75, 6sylib 121 . . . . 5 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → 𝐴 = ∅)
8 nner 2271 . . . . 5 (𝐴 = ∅ → ¬ 𝐴 ≠ ∅)
97, 8syl 14 . . . 4 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → ¬ 𝐴 ≠ ∅)
10 n0r 3323 . . . . . 6 (∃𝑥 𝑥𝐴𝐴 ≠ ∅)
1110necon2bi 2322 . . . . 5 (𝐴 = ∅ → ¬ ∃𝑥 𝑥𝐴)
127, 11syl 14 . . . 4 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → ¬ ∃𝑥 𝑥𝐴)
139, 122falsed 659 . . 3 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑛 = ∅) → (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴))
14 simplrr 506 . . . . . . . . . 10 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) → 𝐴𝑛)
1514adantr 272 . . . . . . . . 9 ((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝐴𝑛)
1615ensymd 6607 . . . . . . . 8 ((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝑛𝐴)
17 bren 6571 . . . . . . . 8 (𝑛𝐴 ↔ ∃𝑓 𝑓:𝑛1-1-onto𝐴)
1816, 17sylib 121 . . . . . . 7 ((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → ∃𝑓 𝑓:𝑛1-1-onto𝐴)
19 f1of 5301 . . . . . . . . . . . 12 (𝑓:𝑛1-1-onto𝐴𝑓:𝑛𝐴)
2019adantl 273 . . . . . . . . . . 11 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → 𝑓:𝑛𝐴)
21 sucidg 4276 . . . . . . . . . . . . 13 (𝑚 ∈ ω → 𝑚 ∈ suc 𝑚)
2221ad3antlr 480 . . . . . . . . . . . 12 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → 𝑚 ∈ suc 𝑚)
23 simplr 500 . . . . . . . . . . . 12 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → 𝑛 = suc 𝑚)
2422, 23eleqtrrd 2179 . . . . . . . . . . 11 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → 𝑚𝑛)
2520, 24ffvelrnd 5488 . . . . . . . . . 10 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → (𝑓𝑚) ∈ 𝐴)
26 elex2 2657 . . . . . . . . . 10 ((𝑓𝑚) ∈ 𝐴 → ∃𝑥 𝑥𝐴)
2725, 26syl 14 . . . . . . . . 9 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → ∃𝑥 𝑥𝐴)
2827, 10syl 14 . . . . . . . 8 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → 𝐴 ≠ ∅)
2928, 272thd 174 . . . . . . 7 (((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) ∧ 𝑓:𝑛1-1-onto𝐴) → (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴))
3018, 29exlimddv 1837 . . . . . 6 ((((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴))
3130ex 114 . . . . 5 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ 𝑚 ∈ ω) → (𝑛 = suc 𝑚 → (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴)))
3231rexlimdva 2508 . . . 4 ((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → (∃𝑚 ∈ ω 𝑛 = suc 𝑚 → (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴)))
3332imp 123 . . 3 (((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) ∧ ∃𝑚 ∈ ω 𝑛 = suc 𝑚) → (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴))
34 nn0suc 4456 . . . 4 (𝑛 ∈ ω → (𝑛 = ∅ ∨ ∃𝑚 ∈ ω 𝑛 = suc 𝑚))
3534ad2antrl 477 . . 3 ((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → (𝑛 = ∅ ∨ ∃𝑚 ∈ ω 𝑛 = suc 𝑚))
3613, 33, 35mpjaodan 753 . 2 ((𝐴 ∈ Fin ∧ (𝑛 ∈ ω ∧ 𝐴𝑛)) → (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴))
372, 36rexlimddv 2513 1 (𝐴 ∈ Fin → (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  wo 670   = wceq 1299  wex 1436  wcel 1448  wne 2267  wrex 2376  c0 3310   class class class wbr 3875  suc csuc 4225  ωcom 4442  wf 5055  1-1-ontowf1o 5058  cfv 5059  cen 6562  Fincfn 6564
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 584  ax-in2 585  ax-io 671  ax-5 1391  ax-7 1392  ax-gen 1393  ax-ie1 1437  ax-ie2 1438  ax-8 1450  ax-10 1451  ax-11 1452  ax-i12 1453  ax-bndl 1454  ax-4 1455  ax-13 1459  ax-14 1460  ax-17 1474  ax-i9 1478  ax-ial 1482  ax-i5r 1483  ax-ext 2082  ax-sep 3986  ax-nul 3994  ax-pow 4038  ax-pr 4069  ax-un 4293  ax-iinf 4440
This theorem depends on definitions:  df-bi 116  df-3an 932  df-tru 1302  df-fal 1305  df-nf 1405  df-sb 1704  df-eu 1963  df-mo 1964  df-clab 2087  df-cleq 2093  df-clel 2096  df-nfc 2229  df-ne 2268  df-ral 2380  df-rex 2381  df-v 2643  df-sbc 2863  df-dif 3023  df-un 3025  df-in 3027  df-ss 3034  df-nul 3311  df-pw 3459  df-sn 3480  df-pr 3481  df-op 3483  df-uni 3684  df-int 3719  df-br 3876  df-opab 3930  df-id 4153  df-suc 4231  df-iom 4443  df-xp 4483  df-rel 4484  df-cnv 4485  df-co 4486  df-dm 4487  df-rn 4488  df-res 4489  df-ima 4490  df-iota 5024  df-fun 5061  df-fn 5062  df-f 5063  df-f1 5064  df-fo 5065  df-f1o 5066  df-fv 5067  df-er 6359  df-en 6565  df-fin 6567
This theorem is referenced by:  findcard2  6712  findcard2s  6713  diffisn  6716  fimax2gtri  6724
  Copyright terms: Public domain W3C validator