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

Theorem dvdsval2 12847
Description: One nonzero integer divides another integer if and only if their quotient is an integer. (Contributed by Jeff Hankins, 29-Sep-2013.)
Assertion
Ref Expression
dvdsval2  |-  ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  ->  ( M  ||  N  <->  ( N  /  M )  e.  ZZ ) )

Proof of Theorem dvdsval2
Dummy variable  k is distinct from all other variables.
StepHypRef Expression
1 divides 12846 . . 3  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( M  ||  N  <->  E. k  e.  ZZ  (
k  x.  M )  =  N ) )
213adant2 976 . 2  |-  ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  ->  ( M  ||  N  <->  E. k  e.  ZZ  ( k  x.  M )  =  N ) )
3 zcn 10279 . . . . . . . . . . 11  |-  ( N  e.  ZZ  ->  N  e.  CC )
433ad2ant3 980 . . . . . . . . . 10  |-  ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  ->  N  e.  CC )
54adantr 452 . . . . . . . . 9  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  k  e.  ZZ )  ->  N  e.  CC )
6 zcn 10279 . . . . . . . . . 10  |-  ( k  e.  ZZ  ->  k  e.  CC )
76adantl 453 . . . . . . . . 9  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  k  e.  ZZ )  ->  k  e.  CC )
8 zcn 10279 . . . . . . . . . . 11  |-  ( M  e.  ZZ  ->  M  e.  CC )
983ad2ant1 978 . . . . . . . . . 10  |-  ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  ->  M  e.  CC )
109adantr 452 . . . . . . . . 9  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  k  e.  ZZ )  ->  M  e.  CC )
11 simpl2 961 . . . . . . . . 9  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  k  e.  ZZ )  ->  M  =/=  0
)
125, 7, 10, 11divmul3d 9816 . . . . . . . 8  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  k  e.  ZZ )  ->  ( ( N  /  M )  =  k  <->  N  =  (
k  x.  M ) ) )
13 eqcom 2437 . . . . . . . 8  |-  ( N  =  ( k  x.  M )  <->  ( k  x.  M )  =  N )
1412, 13syl6bb 253 . . . . . . 7  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  k  e.  ZZ )  ->  ( ( N  /  M )  =  k  <->  ( k  x.  M )  =  N ) )
1514biimprd 215 . . . . . 6  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  k  e.  ZZ )  ->  ( ( k  x.  M )  =  N  ->  ( N  /  M )  =  k ) )
1615impr 603 . . . . 5  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  ( k  e.  ZZ  /\  ( k  x.  M )  =  N ) )  -> 
( N  /  M
)  =  k )
17 simprl 733 . . . . 5  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  ( k  e.  ZZ  /\  ( k  x.  M )  =  N ) )  -> 
k  e.  ZZ )
1816, 17eqeltrd 2509 . . . 4  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  ( k  e.  ZZ  /\  ( k  x.  M )  =  N ) )  -> 
( N  /  M
)  e.  ZZ )
1918rexlimdvaa 2823 . . 3  |-  ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  ->  ( E. k  e.  ZZ  ( k  x.  M
)  =  N  -> 
( N  /  M
)  e.  ZZ ) )
20 simpr 448 . . . . 5  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  ( N  /  M )  e.  ZZ )  ->  ( N  /  M )  e.  ZZ )
21 simp2 958 . . . . . . 7  |-  ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  ->  M  =/=  0 )
224, 9, 21divcan1d 9783 . . . . . 6  |-  ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  ->  (
( N  /  M
)  x.  M )  =  N )
2322adantr 452 . . . . 5  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  ( N  /  M )  e.  ZZ )  ->  ( ( N  /  M )  x.  M )  =  N )
24 oveq1 6080 . . . . . . 7  |-  ( k  =  ( N  /  M )  ->  (
k  x.  M )  =  ( ( N  /  M )  x.  M ) )
2524eqeq1d 2443 . . . . . 6  |-  ( k  =  ( N  /  M )  ->  (
( k  x.  M
)  =  N  <->  ( ( N  /  M )  x.  M )  =  N ) )
2625rspcev 3044 . . . . 5  |-  ( ( ( N  /  M
)  e.  ZZ  /\  ( ( N  /  M )  x.  M
)  =  N )  ->  E. k  e.  ZZ  ( k  x.  M
)  =  N )
2720, 23, 26syl2anc 643 . . . 4  |-  ( ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  /\  ( N  /  M )  e.  ZZ )  ->  E. k  e.  ZZ  ( k  x.  M
)  =  N )
2827ex 424 . . 3  |-  ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  ->  (
( N  /  M
)  e.  ZZ  ->  E. k  e.  ZZ  (
k  x.  M )  =  N ) )
2919, 28impbid 184 . 2  |-  ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  ->  ( E. k  e.  ZZ  ( k  x.  M
)  =  N  <->  ( N  /  M )  e.  ZZ ) )
302, 29bitrd 245 1  |-  ( ( M  e.  ZZ  /\  M  =/=  0  /\  N  e.  ZZ )  ->  ( M  ||  N  <->  ( N  /  M )  e.  ZZ ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 177    /\ wa 359    /\ w3a 936    = wceq 1652    e. wcel 1725    =/= wne 2598   E.wrex 2698   class class class wbr 4204  (class class class)co 6073   CCcc 8980   0cc0 8982    x. cmul 8987    / cdiv 9669   ZZcz 10274    || cdivides 12844
This theorem is referenced by:  dvdsval3  12848  nndivdvds  12850  fsumdvds  12885  3dvds  12904  bitsmod  12940  sadaddlem  12970  bitsuz  12978  mulgcd  13038  sqgcd  13050  prmind2  13082  mulgcddvds  13096  qredeu  13099  isprm5  13104  divgcdodd  13111  divnumden  13132  hashdvds  13156  oddprm  13181  pythagtriplem11  13191  pythagtriplem13  13193  pythagtriplem19  13199  pcprendvds2  13207  pcpremul  13209  pc2dvds  13244  pcz  13246  pcadd  13250  pcmptdvds  13255  fldivp1  13258  pockthlem  13265  prmreclem1  13276  prmreclem3  13278  4sqlem8  13305  4sqlem9  13306  4sqlem12  13316  4sqlem14  13318  sylow1lem1  15224  sylow3lem4  15256  odadd1  15455  odadd2  15456  pgpfac1lem3  15627  prmirredlem  16765  znidomb  16834  root1eq1  20631  atantayl2  20770  efchtdvds  20934  dvdsdivcl  20958  muinv  20970  chtub  20988  bposlem6  21065  lgseisenlem1  21125  lgsquad2lem1  21134  lgsquad3  21137  m1lgs  21138  2sqlem3  21142  2sqlem8  21148  qqhval2lem  24357  nn0prpwlem  26316  congrep  27029  jm2.22  27057  jm2.23  27058  hashgcdlem  27484  proot1ex  27488
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416  ax-sep 4322  ax-nul 4330  ax-pow 4369  ax-pr 4395  ax-un 4693  ax-resscn 9039  ax-1cn 9040  ax-icn 9041  ax-addcl 9042  ax-addrcl 9043  ax-mulcl 9044  ax-mulrcl 9045  ax-mulcom 9046  ax-addass 9047  ax-mulass 9048  ax-distr 9049  ax-i2m1 9050  ax-1ne0 9051  ax-1rid 9052  ax-rnegex 9053  ax-rrecex 9054  ax-cnre 9055  ax-pre-lttri 9056  ax-pre-lttrn 9057  ax-pre-ltadd 9058  ax-pre-mulgt0 9059
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2284  df-mo 2285  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-nel 2601  df-ral 2702  df-rex 2703  df-reu 2704  df-rmo 2705  df-rab 2706  df-v 2950  df-sbc 3154  df-csb 3244  df-dif 3315  df-un 3317  df-in 3319  df-ss 3326  df-nul 3621  df-if 3732  df-pw 3793  df-sn 3812  df-pr 3813  df-op 3815  df-uni 4008  df-br 4205  df-opab 4259  df-mpt 4260  df-id 4490  df-po 4495  df-so 4496  df-xp 4876  df-rel 4877  df-cnv 4878  df-co 4879  df-dm 4880  df-rn 4881  df-res 4882  df-ima 4883  df-iota 5410  df-fun 5448  df-fn 5449  df-f 5450  df-f1 5451  df-fo 5452  df-f1o 5453  df-fv 5454  df-ov 6076  df-oprab 6077  df-mpt2 6078  df-riota 6541  df-er 6897  df-en 7102  df-dom 7103  df-sdom 7104  df-pnf 9114  df-mnf 9115  df-xr 9116  df-ltxr 9117  df-le 9118  df-sub 9285  df-neg 9286  df-div 9670  df-z 10275  df-dvds 12845
  Copyright terms: Public domain W3C validator