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

Theorem dvdsle 15662
Description: The divisors of a positive integer are bounded by it. The proof does not use /. (Contributed by Paul Chapman, 21-Mar-2011.)
Assertion
Ref Expression
dvdsle ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀𝑁𝑀𝑁))

Proof of Theorem dvdsle
Dummy variable 𝑛 is distinct from all other variables.
StepHypRef Expression
1 breq2 5072 . . . . . . . . . . . . 13 (𝑀 = if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑁 < 𝑀𝑁 < if(𝑀 ∈ ℤ, 𝑀, 1)))
2 oveq2 7166 . . . . . . . . . . . . . 14 (𝑀 = if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑛 · 𝑀) = (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)))
32neeq1d 3077 . . . . . . . . . . . . 13 (𝑀 = if(𝑀 ∈ ℤ, 𝑀, 1) → ((𝑛 · 𝑀) ≠ 𝑁 ↔ (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ 𝑁))
41, 3imbi12d 347 . . . . . . . . . . . 12 (𝑀 = if(𝑀 ∈ ℤ, 𝑀, 1) → ((𝑁 < 𝑀 → (𝑛 · 𝑀) ≠ 𝑁) ↔ (𝑁 < if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ 𝑁)))
5 breq1 5071 . . . . . . . . . . . . 13 (𝑁 = if(𝑁 ∈ ℕ, 𝑁, 1) → (𝑁 < if(𝑀 ∈ ℤ, 𝑀, 1) ↔ if(𝑁 ∈ ℕ, 𝑁, 1) < if(𝑀 ∈ ℤ, 𝑀, 1)))
6 neeq2 3081 . . . . . . . . . . . . 13 (𝑁 = if(𝑁 ∈ ℕ, 𝑁, 1) → ((𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ 𝑁 ↔ (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1)))
75, 6imbi12d 347 . . . . . . . . . . . 12 (𝑁 = if(𝑁 ∈ ℕ, 𝑁, 1) → ((𝑁 < if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ 𝑁) ↔ (if(𝑁 ∈ ℕ, 𝑁, 1) < if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1))))
8 oveq1 7165 . . . . . . . . . . . . . 14 (𝑛 = if(𝑛 ∈ ℤ, 𝑛, 1) → (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) = (if(𝑛 ∈ ℤ, 𝑛, 1) · if(𝑀 ∈ ℤ, 𝑀, 1)))
98neeq1d 3077 . . . . . . . . . . . . 13 (𝑛 = if(𝑛 ∈ ℤ, 𝑛, 1) → ((𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1) ↔ (if(𝑛 ∈ ℤ, 𝑛, 1) · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1)))
109imbi2d 343 . . . . . . . . . . . 12 (𝑛 = if(𝑛 ∈ ℤ, 𝑛, 1) → ((if(𝑁 ∈ ℕ, 𝑁, 1) < if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1)) ↔ (if(𝑁 ∈ ℕ, 𝑁, 1) < if(𝑀 ∈ ℤ, 𝑀, 1) → (if(𝑛 ∈ ℤ, 𝑛, 1) · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1))))
11 1z 12015 . . . . . . . . . . . . . 14 1 ∈ ℤ
1211elimel 4536 . . . . . . . . . . . . 13 if(𝑀 ∈ ℤ, 𝑀, 1) ∈ ℤ
13 1nn 11651 . . . . . . . . . . . . . 14 1 ∈ ℕ
1413elimel 4536 . . . . . . . . . . . . 13 if(𝑁 ∈ ℕ, 𝑁, 1) ∈ ℕ
1511elimel 4536 . . . . . . . . . . . . 13 if(𝑛 ∈ ℤ, 𝑛, 1) ∈ ℤ
1612, 14, 15dvdslelem 15661 . . . . . . . . . . . 12 (if(𝑁 ∈ ℕ, 𝑁, 1) < if(𝑀 ∈ ℤ, 𝑀, 1) → (if(𝑛 ∈ ℤ, 𝑛, 1) · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1))
174, 7, 10, 16dedth3h 4527 . . . . . . . . . . 11 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑛 ∈ ℤ) → (𝑁 < 𝑀 → (𝑛 · 𝑀) ≠ 𝑁))
18173expia 1117 . . . . . . . . . 10 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑛 ∈ ℤ → (𝑁 < 𝑀 → (𝑛 · 𝑀) ≠ 𝑁)))
1918com23 86 . . . . . . . . 9 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑁 < 𝑀 → (𝑛 ∈ ℤ → (𝑛 · 𝑀) ≠ 𝑁)))
20193impia 1113 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) → (𝑛 ∈ ℤ → (𝑛 · 𝑀) ≠ 𝑁))
2120imp 409 . . . . . . 7 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) ∧ 𝑛 ∈ ℤ) → (𝑛 · 𝑀) ≠ 𝑁)
2221neneqd 3023 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) ∧ 𝑛 ∈ ℤ) → ¬ (𝑛 · 𝑀) = 𝑁)
2322nrexdv 3272 . . . . 5 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) → ¬ ∃𝑛 ∈ ℤ (𝑛 · 𝑀) = 𝑁)
24 nnz 12007 . . . . . . 7 (𝑁 ∈ ℕ → 𝑁 ∈ ℤ)
25 divides 15611 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀𝑁 ↔ ∃𝑛 ∈ ℤ (𝑛 · 𝑀) = 𝑁))
2624, 25sylan2 594 . . . . . 6 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀𝑁 ↔ ∃𝑛 ∈ ℤ (𝑛 · 𝑀) = 𝑁))
27263adant3 1128 . . . . 5 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) → (𝑀𝑁 ↔ ∃𝑛 ∈ ℤ (𝑛 · 𝑀) = 𝑁))
2823, 27mtbird 327 . . . 4 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) → ¬ 𝑀𝑁)
29283expia 1117 . . 3 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑁 < 𝑀 → ¬ 𝑀𝑁))
3029con2d 136 . 2 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀𝑁 → ¬ 𝑁 < 𝑀))
31 zre 11988 . . 3 (𝑀 ∈ ℤ → 𝑀 ∈ ℝ)
32 nnre 11647 . . 3 (𝑁 ∈ ℕ → 𝑁 ∈ ℝ)
33 lenlt 10721 . . 3 ((𝑀 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (𝑀𝑁 ↔ ¬ 𝑁 < 𝑀))
3431, 32, 33syl2an 597 . 2 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀𝑁 ↔ ¬ 𝑁 < 𝑀))
3530, 34sylibrd 261 1 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀𝑁𝑀𝑁))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  w3a 1083   = wceq 1537  wcel 2114  wne 3018  wrex 3141  ifcif 4469   class class class wbr 5068  (class class class)co 7158  cr 10538  1c1 10540   · cmul 10544   < clt 10677  cle 10678  cn 11640  cz 11984  cdvds 15609
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795  ax-sep 5205  ax-nul 5212  ax-pow 5268  ax-pr 5332  ax-un 7463  ax-resscn 10596  ax-1cn 10597  ax-icn 10598  ax-addcl 10599  ax-addrcl 10600  ax-mulcl 10601  ax-mulrcl 10602  ax-mulcom 10603  ax-addass 10604  ax-mulass 10605  ax-distr 10606  ax-i2m1 10607  ax-1ne0 10608  ax-1rid 10609  ax-rnegex 10610  ax-rrecex 10611  ax-cnre 10612  ax-pre-lttri 10613  ax-pre-lttrn 10614  ax-pre-ltadd 10615  ax-pre-mulgt0 10616
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ne 3019  df-nel 3126  df-ral 3145  df-rex 3146  df-reu 3147  df-rab 3149  df-v 3498  df-sbc 3775  df-csb 3886  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-pss 3956  df-nul 4294  df-if 4470  df-pw 4543  df-sn 4570  df-pr 4572  df-tp 4574  df-op 4576  df-uni 4841  df-iun 4923  df-br 5069  df-opab 5131  df-mpt 5149  df-tr 5175  df-id 5462  df-eprel 5467  df-po 5476  df-so 5477  df-fr 5516  df-we 5518  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-dm 5567  df-rn 5568  df-res 5569  df-ima 5570  df-pred 6150  df-ord 6196  df-on 6197  df-lim 6198  df-suc 6199  df-iota 6316  df-fun 6359  df-fn 6360  df-f 6361  df-f1 6362  df-fo 6363  df-f1o 6364  df-fv 6365  df-riota 7116  df-ov 7161  df-oprab 7162  df-mpo 7163  df-om 7583  df-wrecs 7949  df-recs 8010  df-rdg 8048  df-er 8291  df-en 8512  df-dom 8513  df-sdom 8514  df-pnf 10679  df-mnf 10680  df-xr 10681  df-ltxr 10682  df-le 10683  df-sub 10874  df-neg 10875  df-nn 11641  df-n0 11901  df-z 11985  df-dvds 15610
This theorem is referenced by:  dvdsleabs  15663  dvdsssfz1  15670  fzm1ndvds  15674  fzo0dvdseq  15675  n2dvds1OLD  15720  gcd1  15878  bezoutlem4  15892  dfgcd2  15896  gcdzeq  15904  bezoutr1  15915  lcmgcdlem  15952  qredeq  16003  isprm3  16029  prmdvdsfz  16051  isprm5  16053  maxprmfct  16055  isprm6  16060  prmfac1  16065  ncoprmlnprm  16070  pcpre1  16181  pcidlem  16210  pcprod  16233  pcfac  16237  pockthg  16244  prmreclem1  16254  prmreclem3  16256  prmreclem5  16258  1arith  16265  4sqlem11  16293  prmolelcmf  16386  gexcl2  18716  sylow1lem1  18725  sylow1lem5  18729  gexex  18975  ablfac1eu  19197  ablfaclem3  19211  znidomb  20710  dvdsflsumcom  25767  chtublem  25789  vmasum  25794  logfac2  25795  bposlem6  25867  lgsdir  25910  lgsdilem2  25911  lgsne0  25913  lgsqrlem2  25925  lgsquadlem2  25959  2sqlem8  26004  2sqblem  26009  2sqmod  26014  oddpwdc  31614  nn0prpw  33673  nznngen  40655  etransclem41  42567
  Copyright terms: Public domain W3C validator