MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  ppinprm Structured version   Unicode version

Theorem ppinprm 20927
Description: The prime pi function at a non-prime. (Contributed by Mario Carneiro, 19-Sep-2014.)
Assertion
Ref Expression
ppinprm  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  (π `  ( A  + 
1 ) )  =  (π `  A ) )

Proof of Theorem ppinprm
Dummy variable  x is distinct from all other variables.
StepHypRef Expression
1 inss2 3554 . . . . . . . . . . 11  |-  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )  C_  Prime
2 simprr 734 . . . . . . . . . . 11  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime ) )
31, 2sseldi 3338 . . . . . . . . . 10  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  x  e.  Prime )
4 simprl 733 . . . . . . . . . 10  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  -.  ( A  +  1
)  e.  Prime )
5 nelne2 2688 . . . . . . . . . 10  |-  ( ( x  e.  Prime  /\  -.  ( A  +  1
)  e.  Prime )  ->  x  =/=  ( A  +  1 ) )
63, 4, 5syl2anc 643 . . . . . . . . 9  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  x  =/=  ( A  +  1 ) )
7 elsn 3821 . . . . . . . . . 10  |-  ( x  e.  { ( A  +  1 ) }  <-> 
x  =  ( A  +  1 ) )
87necon3bbii 2629 . . . . . . . . 9  |-  ( -.  x  e.  { ( A  +  1 ) }  <->  x  =/=  ( A  +  1 ) )
96, 8sylibr 204 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  -.  x  e.  { ( A  +  1 ) } )
10 inss1 3553 . . . . . . . . . . . 12  |-  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )  C_  (
2 ... ( A  + 
1 ) )
1110, 2sseldi 3338 . . . . . . . . . . 11  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  x  e.  ( 2 ... ( A  +  1 ) ) )
12 2z 10304 . . . . . . . . . . . 12  |-  2  e.  ZZ
13 zcn 10279 . . . . . . . . . . . . . . . 16  |-  ( A  e.  ZZ  ->  A  e.  CC )
1413adantr 452 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  A  e.  CC )
15 ax-1cn 9040 . . . . . . . . . . . . . . 15  |-  1  e.  CC
16 pncan 9303 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  CC  /\  1  e.  CC )  ->  ( ( A  + 
1 )  -  1 )  =  A )
1714, 15, 16sylancl 644 . . . . . . . . . . . . . 14  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  (
( A  +  1 )  -  1 )  =  A )
18 elfzuz2 11054 . . . . . . . . . . . . . . 15  |-  ( x  e.  ( 2 ... ( A  +  1 ) )  ->  ( A  +  1 )  e.  ( ZZ>= `  2
) )
19 uz2m1nn 10542 . . . . . . . . . . . . . . 15  |-  ( ( A  +  1 )  e.  ( ZZ>= `  2
)  ->  ( ( A  +  1 )  -  1 )  e.  NN )
2011, 18, 193syl 19 . . . . . . . . . . . . . 14  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  (
( A  +  1 )  -  1 )  e.  NN )
2117, 20eqeltrrd 2510 . . . . . . . . . . . . 13  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  A  e.  NN )
22 nnuz 10513 . . . . . . . . . . . . . 14  |-  NN  =  ( ZZ>= `  1 )
23 2m1e1 10087 . . . . . . . . . . . . . . 15  |-  ( 2  -  1 )  =  1
2423fveq2i 5723 . . . . . . . . . . . . . 14  |-  ( ZZ>= `  ( 2  -  1 ) )  =  (
ZZ>= `  1 )
2522, 24eqtr4i 2458 . . . . . . . . . . . . 13  |-  NN  =  ( ZZ>= `  ( 2  -  1 ) )
2621, 25syl6eleq 2525 . . . . . . . . . . . 12  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  A  e.  ( ZZ>= `  ( 2  -  1 ) ) )
27 fzsuc2 11096 . . . . . . . . . . . 12  |-  ( ( 2  e.  ZZ  /\  A  e.  ( ZZ>= `  ( 2  -  1 ) ) )  -> 
( 2 ... ( A  +  1 ) )  =  ( ( 2 ... A )  u.  { ( A  +  1 ) } ) )
2812, 26, 27sylancr 645 . . . . . . . . . . 11  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  (
2 ... ( A  + 
1 ) )  =  ( ( 2 ... A )  u.  {
( A  +  1 ) } ) )
2911, 28eleqtrd 2511 . . . . . . . . . 10  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  x  e.  ( ( 2 ... A )  u.  {
( A  +  1 ) } ) )
30 elun 3480 . . . . . . . . . 10  |-  ( x  e.  ( ( 2 ... A )  u. 
{ ( A  + 
1 ) } )  <-> 
( x  e.  ( 2 ... A )  \/  x  e.  {
( A  +  1 ) } ) )
3129, 30sylib 189 . . . . . . . . 9  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  (
x  e.  ( 2 ... A )  \/  x  e.  { ( A  +  1 ) } ) )
3231ord 367 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  ( -.  x  e.  (
2 ... A )  ->  x  e.  { ( A  +  1 ) } ) )
339, 32mt3d 119 . . . . . . 7  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  x  e.  ( 2 ... A
) )
34 elin 3522 . . . . . . 7  |-  ( x  e.  ( ( 2 ... A )  i^i 
Prime )  <->  ( x  e.  ( 2 ... A
)  /\  x  e.  Prime ) )
3533, 3, 34sylanbrc 646 . . . . . 6  |-  ( ( A  e.  ZZ  /\  ( -.  ( A  +  1 )  e. 
Prime  /\  x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )
) )  ->  x  e.  ( ( 2 ... A )  i^i  Prime ) )
3635expr 599 . . . . 5  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  ( x  e.  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )  ->  x  e.  ( ( 2 ... A )  i^i  Prime ) ) )
3736ssrdv 3346 . . . 4  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  ( ( 2 ... ( A  +  1 ) )  i^i  Prime ) 
C_  ( ( 2 ... A )  i^i 
Prime ) )
38 uzid 10492 . . . . . . 7  |-  ( A  e.  ZZ  ->  A  e.  ( ZZ>= `  A )
)
3938adantr 452 . . . . . 6  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  A  e.  ( ZZ>= `  A ) )
40 peano2uz 10522 . . . . . 6  |-  ( A  e.  ( ZZ>= `  A
)  ->  ( A  +  1 )  e.  ( ZZ>= `  A )
)
4139, 40syl 16 . . . . 5  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  ( A  +  1 )  e.  ( ZZ>= `  A ) )
42 fzss2 11084 . . . . 5  |-  ( ( A  +  1 )  e.  ( ZZ>= `  A
)  ->  ( 2 ... A )  C_  ( 2 ... ( A  +  1 ) ) )
43 ssrin 3558 . . . . 5  |-  ( ( 2 ... A ) 
C_  ( 2 ... ( A  +  1 ) )  ->  (
( 2 ... A
)  i^i  Prime )  C_  ( ( 2 ... ( A  +  1 ) )  i^i  Prime ) )
4441, 42, 433syl 19 . . . 4  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  ( ( 2 ... A )  i^i  Prime ) 
C_  ( ( 2 ... ( A  + 
1 ) )  i^i 
Prime ) )
4537, 44eqssd 3357 . . 3  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  ( ( 2 ... ( A  +  1 ) )  i^i  Prime )  =  ( ( 2 ... A )  i^i 
Prime ) )
4645fveq2d 5724 . 2  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  ( # `  (
( 2 ... ( A  +  1 ) )  i^i  Prime )
)  =  ( # `  ( ( 2 ... A )  i^i  Prime ) ) )
47 peano2z 10310 . . . 4  |-  ( A  e.  ZZ  ->  ( A  +  1 )  e.  ZZ )
4847adantr 452 . . 3  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  ( A  +  1 )  e.  ZZ )
49 ppival2 20903 . . 3  |-  ( ( A  +  1 )  e.  ZZ  ->  (π `  ( A  +  1 ) )  =  (
# `  ( (
2 ... ( A  + 
1 ) )  i^i 
Prime ) ) )
5048, 49syl 16 . 2  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  (π `  ( A  + 
1 ) )  =  ( # `  (
( 2 ... ( A  +  1 ) )  i^i  Prime )
) )
51 ppival2 20903 . . 3  |-  ( A  e.  ZZ  ->  (π `  A )  =  (
# `  ( (
2 ... A )  i^i 
Prime ) ) )
5251adantr 452 . 2  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  (π `  A )  =  ( # `  (
( 2 ... A
)  i^i  Prime ) ) )
5346, 50, 523eqtr4d 2477 1  |-  ( ( A  e.  ZZ  /\  -.  ( A  +  1 )  e.  Prime )  ->  (π `  ( A  + 
1 ) )  =  (π `  A ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    \/ wo 358    /\ wa 359    = wceq 1652    e. wcel 1725    =/= wne 2598    u. cun 3310    i^i cin 3311    C_ wss 3312   {csn 3806   ` cfv 5446  (class class class)co 6073   CCcc 8980   1c1 8983    + caddc 8985    - cmin 9283   NNcn 9992   2c2 10041   ZZcz 10274   ZZ>=cuz 10480   ...cfz 11035   #chash 11610   Primecprime 13071  πcppi 20868
This theorem is referenced by:  ppip1le  20936  ppi2i  20944  bposlem5  21064
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 2416  ax-sep 4322  ax-nul 4330  ax-pow 4369  ax-pr 4395  ax-un 4693  ax-cnex 9038  ax-resscn 9039  ax-1cn 9040  ax-icn 9041  ax-addcl 9042  ax-addrcl 9043  ax-mulcl 9044  ax-mulrcl 9045  ax-mulcom 9046  ax-addass 9047  ax-mulass 9048  ax-distr 9049  ax-i2m1 9050  ax-1ne0 9051  ax-1rid 9052  ax-rnegex 9053  ax-rrecex 9054  ax-cnre 9055  ax-pre-lttri 9056  ax-pre-lttrn 9057  ax-pre-ltadd 9058  ax-pre-mulgt0 9059  ax-pre-sup 9060
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 2284  df-mo 2285  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-nel 2601  df-ral 2702  df-rex 2703  df-reu 2704  df-rmo 2705  df-rab 2706  df-v 2950  df-sbc 3154  df-csb 3244  df-dif 3315  df-un 3317  df-in 3319  df-ss 3326  df-pss 3328  df-nul 3621  df-if 3732  df-pw 3793  df-sn 3812  df-pr 3813  df-tp 3814  df-op 3815  df-uni 4008  df-int 4043  df-iun 4087  df-br 4205  df-opab 4259  df-mpt 4260  df-tr 4295  df-eprel 4486  df-id 4490  df-po 4495  df-so 4496  df-fr 4533  df-we 4535  df-ord 4576  df-on 4577  df-lim 4578  df-suc 4579  df-om 4838  df-xp 4876  df-rel 4877  df-cnv 4878  df-co 4879  df-dm 4880  df-rn 4881  df-res 4882  df-ima 4883  df-iota 5410  df-fun 5448  df-fn 5449  df-f 5450  df-f1 5451  df-fo 5452  df-f1o 5453  df-fv 5454  df-ov 6076  df-oprab 6077  df-mpt2 6078  df-1st 6341  df-2nd 6342  df-riota 6541  df-recs 6625  df-rdg 6660  df-1o 6716  df-2o 6717  df-oadd 6720  df-er 6897  df-en 7102  df-dom 7103  df-sdom 7104  df-fin 7105  df-sup 7438  df-pnf 9114  df-mnf 9115  df-xr 9116  df-ltxr 9117  df-le 9118  df-sub 9285  df-neg 9286  df-nn 9993  df-2 10050  df-n0 10214  df-z 10275  df-uz 10481  df-icc 10915  df-fz 11036  df-fl 11194  df-dvds 12845  df-prm 13072  df-ppi 20874
  Copyright terms: Public domain W3C validator