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

Theorem subfacp1lem1 23710
Description: Lemma for subfacp1 23717. 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 3495 . . . 4  |-  ( ( K  i^i  { 1 ,  M } )  =  (/)  <->  A. x  e.  K  -.  x  e.  { 1 ,  M } )
2 eldifi 3298 . . . . . . . . 9  |-  ( x  e.  ( ( 2 ... ( N  + 
1 ) )  \  { M } )  ->  x  e.  ( 2 ... ( N  + 
1 ) ) )
3 elfzle1 10799 . . . . . . . . 9  |-  ( x  e.  ( 2 ... ( N  +  1 ) )  ->  2  <_  x )
4 1lt2 9886 . . . . . . . . . . . 12  |-  1  <  2
5 1re 8837 . . . . . . . . . . . . 13  |-  1  e.  RR
6 2re 9815 . . . . . . . . . . . . 13  |-  2  e.  RR
75, 6ltnlei 8939 . . . . . . . . . . . 12  |-  ( 1  <  2  <->  -.  2  <_  1 )
84, 7mpbi 199 . . . . . . . . . . 11  |-  -.  2  <_  1
9 breq2 4027 . . . . . . . . . . 11  |-  ( x  =  1  ->  (
2  <_  x  <->  2  <_  1 ) )
108, 9mtbiri 294 . . . . . . . . . 10  |-  ( x  =  1  ->  -.  2  <_  x )
1110necon2ai 2491 . . . . . . . . 9  |-  ( 2  <_  x  ->  x  =/=  1 )
122, 3, 113syl 18 . . . . . . . 8  |-  ( x  e.  ( ( 2 ... ( N  + 
1 ) )  \  { M } )  ->  x  =/=  1 )
13 eldifsni 3750 . . . . . . . 8  |-  ( x  e.  ( ( 2 ... ( N  + 
1 ) )  \  { M } )  ->  x  =/=  M )
1412, 13jca 518 . . . . . . 7  |-  ( x  e.  ( ( 2 ... ( N  + 
1 ) )  \  { M } )  -> 
( x  =/=  1  /\  x  =/=  M
) )
15 subfacp1lem1.k . . . . . . 7  |-  K  =  ( ( 2 ... ( N  +  1 ) )  \  { M } )
1614, 15eleq2s 2375 . . . . . 6  |-  ( x  e.  K  ->  (
x  =/=  1  /\  x  =/=  M ) )
17 neanior 2531 . . . . . 6  |-  ( ( x  =/=  1  /\  x  =/=  M )  <->  -.  ( x  =  1  \/  x  =  M ) )
1816, 17sylib 188 . . . . 5  |-  ( x  e.  K  ->  -.  ( x  =  1  \/  x  =  M
) )
19 vex 2791 . . . . . 6  |-  x  e. 
_V
2019elpr 3658 . . . . 5  |-  ( x  e.  { 1 ,  M }  <->  ( x  =  1  \/  x  =  M ) )
2118, 20sylnibr 296 . . . 4  |-  ( x  e.  K  ->  -.  x  e.  { 1 ,  M } )
221, 21mprgbir 2613 . . 3  |-  ( K  i^i  { 1 ,  M } )  =  (/)
2322a1i 10 . 2  |-  ( ph  ->  ( K  i^i  {
1 ,  M }
)  =  (/) )
24 uncom 3319 . . . 4  |-  ( { 1 }  u.  ( K  u.  { M } ) )  =  ( ( K  u.  { M } )  u. 
{ 1 } )
25 1z 10053 . . . . . 6  |-  1  e.  ZZ
26 fzsn 10833 . . . . . 6  |-  ( 1  e.  ZZ  ->  (
1 ... 1 )  =  { 1 } )
2725, 26ax-mp 8 . . . . 5  |-  ( 1 ... 1 )  =  { 1 }
2815uneq1i 3325 . . . . . 6  |-  ( K  u.  { M }
)  =  ( ( ( 2 ... ( N  +  1 ) )  \  { M } )  u.  { M } )
29 undif1 3529 . . . . . 6  |-  ( ( ( 2 ... ( N  +  1 ) )  \  { M } )  u.  { M } )  =  ( ( 2 ... ( N  +  1 ) )  u.  { M } )
3028, 29eqtr2i 2304 . . . . 5  |-  ( ( 2 ... ( N  +  1 ) )  u.  { M }
)  =  ( K  u.  { M }
)
3127, 30uneq12i 3327 . . . 4  |-  ( ( 1 ... 1 )  u.  ( ( 2 ... ( N  + 
1 ) )  u. 
{ M } ) )  =  ( { 1 }  u.  ( K  u.  { M } ) )
32 df-pr 3647 . . . . . . 7  |-  { 1 ,  M }  =  ( { 1 }  u.  { M } )
3332equncomi 3321 . . . . . 6  |-  { 1 ,  M }  =  ( { M }  u.  { 1 } )
3433uneq2i 3326 . . . . 5  |-  ( K  u.  { 1 ,  M } )  =  ( K  u.  ( { M }  u.  {
1 } ) )
35 unass 3332 . . . . 5  |-  ( ( K  u.  { M } )  u.  {
1 } )  =  ( K  u.  ( { M }  u.  {
1 } ) )
3634, 35eqtr4i 2306 . . . 4  |-  ( K  u.  { 1 ,  M } )  =  ( ( K  u.  { M } )  u. 
{ 1 } )
3724, 31, 363eqtr4i 2313 . . 3  |-  ( ( 1 ... 1 )  u.  ( ( 2 ... ( N  + 
1 ) )  u. 
{ M } ) )  =  ( K  u.  { 1 ,  M } )
38 subfacp1lem1.m . . . . . . . 8  |-  ( ph  ->  M  e.  ( 2 ... ( N  + 
1 ) ) )
3938snssd 3760 . . . . . . 7  |-  ( ph  ->  { M }  C_  ( 2 ... ( N  +  1 ) ) )
40 ssequn2 3348 . . . . . . 7  |-  ( { M }  C_  (
2 ... ( N  + 
1 ) )  <->  ( (
2 ... ( N  + 
1 ) )  u. 
{ M } )  =  ( 2 ... ( N  +  1 ) ) )
4139, 40sylib 188 . . . . . 6  |-  ( ph  ->  ( ( 2 ... ( N  +  1 ) )  u.  { M } )  =  ( 2 ... ( N  +  1 ) ) )
42 df-2 9804 . . . . . . 7  |-  2  =  ( 1  +  1 )
4342oveq1i 5868 . . . . . 6  |-  ( 2 ... ( N  + 
1 ) )  =  ( ( 1  +  1 ) ... ( N  +  1 ) )
4441, 43syl6eq 2331 . . . . 5  |-  ( ph  ->  ( ( 2 ... ( N  +  1 ) )  u.  { M } )  =  ( ( 1  +  1 ) ... ( N  +  1 ) ) )
4544uneq2d 3329 . . . 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 9763 . . . . . 6  |-  ( ph  ->  ( N  +  1 )  e.  NN )
48 nnuz 10263 . . . . . 6  |-  NN  =  ( ZZ>= `  1 )
4947, 48syl6eleq 2373 . . . . 5  |-  ( ph  ->  ( N  +  1 )  e.  ( ZZ>= ` 
1 ) )
50 eluzfz1 10803 . . . . 5  |-  ( ( N  +  1 )  e.  ( ZZ>= `  1
)  ->  1  e.  ( 1 ... ( N  +  1 ) ) )
51 fzsplit 10816 . . . . 5  |-  ( 1  e.  ( 1 ... ( N  +  1 ) )  ->  (
1 ... ( N  + 
1 ) )  =  ( ( 1 ... 1 )  u.  (
( 1  +  1 ) ... ( N  +  1 ) ) ) )
5249, 50, 513syl 18 . . . 4  |-  ( ph  ->  ( 1 ... ( N  +  1 ) )  =  ( ( 1 ... 1 )  u.  ( ( 1  +  1 ) ... ( N  +  1 ) ) ) )
5345, 52eqtr4d 2318 . . 3  |-  ( ph  ->  ( ( 1 ... 1 )  u.  (
( 2 ... ( N  +  1 ) )  u.  { M } ) )  =  ( 1 ... ( N  +  1 ) ) )
5437, 53syl5eqr 2329 . 2  |-  ( ph  ->  ( K  u.  {
1 ,  M }
)  =  ( 1 ... ( N  + 
1 ) ) )
5542oveq2i 5869 . . 3  |-  ( ( N  +  1 )  -  2 )  =  ( ( N  + 
1 )  -  (
1  +  1 ) )
56 fzfi 11034 . . . . . . . . 9  |-  ( 2 ... ( N  + 
1 ) )  e. 
Fin
57 diffi 7089 . . . . . . . . 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 2353 . . . . . . 7  |-  K  e. 
Fin
60 prfi 7131 . . . . . . 7  |-  { 1 ,  M }  e.  Fin
61 hashun 11364 . . . . . . 7  |-  ( ( K  e.  Fin  /\  { 1 ,  M }  e.  Fin  /\  ( K  i^i  { 1 ,  M } )  =  (/) )  ->  ( # `  ( K  u.  {
1 ,  M }
) )  =  ( ( # `  K
)  +  ( # `  { 1 ,  M } ) ) )
6259, 60, 22, 61mp3an 1277 . . . . . 6  |-  ( # `  ( K  u.  {
1 ,  M }
) )  =  ( ( # `  K
)  +  ( # `  { 1 ,  M } ) )
6354fveq2d 5529 . . . . . 6  |-  ( ph  ->  ( # `  ( K  u.  { 1 ,  M } ) )  =  ( # `  (
1 ... ( N  + 
1 ) ) ) )
64 neeq1 2454 . . . . . . . . . . 11  |-  ( x  =  M  ->  (
x  =/=  1  <->  M  =/=  1 ) )
653, 11syl 15 . . . . . . . . . . 11  |-  ( x  e.  ( 2 ... ( N  +  1 ) )  ->  x  =/=  1 )
6664, 65vtoclga 2849 . . . . . . . . . 10  |-  ( M  e.  ( 2 ... ( N  +  1 ) )  ->  M  =/=  1 )
6738, 66syl 15 . . . . . . . . 9  |-  ( ph  ->  M  =/=  1 )
6867necomd 2529 . . . . . . . 8  |-  ( ph  ->  1  =/=  M )
69 1ex 8833 . . . . . . . . 9  |-  1  e.  _V
70 subfacp1lem1.x . . . . . . . . 9  |-  M  e. 
_V
71 hashprg 11368 . . . . . . . . 9  |-  ( ( 1  e.  _V  /\  M  e.  _V )  ->  ( 1  =/=  M  <->  (
# `  { 1 ,  M } )  =  2 ) )
7269, 70, 71mp2an 653 . . . . . . . 8  |-  ( 1  =/=  M  <->  ( # `  {
1 ,  M }
)  =  2 )
7368, 72sylib 188 . . . . . . 7  |-  ( ph  ->  ( # `  {
1 ,  M }
)  =  2 )
7473oveq2d 5874 . . . . . 6  |-  ( ph  ->  ( ( # `  K
)  +  ( # `  { 1 ,  M } ) )  =  ( ( # `  K
)  +  2 ) )
7562, 63, 743eqtr3a 2339 . . . . 5  |-  ( ph  ->  ( # `  (
1 ... ( N  + 
1 ) ) )  =  ( ( # `  K )  +  2 ) )
7647nnnn0d 10018 . . . . . 6  |-  ( ph  ->  ( N  +  1 )  e.  NN0 )
77 hashfz1 11345 . . . . . 6  |-  ( ( N  +  1 )  e.  NN0  ->  ( # `  ( 1 ... ( N  +  1 ) ) )  =  ( N  +  1 ) )
7876, 77syl 15 . . . . 5  |-  ( ph  ->  ( # `  (
1 ... ( N  + 
1 ) ) )  =  ( N  + 
1 ) )
7975, 78eqtr3d 2317 . . . 4  |-  ( ph  ->  ( ( # `  K
)  +  2 )  =  ( N  + 
1 ) )
8047nncnd 9762 . . . . 5  |-  ( ph  ->  ( N  +  1 )  e.  CC )
81 2cn 9816 . . . . . 6  |-  2  e.  CC
8281a1i 10 . . . . 5  |-  ( ph  ->  2  e.  CC )
83 hashcl 11350 . . . . . . . 8  |-  ( K  e.  Fin  ->  ( # `
 K )  e. 
NN0 )
8459, 83ax-mp 8 . . . . . . 7  |-  ( # `  K )  e.  NN0
8584nn0cni 9977 . . . . . 6  |-  ( # `  K )  e.  CC
8685a1i 10 . . . . 5  |-  ( ph  ->  ( # `  K
)  e.  CC )
8780, 82, 86subadd2d 9176 . . . 4  |-  ( ph  ->  ( ( ( N  +  1 )  - 
2 )  =  (
# `  K )  <->  ( ( # `  K
)  +  2 )  =  ( N  + 
1 ) ) )
8879, 87mpbird 223 . . 3  |-  ( ph  ->  ( ( N  + 
1 )  -  2 )  =  ( # `  K ) )
8946nncnd 9762 . . . 4  |-  ( ph  ->  N  e.  CC )
90 ax-1cn 8795 . . . . 5  |-  1  e.  CC
9190a1i 10 . . . 4  |-  ( ph  ->  1  e.  CC )
9289, 91, 91pnpcan2d 9195 . . 3  |-  ( ph  ->  ( ( N  + 
1 )  -  (
1  +  1 ) )  =  ( N  -  1 ) )
9355, 88, 923eqtr3a 2339 . 2  |-  ( ph  ->  ( # `  K
)  =  ( N  -  1 ) )
9423, 54, 933jca 1132 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 176    \/ wo 357    /\ wa 358    /\ w3a 934    = wceq 1623    e. wcel 1684   {cab 2269    =/= wne 2446   A.wral 2543   _Vcvv 2788    \ cdif 3149    u. cun 3150    i^i cin 3151    C_ wss 3152   (/)c0 3455   {csn 3640   {cpr 3641   class class class wbr 4023    e. cmpt 4077   -1-1-onto->wf1o 5254   ` cfv 5255  (class class class)co 5858   Fincfn 6863   CCcc 8735   1c1 8738    + caddc 8740    < clt 8867    <_ cle 8868    - cmin 9037   NNcn 9746   2c2 9795   NN0cn0 9965   ZZcz 10024   ZZ>=cuz 10230   ...cfz 10782   #chash 11337
This theorem is referenced by:  subfacp1lem2a  23711  subfacp1lem3  23713  subfacp1lem4  23714
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-rep 4131  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512  ax-cnex 8793  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  df-rmo 2551  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-pss 3168  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-tp 3648  df-op 3649  df-uni 3828  df-int 3863  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-tr 4114  df-eprel 4305  df-id 4309  df-po 4314  df-so 4315  df-fr 4352  df-we 4354  df-ord 4395  df-on 4396  df-lim 4397  df-suc 4398  df-om 4657  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-1st 6122  df-2nd 6123  df-riota 6304  df-recs 6388  df-rdg 6423  df-1o 6479  df-oadd 6483  df-er 6660  df-en 6864  df-dom 6865  df-sdom 6866  df-fin 6867  df-card 7572  df-cda 7794  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-nn 9747  df-2 9804  df-n0 9966  df-z 10025  df-uz 10231  df-fz 10783  df-hash 11338
  Copyright terms: Public domain W3C validator