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

Theorem dvdsfac 10260
Description: A positive integer divides any greater factorial. (Contributed by Paul Chapman, 28-Nov-2012.)
Assertion
Ref Expression
dvdsfac  |-  ( ( K  e.  NN  /\  N  e.  ( ZZ>= `  K ) )  ->  K  ||  ( ! `  N ) )

Proof of Theorem dvdsfac
Dummy variables  x  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fveq2 5198 . . . . 5  |-  ( x  =  K  ->  ( ! `  x )  =  ( ! `  K ) )
21breq2d 3797 . . . 4  |-  ( x  =  K  ->  ( K  ||  ( ! `  x )  <->  K  ||  ( ! `  K )
) )
32imbi2d 228 . . 3  |-  ( x  =  K  ->  (
( K  e.  NN  ->  K  ||  ( ! `
 x ) )  <-> 
( K  e.  NN  ->  K  ||  ( ! `
 K ) ) ) )
4 fveq2 5198 . . . . 5  |-  ( x  =  y  ->  ( ! `  x )  =  ( ! `  y ) )
54breq2d 3797 . . . 4  |-  ( x  =  y  ->  ( K  ||  ( ! `  x )  <->  K  ||  ( ! `  y )
) )
65imbi2d 228 . . 3  |-  ( x  =  y  ->  (
( K  e.  NN  ->  K  ||  ( ! `
 x ) )  <-> 
( K  e.  NN  ->  K  ||  ( ! `
 y ) ) ) )
7 fveq2 5198 . . . . 5  |-  ( x  =  ( y  +  1 )  ->  ( ! `  x )  =  ( ! `  ( y  +  1 ) ) )
87breq2d 3797 . . . 4  |-  ( x  =  ( y  +  1 )  ->  ( K  ||  ( ! `  x )  <->  K  ||  ( ! `  ( y  +  1 ) ) ) )
98imbi2d 228 . . 3  |-  ( x  =  ( y  +  1 )  ->  (
( K  e.  NN  ->  K  ||  ( ! `
 x ) )  <-> 
( K  e.  NN  ->  K  ||  ( ! `
 ( y  +  1 ) ) ) ) )
10 fveq2 5198 . . . . 5  |-  ( x  =  N  ->  ( ! `  x )  =  ( ! `  N ) )
1110breq2d 3797 . . . 4  |-  ( x  =  N  ->  ( K  ||  ( ! `  x )  <->  K  ||  ( ! `  N )
) )
1211imbi2d 228 . . 3  |-  ( x  =  N  ->  (
( K  e.  NN  ->  K  ||  ( ! `
 x ) )  <-> 
( K  e.  NN  ->  K  ||  ( ! `
 N ) ) ) )
13 nnm1nn0 8329 . . . . . . . 8  |-  ( K  e.  NN  ->  ( K  -  1 )  e.  NN0 )
14 faccl 9662 . . . . . . . 8  |-  ( ( K  -  1 )  e.  NN0  ->  ( ! `
 ( K  - 
1 ) )  e.  NN )
1513, 14syl 14 . . . . . . 7  |-  ( K  e.  NN  ->  ( ! `  ( K  -  1 ) )  e.  NN )
1615nnzd 8468 . . . . . 6  |-  ( K  e.  NN  ->  ( ! `  ( K  -  1 ) )  e.  ZZ )
17 nnz 8370 . . . . . 6  |-  ( K  e.  NN  ->  K  e.  ZZ )
18 dvdsmul2 10218 . . . . . 6  |-  ( ( ( ! `  ( K  -  1 ) )  e.  ZZ  /\  K  e.  ZZ )  ->  K  ||  ( ( ! `  ( K  -  1 ) )  x.  K ) )
1916, 17, 18syl2anc 403 . . . . 5  |-  ( K  e.  NN  ->  K  ||  ( ( ! `  ( K  -  1
) )  x.  K
) )
20 facnn2 9661 . . . . 5  |-  ( K  e.  NN  ->  ( ! `  K )  =  ( ( ! `
 ( K  - 
1 ) )  x.  K ) )
2119, 20breqtrrd 3811 . . . 4  |-  ( K  e.  NN  ->  K  ||  ( ! `  K
) )
2221a1i 9 . . 3  |-  ( K  e.  ZZ  ->  ( K  e.  NN  ->  K 
||  ( ! `  K ) ) )
2317adantl 271 . . . . . . 7  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  K  e.  ZZ )
24 elnnuz 8655 . . . . . . . . . . . 12  |-  ( K  e.  NN  <->  K  e.  ( ZZ>= `  1 )
)
25 uztrn 8635 . . . . . . . . . . . 12  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  ( ZZ>= `  1 )
)  ->  y  e.  ( ZZ>= `  1 )
)
2624, 25sylan2b 281 . . . . . . . . . . 11  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  y  e.  ( ZZ>= `  1 )
)
27 elnnuz 8655 . . . . . . . . . . 11  |-  ( y  e.  NN  <->  y  e.  ( ZZ>= `  1 )
)
2826, 27sylibr 132 . . . . . . . . . 10  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  y  e.  NN )
2928nnnn0d 8341 . . . . . . . . 9  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  y  e.  NN0 )
30 faccl 9662 . . . . . . . . 9  |-  ( y  e.  NN0  ->  ( ! `
 y )  e.  NN )
