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

Theorem dif1en 6368
Description: If a set  A is equinumerous to the successor of a natural number  M, then  A with an element removed is equinumerous to  M. (Contributed by Jeff Madsen, 2-Sep-2009.) (Revised by Stefan O'Rear, 16-Aug-2015.)
Assertion
Ref Expression
dif1en  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  ( A  \  { X } )  ~~  M
)

Proof of Theorem dif1en
Dummy variable  f is distinct from all other variables.
StepHypRef Expression
1 simp2 916 . . . 4  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  A  ~~  suc  M
)
21ensymd 6294 . . 3  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  suc  M  ~~  A
)
3 bren 6259 . . 3  |-  ( suc 
M  ~~  A  <->  E. f 
f : suc  M -1-1-onto-> A
)
42, 3sylib 131 . 2  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  E. f  f : suc  M -1-1-onto-> A )
5 peano2 4346 . . . . . . . 8  |-  ( M  e.  om  ->  suc  M  e.  om )
6 nnfi 6364 . . . . . . . 8  |-  ( suc 
M  e.  om  ->  suc 
M  e.  Fin )
75, 6syl 14 . . . . . . 7  |-  ( M  e.  om  ->  suc  M  e.  Fin )
873ad2ant1 936 . . . . . 6  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  suc  M  e.  Fin )
9 enfii 6366 . . . . . 6  |-  ( ( suc  M  e.  Fin  /\  A  ~~  suc  M
)  ->  A  e.  Fin )
108, 1, 9syl2anc 397 . . . . 5  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  A  e.  Fin )
1110adantr 265 . . . 4  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  A  e.  Fin )
12 simpl3 920 . . . 4  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  X  e.  A )
13 f1of 5154 . . . . . 6  |-  ( f : suc  M -1-1-onto-> A  -> 
f : suc  M --> A )
1413adantl 266 . . . . 5  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  f : suc  M --> A )
15 sucidg 4181 . . . . . . 7  |-  ( M  e.  om  ->  M  e.  suc  M )
16153ad2ant1 936 . . . . . 6  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  M  e.  suc  M
)
1716adantr 265 . . . . 5  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  M  e.  suc  M )
1814, 17ffvelrnd 5331 . . . 4  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f `  M )  e.  A )
19 fidifsnen 6362 . . . 4  |-  ( ( A  e.  Fin  /\  X  e.  A  /\  ( f `  M
)  e.  A )  ->  ( A  \  { X } )  ~~  ( A  \  { ( f `  M ) } ) )
2011, 12, 18, 19syl3anc 1146 . . 3  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( A  \  { X }
)  ~~  ( A  \  { ( f `  M ) } ) )
21 nnord 4362 . . . . . . . 8  |-  ( M  e.  om  ->  Ord  M )
22 orddif 4299 . . . . . . . 8  |-  ( Ord 
M  ->  M  =  ( suc  M  \  { M } ) )
2321, 22syl 14 . . . . . . 7  |-  ( M  e.  om  ->  M  =  ( suc  M  \  { M } ) )
24233ad2ant1 936 . . . . . 6  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  M  =  ( suc 
M  \  { M } ) )
2524adantr 265 . . . . 5  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  M  =  ( suc  M  \  { M } ) )
2623eleq1d 2122 . . . . . . . . 9  |-  ( M  e.  om  ->  ( M  e.  om  <->  ( suc  M 
\  { M }
)  e.  om )
)
2726ibi 169 . . . . . . . 8  |-  ( M  e.  om  ->  ( suc  M  \  { M } )  e.  om )
28273ad2ant1 936 . . . . . . 7  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  ( suc  M  \  { M } )  e. 
om )
2928adantr 265 . . . . . 6  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( suc  M  \  { M } )  e.  om )
30 dff1o2 5159 . . . . . . . . 9  |-  ( f : suc  M -1-1-onto-> A  <->  ( f  Fn  suc  M  /\  Fun  `' f  /\  ran  f  =  A ) )
3130simp2bi 931 . . . . . . . 8  |-  ( f : suc  M -1-1-onto-> A  ->  Fun  `' f )
3231adantl 266 . . . . . . 7  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  Fun  `' f )
33 f1ofo 5161 . . . . . . . . 9  |-  ( f : suc  M -1-1-onto-> A  -> 
f : suc  M -onto-> A )
3433adantl 266 . . . . . . . 8  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  f : suc  M -onto-> A )
35 f1orel 5157 . . . . . . . . . . . 12  |-  ( f : suc  M -1-1-onto-> A  ->  Rel  f )
3635adantl 266 . . . . . . . . . . 11  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  Rel  f )
37 resdm 4677 . . . . . . . . . . 11  |-  ( Rel  f  ->  ( f  |` 
dom  f )  =  f )
3836, 37syl 14 . . . . . . . . . 10  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f  |`  dom  f )  =  f )
39 f1odm 5158 . . . . . . . . . . . 12  |-  ( f : suc  M -1-1-onto-> A  ->  dom  f  =  suc  M )
4039reseq2d 4640 . . . . . . . . . . 11  |-  ( f : suc  M -1-1-onto-> A  -> 
( f  |`  dom  f
)  =  ( f  |`  suc  M ) )
4140adantl 266 . . . . . . . . . 10  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f  |`  dom  f )  =  ( f  |`  suc  M ) )
4238, 41eqtr3d 2090 . . . . . . . . 9  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  f  =  ( f  |`  suc  M ) )
43 foeq1 5130 . . . . . . . . 9  |-  ( f  =  ( f  |`  suc  M )  ->  (
f : suc  M -onto-> A 
<->  ( f  |`  suc  M
) : suc  M -onto-> A ) )
4442, 43syl 14 . . . . . . . 8  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f : suc  M -onto-> A 
<->  ( f  |`  suc  M
) : suc  M -onto-> A ) )
4534, 44mpbid 139 . . . . . . 7  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f  |`  suc  M ) : suc  M -onto-> A
)
46 simpl1 918 . . . . . . . . . 10  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  M  e.  om )
47 f1osng 5195 . . . . . . . . . 10  |-  ( ( M  e.  om  /\  ( f `  M
)  e.  A )  ->  { <. M , 
( f `  M
) >. } : { M } -1-1-onto-> { ( f `  M ) } )
4846, 18, 47syl2anc 397 . . . . . . . . 9  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  { <. M ,  ( f `  M ) >. } : { M } -1-1-onto-> { ( f `  M ) } )
49 f1ofo 5161 . . . . . . . . 9  |-  ( {
<. M ,  ( f `
 M ) >. } : { M } -1-1-onto-> {
( f `  M
) }  ->  { <. M ,  ( f `  M ) >. } : { M } -onto-> { ( f `  M ) } )
5048, 49syl 14 . . . . . . . 8  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  { <. M ,  ( f `  M ) >. } : { M } -onto-> { ( f `  M ) } )
51 f1ofn 5155 . . . . . . . . . . 11  |-  ( f : suc  M -1-1-onto-> A  -> 
f  Fn  suc  M
)
5251adantl 266 . . . . . . . . . 10  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  f  Fn  suc  M )
53 fnressn 5377 . . . . . . . . . 10  |-  ( ( f  Fn  suc  M  /\  M  e.  suc  M )  ->  ( f  |` 
{ M } )  =  { <. M , 
( f `  M
) >. } )
5452, 17, 53syl2anc 397 . . . . . . . . 9  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f  |`  { M }
)  =  { <. M ,  ( f `  M ) >. } )
55 foeq1 5130 . . . . . . . . 9  |-  ( ( f  |`  { M } )  =  { <. M ,  ( f `
 M ) >. }  ->  ( ( f  |`  { M } ) : { M } -onto-> { ( f `  M ) }  <->  { <. M , 
( f `  M
) >. } : { M } -onto-> { ( f `  M ) } ) )
5654, 55syl 14 . . . . . . . 8  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
( f  |`  { M } ) : { M } -onto-> { ( f `  M ) }  <->  { <. M , 
( f `  M
) >. } : { M } -onto-> { ( f `  M ) } ) )
5750, 56mpbird 160 . . . . . . 7  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f  |`  { M }
) : { M } -onto-> { ( f `  M ) } )
58 resdif 5176 . . . . . . 7  |-  ( ( Fun  `' f  /\  ( f  |`  suc  M
) : suc  M -onto-> A  /\  ( f  |`  { M } ) : { M } -onto-> {
( f `  M
) } )  -> 
( f  |`  ( suc  M  \  { M } ) ) : ( suc  M  \  { M } ) -1-1-onto-> ( A 
\  { ( f `
 M ) } ) )
5932, 45, 57, 58syl3anc 1146 . . . . . 6  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f  |`  ( suc  M  \  { M } ) ) : ( suc 
M  \  { M } ) -1-1-onto-> ( A  \  {
( f `  M
) } ) )
60 f1oeng 6268 . . . . . 6  |-  ( ( ( suc  M  \  { M } )  e. 
om  /\  ( f  |`  ( suc  M  \  { M } ) ) : ( suc  M  \  { M } ) -1-1-onto-> ( A  \  { ( f `  M ) } ) )  -> 
( suc  M  \  { M } )  ~~  ( A  \  { ( f `
 M ) } ) )
6129, 59, 60syl2anc 397 . . . . 5  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( suc  M  \  { M } )  ~~  ( A  \  { ( f `
 M ) } ) )
