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

Theorem fidceq 6756
Description: Equality of members of a finite set is decidable. This may be counterintuitive: cannot any two sets be elements of a finite set? Well, to show, for example, that  { B ,  C } is finite would require showing it is equinumerous to  1o or to  2o but to show that you'd need to know  B  =  C or  -.  B  =  C, respectively. (Contributed by Jim Kingdon, 5-Sep-2021.)
Assertion
Ref Expression
fidceq  |-  ( ( A  e.  Fin  /\  B  e.  A  /\  C  e.  A )  -> DECID  B  =  C )

Proof of Theorem fidceq
Dummy variables  f  x are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 isfi 6648 . . . 4  |-  ( A  e.  Fin  <->  E. x  e.  om  A  ~~  x
)
21biimpi 119 . . 3  |-  ( A  e.  Fin  ->  E. x  e.  om  A  ~~  x
)
323ad2ant1 1002 . 2  |-  ( ( A  e.  Fin  /\  B  e.  A  /\  C  e.  A )  ->  E. x  e.  om  A  ~~  x )
4 bren 6634 . . . . 5  |-  ( A 
~~  x  <->  E. f 
f : A -1-1-onto-> x )
54biimpi 119 . . . 4  |-  ( A 
~~  x  ->  E. f 
f : A -1-1-onto-> x )
65ad2antll 482 . . 3  |-  ( ( ( A  e.  Fin  /\  B  e.  A  /\  C  e.  A )  /\  ( x  e.  om  /\  A  ~~  x ) )  ->  E. f 
f : A -1-1-onto-> x )
7 f1of 5360 . . . . . . . . . 10  |-  ( f : A -1-1-onto-> x  ->  f : A --> x )
87adantl 275 . . . . . . . . 9  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  f : A --> x )
9 simpll2 1021 . . . . . . . . 9  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  B  e.  A )
108, 9ffvelrnd 5549 . . . . . . . 8  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  (
f `  B )  e.  x )
11 simplrl 524 . . . . . . . 8  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  x  e.  om )
12 elnn 4514 . . . . . . . 8  |-  ( ( ( f `  B
)  e.  x  /\  x  e.  om )  ->  ( f `  B
)  e.  om )
1310, 11, 12syl2anc 408 . . . . . . 7  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  (
f `  B )  e.  om )
14 simpll3 1022 . . . . . . . . 9  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  C  e.  A )
158, 14ffvelrnd 5549 . . . . . . . 8  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  (
f `  C )  e.  x )
16 elnn 4514 . . . . . . . 8  |-  ( ( ( f `  C
)  e.  x  /\  x  e.  om )  ->  ( f `  C
)  e.  om )
1715, 11, 16syl2anc 408 . . . . . . 7  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  (
f `  C )  e.  om )
18 nndceq 6388 . . . . . . 7  |-  ( ( ( f `  B
)  e.  om  /\  ( f `  C
)  e.  om )  -> DECID  ( f `  B )  =  ( f `  C ) )
1913, 17, 18syl2anc 408 . . . . . 6  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  -> DECID  ( f `  B
)  =  ( f `
 C ) )
20 exmiddc 821 . . . . . 6  |-  (DECID  ( f `
 B )  =  ( f `  C
)  ->  ( (
f `  B )  =  ( f `  C )  \/  -.  ( f `  B
)  =  ( f `
 C ) ) )
2119, 20syl 14 . . . . 5  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  (
( f `  B
)  =  ( f `
 C )  \/ 
-.  ( f `  B )  =  ( f `  C ) ) )
22 f1of1 5359 . . . . . . . 8  |-  ( f : A -1-1-onto-> x  ->  f : A -1-1-> x )
2322adantl 275 . . . . . . 7  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  f : A -1-1-> x )
24 f1veqaeq 5663 . . . . . . 7  |-  ( ( f : A -1-1-> x  /\  ( B  e.  A  /\  C  e.  A
) )  ->  (
( f `  B
)  =  ( f `
 C )  ->  B  =  C )
)
2523, 9, 14, 24syl12anc 1214 . . . . . 6  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  (
( f `  B
)  =  ( f `
 C )  ->  B  =  C )
)
26 fveq2 5414 . . . . . . . 8  |-  ( B  =  C  ->  (
f `  B )  =  ( f `  C ) )
2726con3i 621 . . . . . . 7  |-  ( -.  ( f `  B
)  =  ( f `
 C )  ->  -.  B  =  C
)
2827a1i 9 . . . . . 6  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  ( -.  ( f `  B
)  =  ( f `
 C )  ->  -.  B  =  C
) )
2925, 28orim12d 775 . . . . 5  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  (
( ( f `  B )  =  ( f `  C )  \/  -.  ( f `
 B )  =  ( f `  C
) )  ->  ( B  =  C  \/  -.  B  =  C
) ) )
3021, 29mpd 13 . . . 4  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  ->  ( B  =  C  \/  -.  B  =  C
) )
31 df-dc 820 . . . 4  |-  (DECID  B  =  C  <->  ( B  =  C  \/  -.  B  =  C ) )
3230, 31sylibr 133 . . 3  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  A  /\  C  e.  A
)  /\  ( x  e.  om  /\  A  ~~  x ) )  /\  f : A -1-1-onto-> x )  -> DECID  B  =  C
)
336, 32exlimddv 1870 . 2  |-  ( ( ( A  e.  Fin  /\  B  e.  A  /\  C  e.  A )  /\  ( x  e.  om  /\  A  ~~  x ) )  -> DECID  B  =  C
)
343, 33rexlimddv 2552 1  |-  ( ( A  e.  Fin  /\  B  e.  A  /\  C  e.  A )  -> DECID  B  =  C )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 103    \/ wo 697  DECID wdc 819    /\ w3a 962    = wceq 1331   E.wex 1468    e. wcel 1480   E.wrex 2415   class class class wbr 3924   omcom 4499   -->wf 5114   -1-1->wf1 5115   -1-1-onto->wf1o 5117   ` cfv 5118    ~~ cen 6625   Fincfn 6627
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-13 1491  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2119  ax-sep 4041  ax-nul 4049  ax-pow 4093  ax-pr 4126  ax-un 4350  ax-setind 4447  ax-iinf 4497
This theorem depends on definitions:  df-bi 116  df-dc 820  df-3or 963  df-3an 964  df-tru 1334  df-nf 1437  df-sb 1736  df-eu 2000  df-mo 2001  df-clab 2124  df-cleq 2130  df-clel 2133  df-nfc 2268  df-ne 2307  df-ral 2419  df-rex 2420  df-v 2683  df-sbc 2905  df-dif 3068  df-un 3070  df-in 3072  df-ss 3079  df-nul 3359  df-pw 3507  df-sn 3528  df-pr 3529  df-op 3531  df-uni 3732  df-int 3767  df-br 3925  df-opab 3985  df-tr 4022  df-id 4210  df-iord 4283  df-on 4285  df-suc 4288  df-iom 4500  df-xp 4540  df-rel 4541  df-cnv 4542  df-co 4543  df-dm 4544  df-rn 4545  df-iota 5083  df-fun 5120  df-fn 5121  df-f 5122  df-f1 5123  df-fo 5124  df-f1o 5125  df-fv 5126  df-en 6628  df-fin 6630
This theorem is referenced by:  fidifsnen  6757  fidifsnid  6758  unfiexmid  6799  undiffi  6806  fidcenumlemim  6833
  Copyright terms: Public domain W3C validator