| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > dec2dvds | Structured version Visualization version GIF version | ||
| Description: Divisibility by two is obvious in base 10. (Contributed by Mario Carneiro, 19-Apr-2015.) |
| Ref | Expression |
|---|---|
| dec2dvds.1 | ⊢ 𝐴 ∈ ℕ0 |
| dec2dvds.2 | ⊢ 𝐵 ∈ ℕ0 |
| dec2dvds.3 | ⊢ (𝐵 · 2) = 𝐶 |
| dec2dvds.4 | ⊢ 𝐷 = (𝐶 + 1) |
| Ref | Expression |
|---|---|
| dec2dvds | ⊢ ¬ 2 ∥ ;𝐴𝐷 |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | 5nn0 12455 | . . . . . . . . 9 ⊢ 5 ∈ ℕ0 | |
| 2 | 1 | nn0zi 12550 | . . . . . . . 8 ⊢ 5 ∈ ℤ |
| 3 | 2z 12557 | . . . . . . . 8 ⊢ 2 ∈ ℤ | |
| 4 | dvdsmul2 16245 | . . . . . . . 8 ⊢ ((5 ∈ ℤ ∧ 2 ∈ ℤ) → 2 ∥ (5 · 2)) | |
| 5 | 2, 3, 4 | mp2an 698 | . . . . . . 7 ⊢ 2 ∥ (5 · 2) |
| 6 | 5t2e10 12742 | . . . . . . 7 ⊢ (5 · 2) = ;10 | |
| 7 | 5, 6 | breqtri 5104 | . . . . . 6 ⊢ 2 ∥ ;10 |
| 8 | 10nn0 12660 | . . . . . . . 8 ⊢ ;10 ∈ ℕ0 | |
| 9 | 8 | nn0zi 12550 | . . . . . . 7 ⊢ ;10 ∈ ℤ |
| 10 | dec2dvds.1 | . . . . . . . 8 ⊢ 𝐴 ∈ ℕ0 | |
| 11 | 10 | nn0zi 12550 | . . . . . . 7 ⊢ 𝐴 ∈ ℤ |
| 12 | dvdsmultr1 16263 | . . . . . . 7 ⊢ ((2 ∈ ℤ ∧ ;10 ∈ ℤ ∧ 𝐴 ∈ ℤ) → (2 ∥ ;10 → 2 ∥ (;10 · 𝐴))) | |
| 13 | 3, 9, 11, 12 | mp3an 1469 | . . . . . 6 ⊢ (2 ∥ ;10 → 2 ∥ (;10 · 𝐴)) |
| 14 | 7, 13 | ax-mp 5 | . . . . 5 ⊢ 2 ∥ (;10 · 𝐴) |
| 15 | dec2dvds.2 | . . . . . . . 8 ⊢ 𝐵 ∈ ℕ0 | |
| 16 | 15 | nn0zi 12550 | . . . . . . 7 ⊢ 𝐵 ∈ ℤ |
| 17 | dvdsmul2 16245 | . . . . . . 7 ⊢ ((𝐵 ∈ ℤ ∧ 2 ∈ ℤ) → 2 ∥ (𝐵 · 2)) | |
| 18 | 16, 3, 17 | mp2an 698 | . . . . . 6 ⊢ 2 ∥ (𝐵 · 2) |
| 19 | dec2dvds.3 | . . . . . 6 ⊢ (𝐵 · 2) = 𝐶 | |
| 20 | 18, 19 | breqtri 5104 | . . . . 5 ⊢ 2 ∥ 𝐶 |
| 21 | 8, 10 | nn0mulcli 12473 | . . . . . . 7 ⊢ (;10 · 𝐴) ∈ ℕ0 |
| 22 | 21 | nn0zi 12550 | . . . . . 6 ⊢ (;10 · 𝐴) ∈ ℤ |
| 23 | 2nn0 12452 | . . . . . . . . 9 ⊢ 2 ∈ ℕ0 | |
| 24 | 15, 23 | nn0mulcli 12473 | . . . . . . . 8 ⊢ (𝐵 · 2) ∈ ℕ0 |
| 25 | 19, 24 | eqeltrri 2837 | . . . . . . 7 ⊢ 𝐶 ∈ ℕ0 |
| 26 | 25 | nn0zi 12550 | . . . . . 6 ⊢ 𝐶 ∈ ℤ |
| 27 | dvds2add 16257 | . . . . . 6 ⊢ ((2 ∈ ℤ ∧ (;10 · 𝐴) ∈ ℤ ∧ 𝐶 ∈ ℤ) → ((2 ∥ (;10 · 𝐴) ∧ 2 ∥ 𝐶) → 2 ∥ ((;10 · 𝐴) + 𝐶))) | |
| 28 | 3, 22, 26, 27 | mp3an 1469 | . . . . 5 ⊢ ((2 ∥ (;10 · 𝐴) ∧ 2 ∥ 𝐶) → 2 ∥ ((;10 · 𝐴) + 𝐶)) |
| 29 | 14, 20, 28 | mp2an 698 | . . . 4 ⊢ 2 ∥ ((;10 · 𝐴) + 𝐶) |
| 30 | dfdec10 12645 | . . . 4 ⊢ ;𝐴𝐶 = ((;10 · 𝐴) + 𝐶) | |
| 31 | 29, 30 | breqtrri 5106 | . . 3 ⊢ 2 ∥ ;𝐴𝐶 |
| 32 | 10, 25 | deccl 12657 | . . . . 5 ⊢ ;𝐴𝐶 ∈ ℕ0 |
| 33 | 32 | nn0zi 12550 | . . . 4 ⊢ ;𝐴𝐶 ∈ ℤ |
| 34 | 2nn 12252 | . . . 4 ⊢ 2 ∈ ℕ | |
| 35 | 1lt2 12345 | . . . 4 ⊢ 1 < 2 | |
| 36 | ndvdsp1 16378 | . . . 4 ⊢ ((;𝐴𝐶 ∈ ℤ ∧ 2 ∈ ℕ ∧ 1 < 2) → (2 ∥ ;𝐴𝐶 → ¬ 2 ∥ (;𝐴𝐶 + 1))) | |
| 37 | 33, 34, 35, 36 | mp3an 1469 | . . 3 ⊢ (2 ∥ ;𝐴𝐶 → ¬ 2 ∥ (;𝐴𝐶 + 1)) |
| 38 | 31, 37 | ax-mp 5 | . 2 ⊢ ¬ 2 ∥ (;𝐴𝐶 + 1) |
| 39 | dec2dvds.4 | . . . . 5 ⊢ 𝐷 = (𝐶 + 1) | |
| 40 | 39 | eqcomi 2749 | . . . 4 ⊢ (𝐶 + 1) = 𝐷 |
| 41 | eqid 2740 | . . . 4 ⊢ ;𝐴𝐶 = ;𝐴𝐶 | |
| 42 | 10, 25, 40, 41 | decsuc 12673 | . . 3 ⊢ (;𝐴𝐶 + 1) = ;𝐴𝐷 |
| 43 | 42 | breq2i 5087 | . 2 ⊢ (2 ∥ (;𝐴𝐶 + 1) ↔ 2 ∥ ;𝐴𝐷) |
| 44 | 38, 43 | mtbi 323 | 1 ⊢ ¬ 2 ∥ ;𝐴𝐷 |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 → wi 4 ∧ wa 396 = wceq 1547 ∈ wcel 2119 class class class wbr 5079 (class class class)co 7363 0cc0 11036 1c1 11037 + caddc 11039 · cmul 11041 < clt 11177 ℕcn 12172 2c2 12234 5c5 12237 ℕ0cn0 12435 ℤcz 12522 ;cdc 12642 ∥ cdvds 16219 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1802 ax-4 1816 ax-5 1917 ax-6 1974 ax-7 2015 ax-8 2121 ax-9 2129 ax-10 2152 ax-11 2168 ax-12 2189 ax-ext 2712 ax-sep 5225 ax-nul 5235 ax-pow 5301 ax-pr 5369 ax-un 7685 ax-cnex 11092 ax-resscn 11093 ax-1cn 11094 ax-icn 11095 ax-addcl 11096 ax-addrcl 11097 ax-mulcl 11098 ax-mulrcl 11099 ax-mulcom 11100 ax-addass 11101 ax-mulass 11102 ax-distr 11103 ax-i2m1 11104 ax-1ne0 11105 ax-1rid 11106 ax-rnegex 11107 ax-rrecex 11108 ax-cnre 11109 ax-pre-lttri 11110 ax-pre-lttrn 11111 ax-pre-ltadd 11112 ax-pre-mulgt0 11113 ax-pre-sup 11114 |
| This theorem depends on definitions: df-bi 208 df-an 397 df-or 854 df-3or 1093 df-3an 1094 df-tru 1550 df-fal 1560 df-ex 1787 df-nf 1791 df-sb 2074 df-mo 2543 df-eu 2573 df-clab 2719 df-cleq 2732 df-clel 2815 df-nfc 2889 df-ne 2936 df-nel 3040 df-ral 3055 df-rex 3065 df-rmo 3345 df-reu 3346 df-rab 3393 df-v 3434 df-sbc 3731 df-csb 3839 df-dif 3893 df-un 3895 df-in 3897 df-ss 3907 df-pss 3910 df-nul 4269 df-if 4462 df-pw 4538 df-sn 4563 df-pr 4565 df-op 4569 df-uni 4846 df-iun 4930 df-br 5080 df-opab 5142 df-mpt 5161 df-tr 5187 df-id 5520 df-eprel 5525 df-po 5533 df-so 5534 df-fr 5578 df-we 5580 df-xp 5631 df-rel 5632 df-cnv 5633 df-co 5634 df-dm 5635 df-rn 5636 df-res 5637 df-ima 5638 df-pred 6259 df-ord 6320 df-on 6321 df-lim 6322 df-suc 6323 df-iota 6448 df-fun 6494 df-fn 6495 df-f 6496 df-f1 6497 df-fo 6498 df-f1o 6499 df-fv 6500 df-riota 7320 df-ov 7366 df-oprab 7367 df-mpo 7368 df-om 7814 df-1st 7938 df-2nd 7939 df-frecs 8228 df-wrecs 8259 df-recs 8308 df-rdg 8346 df-er 8640 df-en 8891 df-dom 8892 df-sdom 8893 df-sup 9352 df-inf 9353 df-pnf 11179 df-mnf 11180 df-xr 11181 df-ltxr 11182 df-le 11183 df-sub 11377 df-neg 11378 df-div 11806 df-nn 12173 df-2 12242 df-3 12243 df-4 12244 df-5 12245 df-6 12246 df-7 12247 df-8 12248 df-9 12249 df-n0 12436 df-z 12523 df-dec 12643 df-uz 12787 df-rp 12941 df-fz 13460 df-seq 13962 df-exp 14022 df-cj 15059 df-re 15060 df-im 15061 df-sqrt 15195 df-abs 15196 df-dvds 16220 |
| This theorem is referenced by: 11prm 17083 13prm 17084 17prm 17085 19prm 17086 23prm 17087 37prm 17089 43prm 17090 83prm 17091 139prm 17092 163prm 17093 317prm 17094 631prm 17095 257prm 48046 139prmALT 48081 31prm 48082 127prm 48084 |
| Copyright terms: Public domain | W3C validator |