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

Theorem fin0or 6374
Description: A finite set is either empty or inhabited. (Contributed by Jim Kingdon, 30-Sep-2021.)
Assertion
Ref Expression
fin0or  |-  ( A  e.  Fin  ->  ( A  =  (/)  \/  E. x  x  e.  A
) )
Distinct variable group:    x, A

Proof of Theorem fin0or
Dummy variables  f  m  n are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 isfi 6272 . . 3  |-  ( A  e.  Fin  <->  E. n  e.  om  A  ~~  n
)
21biimpi 117 . 2  |-  ( A  e.  Fin  ->  E. n  e.  om  A  ~~  n
)
3 nn0suc 4355 . . . 4  |-  ( n  e.  om  ->  (
n  =  (/)  \/  E. m  e.  om  n  =  suc  m ) )
43ad2antrl 467 . . 3  |-  ( ( A  e.  Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  ->  ( n  =  (/)  \/  E. m  e.  om  n  =  suc  m ) )
5 simplrr 496 . . . . . . 7  |-  ( ( ( A  e.  Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  /\  n  =  (/) )  ->  A  ~~  n )
6 simpr 107 . . . . . . 7  |-  ( ( ( A  e.  Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  /\  n  =  (/) )  ->  n  =  (/) )
75, 6breqtrd 3816 . . . . . 6  |-  ( ( ( A  e.  Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  /\  n  =  (/) )  ->  A  ~~  (/) )
8 en0 6306 . . . . . 6  |-  ( A 
~~  (/)  <->  A  =  (/) )
97, 8sylib 131 . . . . 5  |-  ( ( ( A  e.  Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  /\  n  =  (/) )  ->  A  =  (/) )
109ex 112 . . . 4  |-  ( ( A  e.  Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  ->  ( n  =  (/)  ->  A  =  (/) ) )
11 simplrr 496 . . . . . . . . . 10  |-  ( ( ( A  e.  Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  /\  m  e. 
om )  ->  A  ~~  n )
1211adantr 265 . . . . . . . . 9  |-  ( ( ( ( A  e. 
Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  /\  m  e.  om )  /\  n  =  suc  m )  ->  A  ~~  n )
1312ensymd 6294 . . . . . . . 8  |-  ( ( ( ( A  e. 
Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  /\  m  e.  om )  /\  n  =  suc  m )  ->  n  ~~  A )
14 bren 6259 . . . . . . . 8  |-  ( n 
~~  A  <->  E. f 
f : n -1-1-onto-> A )
1513, 14sylib 131 . . . . . . 7  |-  ( ( ( ( A  e. 
Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  /\  m  e.  om )  /\  n  =  suc  m )  ->  E. f 
f : n -1-1-onto-> A )
16 f1of 5154 . . . . . . . . . 10  |-  ( f : n -1-1-onto-> A  ->  f :
n --> A )
1716adantl 266 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  Fin  /\  (
n  e.  om  /\  A  ~~  n ) )  /\  m  e.  om )  /\  n  =  suc  m )  /\  f : n -1-1-onto-> A )  ->  f : n --> A )
18 sucidg 4181 . . . . . . . . . . 11  |-  ( m  e.  om  ->  m  e.  suc  m )
1918ad3antlr 470 . . . . . . . . . 10  |-  ( ( ( ( ( A  e.  Fin  /\  (
n  e.  om  /\  A  ~~  n ) )  /\  m  e.  om )  /\  n  =  suc  m )  /\  f : n -1-1-onto-> A )  ->  m  e.  suc  m )
20 simplr 490 . . . . . . . . . 10  |-  ( ( ( ( ( A  e.  Fin  /\  (
n  e.  om  /\  A  ~~  n ) )  /\  m  e.  om )  /\  n  =  suc  m )  /\  f : n -1-1-onto-> A )  ->  n  =  suc  m )
2119, 20eleqtrrd 2133 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  Fin  /\  (
n  e.  om  /\  A  ~~  n ) )  /\  m  e.  om )  /\  n  =  suc  m )  /\  f : n -1-1-onto-> A )  ->  m  e.  n )
2217, 21ffvelrnd 5331 . . . . . . . 8  |-  ( ( ( ( ( A  e.  Fin  /\  (
n  e.  om  /\  A  ~~  n ) )  /\  m  e.  om )  /\  n  =  suc  m )  /\  f : n -1-1-onto-> A )  ->  (
f `  m )  e.  A )
23 elex2 2587 . . . . . . . 8  |-  ( ( f `  m )  e.  A  ->  E. x  x  e.  A )
2422, 23syl 14 . . . . . . 7  |-  ( ( ( ( ( A  e.  Fin  /\  (
n  e.  om  /\  A  ~~  n ) )  /\  m  e.  om )  /\  n  =  suc  m )  /\  f : n -1-1-onto-> A )  ->  E. x  x  e.  A )
2515, 24exlimddv 1794 . . . . . 6  |-  ( ( ( ( A  e. 
Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  /\  m  e.  om )  /\  n  =  suc  m )  ->  E. x  x  e.  A )
2625ex 112 . . . . 5  |-  ( ( ( A  e.  Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  /\  m  e. 
om )  ->  (
n  =  suc  m  ->  E. x  x  e.  A ) )
2726rexlimdva 2450 . . . 4  |-  ( ( A  e.  Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  ->  ( E. m  e.  om  n  =  suc  m  ->  E. x  x  e.  A )
)
2810, 27orim12d 710 . . 3  |-  ( ( A  e.  Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  ->  ( (
n  =  (/)  \/  E. m  e.  om  n  =  suc  m )  -> 
( A  =  (/)  \/ 
E. x  x  e.  A ) ) )
294, 28mpd 13 . 2  |-  ( ( A  e.  Fin  /\  ( n  e.  om  /\  A  ~~  n ) )  ->  ( A  =  (/)  \/  E. x  x  e.  A )
)
302, 29rexlimddv 2454 1  |-  ( A  e.  Fin  ->  ( A  =  (/)  \/  E. x  x  e.  A
) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 101    \/ wo 639    = wceq 1259   E.wex 1397    e. wcel 1409   E.wrex 2324   (/)c0 3252   class class class wbr 3792   suc csuc 4130   omcom 4341   -->wf 4926   -1-1-onto->wf1o 4929   ` cfv 4930    ~~ cen 6250   Fincfn 6252
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 103  ax-ia2 104  ax-ia3 105  ax-in1 554  ax-in2 555  ax-io 640  ax-5 1352  ax-7 1353  ax-gen 1354  ax-ie1 1398  ax-ie2 1399  ax-8 1411  ax-10 1412  ax-11 1413  ax-i12 1414  ax-bndl 1415  ax-4 1416  ax-13 1420  ax-14 1421  ax-17 1435  ax-i9 1439  ax-ial 1443  ax-i5r 1444  ax-ext 2038  ax-sep 3903  ax-nul 3911  ax-pow 3955  ax-pr 3972  ax-un 4198  ax-iinf 4339
This theorem depends on definitions:  df-bi 114  df-3an 898  df-tru 1262  df-fal 1265  df-nf 1366  df-sb 1662  df-eu 1919  df-mo 1920  df-clab 2043  df-cleq 2049  df-clel 2052  df-nfc 2183  df-ral 2328  df-rex 2329  df-v 2576  df-sbc 2788  df-dif 2948  df-un 2950  df-in 2952  df-ss 2959  df-nul 3253  df-pw 3389  df-sn 3409  df-pr 3410  df-op 3412  df-uni 3609  df-int 3644  df-br 3793  df-opab 3847  df-id 4058  df-suc 4136  df-iom 4342  df-xp 4379  df-rel 4380  df-cnv 4381  df-co 4382  df-dm 4383  df-rn 4384  df-res 4385  df-ima 4386  df-iota 4895  df-fun 4932  df-fn 4933  df-f 4934  df-f1 4935  df-fo 4936  df-f1o 4937  df-fv 4938  df-er 6137  df-en 6253  df-fin 6255
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator