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

Theorem snmlff 23249
Description: The function  F from snmlval 23251 is a mapping from positive integers to real numbers in the range 
[ 0 ,  1 ]. (Contributed by Mario Carneiro, 6-Apr-2015.)
Hypothesis
Ref Expression
snmlff.f  |-  F  =  ( n  e.  NN  |->  ( ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  /  n ) )
Assertion
Ref Expression
snmlff  |-  F : NN
--> ( 0 [,] 1
)
Distinct variable groups:    A, n    B, n    k, n    R, n
Allowed substitution hints:    A( k)    B( k)    R( k)    F( k, n)

Proof of Theorem snmlff
StepHypRef Expression
1 snmlff.f . 2  |-  F  =  ( n  e.  NN  |->  ( ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  /  n ) )
2 fzfid 10966 . . . . . . 7  |-  ( n  e.  NN  ->  (
1 ... n )  e. 
Fin )
3 ssrab2 3200 . . . . . . 7  |-  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B }  C_  ( 1 ... n
)
4 ssfi 7016 . . . . . . 7  |-  ( ( ( 1 ... n
)  e.  Fin  /\  { k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B }  C_  ( 1 ... n
) )  ->  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B }  e.  Fin )
52, 3, 4sylancl 646 . . . . . 6  |-  ( n  e.  NN  ->  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B }  e.  Fin )
6 hashcl 11281 . . . . . 6  |-  ( { k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B }  e.  Fin  ->  ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  e.  NN0 )
75, 6syl 17 . . . . 5  |-  ( n  e.  NN  ->  ( # `
 { k  e.  ( 1 ... n
)  |  ( |_
`  ( ( A  x.  ( R ^
k ) )  mod 
R ) )  =  B } )  e. 
NN0 )
87nn0red 9951 . . . 4  |-  ( n  e.  NN  ->  ( # `
 { k  e.  ( 1 ... n
)  |  ( |_
`  ( ( A  x.  ( R ^
k ) )  mod 
R ) )  =  B } )  e.  RR )
9 nndivre 9714 . . . 4  |-  ( ( ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  e.  RR  /\  n  e.  NN )  ->  (
( # `  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  /  n )  e.  RR )
108, 9mpancom 653 . . 3  |-  ( n  e.  NN  ->  (
( # `  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  /  n )  e.  RR )
117nn0ge0d 9953 . . . 4  |-  ( n  e.  NN  ->  0  <_  ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } ) )
12 nnre 9686 . . . 4  |-  ( n  e.  NN  ->  n  e.  RR )
13 nngt0 9708 . . . 4  |-  ( n  e.  NN  ->  0  <  n )
14 divge0 9558 . . . 4  |-  ( ( ( ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  e.  RR  /\  0  <_  ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } ) )  /\  ( n  e.  RR  /\  0  <  n ) )  -> 
0  <_  ( ( # `
 { k  e.  ( 1 ... n
)  |  ( |_
`  ( ( A  x.  ( R ^
k ) )  mod 
R ) )  =  B } )  /  n ) )
158, 11, 12, 13, 14syl22anc 1188 . . 3  |-  ( n  e.  NN  ->  0  <_  ( ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  /  n ) )
16 ssdomg 6840 . . . . . . . 8  |-  ( ( 1 ... n )  e.  Fin  ->  ( { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B }  C_  ( 1 ... n
)  ->  { k  e.  ( 1 ... n
)  |  ( |_
`  ( ( A  x.  ( R ^
k ) )  mod 
R ) )  =  B }  ~<_  ( 1 ... n ) ) )
172, 3, 16ee10 1372 . . . . . . 7  |-  ( n  e.  NN  ->  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B }  ~<_  ( 1 ... n ) )
18 hashdom 11292 . . . . . . . 8  |-  ( ( { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B }  e.  Fin  /\  ( 1 ... n )  e. 
Fin )  ->  (
( # `  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  <_  ( # `  (
1 ... n ) )  <->  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B }  ~<_  ( 1 ... n
) ) )
195, 2, 18syl2anc 645 . . . . . . 7  |-  ( n  e.  NN  ->  (
( # `  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  <_  ( # `  (
1 ... n ) )  <->  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B }  ~<_  ( 1 ... n
) ) )
2017, 19mpbird 225 . . . . . 6  |-  ( n  e.  NN  ->  ( # `
 { k  e.  ( 1 ... n
)  |  ( |_
`  ( ( A  x.  ( R ^
k ) )  mod 
R ) )  =  B } )  <_ 
( # `  ( 1 ... n ) ) )
21 nnnn0 9904 . . . . . . 7  |-  ( n  e.  NN  ->  n  e.  NN0 )
22 hashfz1 11276 . . . . . . 7  |-  ( n  e.  NN0  ->  ( # `  ( 1 ... n
) )  =  n )
2321, 22syl 17 . . . . . 6  |-  ( n  e.  NN  ->  ( # `
 ( 1 ... n ) )  =  n )
2420, 23breqtrd 3987 . . . . 5  |-  ( n  e.  NN  ->  ( # `
 { k  e.  ( 1 ... n
)  |  ( |_
`  ( ( A  x.  ( R ^
k ) )  mod 
R ) )  =  B } )  <_  n )
25 nncn 9687 . . . . . 6  |-  ( n  e.  NN  ->  n  e.  CC )
2625mulid1d 8785 . . . . 5  |-  ( n  e.  NN  ->  (
n  x.  1 )  =  n )
2724, 26breqtrrd 3989 . . . 4  |-  ( n  e.  NN  ->  ( # `
 { k  e.  ( 1 ... n
)  |  ( |_
`  ( ( A  x.  ( R ^
k ) )  mod 
R ) )  =  B } )  <_ 
( n  x.  1 ) )
28 1re 8770 . . . . . 6  |-  1  e.  RR
2928a1i 12 . . . . 5  |-  ( n  e.  NN  ->  1  e.  RR )
30 ledivmul 9562 . . . . 5  |-  ( ( ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  e.  RR  /\  1  e.  RR  /\  ( n  e.  RR  /\  0  <  n ) )  -> 
( ( ( # `  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B }
)  /  n )  <_  1  <->  ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  <_  ( n  x.  1 ) ) )
318, 29, 12, 13, 30syl112anc 1191 . . . 4  |-  ( n  e.  NN  ->  (
( ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  /  n )  <_ 
1  <->  ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  <_  ( n  x.  1 ) ) )
3227, 31mpbird 225 . . 3  |-  ( n  e.  NN  ->  (
( # `  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  /  n )  <_ 
1 )
33 0re 8771 . . . 4  |-  0  e.  RR
3433, 28elicc2i 10647 . . 3  |-  ( ( ( # `  {
k  e.  ( 1 ... n )  |  ( |_ `  (
( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  /  n )  e.  ( 0 [,] 1
)  <->  ( ( (
# `  { k  e.  ( 1 ... n
)  |  ( |_
`  ( ( A  x.  ( R ^
k ) )  mod 
R ) )  =  B } )  /  n )  e.  RR  /\  0  <_  ( ( # `
 { k  e.  ( 1 ... n
)  |  ( |_
`  ( ( A  x.  ( R ^
k ) )  mod 
R ) )  =  B } )  /  n )  /\  (
( # `  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  /  n )  <_ 
1 ) )
3510, 15, 32, 34syl3anbrc 1141 . 2  |-  ( n  e.  NN  ->  (
( # `  { k  e.  ( 1 ... n )  |  ( |_ `  ( ( A  x.  ( R ^ k ) )  mod  R ) )  =  B } )  /  n )  e.  ( 0 [,] 1
) )
361, 35fmpti 5582 1  |-  F : NN
--> ( 0 [,] 1
)
Colors of variables: wff set class
Syntax hints:    <-> wb 178    = wceq 1619    e. wcel 1621   {crab 2519    C_ wss 3094   class class class wbr 3963    e. cmpt 4017   -->wf 4634   ` cfv 4638  (class class class)co 5757    ~<_ cdom 6794   Fincfn 6796   RRcr 8669   0cc0 8670   1c1 8671    x. cmul 8675    < clt 8800    <_ cle 8801    / cdiv 9356   NNcn 9679   NN0cn0 9897   [,]cicc 10590   ...cfz 10713   |_cfl 10855    mod cmo 10904   ^cexp 11035   #chash 11268
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-5 1533  ax-6 1534  ax-7 1535  ax-gen 1536  ax-8 1623  ax-11 1624  ax-13 1625  ax-14 1626  ax-17 1628  ax-12o 1664  ax-10 1678  ax-9 1684  ax-4 1692  ax-16 1927  ax-ext 2237  ax-sep 4081  ax-nul 4089  ax-pow 4126  ax-pr 4152  ax-un 4449  ax-cnex 8726  ax-resscn 8727  ax-1cn 8728  ax-icn 8729  ax-addcl 8730  ax-addrcl 8731  ax-mulcl 8732  ax-mulrcl 8733  ax-mulcom 8734  ax-addass 8735  ax-mulass 8736  ax-distr 8737  ax-i2m1 8738  ax-1ne0 8739  ax-1rid 8740  ax-rnegex 8741  ax-rrecex 8742  ax-cnre 8743  ax-pre-lttri 8744  ax-pre-lttrn 8745  ax-pre-ltadd 8746  ax-pre-mulgt0 8747
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 940  df-3an 941  df-tru 1315  df-ex 1538  df-nf 1540  df-sb 1884  df-eu 2121  df-mo 2122  df-clab 2243  df-cleq 2249  df-clel 2252  df-nfc 2381  df-ne 2421  df-nel 2422  df-ral 2520  df-rex 2521  df-reu 2522  df-rab 2523  df-v 2742  df-sbc 2936  df-csb 3024  df-dif 3097  df-un 3099  df-in 3101  df-ss 3108  df-pss 3110  df-nul 3398  df-if 3507  df-pw 3568  df-sn 3587  df-pr 3588  df-tp 3589  df-op 3590  df-uni 3769  df-int 3804  df-iun 3848  df-br 3964  df-opab 4018  df-mpt 4019  df-tr 4054  df-eprel 4242  df-id 4246  df-po 4251  df-so 4252  df-fr 4289  df-we 4291  df-ord 4332  df-on 4333  df-lim 4334  df-suc 4335  df-om 4594  df-xp 4640  df-rel 4641  df-cnv 4642  df-co 4643  df-dm 4644  df-rn 4645  df-res 4646  df-ima 4647  df-fun 4648  df-fn 4649  df-f 4650  df-f1 4651  df-fo 4652  df-f1o 4653  df-fv 4654  df-ov 5760  df-oprab 5761  df-mpt2 5762  df-1st 6021  df-2nd 6022  df-iota 6190  df-riota 6237  df-recs 6321  df-rdg 6356  df-1o 6412  df-oadd 6416  df-er 6593  df-en 6797  df-dom 6798  df-sdom 6799  df-fin 6800  df-card 7505  df-pnf 8802  df-mnf 8803  df-xr 8804  df-ltxr 8805  df-le 8806  df-sub 8972  df-neg 8973  df-div 9357  df-n 9680  df-n0 9898  df-z 9957  df-uz 10163  df-icc 10594  df-fz 10714  df-hash 11269
  Copyright terms: Public domain W3C validator