3129, 30syl 14 . . . . . . . 8  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  ( ! `  y )  e.  NN )
3231nnzd 8468 . . . . . . 7  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  ( ! `  y )  e.  ZZ )
3328nnzd 8468 . . . . . . . 8  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  y  e.  ZZ )
3433peano2zd 8472 . . . . . . 7  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  (
y  +  1 )  e.  ZZ )
35 dvdsmultr1 10233 . . . . . . 7  |-  ( ( K  e.  ZZ  /\  ( ! `  y )  e.  ZZ  /\  (
y  +  1 )  e.  ZZ )  -> 
( K  ||  ( ! `  y )  ->  K  ||  ( ( ! `  y )  x.  ( y  +  1 ) ) ) )
3623, 32, 34, 35syl3anc 1169 . . . . . 6  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  ( K  ||  ( ! `  y )  ->  K  ||  ( ( ! `  y )  x.  (
y  +  1 ) ) ) )
37 facp1 9657 . . . . . . . 8  |-  ( y  e.  NN0  ->  ( ! `
 ( y  +  1 ) )  =  ( ( ! `  y )  x.  (
y  +  1 ) ) )
3829, 37syl 14 . . . . . . 7  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  ( ! `  ( y  +  1 ) )  =  ( ( ! `
 y )  x.  ( y  +  1 ) ) )
3938breq2d 3797 . . . . . 6  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  ( K  ||  ( ! `  ( y  +  1 ) )  <->  K  ||  (
( ! `  y
)  x.  ( y  +  1 ) ) ) )
4036, 39sylibrd 167 . . . . 5  |-  ( ( y  e.  ( ZZ>= `  K )  /\  K  e.  NN )  ->  ( K  ||  ( ! `  y )  ->  K  ||  ( ! `  (
y  +  1 ) ) ) )
4140ex 113 . . . 4  |-  ( y  e.  ( ZZ>= `  K
)  ->  ( K  e.  NN  ->  ( K  ||  ( ! `  y
)  ->  K  ||  ( ! `  ( y  +  1 ) ) ) ) )
4241a2d 26 . . 3  |-  ( y  e.  ( ZZ>= `  K
)  ->  ( ( K  e.  NN  ->  K 
||  ( ! `  y ) )  -> 
( K  e.  NN  ->  K  ||  ( ! `
 ( y  +  1 ) ) ) ) )
433, 6, 9, 12, 22, 42uzind4 8676 . 2  |-  ( N  e.  ( ZZ>= `  K
)  ->  ( K  e.  NN  ->  K  ||  ( ! `  N )
) )
4443impcom 123 1  |-  ( ( K  e.  NN  /\  N  e.  ( ZZ>= `  K ) )  ->  K  ||  ( ! `  N ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 102    = wceq 1284    e. wcel 1433   class class class wbr 3785   ` cfv 4922  (class class class)co 5532   1c1 6982    + caddc 6984    x. cmul 6986    - cmin 7279   NNcn 8039   NN0cn0 8288   ZZcz 8351   ZZ>=cuz 8619   !cfa 9652    || cdvds 10195
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 576  ax-in2 577  ax-io 662  ax-5 1376  ax-7 1377  ax-gen 1378  ax-ie1 1422  ax-ie2 1423  ax-8 1435  ax-10 1436  ax-11 1437  ax-i12 1438  ax-bndl 1439  ax-4 1440  ax-13 1444  ax-14 1445  ax-17 1459  ax-i9 1463  ax-ial 1467  ax-i5r 1468  ax-ext 2063  ax-coll 3893  ax-sep 3896  ax-nul 3904  ax-pow 3948  ax-pr 3964  ax-un 4188  ax-setind 4280  ax-iinf 4329  ax-cnex 7067  ax-resscn 7068  ax-1cn 7069  ax-1re 7070  ax-icn 7071  ax-addcl 7072  ax-addrcl 7073  ax-mulcl 7074  ax-mulrcl 7075  ax-addcom 7076  ax-mulcom 7077  ax-addass 7078  ax-mulass 7079  ax-distr 7080  ax-i2m1 7081  ax-0lt1 7082  ax-1rid 7083  ax-0id 7084  ax-rnegex 7085  ax-cnre 7087  ax-pre-ltirr 7088  ax-pre-ltwlin 7089  ax-pre-lttrn 7090  ax-pre-ltadd 7092
This theorem depends on definitions:  df-bi 115  df-3or 920  df-3an 921  df-tru 1287  df-fal 1290  df-nf 1390  df-sb 1686  df-eu 1944  df-mo 1945  df-clab 2068  df-cleq 2074  df-clel 2077  df-nfc 2208  df-ne 2246  df-nel 2340  df-ral 2353  df-rex 2354  df-reu 2355  df-rab 2357  df-v 2603  df-sbc 2816  df-csb 2909  df-dif 2975  df-un 2977  df-in 2979  df-ss 2986  df-nul 3252  df-pw 3384  df-sn 3404  df-pr 3405  df-op 3407  df-uni 3602  df-int 3637  df-iun 3680  df-br 3786  df-opab 3840  df-mpt 3841  df-tr 3876  df-id 4048  df-iord 4121  df-on 4123  df-suc 4126  df-iom 4332  df-xp 4369  df-rel 4370  df-cnv 4371  df-co 4372  df-dm 4373  df-rn 4374  df-res 4375  df-ima 4376  df-iota 4887  df-fun 4924  df-fn 4925  df-f 4926  df-f1 4927  df-fo 4928  df-f1o 4929  df-fv 4930  df-riota 5488  df-ov 5535  df-oprab 5536  df-mpt2 5537  df-1st 5787  df-2nd 5788  df-recs 5943  df-frec 6001  df-pnf 7155  df-mnf 7156  df-xr 7157  df-ltxr 7158  df-le 7159  df-sub 7281  df-neg 7282  df-inn 8040  df-n0 8289  df-z 8352  df-uz 8620  df-iseq 9432  df-fac 9653  df-dvds 10196
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator