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

Theorem nprm 14103
Description: A product of two integers greater than one is composite. (Contributed by Mario Carneiro, 20-Jun-2015.)
Assertion
Ref Expression
nprm  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  -.  ( A  x.  B )  e.  Prime )

Proof of Theorem nprm
Dummy variable  x is distinct from all other variables.
StepHypRef Expression
1 eluzelz 11094 . . . . 5  |-  ( A  e.  ( ZZ>= `  2
)  ->  A  e.  ZZ )
21adantr 465 . . . 4  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  A  e.  ZZ )
32zred 10969 . . 3  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  A  e.  RR )
4 eluz2b2 11158 . . . . . 6  |-  ( B  e.  ( ZZ>= `  2
)  <->  ( B  e.  NN  /\  1  < 
B ) )
54simprbi 464 . . . . 5  |-  ( B  e.  ( ZZ>= `  2
)  ->  1  <  B )
65adantl 466 . . . 4  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  1  <  B )
7 eluzelz 11094 . . . . . . 7  |-  ( B  e.  ( ZZ>= `  2
)  ->  B  e.  ZZ )
87adantl 466 . . . . . 6  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  B  e.  ZZ )
98zred 10969 . . . . 5  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  B  e.  RR )
10 eluz2nn 11123 . . . . . . 7  |-  ( A  e.  ( ZZ>= `  2
)  ->  A  e.  NN )
1110adantr 465 . . . . . 6  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  A  e.  NN )
1211nngt0d 10580 . . . . 5  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  0  <  A )
13 ltmulgt11 10403 . . . . 5  |-  ( ( A  e.  RR  /\  B  e.  RR  /\  0  <  A )  ->  (
1  <  B  <->  A  <  ( A  x.  B ) ) )
143, 9, 12, 13syl3anc 1227 . . . 4  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  ( 1  <  B  <->  A  <  ( A  x.  B ) ) )
156, 14mpbid 210 . . 3  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  A  <  ( A  x.  B ) )
163, 15ltned 9719 . 2  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  A  =/=  ( A  x.  B
) )
17 dvdsmul1 13877 . . . . 5  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  A  ||  ( A  x.  B ) )
181, 7, 17syl2an 477 . . . 4  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  A  ||  ( A  x.  B )
)
19 isprm4 14099 . . . . . . 7  |-  ( ( A  x.  B )  e.  Prime  <->  ( ( A  x.  B )  e.  ( ZZ>= `  2 )  /\  A. x  e.  (
ZZ>= `  2 ) ( x  ||  ( A  x.  B )  ->  x  =  ( A  x.  B ) ) ) )
2019simprbi 464 . . . . . 6  |-  ( ( A  x.  B )  e.  Prime  ->  A. x  e.  ( ZZ>= `  2 )
( x  ||  ( A  x.  B )  ->  x  =  ( A  x.  B ) ) )
21 breq1 4436 . . . . . . . 8  |-  ( x  =  A  ->  (
x  ||  ( A  x.  B )  <->  A  ||  ( A  x.  B )
) )
22 eqeq1 2445 . . . . . . . 8  |-  ( x  =  A  ->  (
x  =  ( A  x.  B )  <->  A  =  ( A  x.  B
) ) )
2321, 22imbi12d 320 . . . . . . 7  |-  ( x  =  A  ->  (
( x  ||  ( A  x.  B )  ->  x  =  ( A  x.  B ) )  <-> 
( A  ||  ( A  x.  B )  ->  A  =  ( A  x.  B ) ) ) )
2423rspcv 3190 . . . . . 6  |-  ( A  e.  ( ZZ>= `  2
)  ->  ( A. x  e.  ( ZZ>= ` 
2 ) ( x 
||  ( A  x.  B )  ->  x  =  ( A  x.  B ) )  -> 
( A  ||  ( A  x.  B )  ->  A  =  ( A  x.  B ) ) ) )
2520, 24syl5 32 . . . . 5  |-  ( A  e.  ( ZZ>= `  2
)  ->  ( ( A  x.  B )  e.  Prime  ->  ( A  ||  ( A  x.  B
)  ->  A  =  ( A  x.  B
) ) ) )
2625adantr 465 . . . 4  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  ( ( A  x.  B )  e.  Prime  ->  ( A  ||  ( A  x.  B
)  ->  A  =  ( A  x.  B
) ) ) )
2718, 26mpid 41 . . 3  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  ( ( A  x.  B )  e.  Prime  ->  A  =  ( A  x.  B
) ) )
2827necon3ad 2651 . 2  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  ( A  =/=  ( A  x.  B
)  ->  -.  ( A  x.  B )  e.  Prime ) )
2916, 28mpd 15 1  |-  ( ( A  e.  ( ZZ>= ` 
2 )  /\  B  e.  ( ZZ>= `  2 )
)  ->  -.  ( A  x.  B )  e.  Prime )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1381    e. wcel 1802    =/= wne 2636   A.wral 2791   class class class wbr 4433   ` cfv 5574  (class class class)co 6277   RRcr 9489   0cc0 9490   1c1 9491    x. cmul 9495    < clt 9626   NNcn 10537   2c2 10586   ZZcz 10865   ZZ>=cuz 11085    || cdvds 13858   Primecprime 14089
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1603  ax-4 1616  ax-5 1689  ax-6 1732  ax-7 1774  ax-8 1804  ax-9 1806  ax-10 1821  ax-11 1826  ax-12 1838  ax-13 1983  ax-ext 2419  ax-sep 4554  ax-nul 4562  ax-pow 4611  ax-pr 4672  ax-un 6573  ax-cnex 9546  ax-resscn 9547  ax-1cn 9548  ax-icn 9549  ax-addcl 9550  ax-addrcl 9551  ax-mulcl 9552  ax-mulrcl 9553  ax-mulcom 9554  ax-addass 9555  ax-mulass 9556  ax-distr 9557  ax-i2m1 9558  ax-1ne0 9559  ax-1rid 9560  ax-rnegex 9561  ax-rrecex 9562  ax-cnre 9563  ax-pre-lttri 9564  ax-pre-lttrn 9565  ax-pre-ltadd 9566  ax-pre-mulgt0 9567
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 973  df-3an 974  df-tru 1384  df-ex 1598  df-nf 1602  df-sb 1725  df-eu 2270  df-mo 2271  df-clab 2427  df-cleq 2433  df-clel 2436  df-nfc 2591  df-ne 2638  df-nel 2639  df-ral 2796  df-rex 2797  df-reu 2798  df-rab 2800  df-v 3095  df-sbc 3312  df-csb 3418  df-dif 3461  df-un 3463  df-in 3465  df-ss 3472  df-pss 3474  df-nul 3768  df-if 3923  df-pw 3995  df-sn 4011  df-pr 4013  df-tp 4015  df-op 4017  df-uni 4231  df-int 4268  df-iun 4313  df-br 4434  df-opab 4492  df-mpt 4493  df-tr 4527  df-eprel 4777  df-id 4781  df-po 4786  df-so 4787  df-fr 4824  df-we 4826  df-ord 4867  df-on 4868  df-lim 4869  df-suc 4870  df-xp 4991  df-rel 4992  df-cnv 4993  df-co 4994  df-dm 4995  df-rn 4996  df-res 4997  df-ima 4998  df-iota 5537  df-fun 5576  df-fn 5577  df-f 5578  df-f1 5579  df-fo 5580  df-f1o 5581  df-fv 5582  df-riota 6238  df-ov 6280  df-oprab 6281  df-mpt2 6282  df-om 6682  df-recs 7040  df-rdg 7074  df-1o 7128  df-2o 7129  df-oadd 7132  df-er 7309  df-en 7515  df-dom 7516  df-sdom 7517  df-fin 7518  df-pnf 9628  df-mnf 9629  df-xr 9630  df-ltxr 9631  df-le 9632  df-sub 9807  df-neg 9808  df-nn 10538  df-2 10595  df-n0 10797  df-z 10866  df-uz 11086  df-dvds 13859  df-prm 14090
This theorem is referenced by:  nprmi  14104  sqnprm  14111  mersenne  23367  ztprmneprm  32644
  Copyright terms: Public domain W3C validator