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

Theorem exprmfct 12789
Description: Every integer greater than or equal to 2 has a prime factor. (Contributed by Paul Chapman, 26-Oct-2012.) (Proof shortened by Mario Carneiro, 20-Jun-2015.)
Assertion
Ref Expression
exprmfct  |-  ( N  e.  ( ZZ>= `  2
)  ->  E. p  e.  Prime  p  ||  N
)
Distinct variable group:    N, p

Proof of Theorem exprmfct
Dummy variables  x  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eluz2b2 10290 . . 3  |-  ( N  e.  ( ZZ>= `  2
)  <->  ( N  e.  NN  /\  1  < 
N ) )
21simplbi 446 . 2  |-  ( N  e.  ( ZZ>= `  2
)  ->  N  e.  NN )
3 eleq1 2343 . . . 4  |-  ( x  =  1  ->  (
x  e.  ( ZZ>= ` 
2 )  <->  1  e.  ( ZZ>= `  2 )
) )
43imbi1d 308 . . 3  |-  ( x  =  1  ->  (
( x  e.  (
ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  x )  <->  ( 1  e.  ( ZZ>= `  2
)  ->  E. p  e.  Prime  p  ||  x
) ) )
5 eleq1 2343 . . . 4  |-  ( x  =  y  ->  (
x  e.  ( ZZ>= ` 
2 )  <->  y  e.  ( ZZ>= `  2 )
) )
6 breq2 4027 . . . . 5  |-  ( x  =  y  ->  (
p  ||  x  <->  p  ||  y
) )
76rexbidv 2564 . . . 4  |-  ( x  =  y  ->  ( E. p  e.  Prime  p 
||  x  <->  E. p  e.  Prime  p  ||  y
) )
85, 7imbi12d 311 . . 3  |-  ( x  =  y  ->  (
( x  e.  (
ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  x )  <->  ( y  e.  ( ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  y ) ) )
9 eleq1 2343 . . . 4  |-  ( x  =  z  ->  (
x  e.  ( ZZ>= ` 
2 )  <->  z  e.  ( ZZ>= `  2 )
) )
10 breq2 4027 . . . . 5  |-  ( x  =  z  ->  (
p  ||  x  <->  p  ||  z
) )
1110rexbidv 2564 . . . 4  |-  ( x  =  z  ->  ( E. p  e.  Prime  p 
||  x  <->  E. p  e.  Prime  p  ||  z
) )
129, 11imbi12d 311 . . 3  |-  ( x  =  z  ->  (
( x  e.  (
ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  x )  <->  ( z  e.  ( ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  z ) ) )
13 eleq1 2343 . . . 4  |-  ( x  =  ( y  x.  z )  ->  (
x  e.  ( ZZ>= ` 
2 )  <->  ( y  x.  z )  e.  (
ZZ>= `  2 ) ) )
14 breq2 4027 . . . . 5  |-  ( x  =  ( y  x.  z )  ->  (
p  ||  x  <->  p  ||  (
y  x.  z ) ) )
1514rexbidv 2564 . . . 4  |-  ( x  =  ( y  x.  z )  ->  ( E. p  e.  Prime  p 
||  x  <->  E. p  e.  Prime  p  ||  (
y  x.  z ) ) )
1613, 15imbi12d 311 . . 3  |-  ( x  =  ( y  x.  z )  ->  (
( x  e.  (
ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  x )  <->  ( (
y  x.  z )  e.  ( ZZ>= `  2
)  ->  E. p  e.  Prime  p  ||  (
y  x.  z ) ) ) )
17 eleq1 2343 . . . 4  |-  ( x  =  N  ->  (
x  e.  ( ZZ>= ` 
2 )  <->  N  e.  ( ZZ>= `  2 )
) )
18 breq2 4027 . . . . 5  |-  ( x  =  N  ->  (
p  ||  x  <->  p  ||  N
) )
1918rexbidv 2564 . . . 4  |-  ( x  =  N  ->  ( E. p  e.  Prime  p 
||  x  <->  E. p  e.  Prime  p  ||  N
) )
2017, 19imbi12d 311 . . 3  |-  ( x  =  N  ->  (
( x  e.  (
ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  x )  <->  ( N  e.  ( ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  N ) ) )
21 1m1e0 9814 . . . . 5  |-  ( 1  -  1 )  =  0
22 uz2m1nn 10292 . . . . 5  |-  ( 1  e.  ( ZZ>= `  2
)  ->  ( 1  -  1 )  e.  NN )
2321, 22syl5eqelr 2368 . . . 4  |-  ( 1  e.  ( ZZ>= `  2
)  ->  0  e.  NN )
24 0nnn 9777 . . . . 5  |-  -.  0  e.  NN
2524pm2.21i 123 . . . 4  |-  ( 0  e.  NN  ->  E. p  e.  Prime  p  ||  x
)
2623, 25syl 15 . . 3  |-  ( 1  e.  ( ZZ>= `  2
)  ->  E. p  e.  Prime  p  ||  x
)
27 prmz 12762 . . . . . 6  |-  ( x  e.  Prime  ->  x  e.  ZZ )
28 iddvds 12542 . . . . . 6  |-  ( x  e.  ZZ  ->  x  ||  x )
2927, 28syl 15 . . . . 5  |-  ( x  e.  Prime  ->  x  ||  x )
30 breq1 4026 . . . . . 6  |-  ( p  =  x  ->  (
p  ||  x  <->  x  ||  x
) )
3130rspcev 2884 . . . . 5  |-  ( ( x  e.  Prime  /\  x  ||  x )  ->  E. p  e.  Prime  p  ||  x
)
3229, 31mpdan 649 . . . 4  |-  ( x  e.  Prime  ->  E. p  e.  Prime  p  ||  x
)
3332a1d 22 . . 3  |-  ( x  e.  Prime  ->  ( x  e.  ( ZZ>= `  2
)  ->  E. p  e.  Prime  p  ||  x
) )
34 simpl 443 . . . . . 6  |-  ( ( y  e.  ( ZZ>= ` 
2 )  /\  z  e.  ( ZZ>= `  2 )
)  ->  y  e.  ( ZZ>= `  2 )
)
35 eluzelz 10238 . . . . . . . . . 10  |-  ( y  e.  ( ZZ>= `  2
)  ->  y  e.  ZZ )
3635ad2antrr 706 . . . . . . . . 9  |-  ( ( ( y  e.  (
ZZ>= `  2 )  /\  z  e.  ( ZZ>= ` 
2 ) )  /\  p  e.  Prime )  -> 
y  e.  ZZ )
37 eluzelz 10238 . . . . . . . . . 10  |-  ( z  e.  ( ZZ>= `  2
)  ->  z  e.  ZZ )
3837ad2antlr 707 . . . . . . . . 9  |-  ( ( ( y  e.  (
ZZ>= `  2 )  /\  z  e.  ( ZZ>= ` 
2 ) )  /\  p  e.  Prime )  -> 
z  e.  ZZ )
39 dvdsmul1 12550 . . . . . . . . 9  |-  ( ( y  e.  ZZ  /\  z  e.  ZZ )  ->  y  ||  ( y  x.  z ) )
4036, 38, 39syl2anc 642 . . . . . . . 8  |-  ( ( ( y  e.  (
ZZ>= `  2 )  /\  z  e.  ( ZZ>= ` 
2 ) )  /\  p  e.  Prime )  -> 
y  ||  ( y  x.  z ) )
41 prmz 12762 . . . . . . . . . 10  |-  ( p  e.  Prime  ->  p  e.  ZZ )
4241adantl 452 . . . . . . . . 9  |-  ( ( ( y  e.  (
ZZ>= `  2 )  /\  z  e.  ( ZZ>= ` 
2 ) )  /\  p  e.  Prime )  ->  p  e.  ZZ )
4336, 38zmulcld 10123 . . . . . . . . 9  |-  ( ( ( y  e.  (
ZZ>= `  2 )  /\  z  e.  ( ZZ>= ` 
2 ) )  /\  p  e.  Prime )  -> 
( y  x.  z
)  e.  ZZ )
44 dvdstr 12562 . . . . . . . . 9  |-  ( ( p  e.  ZZ  /\  y  e.  ZZ  /\  (
y  x.  z )  e.  ZZ )  -> 
( ( p  ||  y  /\  y  ||  (
y  x.  z ) )  ->  p  ||  (
y  x.  z ) ) )
4542, 36, 43, 44syl3anc 1182 . . . . . . . 8  |-  ( ( ( y  e.  (
ZZ>= `  2 )  /\  z  e.  ( ZZ>= ` 
2 ) )  /\  p  e.  Prime )  -> 
( ( p  ||  y  /\  y  ||  (
y  x.  z ) )  ->  p  ||  (
y  x.  z ) ) )
4640, 45mpan2d 655 . . . . . . 7  |-  ( ( ( y  e.  (
ZZ>= `  2 )  /\  z  e.  ( ZZ>= ` 
2 ) )  /\  p  e.  Prime )  -> 
( p  ||  y  ->  p  ||  ( y  x.  z ) ) )
4746reximdva 2655 . . . . . 6  |-  ( ( y  e.  ( ZZ>= ` 
2 )  /\  z  e.  ( ZZ>= `  2 )
)  ->  ( E. p  e.  Prime  p  ||  y  ->  E. p  e.  Prime  p 
||  ( y  x.  z ) ) )
4834, 47embantd 50 . . . . 5  |-  ( ( y  e.  ( ZZ>= ` 
2 )  /\  z  e.  ( ZZ>= `  2 )
)  ->  ( (
y  e.  ( ZZ>= ` 
2 )  ->  E. p  e.  Prime  p  ||  y
)  ->  E. p  e.  Prime  p  ||  (
y  x.  z ) ) )
4948a1dd 42 . . . 4  |-  ( ( y  e.  ( ZZ>= ` 
2 )  /\  z  e.  ( ZZ>= `  2 )
)  ->  ( (
y  e.  ( ZZ>= ` 
2 )  ->  E. p  e.  Prime  p  ||  y
)  ->  ( (
y  x.  z )  e.  ( ZZ>= `  2
)  ->  E. p  e.  Prime  p  ||  (
y  x.  z ) ) ) )
5049adantrd 454 . . 3  |-  ( ( y  e.  ( ZZ>= ` 
2 )  /\  z  e.  ( ZZ>= `  2 )
)  ->  ( (
( y  e.  (
ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  y )  /\  ( z  e.  (
ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  z ) )  ->  ( ( y  x.  z )  e.  ( ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  ( y  x.  z ) ) ) )
514, 8, 12, 16, 20, 26, 33, 50prmind 12770 . 2  |-  ( N  e.  NN  ->  ( N  e.  ( ZZ>= ` 
2 )  ->  E. p  e.  Prime  p  ||  N
) )
522, 51mpcom 32 1  |-  ( N  e.  ( ZZ>= `  2
)  ->  E. p  e.  Prime  p  ||  N
)
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    = wceq 1623    e. wcel 1684   E.wrex 2544   class class class wbr 4023   ` cfv 5255  (class class class)co 5858   0cc0 8737   1c1 8738    x. cmul 8742    < clt 8867    - cmin 9037   NNcn 9746   2c2 9795   ZZcz 10024   ZZ>=cuz 10230    || cdivides 12531   Primecprime 12758
This theorem is referenced by:  isprm5  12791  maxprmfct  12792  rpexp  12799  pc2dvds  12931  prmunb  12961  ablfacrplem  15300  muval1  20371  musum  20431  lgsne0  20572  dchrisum0flb  20659  nn0prpwlem  26238
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-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-2o 6480  df-oadd 6483  df-er 6660  df-en 6864  df-dom 6865  df-sdom 6866  df-fin 6867  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-div 9424  df-nn 9747  df-2 9804  df-n0 9966  df-z 10025  df-uz 10231  df-rp 10355  df-fz 10783  df-dvds 12532  df-prm 12759
  Copyright terms: Public domain W3C validator