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

Theorem fidceq 6354
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 6264 . . . 4  |-  ( A  e.  Fin  <->  E. x  e.  om  A  ~~  x
)
21biimpi 118 . . 3  |-  ( A  e.  Fin  ->  E. x  e.  om  A  ~~  x
)
323ad2ant1 959 . 2  |-  ( ( A  e.  Fin  /\  B  e.  A  /\  C  e.  A )  ->  E. x  e.  om  A  ~~  x )
4 bren 6251 . . . . 5  |-  ( A 
~~  x  <->  E. f 
f : A -1-1-onto-> x )
54biimpi 118 . . . 4  |-  ( A 
~~  x  ->  E. f 
f : A -1-1-onto-> x )
65ad2antll 474 . . 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 5146 . . . . . . . . . 10  |-  ( f : A -1-1-onto-> x  ->  f : A --> x )
87adantl 271 . . . . . . . . 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 978 . . . . . . . . 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 5324 . . . . . . . 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 501 . . . . . . . 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 4346 . . . . . . . 8  |-  ( ( ( f `  B
)  e.  x  /\  x  e.  om )  ->  ( f `  B
)  e.  om )
1310, 11, 12syl2anc 403 . . . . . . 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 979 . . . . . . . . 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 5324 . . . . . . . 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 4346 . . . . . . . 8  |-  ( ( ( f `  C
)  e.  x  /\  x  e.  om )  ->  ( f `  C
)  e.  om )
1715, 11, 16syl2anc 403 . . . . . . 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 6100 . . . . . . 7  |-  ( ( ( f `  B
)  e.  om  /\  ( f `  C
)  e.  om )  -> DECID  ( f `  B )  =  ( f `  C ) )
1913, 17, 18syl2anc 403 . . . . . 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 777 . . . . . 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 5145 . . . . . . . 8  |-  ( f : A -1-1-onto-> x  ->  f : A -1-1-> x )
2322adantl 271 . . . . . . 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 5429 . . . . . . 7  |-  ( ( f : A -1-1-> x  /\  ( B  e.  A  /\  C  e.  A
) )  ->  (
( f `  B
)  =  ( f `
 C )  ->  B  =  C )
)
2523, 9, 14, 24syl12anc 1167 . . . . . 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 5198 . . . . . . . 8  |-  ( B  =  C  ->  (
f `  B )  =  ( f `  C ) )
2726con3i 594 . . . . . . 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 732 . . . . 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 776 . . . 4  |-  (DECID  B  =  C  <->  ( B  =  C  \/  -.  B  =  C ) )
3230, 31sylibr 132 . . 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 1819 . 2  |-  ( ( ( A  e.  Fin  /\  B  e.  A  /\  C  e.  A )  /\  ( x  e.  om  /\  A  ~~  x ) )  -> DECID  B  =  C
)
343, 33rexlimddv 2481 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 102    \/ wo 661  DECID wdc 775    /\ w3a 919    = wceq 1284   E.wex 1421    e. wcel 1433   E.wrex 2349   class class class wbr 3785   omcom 4331   -->wf 4918   -1-1->wf1 4919   -1-1-onto->wf1o 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-setind 4280  ax-iinf 4329
This theorem depends on definitions:  df-bi 115  df-dc 776  df-3or 920  df-3an 921  df-tru 1287  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-ne 2246  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-tr 3876  df-id 4048  df-iord 4121  df-on 4123  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-iota 4887  df-fun 4924  df-fn 4925  df-f 4926  df-f1 4927  df-fo 4928  df-f1o 4929  df-fv 4930  df-en 6245  df-fin 6247
This theorem is referenced by:  fidifsnen  6355  fidifsnid  6356
  Copyright terms: Public domain W3C validator