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

Theorem prmlem0 13123
Description: Lemma for prmlem1 13125 and prmlem2 13137. (Contributed by Mario Carneiro, 18-Feb-2014.)
Hypotheses
Ref Expression
prmlem0.1  |-  ( ( -.  2  ||  M  /\  x  e.  ( ZZ>=
`  M ) )  ->  ( ( x  e.  ( Prime  \  {
2 } )  /\  ( x ^ 2 )  <_  N )  ->  -.  x  ||  N
) )
prmlem0.2  |-  ( K  e.  Prime  ->  -.  K  ||  N )
prmlem0.3  |-  ( K  +  2 )  =  M
Assertion
Ref Expression
prmlem0  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( ( x  e.  ( Prime  \  {
2 } )  /\  ( x ^ 2 )  <_  N )  ->  -.  x  ||  N
) )
Distinct variable group:    x, N
Allowed substitution hints:    K( x)    M( x)

Proof of Theorem prmlem0
StepHypRef Expression
1 eldifi 3311 . . . . 5  |-  ( x  e.  ( Prime  \  {
2 } )  ->  x  e.  Prime )
2 prmlem0.2 . . . . . 6  |-  ( K  e.  Prime  ->  -.  K  ||  N )
3 eleq1 2356 . . . . . . 7  |-  ( x  =  K  ->  (
x  e.  Prime  <->  K  e.  Prime ) )
4 breq1 4042 . . . . . . . 8  |-  ( x  =  K  ->  (
x  ||  N  <->  K  ||  N
) )
54notbid 285 . . . . . . 7  |-  ( x  =  K  ->  ( -.  x  ||  N  <->  -.  K  ||  N ) )
63, 5imbi12d 311 . . . . . 6  |-  ( x  =  K  ->  (
( x  e.  Prime  ->  -.  x  ||  N )  <-> 
( K  e.  Prime  ->  -.  K  ||  N ) ) )
72, 6mpbiri 224 . . . . 5  |-  ( x  =  K  ->  (
x  e.  Prime  ->  -.  x  ||  N ) )
81, 7syl5 28 . . . 4  |-  ( x  =  K  ->  (
x  e.  ( Prime  \  { 2 } )  ->  -.  x  ||  N
) )
98adantrd 454 . . 3  |-  ( x  =  K  ->  (
( x  e.  ( Prime  \  { 2 } )  /\  (
x ^ 2 )  <_  N )  ->  -.  x  ||  N ) )
109a1i 10 . 2  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( x  =  K  ->  ( (
x  e.  ( Prime  \  { 2 } )  /\  ( x ^
2 )  <_  N
)  ->  -.  x  ||  N ) ) )
11 uzp1 10277 . . 3  |-  ( x  e.  ( ZZ>= `  ( K  +  1 ) )  ->  ( x  =  ( K  + 
1 )  \/  x  e.  ( ZZ>= `  ( ( K  +  1 )  +  1 ) ) ) )
12 eleq1 2356 . . . . . . . 8  |-  ( x  =  ( K  + 
1 )  ->  (
x  e.  ( Prime  \  { 2 } )  <-> 
( K  +  1 )  e.  ( Prime  \  { 2 } ) ) )
1312adantl 452 . . . . . . 7  |-  ( ( ( -.  2  ||  K  /\  x  e.  (
ZZ>= `  K ) )  /\  x  =  ( K  +  1 ) )  ->  ( x  e.  ( Prime  \  { 2 } )  <->  ( K  +  1 )  e.  ( Prime  \  { 2 } ) ) )
14 eldifsn 3762 . . . . . . . . 9  |-  ( ( K  +  1 )  e.  ( Prime  \  {
2 } )  <->  ( ( K  +  1 )  e.  Prime  /\  ( K  +  1 )  =/=  2 ) )
15 eluzel2 10251 . . . . . . . . . . . . . . . . 17  |-  ( x  e.  ( ZZ>= `  K
)  ->  K  e.  ZZ )
1615adantl 452 . . . . . . . . . . . . . . . 16  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  K  e.  ZZ )
17 simpl 443 . . . . . . . . . . . . . . . 16  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  -.  2  ||  K )
18 1z 10069 . . . . . . . . . . . . . . . . 17  |-  1  e.  ZZ
19 2prm 12790 . . . . . . . . . . . . . . . . . 18  |-  2  e.  Prime
20 nprmdvds1 12806 . . . . . . . . . . . . . . . . . 18  |-  ( 2  e.  Prime  ->  -.  2  ||  1 )
2119, 20ax-mp 8 . . . . . . . . . . . . . . . . 17  |-  -.  2  ||  1
22 opoe 12880 . . . . . . . . . . . . . . . . 17  |-  ( ( ( K  e.  ZZ  /\ 
-.  2  ||  K
)  /\  ( 1  e.  ZZ  /\  -.  2  ||  1 ) )  ->  2  ||  ( K  +  1 ) )
2318, 21, 22mpanr12 666 . . . . . . . . . . . . . . . 16  |-  ( ( K  e.  ZZ  /\  -.  2  ||  K )  ->  2  ||  ( K  +  1 ) )
2416, 17, 23syl2anc 642 . . . . . . . . . . . . . . 15  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  2  ||  ( K  +  1 ) )
2524adantr 451 . . . . . . . . . . . . . 14  |-  ( ( ( -.  2  ||  K  /\  x  e.  (
ZZ>= `  K ) )  /\  ( K  + 
1 )  e.  Prime )  ->  2  ||  ( K  +  1 ) )
26 2z 10070 . . . . . . . . . . . . . . . 16  |-  2  e.  ZZ
27 uzid 10258 . . . . . . . . . . . . . . . 16  |-  ( 2  e.  ZZ  ->  2  e.  ( ZZ>= `  2 )
)
2826, 27mp1i 11 . . . . . . . . . . . . . . 15  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  2  e.  (
ZZ>= `  2 ) )
29 dvdsprm 12794 . . . . . . . . . . . . . . 15  |-  ( ( 2  e.  ( ZZ>= ` 
2 )  /\  ( K  +  1 )  e.  Prime )  ->  (
2  ||  ( K  +  1 )  <->  2  =  ( K  +  1
) ) )
3028, 29sylan 457 . . . . . . . . . . . . . 14  |-  ( ( ( -.  2  ||  K  /\  x  e.  (
ZZ>= `  K ) )  /\  ( K  + 
1 )  e.  Prime )  ->  ( 2  ||  ( K  +  1
)  <->  2  =  ( K  +  1 ) ) )
3125, 30mpbid 201 . . . . . . . . . . . . 13  |-  ( ( ( -.  2  ||  K  /\  x  e.  (
ZZ>= `  K ) )  /\  ( K  + 
1 )  e.  Prime )  ->  2  =  ( K  +  1 ) )
3231eqcomd 2301 . . . . . . . . . . . 12  |-  ( ( ( -.  2  ||  K  /\  x  e.  (
ZZ>= `  K ) )  /\  ( K  + 
1 )  e.  Prime )  ->  ( K  + 
1 )  =  2 )
3332a1d 22 . . . . . . . . . . 11  |-  ( ( ( -.  2  ||  K  /\  x  e.  (
ZZ>= `  K ) )  /\  ( K  + 
1 )  e.  Prime )  ->  ( x  ||  N  ->  ( K  + 
1 )  =  2 ) )
3433necon3ad 2495 . . . . . . . . . 10  |-  ( ( ( -.  2  ||  K  /\  x  e.  (
ZZ>= `  K ) )  /\  ( K  + 
1 )  e.  Prime )  ->  ( ( K  +  1 )  =/=  2  ->  -.  x  ||  N ) )
3534expimpd 586 . . . . . . . . 9  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( ( ( K  +  1 )  e.  Prime  /\  ( K  +  1 )  =/=  2 )  ->  -.  x  ||  N ) )
3614, 35syl5bi 208 . . . . . . . 8  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( ( K  +  1 )  e.  ( Prime  \  { 2 } )  ->  -.  x  ||  N ) )
3736adantr 451 . . . . . . 7  |-  ( ( ( -.  2  ||  K  /\  x  e.  (
ZZ>= `  K ) )  /\  x  =  ( K  +  1 ) )  ->  ( ( K  +  1 )  e.  ( Prime  \  {
2 } )  ->  -.  x  ||  N ) )
3813, 37sylbid 206 . . . . . 6  |-  ( ( ( -.  2  ||  K  /\  x  e.  (
ZZ>= `  K ) )  /\  x  =  ( K  +  1 ) )  ->  ( x  e.  ( Prime  \  { 2 } )  ->  -.  x  ||  N ) )
3938adantrd 454 . . . . 5  |-  ( ( ( -.  2  ||  K  /\  x  e.  (
ZZ>= `  K ) )  /\  x  =  ( K  +  1 ) )  ->  ( (
x  e.  ( Prime  \  { 2 } )  /\  ( x ^
2 )  <_  N
)  ->  -.  x  ||  N ) )
4039ex 423 . . . 4  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( x  =  ( K  +  1 )  ->  ( (
x  e.  ( Prime  \  { 2 } )  /\  ( x ^
2 )  <_  N
)  ->  -.  x  ||  N ) ) )
4116zcnd 10134 . . . . . . . . 9  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  K  e.  CC )
42 ax-1cn 8811 . . . . . . . . . 10  |-  1  e.  CC
43 addass 8840 . . . . . . . . . 10  |-  ( ( K  e.  CC  /\  1  e.  CC  /\  1  e.  CC )  ->  (
( K  +  1 )  +  1 )  =  ( K  +  ( 1  +  1 ) ) )
4442, 42, 43mp3an23 1269 . . . . . . . . 9  |-  ( K  e.  CC  ->  (
( K  +  1 )  +  1 )  =  ( K  +  ( 1  +  1 ) ) )
4541, 44syl 15 . . . . . . . 8  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( ( K  +  1 )  +  1 )  =  ( K  +  ( 1  +  1 ) ) )
46 1p1e2 9856 . . . . . . . . . 10  |-  ( 1  +  1 )  =  2
4746oveq2i 5885 . . . . . . . . 9  |-  ( K  +  ( 1  +  1 ) )  =  ( K  +  2 )
48 prmlem0.3 . . . . . . . . 9  |-  ( K  +  2 )  =  M
4947, 48eqtri 2316 . . . . . . . 8  |-  ( K  +  ( 1  +  1 ) )  =  M
5045, 49syl6eq 2344 . . . . . . 7  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( ( K  +  1 )  +  1 )  =  M )
5150fveq2d 5545 . . . . . 6  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( ZZ>= `  (
( K  +  1 )  +  1 ) )  =  ( ZZ>= `  M ) )
5251eleq2d 2363 . . . . 5  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( x  e.  ( ZZ>= `  ( ( K  +  1 )  +  1 ) )  <-> 
x  e.  ( ZZ>= `  M ) ) )
53 dvdsaddr 12584 . . . . . . . . 9  |-  ( ( 2  e.  ZZ  /\  K  e.  ZZ )  ->  ( 2  ||  K  <->  2 
||  ( K  + 
2 ) ) )
5426, 16, 53sylancr 644 . . . . . . . 8  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( 2  ||  K 
<->  2  ||  ( K  +  2 ) ) )
5548breq2i 4047 . . . . . . . 8  |-  ( 2 
||  ( K  + 
2 )  <->  2  ||  M )
5654, 55syl6bb 252 . . . . . . 7  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( 2  ||  K 
<->  2  ||  M ) )
5717, 56mtbid 291 . . . . . 6  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  -.  2  ||  M )
58 prmlem0.1 . . . . . . 7  |-  ( ( -.  2  ||  M  /\  x  e.  ( ZZ>=
`  M ) )  ->  ( ( x  e.  ( Prime  \  {
2 } )  /\  ( x ^ 2 )  <_  N )  ->  -.  x  ||  N
) )
5958ex 423 . . . . . 6  |-  ( -.  2  ||  M  -> 
( x  e.  (
ZZ>= `  M )  -> 
( ( x  e.  ( Prime  \  { 2 } )  /\  (
x ^ 2 )  <_  N )  ->  -.  x  ||  N ) ) )
6057, 59syl 15 . . . . 5  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( x  e.  ( ZZ>= `  M )  ->  ( ( x  e.  ( Prime  \  { 2 } )  /\  (
x ^ 2 )  <_  N )  ->  -.  x  ||  N ) ) )
6152, 60sylbid 206 . . . 4  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( x  e.  ( ZZ>= `  ( ( K  +  1 )  +  1 ) )  ->  ( ( x  e.  ( Prime  \  {
2 } )  /\  ( x ^ 2 )  <_  N )  ->  -.  x  ||  N
) ) )
6240, 61jaod 369 . . 3  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( ( x  =  ( K  + 
1 )  \/  x  e.  ( ZZ>= `  ( ( K  +  1 )  +  1 ) ) )  ->  ( (
x  e.  ( Prime  \  { 2 } )  /\  ( x ^
2 )  <_  N
)  ->  -.  x  ||  N ) ) )
6311, 62syl5 28 . 2  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( x  e.  ( ZZ>= `  ( K  +  1 ) )  ->  ( ( x  e.  ( Prime  \  {
2 } )  /\  ( x ^ 2 )  <_  N )  ->  -.  x  ||  N
) ) )
64 uzp1 10277 . . 3  |-  ( x  e.  ( ZZ>= `  K
)  ->  ( x  =  K  \/  x  e.  ( ZZ>= `  ( K  +  1 ) ) ) )
6564adantl 452 . 2  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( x  =  K  \/  x  e.  ( ZZ>= `  ( K  +  1 ) ) ) )
6610, 63, 65mpjaod 370 1  |-  ( ( -.  2  ||  K  /\  x  e.  ( ZZ>=
`  K ) )  ->  ( ( x  e.  ( Prime  \  {
2 } )  /\  ( x ^ 2 )  <_  N )  ->  -.  x  ||  N
) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 176    \/ wo 357    /\ wa 358    = wceq 1632    e. wcel 1696    =/= wne 2459    \ cdif 3162   {csn 3653   class class class wbr 4039   ` cfv 5271  (class class class)co 5874   CCcc 8751   1c1 8754    + caddc 8756    <_ cle 8884   2c2 9811   ZZcz 10040   ZZ>=cuz 10246   ^cexp 11120    || cdivides 12547   Primecprime 12774
This theorem is referenced by:  prmlem1a  13124  prmlem2  13137
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528  ax-cnex 8809  ax-resscn 8810  ax-1cn 8811  ax-icn 8812  ax-addcl 8813  ax-addrcl 8814  ax-mulcl 8815  ax-mulrcl 8816  ax-mulcom 8817  ax-addass 8818  ax-mulass 8819  ax-distr 8820  ax-i2m1 8821  ax-1ne0 8822  ax-1rid 8823  ax-rnegex 8824  ax-rrecex 8825  ax-cnre 8826  ax-pre-lttri 8827  ax-pre-lttrn 8828  ax-pre-ltadd 8829  ax-pre-mulgt0 8830
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 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-nel 2462  df-ral 2561  df-rex 2562  df-reu 2563  df-rmo 2564  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-int 3879  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-1st 6138  df-2nd 6139  df-riota 6320  df-recs 6404  df-rdg 6439  df-1o 6495  df-2o 6496  df-oadd 6499  df-er 6676  df-en 6880  df-dom 6881  df-sdom 6882  df-fin 6883  df-pnf 8885  df-mnf 8886  df-xr 8887  df-ltxr 8888  df-le 8889  df-sub 9055  df-neg 9056  df-div 9440  df-nn 9763  df-2 9820  df-n0 9982  df-z 10041  df-uz 10247  df-fz 10799  df-dvds 12548  df-prm 12775
  Copyright terms: Public domain W3C validator