MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  dvdsnprmd Structured version   Visualization version   GIF version

Theorem dvdsnprmd 15867
Description: If a number is divisible by an integer greater than 1 and less than the number, the number is not prime. (Contributed by AV, 24-Jul-2021.)
Hypotheses
Ref Expression
dvdsnprmd.g (𝜑 → 1 < 𝐴)
dvdsnprmd.l (𝜑𝐴 < 𝑁)
dvdsnprmd.d (𝜑𝐴𝑁)
Assertion
Ref Expression
dvdsnprmd (𝜑 → ¬ 𝑁 ∈ ℙ)

Proof of Theorem dvdsnprmd
Dummy variable 𝑘 is distinct from all other variables.
StepHypRef Expression
1 dvdsnprmd.d . 2 (𝜑𝐴𝑁)
2 dvdszrcl 15449 . . . 4 (𝐴𝑁 → (𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ))
3 divides 15446 . . . 4 ((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝐴𝑁 ↔ ∃𝑘 ∈ ℤ (𝑘 · 𝐴) = 𝑁))
41, 2, 33syl 18 . . 3 (𝜑 → (𝐴𝑁 ↔ ∃𝑘 ∈ ℤ (𝑘 · 𝐴) = 𝑁))
5 2z 11868 . . . . . . . 8 2 ∈ ℤ
65a1i 11 . . . . . . 7 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → 2 ∈ ℤ)
7 simplr 765 . . . . . . 7 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → 𝑘 ∈ ℤ)
8 dvdsnprmd.l . . . . . . . . . . . 12 (𝜑𝐴 < 𝑁)
98adantr 481 . . . . . . . . . . 11 ((𝜑𝑘 ∈ ℤ) → 𝐴 < 𝑁)
109adantr 481 . . . . . . . . . 10 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → 𝐴 < 𝑁)
11 breq2 4972 . . . . . . . . . . 11 ((𝑘 · 𝐴) = 𝑁 → (𝐴 < (𝑘 · 𝐴) ↔ 𝐴 < 𝑁))
1211adantl 482 . . . . . . . . . 10 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → (𝐴 < (𝑘 · 𝐴) ↔ 𝐴 < 𝑁))
1310, 12mpbird 258 . . . . . . . . 9 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → 𝐴 < (𝑘 · 𝐴))
14 dvdsnprmd.g . . . . . . . . . . . . 13 (𝜑 → 1 < 𝐴)
15 zre 11839 . . . . . . . . . . . . . . . . . 18 (𝐴 ∈ ℤ → 𝐴 ∈ ℝ)
16153ad2ant1 1126 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℤ ∧ 1 < 𝐴𝑘 ∈ ℤ) → 𝐴 ∈ ℝ)
17 zre 11839 . . . . . . . . . . . . . . . . . 18 (𝑘 ∈ ℤ → 𝑘 ∈ ℝ)
18173ad2ant3 1128 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℤ ∧ 1 < 𝐴𝑘 ∈ ℤ) → 𝑘 ∈ ℝ)
19 0lt1 11016 . . . . . . . . . . . . . . . . . . . 20 0 < 1
20 0red 10497 . . . . . . . . . . . . . . . . . . . . 21 (𝐴 ∈ ℤ → 0 ∈ ℝ)
21 1red 10495 . . . . . . . . . . . . . . . . . . . . 21 (𝐴 ∈ ℤ → 1 ∈ ℝ)
22 lttr 10570 . . . . . . . . . . . . . . . . . . . . 21 ((0 ∈ ℝ ∧ 1 ∈ ℝ ∧ 𝐴 ∈ ℝ) → ((0 < 1 ∧ 1 < 𝐴) → 0 < 𝐴))
2320, 21, 15, 22syl3anc 1364 . . . . . . . . . . . . . . . . . . . 20 (𝐴 ∈ ℤ → ((0 < 1 ∧ 1 < 𝐴) → 0 < 𝐴))
2419, 23mpani 692 . . . . . . . . . . . . . . . . . . 19 (𝐴 ∈ ℤ → (1 < 𝐴 → 0 < 𝐴))
2524imp 407 . . . . . . . . . . . . . . . . . 18 ((𝐴 ∈ ℤ ∧ 1 < 𝐴) → 0 < 𝐴)
26253adant3 1125 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℤ ∧ 1 < 𝐴𝑘 ∈ ℤ) → 0 < 𝐴)
2716, 18, 263jca 1121 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ℤ ∧ 1 < 𝐴𝑘 ∈ ℤ) → (𝐴 ∈ ℝ ∧ 𝑘 ∈ ℝ ∧ 0 < 𝐴))
28273exp 1112 . . . . . . . . . . . . . . 15 (𝐴 ∈ ℤ → (1 < 𝐴 → (𝑘 ∈ ℤ → (𝐴 ∈ ℝ ∧ 𝑘 ∈ ℝ ∧ 0 < 𝐴))))
2928adantr 481 . . . . . . . . . . . . . 14 ((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (1 < 𝐴 → (𝑘 ∈ ℤ → (𝐴 ∈ ℝ ∧ 𝑘 ∈ ℝ ∧ 0 < 𝐴))))
301, 2, 293syl 18 . . . . . . . . . . . . 13 (𝜑 → (1 < 𝐴 → (𝑘 ∈ ℤ → (𝐴 ∈ ℝ ∧ 𝑘 ∈ ℝ ∧ 0 < 𝐴))))
3114, 30mpd 15 . . . . . . . . . . . 12 (𝜑 → (𝑘 ∈ ℤ → (𝐴 ∈ ℝ ∧ 𝑘 ∈ ℝ ∧ 0 < 𝐴)))
3231imp 407 . . . . . . . . . . 11 ((𝜑𝑘 ∈ ℤ) → (𝐴 ∈ ℝ ∧ 𝑘 ∈ ℝ ∧ 0 < 𝐴))
3332adantr 481 . . . . . . . . . 10 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → (𝐴 ∈ ℝ ∧ 𝑘 ∈ ℝ ∧ 0 < 𝐴))
34 ltmulgt12 11355 . . . . . . . . . 10 ((𝐴 ∈ ℝ ∧ 𝑘 ∈ ℝ ∧ 0 < 𝐴) → (1 < 𝑘𝐴 < (𝑘 · 𝐴)))
3533, 34syl 17 . . . . . . . . 9 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → (1 < 𝑘𝐴 < (𝑘 · 𝐴)))
3613, 35mpbird 258 . . . . . . . 8 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → 1 < 𝑘)
37 df-2 11554 . . . . . . . . . 10 2 = (1 + 1)
3837breq1i 4975 . . . . . . . . 9 (2 ≤ 𝑘 ↔ (1 + 1) ≤ 𝑘)
39 1zzd 11867 . . . . . . . . . . . . 13 (𝑘 ∈ ℤ → 1 ∈ ℤ)
40 zltp1le 11886 . . . . . . . . . . . . 13 ((1 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (1 < 𝑘 ↔ (1 + 1) ≤ 𝑘))
4139, 40mpancom 684 . . . . . . . . . . . 12 (𝑘 ∈ ℤ → (1 < 𝑘 ↔ (1 + 1) ≤ 𝑘))
4241bicomd 224 . . . . . . . . . . 11 (𝑘 ∈ ℤ → ((1 + 1) ≤ 𝑘 ↔ 1 < 𝑘))
4342adantl 482 . . . . . . . . . 10 ((𝜑𝑘 ∈ ℤ) → ((1 + 1) ≤ 𝑘 ↔ 1 < 𝑘))
4443adantr 481 . . . . . . . . 9 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → ((1 + 1) ≤ 𝑘 ↔ 1 < 𝑘))
4538, 44syl5bb 284 . . . . . . . 8 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → (2 ≤ 𝑘 ↔ 1 < 𝑘))
4636, 45mpbird 258 . . . . . . 7 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → 2 ≤ 𝑘)
47 eluz2 12103 . . . . . . 7 (𝑘 ∈ (ℤ‘2) ↔ (2 ∈ ℤ ∧ 𝑘 ∈ ℤ ∧ 2 ≤ 𝑘))
486, 7, 46, 47syl3anbrc 1336 . . . . . 6 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → 𝑘 ∈ (ℤ‘2))
495a1i 11 . . . . . . . . . . . . . 14 ((𝐴 ∈ ℤ ∧ 1 < 𝐴) → 2 ∈ ℤ)
50 simpl 483 . . . . . . . . . . . . . 14 ((𝐴 ∈ ℤ ∧ 1 < 𝐴) → 𝐴 ∈ ℤ)
51 1zzd 11867 . . . . . . . . . . . . . . . . 17 (𝐴 ∈ ℤ → 1 ∈ ℤ)
52 zltp1le 11886 . . . . . . . . . . . . . . . . 17 ((1 ∈ ℤ ∧ 𝐴 ∈ ℤ) → (1 < 𝐴 ↔ (1 + 1) ≤ 𝐴))
5351, 52mpancom 684 . . . . . . . . . . . . . . . 16 (𝐴 ∈ ℤ → (1 < 𝐴 ↔ (1 + 1) ≤ 𝐴))
5453biimpa 477 . . . . . . . . . . . . . . 15 ((𝐴 ∈ ℤ ∧ 1 < 𝐴) → (1 + 1) ≤ 𝐴)
5537breq1i 4975 . . . . . . . . . . . . . . 15 (2 ≤ 𝐴 ↔ (1 + 1) ≤ 𝐴)
5654, 55sylibr 235 . . . . . . . . . . . . . 14 ((𝐴 ∈ ℤ ∧ 1 < 𝐴) → 2 ≤ 𝐴)
5749, 50, 563jca 1121 . . . . . . . . . . . . 13 ((𝐴 ∈ ℤ ∧ 1 < 𝐴) → (2 ∈ ℤ ∧ 𝐴 ∈ ℤ ∧ 2 ≤ 𝐴))
5857ex 413 . . . . . . . . . . . 12 (𝐴 ∈ ℤ → (1 < 𝐴 → (2 ∈ ℤ ∧ 𝐴 ∈ ℤ ∧ 2 ≤ 𝐴)))
5958adantr 481 . . . . . . . . . . 11 ((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (1 < 𝐴 → (2 ∈ ℤ ∧ 𝐴 ∈ ℤ ∧ 2 ≤ 𝐴)))
601, 2, 593syl 18 . . . . . . . . . 10 (𝜑 → (1 < 𝐴 → (2 ∈ ℤ ∧ 𝐴 ∈ ℤ ∧ 2 ≤ 𝐴)))
6114, 60mpd 15 . . . . . . . . 9 (𝜑 → (2 ∈ ℤ ∧ 𝐴 ∈ ℤ ∧ 2 ≤ 𝐴))
62 eluz2 12103 . . . . . . . . 9 (𝐴 ∈ (ℤ‘2) ↔ (2 ∈ ℤ ∧ 𝐴 ∈ ℤ ∧ 2 ≤ 𝐴))
6361, 62sylibr 235 . . . . . . . 8 (𝜑𝐴 ∈ (ℤ‘2))
6463adantr 481 . . . . . . 7 ((𝜑𝑘 ∈ ℤ) → 𝐴 ∈ (ℤ‘2))
6564adantr 481 . . . . . 6 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → 𝐴 ∈ (ℤ‘2))
66 nprm 15865 . . . . . 6 ((𝑘 ∈ (ℤ‘2) ∧ 𝐴 ∈ (ℤ‘2)) → ¬ (𝑘 · 𝐴) ∈ ℙ)
6748, 65, 66syl2anc 584 . . . . 5 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → ¬ (𝑘 · 𝐴) ∈ ℙ)
68 eleq1 2872 . . . . . . 7 ((𝑘 · 𝐴) = 𝑁 → ((𝑘 · 𝐴) ∈ ℙ ↔ 𝑁 ∈ ℙ))
6968notbid 319 . . . . . 6 ((𝑘 · 𝐴) = 𝑁 → (¬ (𝑘 · 𝐴) ∈ ℙ ↔ ¬ 𝑁 ∈ ℙ))
7069adantl 482 . . . . 5 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → (¬ (𝑘 · 𝐴) ∈ ℙ ↔ ¬ 𝑁 ∈ ℙ))
7167, 70mpbid 233 . . . 4 (((𝜑𝑘 ∈ ℤ) ∧ (𝑘 · 𝐴) = 𝑁) → ¬ 𝑁 ∈ ℙ)
7271rexlimdva2 3252 . . 3 (𝜑 → (∃𝑘 ∈ ℤ (𝑘 · 𝐴) = 𝑁 → ¬ 𝑁 ∈ ℙ))
734, 72sylbid 241 . 2 (𝜑 → (𝐴𝑁 → ¬ 𝑁 ∈ ℙ))
741, 73mpd 15 1 (𝜑 → ¬ 𝑁 ∈ ℙ)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 207  wa 396  w3a 1080   = wceq 1525  wcel 2083  wrex 3108   class class class wbr 4968  cfv 6232  (class class class)co 7023  cr 10389  0cc0 10390  1c1 10391   + caddc 10393   · cmul 10395   < clt 10528  cle 10529  2c2 11546  cz 11835  cuz 12097  cdvds 15444  cprime 15848
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1781  ax-4 1795  ax-5 1892  ax-6 1951  ax-7 1996  ax-8 2085  ax-9 2093  ax-10 2114  ax-11 2128  ax-12 2143  ax-13 2346  ax-ext 2771  ax-sep 5101  ax-nul 5108  ax-pow 5164  ax-pr 5228  ax-un 7326  ax-cnex 10446  ax-resscn 10447  ax-1cn 10448  ax-icn 10449  ax-addcl 10450  ax-addrcl 10451  ax-mulcl 10452  ax-mulrcl 10453  ax-mulcom 10454  ax-addass 10455  ax-mulass 10456  ax-distr 10457  ax-i2m1 10458  ax-1ne0 10459  ax-1rid 10460  ax-rnegex 10461  ax-rrecex 10462  ax-cnre 10463  ax-pre-lttri 10464  ax-pre-lttrn 10465  ax-pre-ltadd 10466  ax-pre-mulgt0 10467  ax-pre-sup 10468
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 843  df-3or 1081  df-3an 1082  df-tru 1528  df-ex 1766  df-nf 1770  df-sb 2045  df-mo 2578  df-eu 2614  df-clab 2778  df-cleq 2790  df-clel 2865  df-nfc 2937  df-ne 2987  df-nel 3093  df-ral 3112  df-rex 3113  df-reu 3114  df-rmo 3115  df-rab 3116  df-v 3442  df-sbc 3712  df-csb 3818  df-dif 3868  df-un 3870  df-in 3872  df-ss 3880  df-pss 3882  df-nul 4218  df-if 4388  df-pw 4461  df-sn 4479  df-pr 4481  df-tp 4483  df-op 4485  df-uni 4752  df-iun 4833  df-br 4969  df-opab 5031  df-mpt 5048  df-tr 5071  df-id 5355  df-eprel 5360  df-po 5369  df-so 5370  df-fr 5409  df-we 5411  df-xp 5456  df-rel 5457  df-cnv 5458  df-co 5459  df-dm 5460  df-rn 5461  df-res 5462  df-ima 5463  df-pred 6030  df-ord 6076  df-on 6077  df-lim 6078  df-suc 6079  df-iota 6196  df-fun 6234  df-fn 6235  df-f 6236  df-f1 6237  df-fo 6238  df-f1o 6239  df-fv 6240  df-riota 6984  df-ov 7026  df-oprab 7027  df-mpo 7028  df-om 7444  df-2nd 7553  df-wrecs 7805  df-recs 7867  df-rdg 7905  df-1o 7960  df-2o 7961  df-er 8146  df-en 8365  df-dom 8366  df-sdom 8367  df-fin 8368  df-sup 8759  df-pnf 10530  df-mnf 10531  df-xr 10532  df-ltxr 10533  df-le 10534  df-sub 10725  df-neg 10726  df-div 11152  df-nn 11493  df-2 11554  df-3 11555  df-n0 11752  df-z 11836  df-uz 12098  df-rp 12244  df-seq 13224  df-exp 13284  df-cj 14296  df-re 14297  df-im 14298  df-sqrt 14432  df-abs 14433  df-dvds 15445  df-prm 15849
This theorem is referenced by:  2pwp1prm  43255
  Copyright terms: Public domain W3C validator