| 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 12525 | . . . . . . . . 9 ⊢ 5 ∈ ℕ0 | |
| 2 | 1 | nn0zi 12620 | . . . . . . . 8 ⊢ 5 ∈ ℤ |
| 3 | 2z 12627 | . . . . . . . 8 ⊢ 2 ∈ ℤ | |
| 4 | dvdsmul2 16337 | . . . . . . . 8 ⊢ ((5 ∈ ℤ ∧ 2 ∈ ℤ) → 2 ∥ (5 · 2)) | |
| 5 | 2, 3, 4 | mp2an 704 | . . . . . . 7 ⊢ 2 ∥ (5 · 2) |
| 6 | 5t2e10 12817 | . . . . . . 7 ⊢ (5 · 2) = ;10 | |
| 7 | 5, 6 | breqtri 5137 | . . . . . 6 ⊢ 2 ∥ ;10 |
| 8 | 10nn0 12734 | . . . . . . . 8 ⊢ ;10 ∈ ℕ0 | |
| 9 | 8 | nn0zi 12620 | . . . . . . 7 ⊢ ;10 ∈ ℤ |
| 10 | dec2dvds.1 | . . . . . . . 8 ⊢ 𝐴 ∈ ℕ0 | |
| 11 | 10 | nn0zi 12620 | . . . . . . 7 ⊢ 𝐴 ∈ ℤ |
| 12 | dvdsmultr1 16355 | . . . . . . 7 ⊢ ((2 ∈ ℤ ∧ ;10 ∈ ℤ ∧ 𝐴 ∈ ℤ) → (2 ∥ ;10 → 2 ∥ (;10 · 𝐴))) | |
| 13 | 3, 9, 11, 12 | mp3an 1490 | . . . . . 6 ⊢ (2 ∥ ;10 → 2 ∥ (;10 · 𝐴)) |
| 14 | 7, 13 | ax-mp 5 | . . . . 5 ⊢ 2 ∥ (;10 · 𝐴) |
| 15 | dec2dvds.2 | . . . . . . . 8 ⊢ 𝐵 ∈ ℕ0 | |
| 16 | 15 | nn0zi 12620 | . . . . . . 7 ⊢ 𝐵 ∈ ℤ |
| 17 | dvdsmul2 16337 | . . . . . . 7 ⊢ ((𝐵 ∈ ℤ ∧ 2 ∈ ℤ) → 2 ∥ (𝐵 · 2)) | |
| 18 | 16, 3, 17 | mp2an 704 | . . . . . 6 ⊢ 2 ∥ (𝐵 · 2) |
| 19 | dec2dvds.3 | . . . . . 6 ⊢ (𝐵 · 2) = 𝐶 | |
| 20 | 18, 19 | breqtri 5137 | . . . . 5 ⊢ 2 ∥ 𝐶 |
| 21 | 8, 10 | nn0mulcli 12543 | . . . . . . 7 ⊢ (;10 · 𝐴) ∈ ℕ0 |
| 22 | 21 | nn0zi 12620 | . . . . . 6 ⊢ (;10 · 𝐴) ∈ ℤ |
| 23 | 2nn0 12522 | . . . . . . . . 9 ⊢ 2 ∈ ℕ0 | |
| 24 | 15, 23 | nn0mulcli 12543 | . . . . . . . 8 ⊢ (𝐵 · 2) ∈ ℕ0 |
| 25 | 19, 24 | eqeltrri 2860 | . . . . . . 7 ⊢ 𝐶 ∈ ℕ0 |
| 26 | 25 | nn0zi 12620 | . . . . . 6 ⊢ 𝐶 ∈ ℤ |
| 27 | dvds2add 16349 | . . . . . 6 ⊢ ((2 ∈ ℤ ∧ (;10 · 𝐴) ∈ ℤ ∧ 𝐶 ∈ ℤ) → ((2 ∥ (;10 · 𝐴) ∧ 2 ∥ 𝐶) → 2 ∥ ((;10 · 𝐴) + 𝐶))) | |
| 28 | 3, 22, 26, 27 | mp3an 1490 | . . . . 5 ⊢ ((2 ∥ (;10 · 𝐴) ∧ 2 ∥ 𝐶) → 2 ∥ ((;10 · 𝐴) + 𝐶)) |
| 29 | 14, 20, 28 | mp2an 704 | . . . 4 ⊢ 2 ∥ ((;10 · 𝐴) + 𝐶) |
| 30 | dfdec10 12715 | . . . 4 ⊢ ;𝐴𝐶 = ((;10 · 𝐴) + 𝐶) | |
| 31 | 29, 30 | breqtrri 5139 | . . 3 ⊢ 2 ∥ ;𝐴𝐶 |
| 32 | 10, 25 | deccl 12727 | . . . . 5 ⊢ ;𝐴𝐶 ∈ ℕ0 |
| 33 | 32 | nn0zi 12620 | . . . 4 ⊢ ;𝐴𝐶 ∈ ℤ |
| 34 | 2nn 12315 | . . . 4 ⊢ 2 ∈ ℕ | |
| 35 | 1lt2 12414 | . . . 4 ⊢ 1 < 2 | |
| 36 | ndvdsp1 16470 | . . . 4 ⊢ ((;𝐴𝐶 ∈ ℤ ∧ 2 ∈ ℕ ∧ 1 < 2) → (2 ∥ ;𝐴𝐶 → ¬ 2 ∥ (;𝐴𝐶 + 1))) | |
| 37 | 33, 34, 35, 36 | mp3an 1490 | . . 3 ⊢ (2 ∥ ;𝐴𝐶 → ¬ 2 ∥ (;𝐴𝐶 + 1)) |
| 38 | 31, 37 | ax-mp 5 | . 2 ⊢ ¬ 2 ∥ (;𝐴𝐶 + 1) |
| 39 | dec2dvds.4 | . . . . 5 ⊢ 𝐷 = (𝐶 + 1) | |
| 40 | 39 | eqcomi 2772 | . . . 4 ⊢ (𝐶 + 1) = 𝐷 |
| 41 | eqid 2763 | . . . 4 ⊢ ;𝐴𝐶 = ;𝐴𝐶 | |
| 42 | 10, 25, 40, 41 | decsuc 12748 | . . 3 ⊢ (;𝐴𝐶 + 1) = ;𝐴𝐷 |
| 43 | 42 | breq2i 5118 | . 2 ⊢ (2 ∥ (;𝐴𝐶 + 1) ↔ 2 ∥ ;𝐴𝐷) |
| 44 | 38, 43 | mtbi 325 | 1 ⊢ ¬ 2 ∥ ;𝐴𝐷 |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 → wi 4 ∧ wa 400 = wceq 1570 ∈ wcel 2143 class class class wbr 5110 (class class class)co 7412 0cc0 11101 1c1 11102 + caddc 11104 · cmul 11106 < clt 11244 ℕcn 12234 2c2 12296 5c5 12299 ℕ0cn0 12505 ℤcz 12592 ;cdc 12712 ∥ cdvds 16311 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1825 ax-4 1839 ax-5 1940 ax-6 1997 ax-7 2038 ax-8 2145 ax-9 2153 ax-10 2176 ax-11 2192 ax-12 2213 ax-ext 2735 ax-sep 5258 ax-nul 5270 ax-pow 5338 ax-pr 5406 ax-un 7734 ax-cnex 11157 ax-resscn 11158 ax-1cn 11159 ax-icn 11160 ax-addcl 11161 ax-addrcl 11162 ax-mulcl 11163 ax-mulrcl 11164 ax-mulcom 11165 ax-addass 11166 ax-mulass 11167 ax-distr 11168 ax-i2m1 11169 ax-1ne0 11170 ax-1rid 11171 ax-rnegex 11172 ax-rrecex 11173 ax-cnre 11174 ax-pre-lttri 11175 ax-pre-lttrn 11176 ax-pre-ltadd 11177 ax-pre-mulgt0 11178 ax-pre-sup 11179 |
| This theorem depends on definitions: df-bi 210 df-an 401 df-or 861 df-3or 1104 df-3an 1105 df-tru 1573 df-fal 1583 df-ex 1810 df-nf 1814 df-sb 2097 df-mo 2567 df-eu 2597 df-clab 2742 df-cleq 2755 df-clel 2838 df-nfc 2912 df-ne 2959 df-nel 3065 df-ral 3080 df-rex 3090 df-rmo 3369 df-reu 3370 df-rab 3417 df-v 3457 df-sbc 3746 df-csb 3855 df-dif 3909 df-un 3911 df-in 3913 df-ss 3923 df-pss 3926 df-nul 4288 df-if 4489 df-pw 4565 df-sn 4591 df-pr 4593 df-op 4597 df-uni 4874 df-iun 4959 df-br 5111 df-opab 5175 df-mpt 5194 df-tr 5220 df-id 5558 df-eprel 5563 df-po 5571 df-so 5572 df-fr 5616 df-we 5618 df-xp 5669 df-rel 5670 df-cnv 5671 df-co 5672 df-dm 5673 df-rn 5674 df-res 5675 df-ima 5676 df-pred 6304 df-ord 6365 df-on 6366 df-lim 6367 df-suc 6368 df-iota 6494 df-fun 6540 df-fn 6541 df-f 6542 df-f1 6543 df-fo 6544 df-f1o 6545 df-fv 6546 df-riota 7369 df-ov 7415 df-oprab 7416 df-mpo 7417 df-om 7864 df-1st 7987 df-2nd 7988 df-frecs 8279 df-wrecs 8310 df-recs 8359 df-rdg 8398 df-er 8695 df-en 8945 df-dom 8946 df-sdom 8947 df-sup 9403 df-inf 9404 df-pnf 11246 df-mnf 11247 df-xr 11248 df-ltxr 11249 df-le 11250 df-sub 11444 df-neg 11445 df-div 11873 df-nn 12235 df-2 12304 df-3 12305 df-4 12306 df-5 12307 df-6 12308 df-7 12309 df-8 12310 df-9 12311 df-n0 12506 df-z 12593 df-dec 12713 df-uz 12864 df-rp 13018 df-fz 13537 df-seq 14040 df-exp 14100 df-cj 15152 df-re 15153 df-im 15154 df-sqrt 15288 df-abs 15289 df-dvds 16312 |
| This theorem is referenced by: 11prm 17176 13prm 17177 17prm 17178 19prm 17179 23prm 17180 37prm 17182 43prm 17183 83prm 17184 139prm 17185 163prm 17186 317prm 17187 631prm 17188 257prm 48290 139prmALT 48325 31prm 48326 127prm 48328 |
| Copyright terms: Public domain | W3C validator |