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

Theorem dec2dvds 17148
Description: Divisibility by two is obvious in base 10. (Contributed by Mario Carneiro, 19-Apr-2015.)
Hypotheses
Ref Expression
dec2dvds.1 𝐴 ∈ ℕ0
dec2dvds.2 𝐵 ∈ ℕ0
dec2dvds.3 (𝐵 · 2) = 𝐶
dec2dvds.4 𝐷 = (𝐶 + 1)
Assertion
Ref Expression
dec2dvds ¬ 2 ∥ 𝐴𝐷

Proof of Theorem dec2dvds
StepHypRef Expression
1 5nn0 12542 . . . . . . . . 9 5 ∈ ℕ0
21nn0zi 12637 . . . . . . . 8 5 ∈ ℤ
3 2z 12644 . . . . . . . 8 2 ∈ ℤ
4 dvdsmul2 16361 . . . . . . . 8 ((5 ∈ ℤ ∧ 2 ∈ ℤ) → 2 ∥ (5 · 2))
52, 3, 4mp2an 705 . . . . . . 7 2 ∥ (5 · 2)
6 5t2e10 12834 . . . . . . 7 (5 · 2) = 10
75, 6breqtri 5141 . . . . . 6 2 ∥ 10
8 10nn0 12751 . . . . . . . 8 10 ∈ ℕ0
98nn0zi 12637 . . . . . . 7 10 ∈ ℤ
10 dec2dvds.1 . . . . . . . 8 𝐴 ∈ ℕ0
1110nn0zi 12637 . . . . . . 7 𝐴 ∈ ℤ
12 dvdsmultr1 16379 . . . . . . 7 ((2 ∈ ℤ ∧ 10 ∈ ℤ ∧ 𝐴 ∈ ℤ) → (2 ∥ 10 → 2 ∥ (10 · 𝐴)))
133, 9, 11, 12mp3an 1490 . . . . . 6 (2 ∥ 10 → 2 ∥ (10 · 𝐴))
147, 13ax-mp 5 . . . . 5 2 ∥ (10 · 𝐴)
15 dec2dvds.2 . . . . . . . 8 𝐵 ∈ ℕ0
1615nn0zi 12637 . . . . . . 7 𝐵 ∈ ℤ
17 dvdsmul2 16361 . . . . . . 7 ((𝐵 ∈ ℤ ∧ 2 ∈ ℤ) → 2 ∥ (𝐵 · 2))
1816, 3, 17mp2an 705 . . . . . 6 2 ∥ (𝐵 · 2)
19 dec2dvds.3 . . . . . 6 (𝐵 · 2) = 𝐶
2018, 19breqtri 5141 . . . . 5 2 ∥ 𝐶
218, 10nn0mulcli 12560 . . . . . . 7 (10 · 𝐴) ∈ ℕ0
2221nn0zi 12637 . . . . . 6 (10 · 𝐴) ∈ ℤ
23 2nn0 12539 . . . . . . . . 9 2 ∈ ℕ0
2415, 23nn0mulcli 12560 . . . . . . . 8 (𝐵 · 2) ∈ ℕ0
2519, 24eqeltrri 2863 . . . . . . 7 𝐶 ∈ ℕ0
2625nn0zi 12637 . . . . . 6 𝐶 ∈ ℤ
27 dvds2add 16373 . . . . . 6 ((2 ∈ ℤ ∧ (10 · 𝐴) ∈ ℤ ∧ 𝐶 ∈ ℤ) → ((2 ∥ (10 · 𝐴) ∧ 2 ∥ 𝐶) → 2 ∥ ((10 · 𝐴) + 𝐶)))
283, 22, 26, 27mp3an 1490 . . . . 5 ((2 ∥ (10 · 𝐴) ∧ 2 ∥ 𝐶) → 2 ∥ ((10 · 𝐴) + 𝐶))
2914, 20, 28mp2an 705 . . . 4 2 ∥ ((10 · 𝐴) + 𝐶)
30 dfdec10 12732 . . . 4 𝐴𝐶 = ((10 · 𝐴) + 𝐶)
3129, 30breqtrri 5143 . . 3 2 ∥ 𝐴𝐶
3210, 25deccl 12744 . . . . 5 𝐴𝐶 ∈ ℕ0
3332nn0zi 12637 . . . 4 𝐴𝐶 ∈ ℤ
34 2nn 12332 . . . 4 2 ∈ ℕ
35 1lt2 12431 . . . 4 1 < 2
36 ndvdsp1 16494 . . . 4 ((𝐴𝐶 ∈ ℤ ∧ 2 ∈ ℕ ∧ 1 < 2) → (2 ∥ 𝐴𝐶 → ¬ 2 ∥ (𝐴𝐶 + 1)))
3733, 34, 35, 36mp3an 1490 . . 3 (2 ∥ 𝐴𝐶 → ¬ 2 ∥ (𝐴𝐶 + 1))
3831, 37ax-mp 5 . 2 ¬ 2 ∥ (𝐴𝐶 + 1)
39 dec2dvds.4 . . . . 5 𝐷 = (𝐶 + 1)
4039eqcomi 2775 . . . 4 (𝐶 + 1) = 𝐷
41 eqid 2766 . . . 4 𝐴𝐶 = 𝐴𝐶
4210, 25, 40, 41decsuc 12765 . . 3 (𝐴𝐶 + 1) = 𝐴𝐷
4342breq2i 5122 . 2 (2 ∥ (𝐴𝐶 + 1) ↔ 2 ∥ 𝐴𝐷)
4438, 43mtbi 325 1 ¬ 2 ∥ 𝐴𝐷
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3  wi 4  wa 401   = wceq 1570  wcel 2146   class class class wbr 5114  (class class class)co 7423  0cc0 11118  1c1 11119   + caddc 11121   · cmul 11123   < clt 11261  cn 12251  2c2 12313  5c5 12316  0cn0 12522  cz 12609  cdc 12729  cdvds 16335
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2195  ax-12 2216  ax-ext 2738  ax-sep 5262  ax-nul 5274  ax-pow 5341  ax-pr 5409  ax-un 7745  ax-cnex 11174  ax-resscn 11175  ax-1cn 11176  ax-icn 11177  ax-addcl 11178  ax-addrcl 11179  ax-mulcl 11180  ax-mulrcl 11181  ax-mulcom 11182  ax-addass 11183  ax-mulass 11184  ax-distr 11185  ax-i2m1 11186  ax-1ne0 11187  ax-1rid 11188  ax-rnegex 11189  ax-rrecex 11190  ax-cnre 11191  ax-pre-lttri 11192  ax-pre-lttrn 11193  ax-pre-ltadd 11194  ax-pre-mulgt0 11195  ax-pre-sup 11196
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2841  df-nfc 2915  df-ne 2962  df-nel 3068  df-ral 3083  df-rex 3093  df-rmo 3372  df-reu 3373  df-rab 3420  df-v 3460  df-sbc 3748  df-csb 3857  df-dif 3911  df-un 3913  df-in 3915  df-ss 3925  df-pss 3928  df-nul 4290  df-if 4493  df-pw 4569  df-sn 4595  df-pr 4597  df-op 4601  df-uni 4878  df-iun 4963  df-br 5115  df-opab 5179  df-mpt 5198  df-tr 5224  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6309  df-ord 6370  df-on 6371  df-lim 6372  df-suc 6373  df-iota 6499  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-riota 7380  df-ov 7426  df-oprab 7427  df-mpo 7428  df-om 7872  df-1st 7995  df-2nd 7996  df-frecs 8287  df-wrecs 8318  df-recs 8367  df-rdg 8406  df-er 8703  df-en 8953  df-dom 8954  df-sdom 8955  df-sup 9412  df-inf 9413  df-pnf 11263  df-mnf 11264  df-xr 11265  df-ltxr 11266  df-le 11267  df-sub 11461  df-neg 11462  df-div 11890  df-nn 12252  df-2 12321  df-3 12322  df-4 12323  df-5 12324  df-6 12325  df-7 12326  df-8 12327  df-9 12328  df-n0 12523  df-z 12610  df-dec 12730  df-uz 12881  df-rp 13035  df-fz 13554  df-seq 14058  df-exp 14118  df-cj 15176  df-re 15177  df-im 15178  df-sqrt 15312  df-abs 15313  df-dvds 16336
This theorem is used by:  11prm  17200  13prm  17201  17prm  17202  19prm  17203  23prm  17204  37prm  17206  43prm  17207  83prm  17208  139prm  17209  163prm  17210  317prm  17211  631prm  17212  257prm  48354  139prmALT  48389  31prm  48390  127prm  48392
  Copyright terms: Public domain W3C validator