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

Theorem dif1en 6766
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 982 . . . 4  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  A  ~~  suc  M
)
21ensymd 6670 . . 3  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  suc  M  ~~  A
)
3 bren 6634 . . 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 4504 . . . . . . . 8  |-  ( M  e.  om  ->  suc  M  e.  om )
6 nnfi 6759 . . . . . . . 8  |-  ( suc 
M  e.  om  ->  suc 
M  e.  Fin )
75, 6syl 14 . . . . . . 7  |-  ( M  e.  om  ->  suc  M  e.  Fin )
873ad2ant1 1002 . . . . . 6  |-  ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A )  ->  suc  M  e.  Fin )
9 enfii 6761 . . . . . 6  |-  ( ( suc  M  e.  Fin  /\  A  ~~  suc  M
)  ->  A  e.  Fin )
108, 1, 9syl2anc 408 . . . . 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 986 . . . 4  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  X  e.  A )
13 f1of 5360 . . . . . 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 4333 . . . . . . 7  |-  ( M  e.  om  ->  M  e.  suc  M )
16153ad2ant1 1002 . . . . . 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 5549 . . . 4  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f `  M )  e.  A )
19 fidifsnen 6757 . . . 4  |-  ( ( A  e.  Fin  /\  X  e.  A  /\  ( f `  M
)  e.  A )  ->  ( A  \  { X } )  ~~  ( A  \  { ( f `  M ) } ) )
2011, 12, 18, 19syl3anc 1216 . . 3  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( A  \  { X }
)  ~~  ( A  \  { ( f `  M ) } ) )
21 nnord 4520 . . . . . . . 8  |-  ( M  e.  om  ->  Ord  M )
22 orddif 4457 . . . . . . . 8  |-  ( Ord 
M  ->  M  =  ( suc  M  \  { M } ) )
2321, 22syl 14 . . . . . . 7  |-  ( M  e.  om  ->  M  =  ( suc  M  \  { M } ) )
24233ad2ant1 1002 . . . . . 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 2206 . . . . . . . . 9  |-  ( M  e.  om  ->  ( M  e.  om  <->  ( suc  M 
\  { M }
)  e.  om )
)
2726ibi 175 . . . . . . . 8  |-  ( M  e.  om  ->  ( suc  M  \  { M } )  e.  om )
28273ad2ant1 1002 . . . . . . 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 5365 . . . . . . . . 9  |-  ( f : suc  M -1-1-onto-> A  <->  ( f  Fn  suc  M  /\  Fun  `' f  /\  ran  f  =  A ) )
3130simp2bi 997 . . . . . . . 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 5367 . . . . . . . . 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 5363 . . . . . . . . . . . 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 4853 . . . . . . . . . . 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 5364 . . . . . . . . . . . 12  |-  ( f : suc  M -1-1-onto-> A  ->  dom  f  =  suc  M )
4039reseq2d 4814 . . . . . . . . . . 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 2172 . . . . . . . . 9  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  f  =  ( f  |`  suc  M ) )
43 foeq1 5336 . . . . . . . . 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 984 . . . . . . . . . 10  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  M  e.  om )
47 f1osng 5401 . . . . . . . . . 10  |-  ( ( M  e.  om  /\  ( f `  M
)  e.  A )  ->  { <. M , 
( f `  M
) >. } : { M } -1-1-onto-> { ( f `  M ) } )
4846, 18, 47syl2anc 408 . . . . . . . . 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 5367 . . . . . . . . 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 5361 . . . . . . . . . . 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 5599 . . . . . . . . . 10  |-  ( ( f  Fn  suc  M  /\  M  e.  suc  M )  ->  ( f  |` 
{ M } )  =  { <. M , 
( f `  M
) >. } )
5452, 17, 53syl2anc 408 . . . . . . . . 9  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  (
f  |`  { M }
)  =  { <. M ,  ( f `  M ) >. } )
55 foeq1 5336 . . . . . . . . 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 5382 . . . . . . 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 1216 . . . . . 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 6644 . . . . . 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 408 . . . . 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 3945 . . . 4  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  M  ~~  ( A  \  {
( f `  M
) } ) )
6362ensymd 6670 . . 3  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( A  \  { ( f `
 M ) } )  ~~  M )
64 entr 6671 . . 3  |-  ( ( ( A  \  { X } )  ~~  ( A  \  { ( f `
 M ) } )  /\  ( A 
\  { ( f `
 M ) } )  ~~  M )  ->  ( A  \  { X } )  ~~  M )
6520, 63, 64syl2anc 408 . 2  |-  ( ( ( M  e.  om  /\  A  ~~  suc  M  /\  X  e.  A
)  /\  f : suc  M -1-1-onto-> A )  ->  ( A  \  { X }
)  ~~  M )
664, 65exlimddv 1870 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 962    = wceq 1331   E.wex 1468    e. wcel 1480    \ cdif 3063   {csn 3522   <.cop 3525   class class class wbr 3924   Ord word 4279   suc csuc 4282   omcom 4499   `'ccnv 4533   dom cdm 4534   ran crn 4535    |` cres 4536   Rel wrel 4539   Fun wfun 5112    Fn wfn 5113   -->wf 5114   -onto->wfo 5116   -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-coll 4038  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-fal 1337  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-reu 2421  df-rab 2423  df-v 2683  df-sbc 2905  df-csb 2999  df-dif 3068  df-un 3070  df-in 3072  df-ss 3079  df-nul 3359  df-if 3470  df-pw 3507  df-sn 3528  df-pr 3529  df-op 3531  df-uni 3732  df-int 3767  df-iun 3810  df-br 3925  df-opab 3985  df-mpt 3986  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-res 4546  df-ima 4547  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-er 6422  df-en 6628  df-fin 6630
This theorem is referenced by:  dif1enen  6767  findcard  6775  findcard2  6776  findcard2s  6777  diffisn  6780  en2eleq  7044  en2other2  7045  zfz1isolem1  10576
  Copyright terms: Public domain W3C validator