Users' Mathboxes Mathbox for Mario Carneiro < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  subfacp1lem1 Structured version   Unicode version

Theorem subfacp1lem1 24865
Description: Lemma for subfacp1 24872. The set  K together with  { 1 ,  M } partitions the set  1 ... ( N  +  1 ). (Contributed by Mario Carneiro, 23-Jan-2015.)
Hypotheses
Ref Expression
derang.d  |-  D  =  ( x  e.  Fin  |->  ( # `  { f  |  ( f : x -1-1-onto-> x  /\  A. y  e.  x  ( f `  y )  =/=  y
) } ) )
subfac.n  |-  S  =  ( n  e.  NN0  |->  ( D `  ( 1 ... n ) ) )
subfacp1lem.a  |-  A  =  { f  |  ( f : ( 1 ... ( N  + 
1 ) ) -1-1-onto-> ( 1 ... ( N  + 
1 ) )  /\  A. y  e.  ( 1 ... ( N  + 
1 ) ) ( f `  y )  =/=  y ) }
subfacp1lem1.n  |-  ( ph  ->  N  e.  NN )
subfacp1lem1.m  |-  ( ph  ->  M  e.  ( 2 ... ( N  + 
1 ) ) )
subfacp1lem1.x  |-  M  e. 
_V
subfacp1lem1.k  |-  K  =  ( ( 2 ... ( N  +  1 ) )  \  { M } )
Assertion
Ref Expression
subfacp1lem1  |-  ( ph  ->  ( ( K  i^i  { 1 ,  M }
)  =  (/)  /\  ( K  u.  { 1 ,  M } )  =  ( 1 ... ( N  +  1 ) )  /\  ( # `  K )  =  ( N  -  1 ) ) )
Distinct variable groups:    f, n, x, y, A    f, N, n, x, y    ph, x, y    D, n    f, K, n, x, y    f, M, x, y    S, n, x, y
Allowed substitution hints:    ph( f, n)    D( x, y, f)    S( f)    M( n)

Proof of Theorem subfacp1lem1
StepHypRef Expression
1 disj 3668 . . . 4  |-  ( ( K  i^i  { 1 ,  M } )  =  (/)  <->  A. x  e.  K  -.  x  e.  { 1 ,  M } )
2 eldifi 3469 . . . . . . . . 9  |-  ( x  e.  ( ( 2 ... ( N  + 
1 ) )  \  { M } )  ->  x  e.  ( 2 ... ( N  + 
1 ) ) )
3 elfzle1 11060 . . . . . . . . 9  |-  ( x  e.  ( 2 ... ( N  +  1 ) )  ->  2  <_  x )
4 1lt2 10142 . . . . . . . . . . . 12  |-  1  <  2
5 1re 9090 . . . . . . . . . . . . 13  |-  1  e.  RR
6 2re 10069 . . . . . . . . . . . . 13  |-  2  e.  RR
75, 6ltnlei 9194 . . . . . . . . . . . 12  |-  ( 1  <  2  <->  -.  2  <_  1 )
84, 7mpbi 200 . . . . . . . . . . 11  |-  -.  2  <_  1
9 breq2 4216 . . . . . . . . . . 11  |-  ( x  =  1  ->  (
2  <_  x  <->  2  <_  1 ) )
108, 9mtbiri 295 . . . . . . . . . 10  |-  ( x  =  1  ->  -.  2  <_  x )
1110necon2ai 2649 . . . . . . . . 9  |-  ( 2  <_  x  ->  x  =/=  1 )
122, 3, 113syl 19 . . . . . . . 8  |-  ( x  e.  ( ( 2 ... ( N  + 
1 ) )  \  { M } )  ->  x  =/=  1 )
13 eldifsni 3928 . . . . . . . 8  |-  ( x  e.  ( ( 2 ... ( N  + 
1 ) )  \  { M } )  ->  x  =/=  M )
1412, 13jca 519 . . . . . . 7  |-  ( x  e.  ( ( 2 ... ( N  + 
1 ) )  \  { M } )  -> 
( x  =/=  1  /\  x  =/=  M
) )
15 subfacp1lem1.k . . . . . . 7  |-  K  =  ( ( 2 ... ( N  +  1 ) )  \  { M } )
1614, 15eleq2s 2528 . . . . . 6  |-  ( x  e.  K  ->  (
x  =/=  1  /\  x  =/=  M ) )
17 neanior 2689 . . . . . 6  |-  ( ( x  =/=  1  /\  x  =/=  M )  <->  -.  ( x  =  1  \/  x  =  M ) )
1816, 17sylib 189 . . . . 5  |-  ( x  e.  K  ->  -.  ( x  =  1  \/  x  =  M
) )
19 vex 2959 . . . . . 6  |-  x  e. 
_V
2019elpr 3832 . . . . 5  |-  ( x  e.  { 1 ,  M }  <->  ( x  =  1  \/  x  =  M ) )
2118, 20sylnibr 297 . . . 4  |-  ( x  e.  K  ->  -.  x  e.  { 1 ,  M } )
221, 21mprgbir 2776 . . 3  |-  ( K  i^i  { 1 ,  M } )  =  (/)
2322a1i 11 . 2  |-  ( ph  ->  ( K  i^i  {
1 ,  M }
)  =  (/) )
24 uncom 3491 . . . 4  |-  ( { 1 }  u.  ( K  u.  { M } ) )  =  ( ( K  u.  { M } )  u. 
{ 1 } )
25 1z 10311 . . . . . 6  |-  1  e.  ZZ
26 fzsn 11094 . . . . . 6  |-  ( 1  e.  ZZ  ->  (
1 ... 1 )  =  { 1 } )
2725, 26ax-mp 8 . . . . 5  |-  ( 1 ... 1 )  =  { 1 }
2815uneq1i 3497 . . . . . 6  |-  ( K  u.  { M }
)  =  ( ( ( 2 ... ( N  +  1 ) )  \  { M } )  u.  { M } )
29 undif1 3703 . . . . . 6  |-  ( ( ( 2 ... ( N  +  1 ) )  \  { M } )  u.  { M } )  =  ( ( 2 ... ( N  +  1 ) )  u.  { M } )
3028, 29eqtr2i 2457 . . . . 5  |-  ( ( 2 ... ( N  +  1 ) )  u.  { M }
)  =  ( K  u.  { M }
)
3127, 30uneq12i 3499 . . . 4  |-  ( ( 1 ... 1 )  u.  ( ( 2 ... ( N  + 
1 ) )  u. 
{ M } ) )  =  ( { 1 }  u.  ( K  u.  { M } ) )
32 df-pr 3821 . . . . . . 7  |-  { 1 ,  M }  =  ( { 1 }  u.  { M } )
3332equncomi 3493 . . . . . 6  |-  { 1 ,  M }  =  ( { M }  u.  { 1 } )
3433uneq2i 3498 . . . . 5  |-  ( K  u.  { 1 ,  M } )  =  ( K  u.  ( { M }  u.  {
1 } ) )
35 unass 3504 . . . . 5  |-  ( ( K  u.  { M } )  u.  {
1 } )  =  ( K  u.  ( { M }  u.  {
1 } ) )
3634, 35eqtr4i 2459 . . . 4  |-  ( K  u.  { 1 ,  M } )  =  ( ( K  u.  { M } )  u. 
{ 1 } )
3724, 31, 363eqtr4i 2466 . . 3  |-  ( ( 1 ... 1 )  u.  ( ( 2 ... ( N  + 
1 ) )  u. 
{ M } ) )  =  ( K  u.  { 1 ,  M } )
38 subfacp1lem1.m . . . . . . . 8  |-  ( ph  ->  M  e.  ( 2 ... ( N  + 
1 ) ) )
3938snssd 3943 . . . . . . 7  |-  ( ph  ->  { M }  C_  ( 2 ... ( N  +  1 ) ) )
40 ssequn2 3520 . . . . . . 7  |-  ( { M }  C_  (
2 ... ( N  + 
1 ) )  <->  ( (
2 ... ( N  + 
1 ) )  u. 
{ M } )  =  ( 2 ... ( N  +  1 ) ) )
4139, 40sylib 189 . . . . . 6  |-  ( ph  ->  ( ( 2 ... ( N  +  1 ) )  u.  { M } )  =  ( 2 ... ( N  +  1 ) ) )
42 df-2 10058 . . . . . . 7  |-  2  =  ( 1  +  1 )
4342oveq1i 6091 . . . . . 6  |-  ( 2 ... ( N  + 
1 ) )  =  ( ( 1  +  1 ) ... ( N  +  1 ) )
4441, 43syl6eq 2484 . . . . 5  |-  ( ph  ->  ( ( 2 ... ( N  +  1 ) )  u.  { M } )  =  ( ( 1  +  1 ) ... ( N  +  1 ) ) )
4544uneq2d 3501 . . . 4  |-  ( ph  ->  ( ( 1 ... 1 )  u.  (
( 2 ... ( N  +  1 ) )  u.  { M } ) )  =  ( ( 1 ... 1 )  u.  (
( 1  +  1 ) ... ( N  +  1 ) ) ) )
46 subfacp1lem1.n . . . . . . 7  |-  ( ph  ->  N  e.  NN )
4746peano2nnd 10017 . . . . . 6  |-  ( ph  ->  ( N  +  1 )  e.  NN )
48 nnuz 10521 . . . . . 6  |-  NN  =  ( ZZ>= `  1 )
4947, 48syl6eleq 2526 . . . . 5  |-  ( ph  ->  ( N  +  1 )  e.  ( ZZ>= ` 
1 ) )
50 eluzfz1 11064 . . . . 5  |-  ( ( N  +  1 )  e.  ( ZZ>= `  1
)  ->  1  e.  ( 1 ... ( N  +  1 ) ) )
51 fzsplit 11077 . . . . 5  |-  ( 1  e.  ( 1 ... ( N  +  1 ) )  ->  (
1 ... ( N  + 
1 ) )  =  ( ( 1 ... 1 )  u.  (
( 1  +  1 ) ... ( N  +  1 ) ) ) )
5249, 50, 513syl 19 . . . 4  |-  ( ph  ->  ( 1 ... ( N  +  1 ) )  =  ( ( 1 ... 1 )  u.  ( ( 1  +  1 ) ... ( N  +  1 ) ) ) )
5345, 52eqtr4d 2471 . . 3  |-  ( ph  ->  ( ( 1 ... 1 )  u.  (
( 2 ... ( N  +  1 ) )  u.  { M } ) )  =  ( 1 ... ( N  +  1 ) ) )
5437, 53syl5eqr 2482 . 2  |-  ( ph  ->  ( K  u.  {
1 ,  M }
)  =  ( 1 ... ( N  + 
1 ) ) )
5542oveq2i 6092 . . 3  |-  ( ( N  +  1 )  -  2 )  =  ( ( N  + 
1 )  -  (
1  +  1 ) )
56 fzfi 11311 . . . . . . . . 9  |-  ( 2 ... ( N  + 
1 ) )  e. 
Fin
57 diffi 7339 . . . . . . . . 9  |-  ( ( 2 ... ( N  +  1 ) )  e.  Fin  ->  (
( 2 ... ( N  +  1 ) )  \  { M } )  e.  Fin )
5856, 57ax-mp 8 . . . . . . . 8  |-  ( ( 2 ... ( N  +  1 ) ) 
\  { M }
)  e.  Fin
5915, 58eqeltri 2506 . . . . . . 7  |-  K  e. 
Fin
60 prfi 7381 . . . . . . 7  |-  { 1 ,  M }  e.  Fin
61 hashun 11656 . . . . . . 7  |-  ( ( K  e.  Fin  /\  { 1 ,  M }  e.  Fin  /\  ( K  i^i  { 1 ,  M } )  =  (/) )  ->  ( # `  ( K  u.  {
1 ,  M }
) )  =  ( ( # `  K
)  +  ( # `  { 1 ,  M } ) ) )
6259, 60, 22, 61mp3an 1279 . . . . . 6  |-  ( # `  ( K  u.  {
1 ,  M }
) )  =  ( ( # `  K
)  +  ( # `  { 1 ,  M } ) )
6354fveq2d 5732 . . . . . 6  |-  ( ph  ->  ( # `  ( K  u.  { 1 ,  M } ) )  =  ( # `  (
1 ... ( N  + 
1 ) ) ) )
64 neeq1 2609 . . . . . . . . . . 11  |-  ( x  =  M  ->  (
x  =/=  1  <->  M  =/=  1 ) )
653, 11syl 16 . . . . . . . . . . 11  |-  ( x  e.  ( 2 ... ( N  +  1 ) )  ->  x  =/=  1 )
6664, 65vtoclga 3017 . . . . . . . . . 10  |-  ( M  e.  ( 2 ... ( N  +  1 ) )  ->  M  =/=  1 )
6738, 66syl 16 . . . . . . . . 9  |-  ( ph  ->  M  =/=  1 )
6867necomd 2687 . . . . . . . 8  |-  ( ph  ->  1  =/=  M )
69 1ex 9086 . . . . . . . . 9  |-  1  e.  _V
70 subfacp1lem1.x . . . . . . . . 9  |-  M  e. 
_V
71 hashprg 11666 . . . . . . . . 9  |-  ( ( 1  e.  _V  /\  M  e.  _V )  ->  ( 1  =/=  M  <->  (
# `  { 1 ,  M } )  =  2 ) )
7269, 70, 71mp2an 654 . . . . . . . 8  |-  ( 1  =/=  M  <->  ( # `  {
1 ,  M }
)  =  2 )
7368, 72sylib 189 . . . . . . 7  |-  ( ph  ->  ( # `  {
1 ,  M }
)  =  2 )
7473oveq2d 6097 . . . . . 6  |-  ( ph  ->  ( ( # `  K
)  +  ( # `  { 1 ,  M } ) )  =  ( ( # `  K
)  +  2 ) )
7562, 63, 743eqtr3a 2492 . . . . 5  |-  ( ph  ->  ( # `  (
1 ... ( N  + 
1 ) ) )  =  ( ( # `  K )  +  2 ) )
7647nnnn0d 10274 . . . . . 6  |-  ( ph  ->  ( N  +  1 )  e.  NN0 )
77 hashfz1 11630 . . . . . 6  |-  ( ( N  +  1 )  e.  NN0  ->  ( # `  ( 1 ... ( N  +  1 ) ) )  =  ( N  +  1 ) )
7876, 77syl 16 . . . . 5  |-  ( ph  ->  ( # `  (
1 ... ( N  + 
1 ) ) )  =  ( N  + 
1 ) )
7975, 78eqtr3d 2470 . . . 4  |-  ( ph  ->  ( ( # `  K
)  +  2 )  =  ( N  + 
1 ) )
8047nncnd 10016 . . . . 5  |-  ( ph  ->  ( N  +  1 )  e.  CC )
81 2cn 10070 . . . . . 6  |-  2  e.  CC
8281a1i 11 . . . . 5  |-  ( ph  ->  2  e.  CC )
83 hashcl 11639 . . . . . . . 8  |-  ( K  e.  Fin  ->  ( # `
 K )  e. 
NN0 )
8459, 83ax-mp 8 . . . . . . 7  |-  ( # `  K )  e.  NN0
8584nn0cni 10233 . . . . . 6  |-  ( # `  K )  e.  CC
8685a1i 11 . . . . 5  |-  ( ph  ->  ( # `  K
)  e.  CC )
8780, 82, 86subadd2d 9430 . . . 4  |-  ( ph  ->  ( ( ( N  +  1 )  - 
2 )  =  (
# `  K )  <->  ( ( # `  K
)  +  2 )  =  ( N  + 
1 ) ) )
8879, 87mpbird 224 . . 3  |-  ( ph  ->  ( ( N  + 
1 )  -  2 )  =  ( # `  K ) )
8946nncnd 10016 . . . 4  |-  ( ph  ->  N  e.  CC )
90 ax-1cn 9048 . . . . 5  |-  1  e.  CC
9190a1i 11 . . . 4  |-  ( ph  ->  1  e.  CC )
9289, 91, 91pnpcan2d 9449 . . 3  |-  ( ph  ->  ( ( N  + 
1 )  -  (
1  +  1 ) )  =  ( N  -  1 ) )
9355, 88, 923eqtr3a 2492 . 2  |-  ( ph  ->  ( # `  K
)  =  ( N  -  1 ) )
9423, 54, 933jca 1134 1  |-  ( ph  ->  ( ( K  i^i  { 1 ,  M }
)  =  (/)  /\  ( K  u.  { 1 ,  M } )  =  ( 1 ... ( N  +  1 ) )  /\  ( # `  K )  =  ( N  -  1 ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 177    \/ wo 358    /\ wa 359    /\ w3a 936    = wceq 1652    e. wcel 1725   {cab 2422    =/= wne 2599   A.wral 2705   _Vcvv 2956    \ cdif 3317    u. cun 3318    i^i cin 3319    C_ wss 3320   (/)c0 3628   {csn 3814   {cpr 3815   class class class wbr 4212    e. cmpt 4266   -1-1-onto->wf1o 5453   ` cfv 5454  (class class class)co 6081   Fincfn 7109   CCcc 8988   1c1 8991    + caddc 8993    < clt 9120    <_ cle 9121    - cmin 9291   NNcn 10000   2c2 10049   NN0cn0 10221   ZZcz 10282   ZZ>=cuz 10488   ...cfz 11043   #chash 11618
This theorem is referenced by:  subfacp1lem2a  24866  subfacp1lem3  24868  subfacp1lem4  24869
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2417  ax-rep 4320  ax-sep 4330  ax-nul 4338  ax-pow 4377  ax-pr 4403  ax-un 4701  ax-cnex 9046  ax-resscn 9047  ax-1cn 9048  ax-icn 9049  ax-addcl 9050  ax-addrcl 9051  ax-mulcl 9052  ax-mulrcl 9053  ax-mulcom 9054  ax-addass 9055  ax-mulass 9056  ax-distr 9057  ax-i2m1 9058  ax-1ne0 9059  ax-1rid 9060  ax-rnegex 9061  ax-rrecex 9062  ax-cnre 9063  ax-pre-lttri 9064  ax-pre-lttrn 9065  ax-pre-ltadd 9066  ax-pre-mulgt0 9067
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2285  df-mo 2286  df-clab 2423  df-cleq 2429  df-clel 2432  df-nfc 2561  df-ne 2601  df-nel 2602  df-ral 2710  df-rex 2711  df-reu 2712  df-rmo 2713  df-rab 2714  df-v 2958  df-sbc 3162  df-csb 3252  df-dif 3323  df-un 3325  df-in 3327  df-ss 3334  df-pss 3336  df-nul 3629  df-if 3740  df-pw 3801  df-sn 3820  df-pr 3821  df-tp 3822  df-op 3823  df-uni 4016  df-int 4051  df-iun 4095  df-br 4213  df-opab 4267  df-mpt 4268  df-tr 4303  df-eprel 4494  df-id 4498  df-po 4503  df-so 4504  df-fr 4541  df-we 4543  df-ord 4584  df-on 4585  df-lim 4586  df-suc 4587  df-om 4846  df-xp 4884  df-rel 4885  df-cnv 4886  df-co 4887  df-dm 4888  df-rn 4889  df-res 4890  df-ima 4891  df-iota 5418  df-fun 5456  df-fn 5457  df-f 5458  df-f1 5459  df-fo 5460  df-f1o 5461  df-fv 5462  df-ov 6084  df-oprab 6085  df-mpt2 6086  df-1st 6349  df-2nd 6350  df-riota 6549  df-recs 6633  df-rdg 6668  df-1o 6724  df-oadd 6728  df-er 6905  df-en 7110  df-dom 7111  df-sdom 7112  df-fin 7113  df-card 7826  df-cda 8048  df-pnf 9122  df-mnf 9123  df-xr 9124  df-ltxr 9125  df-le 9126  df-sub 9293  df-neg 9294  df-nn 10001  df-2 10058  df-n0 10222  df-z 10283  df-uz 10489  df-fz 11044  df-hash 11619
  Copyright terms: Public domain W3C validator