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

Theorem isprm 12760
Description: The predicate "is a prime number". A prime number is a positive integer with exactly two positive divisors. (Contributed by Paul Chapman, 22-Jun-2011.)
Assertion
Ref Expression
isprm  |-  ( P  e.  Prime  <->  ( P  e.  NN  /\  { n  e.  NN  |  n  ||  P }  ~~  2o ) )
Distinct variable group:    P, n

Proof of Theorem isprm
Dummy variable  p is distinct from all other variables.
StepHypRef Expression
1 breq2 4027 . . . 4  |-  ( p  =  P  ->  (
n  ||  p  <->  n  ||  P
) )
21rabbidv 2780 . . 3  |-  ( p  =  P  ->  { n  e.  NN  |  n  ||  p }  =  {
n  e.  NN  |  n  ||  P } )
32breq1d 4033 . 2  |-  ( p  =  P  ->  ( { n  e.  NN  |  n  ||  p }  ~~  2o  <->  { n  e.  NN  |  n  ||  P }  ~~  2o ) )
4 df-prm 12759 . 2  |-  Prime  =  { p  e.  NN  |  { n  e.  NN  |  n  ||  p }  ~~  2o }
53, 4elrab2 2925 1  |-  ( P  e.  Prime  <->  ( P  e.  NN  /\  { n  e.  NN  |  n  ||  P }  ~~  2o ) )
Colors of variables: wff set class
Syntax hints:    <-> wb 176    /\ wa 358    = wceq 1623    e. wcel 1684   {crab 2547   class class class wbr 4023   2oc2o 6473    ~~ cen 6860   NNcn 9746    || cdivides 12531   Primecprime 12758
This theorem is referenced by:  prmnn  12761  1nprm  12763  isprm2  12766
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-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ral 2548  df-rab 2552  df-v 2790  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3456  df-if 3566  df-sn 3646  df-pr 3647  df-op 3649  df-br 4024  df-prm 12759
  Copyright terms: Public domain W3C validator