| Intuitionistic Logic Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > ILE Home > Th. List > mod2eq1n2dvds | GIF version | ||
| Description: An integer is 1 modulo 2 iff it is odd (i.e. not divisible by 2), see example 3 in [ApostolNT] p. 107. (Contributed by AV, 24-May-2020.) |
| Ref | Expression |
|---|---|
| mod2eq1n2dvds | ⊢ (𝑁 ∈ ℤ → ((𝑁 mod 2) = 1 ↔ ¬ 2 ∥ 𝑁)) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | 0ne1 9215 | . . . . . 6 ⊢ 0 ≠ 1 | |
| 2 | pm13.181 2483 | . . . . . 6 ⊢ (((𝑁 mod 2) = 0 ∧ 0 ≠ 1) → (𝑁 mod 2) ≠ 1) | |
| 3 | 1, 2 | mpan2 425 | . . . . 5 ⊢ ((𝑁 mod 2) = 0 → (𝑁 mod 2) ≠ 1) |
| 4 | 3 | neneqd 2422 | . . . 4 ⊢ ((𝑁 mod 2) = 0 → ¬ (𝑁 mod 2) = 1) |
| 5 | 4 | adantl 277 | . . 3 ⊢ ((𝑁 ∈ ℤ ∧ (𝑁 mod 2) = 0) → ¬ (𝑁 mod 2) = 1) |
| 6 | mod2eq0even 12462 | . . . . 5 ⊢ (𝑁 ∈ ℤ → ((𝑁 mod 2) = 0 ↔ 2 ∥ 𝑁)) | |
| 7 | 6 | biimpa 296 | . . . 4 ⊢ ((𝑁 ∈ ℤ ∧ (𝑁 mod 2) = 0) → 2 ∥ 𝑁) |
| 8 | 7 | notnotd 635 | . . 3 ⊢ ((𝑁 ∈ ℤ ∧ (𝑁 mod 2) = 0) → ¬ ¬ 2 ∥ 𝑁) |
| 9 | 5, 8 | 2falsed 709 | . 2 ⊢ ((𝑁 ∈ ℤ ∧ (𝑁 mod 2) = 0) → ((𝑁 mod 2) = 1 ↔ ¬ 2 ∥ 𝑁)) |
| 10 | simpr 110 | . . 3 ⊢ ((𝑁 ∈ ℤ ∧ (𝑁 mod 2) = 1) → (𝑁 mod 2) = 1) | |
| 11 | 1ne0 9216 | . . . . . . 7 ⊢ 1 ≠ 0 | |
| 12 | pm13.181 2483 | . . . . . . 7 ⊢ (((𝑁 mod 2) = 1 ∧ 1 ≠ 0) → (𝑁 mod 2) ≠ 0) | |
| 13 | 11, 12 | mpan2 425 | . . . . . 6 ⊢ ((𝑁 mod 2) = 1 → (𝑁 mod 2) ≠ 0) |
| 14 | 13 | neneqd 2422 | . . . . 5 ⊢ ((𝑁 mod 2) = 1 → ¬ (𝑁 mod 2) = 0) |
| 15 | 14 | adantl 277 | . . . 4 ⊢ ((𝑁 ∈ ℤ ∧ (𝑁 mod 2) = 1) → ¬ (𝑁 mod 2) = 0) |
| 16 | 6 | notbid 673 | . . . . 5 ⊢ (𝑁 ∈ ℤ → (¬ (𝑁 mod 2) = 0 ↔ ¬ 2 ∥ 𝑁)) |
| 17 | 16 | adantr 276 | . . . 4 ⊢ ((𝑁 ∈ ℤ ∧ (𝑁 mod 2) = 1) → (¬ (𝑁 mod 2) = 0 ↔ ¬ 2 ∥ 𝑁)) |
| 18 | 15, 17 | mpbid 147 | . . 3 ⊢ ((𝑁 ∈ ℤ ∧ (𝑁 mod 2) = 1) → ¬ 2 ∥ 𝑁) |
| 19 | 10, 18 | 2thd 175 | . 2 ⊢ ((𝑁 ∈ ℤ ∧ (𝑁 mod 2) = 1) → ((𝑁 mod 2) = 1 ↔ ¬ 2 ∥ 𝑁)) |
| 20 | 2nn 9310 | . . . . 5 ⊢ 2 ∈ ℕ | |
| 21 | zmodfz 10614 | . . . . 5 ⊢ ((𝑁 ∈ ℤ ∧ 2 ∈ ℕ) → (𝑁 mod 2) ∈ (0...(2 − 1))) | |
| 22 | 20, 21 | mpan2 425 | . . . 4 ⊢ (𝑁 ∈ ℤ → (𝑁 mod 2) ∈ (0...(2 − 1))) |
| 23 | 2m1e1 9266 | . . . . 5 ⊢ (2 − 1) = 1 | |
| 24 | 23 | oveq2i 6034 | . . . 4 ⊢ (0...(2 − 1)) = (0...1) |
| 25 | 22, 24 | eleqtrdi 2323 | . . 3 ⊢ (𝑁 ∈ ℤ → (𝑁 mod 2) ∈ (0...1)) |
| 26 | fz01or 10351 | . . 3 ⊢ ((𝑁 mod 2) ∈ (0...1) ↔ ((𝑁 mod 2) = 0 ∨ (𝑁 mod 2) = 1)) | |
| 27 | 25, 26 | sylib 122 | . 2 ⊢ (𝑁 ∈ ℤ → ((𝑁 mod 2) = 0 ∨ (𝑁 mod 2) = 1)) |
| 28 | 9, 19, 27 | mpjaodan 805 | 1 ⊢ (𝑁 ∈ ℤ → ((𝑁 mod 2) = 1 ↔ ¬ 2 ∥ 𝑁)) |
| Colors of variables: wff set class |
| Syntax hints: ¬ wn 3 → wi 4 ∧ wa 104 ↔ wb 105 ∨ wo 715 = wceq 1397 ∈ wcel 2201 ≠ wne 2401 class class class wbr 4089 (class class class)co 6023 0cc0 8037 1c1 8038 − cmin 8355 ℕcn 9148 2c2 9199 ℤcz 9484 ...cfz 10248 mod cmo 10590 ∥ cdvds 12371 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-ia1 106 ax-ia2 107 ax-ia3 108 ax-in1 619 ax-in2 620 ax-io 716 ax-5 1495 ax-7 1496 ax-gen 1497 ax-ie1 1541 ax-ie2 1542 ax-8 1552 ax-10 1553 ax-11 1554 ax-i12 1555 ax-bndl 1557 ax-4 1558 ax-17 1574 ax-i9 1578 ax-ial 1582 ax-i5r 1583 ax-13 2203 ax-14 2204 ax-ext 2212 ax-sep 4208 ax-pow 4266 ax-pr 4301 ax-un 4532 ax-setind 4637 ax-cnex 8128 ax-resscn 8129 ax-1cn 8130 ax-1re 8131 ax-icn 8132 ax-addcl 8133 ax-addrcl 8134 ax-mulcl 8135 ax-mulrcl 8136 ax-addcom 8137 ax-mulcom 8138 ax-addass 8139 ax-mulass 8140 ax-distr 8141 ax-i2m1 8142 ax-0lt1 8143 ax-1rid 8144 ax-0id 8145 ax-rnegex 8146 ax-precex 8147 ax-cnre 8148 ax-pre-ltirr 8149 ax-pre-ltwlin 8150 ax-pre-lttrn 8151 ax-pre-apti 8152 ax-pre-ltadd 8153 ax-pre-mulgt0 8154 ax-pre-mulext 8155 ax-arch 8156 |
| This theorem depends on definitions: df-bi 117 df-3or 1005 df-3an 1006 df-tru 1400 df-fal 1403 df-nf 1509 df-sb 1810 df-eu 2081 df-mo 2082 df-clab 2217 df-cleq 2223 df-clel 2226 df-nfc 2362 df-ne 2402 df-nel 2497 df-ral 2514 df-rex 2515 df-reu 2516 df-rmo 2517 df-rab 2518 df-v 2803 df-sbc 3031 df-csb 3127 df-dif 3201 df-un 3203 df-in 3205 df-ss 3212 df-pw 3655 df-sn 3676 df-pr 3677 df-op 3679 df-uni 3895 df-int 3930 df-iun 3973 df-br 4090 df-opab 4152 df-mpt 4153 df-id 4392 df-po 4395 df-iso 4396 df-xp 4733 df-rel 4734 df-cnv 4735 df-co 4736 df-dm 4737 df-rn 4738 df-res 4739 df-ima 4740 df-iota 5288 df-fun 5330 df-fn 5331 df-f 5332 df-fv 5336 df-riota 5976 df-ov 6026 df-oprab 6027 df-mpo 6028 df-1st 6308 df-2nd 6309 df-pnf 8221 df-mnf 8222 df-xr 8223 df-ltxr 8224 df-le 8225 df-sub 8357 df-neg 8358 df-reap 8760 df-ap 8767 df-div 8858 df-inn 9149 df-2 9207 df-n0 9408 df-z 9485 df-uz 9761 df-q 9859 df-rp 9894 df-fz 10249 df-fl 10536 df-mod 10591 df-dvds 12372 |
| This theorem is referenced by: 2lgslem3b1 15856 2lgslem3c1 15857 |
| Copyright terms: Public domain | W3C validator |