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

Theorem prime 9910
Description: Two ways to express " A is a prime number (or 1)." See also isprm 12568. (Contributed by NM, 4-May-2005.)
Assertion
Ref Expression
prime  |-  ( A  e.  NN  ->  ( A. x  e.  NN  ( ( A  /  x )  e.  NN  ->  ( x  =  1  \/  x  =  A ) )  <->  A. x  e.  NN  ( ( 1  <  x  /\  x  <_  A  /\  ( A  /  x )  e.  NN )  ->  x  =  A ) ) )
Distinct variable group:    x, A

Proof of Theorem prime
StepHypRef Expression
1 bi2.04 349 . . . 4  |-  ( ( x  =/=  1  -> 
( ( A  /  x )  e.  NN  ->  x  =  A ) )  <->  ( ( A  /  x )  e.  NN  ->  ( x  =/=  1  ->  x  =  A ) ) )
2 impexp 429 . . . 4  |-  ( ( ( x  =/=  1  /\  ( A  /  x
)  e.  NN )  ->  x  =  A )  <->  ( x  =/=  1  ->  ( ( A  /  x )  e.  NN  ->  x  =  A ) ) )
3 neor 2482 . . . . 5  |-  ( ( x  =  1  \/  x  =  A )  <-> 
( x  =/=  1  ->  x  =  A ) )
43imbi2i 302 . . . 4  |-  ( ( ( A  /  x
)  e.  NN  ->  ( x  =  1  \/  x  =  A ) )  <->  ( ( A  /  x )  e.  NN  ->  ( x  =/=  1  ->  x  =  A ) ) )
51, 2, 43bitr4ri 268 . . 3  |-  ( ( ( A  /  x
)  e.  NN  ->  ( x  =  1  \/  x  =  A ) )  <->  ( ( x  =/=  1  /\  ( A  /  x )  e.  NN )  ->  x  =  A ) )
6 nngt1ne1 9593 . . . . . . 7  |-  ( x  e.  NN  ->  (
1  <  x  <->  x  =/=  1 ) )
76adantl 448 . . . . . 6  |-  ( ( A  e.  NN  /\  x  e.  NN )  ->  ( 1  <  x  <->  x  =/=  1 ) )
87anbi1d 682 . . . . 5  |-  ( ( A  e.  NN  /\  x  e.  NN )  ->  ( ( 1  < 
x  /\  ( A  /  x )  e.  NN ) 
<->  ( x  =/=  1  /\  ( A  /  x
)  e.  NN ) ) )
9 nnz 9863 . . . . . . . . 9  |-  ( ( A  /  x )  e.  NN  ->  ( A  /  x )  e.  ZZ )
10 nnre 9573 . . . . . . . . . . . . 13  |-  ( x  e.  NN  ->  x  e.  RR )
11 gtndiv 9907 . . . . . . . . . . . . . 14  |-  ( ( x  e.  RR  /\  A  e.  NN  /\  A  <  x )  ->  -.  ( A  /  x
)  e.  ZZ )
12113expia 1152 . . . . . . . . . . . . 13  |-  ( ( x  e.  RR  /\  A  e.  NN )  ->  ( A  <  x  ->  -.  ( A  /  x )  e.  ZZ ) )
1310, 12sylan 453 . . . . . . . . . . . 12  |-  ( ( x  e.  NN  /\  A  e.  NN )  ->  ( A  <  x  ->  -.  ( A  /  x )  e.  ZZ ) )
1413con2d 106 . . . . . . . . . . 11  |-  ( ( x  e.  NN  /\  A  e.  NN )  ->  ( ( A  /  x )  e.  ZZ  ->  -.  A  <  x
) )
15 nnre 9573 . . . . . . . . . . . 12  |-  ( A  e.  NN  ->  A  e.  RR )
16 lenlt 8754 . . . . . . . . . . . 12  |-  ( ( x  e.  RR  /\  A  e.  RR )  ->  ( x  <_  A  <->  -.  A  <  x ) )
1710, 15, 16syl2an 459 . . . . . . . . . . 11  |-  ( ( x  e.  NN  /\  A  e.  NN )  ->  ( x  <_  A  <->  -.  A  <  x ) )
1814, 17sylibrd 224 . . . . . . . . . 10  |-  ( ( x  e.  NN  /\  A  e.  NN )  ->  ( ( A  /  x )  e.  ZZ  ->  x  <_  A )
)
1918ancoms 435 . . . . . . . . 9  |-  ( ( A  e.  NN  /\  x  e.  NN )  ->  ( ( A  /  x )  e.  ZZ  ->  x  <_  A )
)
209, 19syl5 29 . . . . . . . 8  |-  ( ( A  e.  NN  /\  x  e.  NN )  ->  ( ( A  /  x )  e.  NN  ->  x  <_  A )
)
2120pm4.71rd 613 . . . . . . 7  |-  ( ( A  e.  NN  /\  x  e.  NN )  ->  ( ( A  /  x )  e.  NN  <->  ( x  <_  A  /\  ( A  /  x
)  e.  NN ) ) )
2221anbi2d 681 . . . . . 6  |-  ( ( A  e.  NN  /\  x  e.  NN )  ->  ( ( 1  < 
x  /\  ( A  /  x )  e.  NN ) 
<->  ( 1  <  x  /\  ( x  <_  A  /\  ( A  /  x
)  e.  NN ) ) ) )
23 3anass 937 . . . . . 6  |-  ( ( 1  <  x  /\  x  <_  A  /\  ( A  /  x )  e.  NN )  <->  ( 1  <  x  /\  (
x  <_  A  /\  ( A  /  x
)  e.  NN ) ) )
2422, 23syl6bbr 253 . . . . 5  |-  ( ( A  e.  NN  /\  x  e.  NN )  ->  ( ( 1  < 
x  /\  ( A  /  x )  e.  NN ) 
<->  ( 1  <  x  /\  x  <_  A  /\  ( A  /  x
)  e.  NN ) ) )
258, 24bitr3d 245 . . . 4  |-  ( ( A  e.  NN  /\  x  e.  NN )  ->  ( ( x  =/=  1  /\  ( A  /  x )  e.  NN )  <->  ( 1  <  x  /\  x  <_  A  /\  ( A  /  x )  e.  NN ) ) )
2625imbi1d 307 . . 3  |-  ( ( A  e.  NN  /\  x  e.  NN )  ->  ( ( ( x  =/=  1  /\  ( A  /  x )  e.  NN )  ->  x  =  A )  <->  ( (
1  <  x  /\  x  <_  A  /\  ( A  /  x )  e.  NN )  ->  x  =  A ) ) )
275, 26syl5bb 247 . 2  |-  ( ( A  e.  NN  /\  x  e.  NN )  ->  ( ( ( A  /  x )  e.  NN  ->  ( x  =  1  \/  x  =  A ) )  <->  ( (
1  <  x  /\  x  <_  A  /\  ( A  /  x )  e.  NN )  ->  x  =  A ) ) )
2827ralbidva 2509 1  |-  ( A  e.  NN  ->  ( A. x  e.  NN  ( ( A  /  x )  e.  NN  ->  ( x  =  1  \/  x  =  A ) )  <->  A. x  e.  NN  ( ( 1  <  x  /\  x  <_  A  /\  ( A  /  x )  e.  NN )  ->  x  =  A ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 4    -> wi 5    <-> wb 175    \/ wo 356    /\ wa 357    /\ w3a 933    = wceq 1608    e. wcel 1610    =/= wne 2400   A.wral 2495   class class class wbr 3900  (class class class)co 5685   RRcr 8590   1c1 8592    < clt 8721    <_ cle 8722    / cdiv 9255   NNcn 9566   ZZcz 9842
This theorem is referenced by:  infpnlem1  12765
This theorem was proved from axioms:  ax-1 6  ax-2 7  ax-3 8  ax-mp 9  ax-5 1522  ax-6 1523  ax-7 1524  ax-gen 1525  ax-8 1612  ax-11 1613  ax-13 1614  ax-14 1615  ax-17 1617  ax-12o 1653  ax-10 1667  ax-9 1673  ax-4 1681  ax-16 1915  ax-ext 2222  ax-sep 4017  ax-nul 4025  ax-pow 4061  ax-pr 4087  ax-un 4382  ax-resscn 8648  ax-1cn 8649  ax-icn 8650  ax-addcl 8651  ax-addrcl 8652  ax-mulcl 8653  ax-mulrcl 8654  ax-mulcom 8655  ax-addass 8656  ax-mulass 8657  ax-distr 8658  ax-i2m1 8659  ax-1ne0 8660  ax-1rid 8661  ax-rnegex 8662  ax-rrecex 8663  ax-cnre 8664  ax-pre-lttri 8665  ax-pre-lttrn 8666  ax-pre-ltadd 8667  ax-pre-mulgt0 8668
This theorem depends on definitions:  df-bi 176  df-or 358  df-an 359  df-3or 934  df-3an 935  df-tru 1309  df-ex 1527  df-nf 1529  df-sb 1872  df-eu 2106  df-mo 2107  df-clab 2228  df-cleq 2234  df-clel 2237  df-nfc 2362  df-ne 2402  df-nel 2403  df-ral 2499  df-rex 2500  df-reu 2501  df-rab 2502  df-v 2714  df-sbc 2907  df-csb 2990  df-dif 3061  df-un 3063  df-in 3065  df-ss 3069  df-pss 3071  df-nul 3343  df-if 3451  df-pw 3512  df-sn 3530  df-pr 3531  df-tp 3532  df-op 3533  df-uni 3708  df-iun 3785  df-br 3901  df-opab 3955  df-mpt 3956  df-tr 3990  df-eprel 4177  df-id 4181  df-po 4186  df-so 4187  df-fr 4224  df-we 4226  df-ord 4267  df-on 4268  df-lim 4269  df-suc 4270  df-om 4527  df-xp 4573  df-rel 4574  df-cnv 4575  df-co 4576  df-dm 4577  df-rn 4578  df-res 4579  df-ima 4580  df-fun 4581  df-fn 4582  df-f 4583  df-f1 4584  df-fo 4585  df-f1o 4586  df-fv 4587  df-ov 5688  df-oprab 5689  df-mpt2 5690  df-iota 6117  df-riota 6164  df-recs 6248  df-rdg 6283  df-er 6520  df-en 6724  df-dom 6725  df-sdom 6726  df-pnf 8723  df-mnf 8724  df-xr 8725  df-ltxr 8726  df-le 8727  df-sub 8888  df-neg 8889  df-div 9256  df-n 9567  df-n0 9784  df-z 9843
  Copyright terms: Public domain W3C validator