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

Theorem dvdsle 16203
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 5114 . . . . . . . . . . . . 13 (𝑀 = if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑁 < 𝑀𝑁 < if(𝑀 ∈ ℤ, 𝑀, 1)))
2 oveq2 7370 . . . . . . . . . . . . . 14 (𝑀 = if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑛 · 𝑀) = (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)))
32neeq1d 2999 . . . . . . . . . . . . 13 (𝑀 = if(𝑀 ∈ ℤ, 𝑀, 1) → ((𝑛 · 𝑀) ≠ 𝑁 ↔ (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ 𝑁))
41, 3imbi12d 344 . . . . . . . . . . . 12 (𝑀 = if(𝑀 ∈ ℤ, 𝑀, 1) → ((𝑁 < 𝑀 → (𝑛 · 𝑀) ≠ 𝑁) ↔ (𝑁 < if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ 𝑁)))
5 breq1 5113 . . . . . . . . . . . . 13 (𝑁 = if(𝑁 ∈ ℕ, 𝑁, 1) → (𝑁 < if(𝑀 ∈ ℤ, 𝑀, 1) ↔ if(𝑁 ∈ ℕ, 𝑁, 1) < if(𝑀 ∈ ℤ, 𝑀, 1)))
6 neeq2 3003 . . . . . . . . . . . . 13 (𝑁 = if(𝑁 ∈ ℕ, 𝑁, 1) → ((𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ 𝑁 ↔ (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1)))
75, 6imbi12d 344 . . . . . . . . . . . 12 (𝑁 = if(𝑁 ∈ ℕ, 𝑁, 1) → ((𝑁 < if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ 𝑁) ↔ (if(𝑁 ∈ ℕ, 𝑁, 1) < if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1))))
8 oveq1 7369 . . . . . . . . . . . . . 14 (𝑛 = if(𝑛 ∈ ℤ, 𝑛, 1) → (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) = (if(𝑛 ∈ ℤ, 𝑛, 1) · if(𝑀 ∈ ℤ, 𝑀, 1)))
98neeq1d 2999 . . . . . . . . . . . . 13 (𝑛 = if(𝑛 ∈ ℤ, 𝑛, 1) → ((𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1) ↔ (if(𝑛 ∈ ℤ, 𝑛, 1) · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1)))
109imbi2d 340 . . . . . . . . . . . 12 (𝑛 = if(𝑛 ∈ ℤ, 𝑛, 1) → ((if(𝑁 ∈ ℕ, 𝑁, 1) < if(𝑀 ∈ ℤ, 𝑀, 1) → (𝑛 · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1)) ↔ (if(𝑁 ∈ ℕ, 𝑁, 1) < if(𝑀 ∈ ℤ, 𝑀, 1) → (if(𝑛 ∈ ℤ, 𝑛, 1) · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1))))
11 1z 12542 . . . . . . . . . . . . . 14 1 ∈ ℤ
1211elimel 4560 . . . . . . . . . . . . 13 if(𝑀 ∈ ℤ, 𝑀, 1) ∈ ℤ
13 1nn 12173 . . . . . . . . . . . . . 14 1 ∈ ℕ
1413elimel 4560 . . . . . . . . . . . . 13 if(𝑁 ∈ ℕ, 𝑁, 1) ∈ ℕ
1511elimel 4560 . . . . . . . . . . . . 13 if(𝑛 ∈ ℤ, 𝑛, 1) ∈ ℤ
1612, 14, 15dvdslelem 16202 . . . . . . . . . . . 12 (if(𝑁 ∈ ℕ, 𝑁, 1) < if(𝑀 ∈ ℤ, 𝑀, 1) → (if(𝑛 ∈ ℤ, 𝑛, 1) · if(𝑀 ∈ ℤ, 𝑀, 1)) ≠ if(𝑁 ∈ ℕ, 𝑁, 1))
174, 7, 10, 16dedth3h 4551 . . . . . . . . . . 11 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑛 ∈ ℤ) → (𝑁 < 𝑀 → (𝑛 · 𝑀) ≠ 𝑁))
18173expia 1121 . . . . . . . . . 10 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑛 ∈ ℤ → (𝑁 < 𝑀 → (𝑛 · 𝑀) ≠ 𝑁)))
1918com23 86 . . . . . . . . 9 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑁 < 𝑀 → (𝑛 ∈ ℤ → (𝑛 · 𝑀) ≠ 𝑁)))
20193impia 1117 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) → (𝑛 ∈ ℤ → (𝑛 · 𝑀) ≠ 𝑁))
2120imp 407 . . . . . . 7 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) ∧ 𝑛 ∈ ℤ) → (𝑛 · 𝑀) ≠ 𝑁)
2221neneqd 2944 . . . . . 6 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) ∧ 𝑛 ∈ ℤ) → ¬ (𝑛 · 𝑀) = 𝑁)
2322nrexdv 3142 . . . . 5 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) → ¬ ∃𝑛 ∈ ℤ (𝑛 · 𝑀) = 𝑁)
24 nnz 12529 . . . . . . 7 (𝑁 ∈ ℕ → 𝑁 ∈ ℤ)
25 divides 16149 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀𝑁 ↔ ∃𝑛 ∈ ℤ (𝑛 · 𝑀) = 𝑁))
2624, 25sylan2 593 . . . . . 6 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀𝑁 ↔ ∃𝑛 ∈ ℤ (𝑛 · 𝑀) = 𝑁))
27263adant3 1132 . . . . 5 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) → (𝑀𝑁 ↔ ∃𝑛 ∈ ℤ (𝑛 · 𝑀) = 𝑁))
2823, 27mtbird 324 . . . 4 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ ∧ 𝑁 < 𝑀) → ¬ 𝑀𝑁)
29283expia 1121 . . 3 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑁 < 𝑀 → ¬ 𝑀𝑁))
3029con2d 134 . 2 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀𝑁 → ¬ 𝑁 < 𝑀))
31 zre 12512 . . 3 (𝑀 ∈ ℤ → 𝑀 ∈ ℝ)
32 nnre 12169 . . 3 (𝑁 ∈ ℕ → 𝑁 ∈ ℝ)
33 lenlt 11242 . . 3 ((𝑀 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (𝑀𝑁 ↔ ¬ 𝑁 < 𝑀))
3431, 32, 33syl2an 596 . 2 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀𝑁 ↔ ¬ 𝑁 < 𝑀))
3530, 34sylibrd 258 1 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑀𝑁𝑀𝑁))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  w3a 1087   = wceq 1541  wcel 2106  wne 2939  wrex 3069  ifcif 4491   class class class wbr 5110  (class class class)co 7362  cr 11059  1c1 11061   · cmul 11065   < clt 11198  cle 11199  cn 12162  cz 12508  cdvds 16147
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2702  ax-sep 5261  ax-nul 5268  ax-pow 5325  ax-pr 5389  ax-un 7677  ax-resscn 11117  ax-1cn 11118  ax-icn 11119  ax-addcl 11120  ax-addrcl 11121  ax-mulcl 11122  ax-mulrcl 11123  ax-mulcom 11124  ax-addass 11125  ax-mulass 11126  ax-distr 11127  ax-i2m1 11128  ax-1ne0 11129  ax-1rid 11130  ax-rnegex 11131  ax-rrecex 11132  ax-cnre 11133  ax-pre-lttri 11134  ax-pre-lttrn 11135  ax-pre-ltadd 11136  ax-pre-mulgt0 11137
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3or 1088  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2533  df-eu 2562  df-clab 2709  df-cleq 2723  df-clel 2809  df-nfc 2884  df-ne 2940  df-nel 3046  df-ral 3061  df-rex 3070  df-reu 3352  df-rab 3406  df-v 3448  df-sbc 3743  df-csb 3859  df-dif 3916  df-un 3918  df-in 3920  df-ss 3930  df-pss 3932  df-nul 4288  df-if 4492  df-pw 4567  df-sn 4592  df-pr 4594  df-op 4598  df-uni 4871  df-iun 4961  df-br 5111  df-opab 5173  df-mpt 5194  df-tr 5228  df-id 5536  df-eprel 5542  df-po 5550  df-so 5551  df-fr 5593  df-we 5595  df-xp 5644  df-rel 5645  df-cnv 5646  df-co 5647  df-dm 5648  df-rn 5649  df-res 5650  df-ima 5651  df-pred 6258  df-ord 6325  df-on 6326  df-lim 6327  df-suc 6328  df-iota 6453  df-fun 6503  df-fn 6504  df-f 6505  df-f1 6506  df-fo 6507  df-f1o 6508  df-fv 6509  df-riota 7318  df-ov 7365  df-oprab 7366  df-mpo 7367  df-om 7808  df-2nd 7927  df-frecs 8217  df-wrecs 8248  df-recs 8322  df-rdg 8361  df-er 8655  df-en 8891  df-dom 8892  df-sdom 8893  df-pnf 11200  df-mnf 11201  df-xr 11202  df-ltxr 11203  df-le 11204  df-sub 11396  df-neg 11397  df-nn 12163  df-n0 12423  df-z 12509  df-dvds 16148
This theorem is referenced by:  dvdsleabs  16204  dvdsssfz1  16211  fzm1ndvds  16215  fzo0dvdseq  16216  gcd1  16419  bezoutlem4  16434  dfgcd2  16438  gcdzeq  16444  bezoutr1  16456  lcmgcdlem  16493  qredeq  16544  isprm3  16570  prmdvdsfz  16592  isprm5  16594  maxprmfct  16596  isprm6  16601  prmfac1  16608  ncoprmlnprm  16614  pcpre1  16725  pcidlem  16755  pcprod  16778  pcfac  16782  pockthg  16789  prmreclem1  16799  prmreclem3  16801  prmreclem5  16803  1arith  16810  4sqlem11  16838  prmolelcmf  16931  gexcl2  19385  sylow1lem1  19394  sylow1lem5  19398  gexex  19645  ablfac1eu  19866  ablfaclem3  19880  znidomb  21005  dvdsflsumcom  26574  chtublem  26596  vmasum  26601  logfac2  26602  bposlem6  26674  lgsdir  26717  lgsdilem2  26718  lgsne0  26720  lgsqrlem2  26732  lgsquadlem2  26766  2sqlem8  26811  2sqblem  26816  2sqmod  26821  oddpwdc  33043  nn0prpw  34871  lcmineqlem20  40578  lcmineqlem22  40580  aks4d1p3  40608  aks4d1p6  40611  aks4d1p8d2  40615  aks4d1p8  40617  gcdle1d  40874  gcdle2d  40875  nznngen  42718  etransclem41  44636
  Copyright terms: Public domain W3C validator