6225, 61eqbrtrd 3812 . . . 4  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  M  ~~  ( A  \  {
( f `  M
) } ) )
6362ensymd 6294 . . 3  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( A  \  { ( f `
 M ) } )  ~~  M )
64 entr 6295 . . 3  |-  ( ( ( A  \  { X } )  ~~  ( A  \  { ( f `
 M ) } )  /\  ( A 
\  { ( f `
 M ) } )  ~~  M )  ->  ( A  \  { X } )  ~~  M )
6520, 63, 64syl2anc 397 . 2  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( A  \  { X }
)  ~~  M )
664, 65exlimddv 1794 1  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  ( A  \  { X } )  ~~  M
)
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 101    <-> wb 102    /\ w3a 896    = wceq 1259   E.wex 1397    e. wcel 1409    \ cdif 2942   {csn 3403   <.cop 3406   class class class wbr 3792   Ord word 4127   suc csuc 4130   omcom 4341   `'ccnv 4372   dom cdm 4373   ran crn 4374    |` cres 4375   Rel wrel 4378   Fun wfun 4924    Fn wfn 4925   -->wf 4926   -onto->wfo 4928   -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-coll 3900  ax-sep 3903  ax-nul 3911  ax-pow 3955  ax-pr 3972  ax-un 4198  ax-setind 4290  ax-iinf 4339
This theorem depends on definitions:  df-bi 114  df-dc 754  df-3or 897  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-ne 2221  df-ral 2328  df-rex 2329  df-reu 2330  df-rab 2332  df-v 2576  df-sbc 2788  df-csb 2881  df-dif 2948  df-un 2950  df-in 2952  df-ss 2959  df-nul 3253  df-if 3360  df-pw 3389  df-sn 3409  df-pr 3410  df-op 3412  df-uni 3609  df-int 3644  df-iun 3687  df-br 3793  df-opab 3847  df-mpt 3848  df-tr 3883  df-id 4058  df-iord 4131  df-on 4133  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:  findcard  6376  findcard2  6377  findcard2s  6378  diffisn  6381
  Copyright terms: Public domain W3C validator