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

Theorem dif1en 6845
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 988 . . . 4  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  A  ~~  suc  M
)
21ensymd 6749 . . 3  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  suc  M  ~~  A
)
3 bren 6713 . . 3  |-  ( suc 
M  ~~  A  <->  E. f 
f : suc  M -1-1-onto-> A
)
42, 3sylib 121 . 2  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  E. f  f : suc  M -1-1-onto-> A )
5 peano2 4572 . . . . . . . 8  |-  ( M  e.  om  ->  suc  M  e.  om )
6 nnfi 6838 . . . . . . . 8  |-  ( suc 
M  e.  om  ->  suc 
M  e.  Fin )
75, 6syl 14 . . . . . . 7  |-  ( M  e.  om  ->  suc  M  e.  Fin )
873ad2ant1 1008 . . . . . 6  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  suc  M  e.  Fin )
9 enfii 6840 . . . . . 6  |-  ( ( suc  M  e.  Fin  /\  A  ~~  suc  M
)  ->  A  e.  Fin )
108, 1, 9syl2anc 409 . . . . 5  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  A  e.  Fin )
1110adantr 274 . . . 4  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  A  e.  Fin )
12 simpl3 992 . . . 4  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  X  e.  A )
13 f1of 5432 . . . . . 6  |-  ( f : suc  M -1-1-onto-> A  -> 
f : suc  M --> A )
1413adantl 275 . . . . 5  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  f : suc  M --> A )
15 sucidg 4394 . . . . . . 7  |-  ( M  e.  om  ->  M  e.  suc  M )
16153ad2ant1 1008 . . . . . 6  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  M  e.  suc  M
)
1716adantr 274 . . . . 5  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  M  e.  suc  M )
1814, 17ffvelrnd 5621 . . . 4  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f `  M )  e.  A )
19 fidifsnen 6836 . . . 4  |-  ( ( A  e.  Fin  /\  X  e.  A  /\  ( f `  M
)  e.  A )  ->  ( A  \  { X } )  ~~  ( A  \  { ( f `  M ) } ) )
2011, 12, 18, 19syl3anc 1228 . . 3  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( A  \  { X }
)  ~~  ( A  \  { ( f `  M ) } ) )
21 nnord 4589 . . . . . . . 8  |-  ( M  e.  om  ->  Ord  M )
22 orddif 4524 . . . . . . . 8  |-  ( Ord 
M  ->  M  =  ( suc  M  \  { M } ) )
2321, 22syl 14 . . . . . . 7  |-  ( M  e.  om  ->  M  =  ( suc  M  \  { M } ) )
24233ad2ant1 1008 . . . . . 6  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  M  =  ( suc 
M  \  { M } ) )
2524adantr 274 . . . . 5  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  M  =  ( suc  M  \  { M } ) )
2623eleq1d 2235 . . . . . . . . 9  |-  ( M  e.  om  ->  ( M  e.  om  <->  ( suc  M 
\  { M }
)  e.  om )
)
2726ibi 175 . . . . . . . 8  |-  ( M  e.  om  ->  ( suc  M  \  { M } )  e.  om )
28273ad2ant1 1008 . . . . . . 7  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  ( suc  M  \  { M } )  e. 
om )
2928adantr 274 . . . . . 6  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( suc  M  \  { M } )  e.  om )
30 dff1o2 5437 . . . . . . . . 9  |-  ( f : suc  M -1-1-onto-> A  <->  ( f  Fn  suc  M  /\  Fun  `' f  /\  ran  f  =  A ) )
3130simp2bi 1003 . . . . . . . 8  |-  ( f : suc  M -1-1-onto-> A  ->  Fun  `' f )
3231adantl 275 . . . . . . 7  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  Fun  `' f )
33 f1ofo 5439 . . . . . . . . 9  |-  ( f : suc  M -1-1-onto-> A  -> 
f : suc  M -onto-> A )
3433adantl 275 . . . . . . . 8  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  f : suc  M -onto-> A )
35 f1orel 5435 . . . . . . . . . . . 12  |-  ( f : suc  M -1-1-onto-> A  ->  Rel  f )
3635adantl 275 . . . . . . . . . . 11  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  Rel  f )
37 resdm 4923 . . . . . . . . . . 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 5436 . . . . . . . . . . . 12  |-  ( f : suc  M -1-1-onto-> A  ->  dom  f  =  suc  M )
4039reseq2d 4884 . . . . . . . . . . 11  |-  ( f : suc  M -1-1-onto-> A  -> 
( f  |`  dom  f
)  =  ( f  |`  suc  M ) )
4140adantl 275 . . . . . . . . . 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 2200 . . . . . . . . 9  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  f  =  ( f  |`  suc  M ) )
43 foeq1 5406 . . . . . . . . 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 146 . . . . . . 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 990 . . . . . . . . . 10  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  M  e.  om )
47 f1osng 5473 . . . . . . . . . 10  |-  ( ( M  e.  om  /\  ( f `  M
)  e.  A )  ->  { <. M , 
( f `  M
) >. } : { M } -1-1-onto-> { ( f `  M ) } )
4846, 18, 47syl2anc 409 . . . . . . . . 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 5439 . . . . . . . . 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 5433 . . . . . . . . . . 11  |-  ( f : suc  M -1-1-onto-> A  -> 
f  Fn  suc  M
)
5251adantl 275 . . . . . . . . . 10  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  f  Fn  suc  M )
53 fnressn 5671 . . . . . . . . . 10  |-  ( ( f  Fn  suc  M  /\  M  e.  suc  M )  ->  ( f  |` 
{ M } )  =  { <. M , 
( f `  M
) >. } )
5452, 17, 53syl2anc 409 . . . . . . . . 9  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f  |`  { M }
)  =  { <. M ,  ( f `  M ) >. } )
55 foeq1 5406 . . . . . . . . 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 166 . . . . . . 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 5454 . . . . . . 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 1228 . . . . . 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 6723 . . . . . 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 409 . . . . 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 4004 . . . 4  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  M  ~~  ( A  \  {
( f `  M
) } ) )
6362ensymd 6749 . . 3  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( A  \  { ( f `
 M ) } )  ~~  M )
64 entr 6750 . . 3  |-  ( ( ( A  \  { X } )  ~~  ( A  \  { ( f `
 M ) } )  /\  ( A 
\  { ( f `
 M ) } )  ~~  M )  ->  ( A  \  { X } )  ~~  M )
6520, 63, 64syl2anc 409 . 2  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( A  \  { X }
)  ~~  M )
664, 65exlimddv 1886 1  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  ( A  \  { X } )  ~~  M
)
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    /\ w3a 968    = wceq 1343   E.wex 1480    e. wcel 2136    \ cdif 3113   {csn 3576   <.cop 3579   class class class wbr 3982   Ord word 4340   suc csuc 4343   omcom 4567   `'ccnv 4603   dom cdm 4604   ran crn 4605    |` cres 4606   Rel wrel 4609   Fun wfun 5182    Fn wfn 5183   -->wf 5184   -onto->wfo 5186   -1-1-onto->wf1o 5187   ` cfv 5188    ~~ cen 6704   Fincfn 6706
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 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-coll 4097  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-iinf 4565
This theorem depends on definitions:  df-bi 116  df-dc 825  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-ral 2449  df-rex 2450  df-reu 2451  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-if 3521  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-iun 3868  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-suc 4349  df-iom 4568  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-er 6501  df-en 6707  df-fin 6709
This theorem is referenced by:  dif1enen  6846  findcard  6854  findcard2  6855  findcard2s  6856  diffisn  6859  en2eleq  7151  en2other2  7152  zfz1isolem1  10753
  Copyright terms: Public domain W3C validator