| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > 2tnp1ge0ge0 | Structured version Visualization version GIF version | ||
| Description: Two times an integer plus one is not negative iff the integer is not negative. (Contributed by AV, 19-Jun-2021.) (Proof shortened by AV, 10-Jul-2022.) |
| Ref | Expression |
|---|---|
| 2tnp1ge0ge0 | ⊢ (𝑁 ∈ ℤ → (0 ≤ ((2 · 𝑁) + 1) ↔ 0 ≤ 𝑁)) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | 2z 12589 | . . . . . . 7 ⊢ 2 ∈ ℤ | |
| 2 | 1 | a1i 11 | . . . . . 6 ⊢ (𝑁 ∈ ℤ → 2 ∈ ℤ) |
| 3 | id 22 | . . . . . 6 ⊢ (𝑁 ∈ ℤ → 𝑁 ∈ ℤ) | |
| 4 | 2, 3 | zmulcld 12669 | . . . . 5 ⊢ (𝑁 ∈ ℤ → (2 · 𝑁) ∈ ℤ) |
| 5 | 4 | peano2zd 12666 | . . . 4 ⊢ (𝑁 ∈ ℤ → ((2 · 𝑁) + 1) ∈ ℤ) |
| 6 | 5 | zred 12663 | . . 3 ⊢ (𝑁 ∈ ℤ → ((2 · 𝑁) + 1) ∈ ℝ) |
| 7 | 2rp 12984 | . . . 4 ⊢ 2 ∈ ℝ+ | |
| 8 | 7 | a1i 11 | . . 3 ⊢ (𝑁 ∈ ℤ → 2 ∈ ℝ+) |
| 9 | 6, 8 | ge0divd 13061 | . 2 ⊢ (𝑁 ∈ ℤ → (0 ≤ ((2 · 𝑁) + 1) ↔ 0 ≤ (((2 · 𝑁) + 1) / 2))) |
| 10 | 4 | zcnd 12664 | . . . . 5 ⊢ (𝑁 ∈ ℤ → (2 · 𝑁) ∈ ℂ) |
| 11 | 1cnd 11161 | . . . . 5 ⊢ (𝑁 ∈ ℤ → 1 ∈ ℂ) | |
| 12 | 2cnne0 12416 | . . . . . 6 ⊢ (2 ∈ ℂ ∧ 2 ≠ 0) | |
| 13 | 12 | a1i 11 | . . . . 5 ⊢ (𝑁 ∈ ℤ → (2 ∈ ℂ ∧ 2 ≠ 0)) |
| 14 | divdir 11856 | . . . . 5 ⊢ (((2 · 𝑁) ∈ ℂ ∧ 1 ∈ ℂ ∧ (2 ∈ ℂ ∧ 2 ≠ 0)) → (((2 · 𝑁) + 1) / 2) = (((2 · 𝑁) / 2) + (1 / 2))) | |
| 15 | 10, 11, 13, 14 | syl3anc 1382 | . . . 4 ⊢ (𝑁 ∈ ℤ → (((2 · 𝑁) + 1) / 2) = (((2 · 𝑁) / 2) + (1 / 2))) |
| 16 | zcn 12559 | . . . . . 6 ⊢ (𝑁 ∈ ℤ → 𝑁 ∈ ℂ) | |
| 17 | 2cnd 12282 | . . . . . 6 ⊢ (𝑁 ∈ ℤ → 2 ∈ ℂ) | |
| 18 | 2ne0 12310 | . . . . . . 7 ⊢ 2 ≠ 0 | |
| 19 | 18 | a1i 11 | . . . . . 6 ⊢ (𝑁 ∈ ℤ → 2 ≠ 0) |
| 20 | 16, 17, 19 | divcan3d 11958 | . . . . 5 ⊢ (𝑁 ∈ ℤ → ((2 · 𝑁) / 2) = 𝑁) |
| 21 | 20 | oveq1d 7396 | . . . 4 ⊢ (𝑁 ∈ ℤ → (((2 · 𝑁) / 2) + (1 / 2)) = (𝑁 + (1 / 2))) |
| 22 | 15, 21 | eqtrd 2787 | . . 3 ⊢ (𝑁 ∈ ℤ → (((2 · 𝑁) + 1) / 2) = (𝑁 + (1 / 2))) |
| 23 | 22 | breq2d 5102 | . 2 ⊢ (𝑁 ∈ ℤ → (0 ≤ (((2 · 𝑁) + 1) / 2) ↔ 0 ≤ (𝑁 + (1 / 2)))) |
| 24 | zre 12558 | . . . 4 ⊢ (𝑁 ∈ ℤ → 𝑁 ∈ ℝ) | |
| 25 | halfre 12420 | . . . . 5 ⊢ (1 / 2) ∈ ℝ | |
| 26 | 25 | a1i 11 | . . . 4 ⊢ (𝑁 ∈ ℤ → (1 / 2) ∈ ℝ) |
| 27 | 24, 26 | readdcld 11197 | . . 3 ⊢ (𝑁 ∈ ℤ → (𝑁 + (1 / 2)) ∈ ℝ) |
| 28 | halfge0 12423 | . . . 4 ⊢ 0 ≤ (1 / 2) | |
| 29 | 24, 26 | addge01d 11761 | . . . 4 ⊢ (𝑁 ∈ ℤ → (0 ≤ (1 / 2) ↔ 𝑁 ≤ (𝑁 + (1 / 2)))) |
| 30 | 28, 29 | mpbii 235 | . . 3 ⊢ (𝑁 ∈ ℤ → 𝑁 ≤ (𝑁 + (1 / 2))) |
| 31 | 1red 11168 | . . . 4 ⊢ (𝑁 ∈ ℤ → 1 ∈ ℝ) | |
| 32 | halflt1 12424 | . . . . 5 ⊢ (1 / 2) < 1 | |
| 33 | 32 | a1i 11 | . . . 4 ⊢ (𝑁 ∈ ℤ → (1 / 2) < 1) |
| 34 | 26, 31, 24, 33 | ltadd2dd 11328 | . . 3 ⊢ (𝑁 ∈ ℤ → (𝑁 + (1 / 2)) < (𝑁 + 1)) |
| 35 | btwnzge0 13824 | . . 3 ⊢ ((((𝑁 + (1 / 2)) ∈ ℝ ∧ 𝑁 ∈ ℤ) ∧ (𝑁 ≤ (𝑁 + (1 / 2)) ∧ (𝑁 + (1 / 2)) < (𝑁 + 1))) → (0 ≤ (𝑁 + (1 / 2)) ↔ 0 ≤ 𝑁)) | |
| 36 | 27, 3, 30, 34, 35 | syl22anc 847 | . 2 ⊢ (𝑁 ∈ ℤ → (0 ≤ (𝑁 + (1 / 2)) ↔ 0 ≤ 𝑁)) |
| 37 | 9, 23, 36 | 3bitrd 307 | 1 ⊢ (𝑁 ∈ ℤ → (0 ≤ ((2 · 𝑁) + 1) ↔ 0 ≤ 𝑁)) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 ↔ wb 208 ∧ wa 398 = wceq 1550 ∈ wcel 2132 ≠ wne 2947 class class class wbr 5090 (class class class)co 7381 ℂcc 11057 ℝcr 11058 0cc0 11059 1c1 11060 + caddc 11062 · cmul 11064 < clt 11202 ≤ cle 11203 / cdiv 11830 2c2 12258 ℤcz 12554 ℝ+crp 12979 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1805 ax-4 1819 ax-5 1920 ax-6 1977 ax-7 2018 ax-8 2134 ax-9 2142 ax-10 2165 ax-11 2181 ax-12 2202 ax-ext 2724 ax-sep 5236 ax-nul 5246 ax-pow 5312 ax-pr 5380 ax-un 7703 ax-cnex 11115 ax-resscn 11116 ax-1cn 11117 ax-icn 11118 ax-addcl 11119 ax-addrcl 11120 ax-mulcl 11121 ax-mulrcl 11122 ax-mulcom 11123 ax-addass 11124 ax-mulass 11125 ax-distr 11126 ax-i2m1 11127 ax-1ne0 11128 ax-1rid 11129 ax-rnegex 11130 ax-rrecex 11131 ax-cnre 11132 ax-pre-lttri 11133 ax-pre-lttrn 11134 ax-pre-ltadd 11135 ax-pre-mulgt0 11136 ax-pre-sup 11137 |
| This theorem depends on definitions: df-bi 209 df-an 399 df-or 857 df-3or 1096 df-3an 1097 df-tru 1553 df-fal 1563 df-ex 1790 df-nf 1794 df-sb 2081 df-mo 2556 df-eu 2586 df-clab 2731 df-cleq 2744 df-clel 2827 df-nfc 2901 df-ne 2948 df-nel 3052 df-ral 3067 df-rex 3077 df-rmo 3357 df-reu 3358 df-rab 3405 df-v 3446 df-sbc 3736 df-csb 3844 df-dif 3898 df-un 3900 df-in 3902 df-ss 3912 df-pss 3915 df-nul 4277 df-if 4471 df-pw 4547 df-sn 4573 df-pr 4575 df-op 4579 df-uni 4856 df-iun 4941 df-br 5091 df-opab 5153 df-mpt 5172 df-tr 5198 df-id 5531 df-eprel 5536 df-po 5544 df-so 5545 df-fr 5589 df-we 5591 df-xp 5642 df-rel 5643 df-cnv 5644 df-co 5645 df-dm 5646 df-rn 5647 df-res 5648 df-ima 5649 df-pred 6273 df-ord 6334 df-on 6335 df-lim 6336 df-suc 6337 df-iota 6462 df-fun 6508 df-fn 6509 df-f 6510 df-f1 6511 df-fo 6512 df-f1o 6513 df-fv 6514 df-riota 7338 df-ov 7384 df-oprab 7385 df-mpo 7386 df-om 7832 df-2nd 7956 df-frecs 8246 df-wrecs 8277 df-recs 8326 df-rdg 8365 df-er 8662 df-en 8913 df-dom 8914 df-sdom 8915 df-sup 9374 df-inf 9375 df-pnf 11204 df-mnf 11205 df-xr 11206 df-ltxr 11207 df-le 11208 df-sub 11402 df-neg 11403 df-div 11831 df-nn 12197 df-2 12266 df-n0 12468 df-z 12555 df-uz 12826 df-rp 12980 df-fl 13788 |
| This theorem is referenced by: oddnn02np1 16354 |
| Copyright terms: Public domain | W3C validator |