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

Theorem odd2np1 16504
Description: An integer is odd iff it is one plus twice another integer. (Contributed by Scott Fenton, 3-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
odd2np1 (𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
Distinct variable group:   𝑛,𝑁

Proof of Theorem odd2np1
Dummy variables 𝑘 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 2z 12721 . . . 4 2 ∈ ℤ
2 divides 16417 . . . 4 ((2 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (2 ∥ 𝑁 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
31, 2mpan 703 . . 3 (𝑁 ∈ ℤ → (2 ∥ 𝑁 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
43notbid 321 . 2 (𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 ↔ ¬ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
5 elznn0 12701 . . . 4 (𝑁 ∈ ℤ ↔ (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)))
6 odd2np1lem 16503 . . . . . 6 (𝑁 ∈ ℕ0 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
76adantl 487 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
8 peano2z 12730 . . . . . . . . . . 11 (𝑥 ∈ ℤ → (𝑥 + 1) ∈ ℤ)
9 znegcl 12724 . . . . . . . . . . 11 ((𝑥 + 1) ∈ ℤ → -(𝑥 + 1) ∈ ℤ)
108, 9syl 18 . . . . . . . . . 10 (𝑥 ∈ ℤ → -(𝑥 + 1) ∈ ℤ)
1110ad2antlr 740 . . . . . . . . 9 (((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) ∧ ((2 · 𝑥) + 1) = -𝑁) → -(𝑥 + 1) ∈ ℤ)
12 zcn 12691 . . . . . . . . . . . . . 14 (𝑥 ∈ ℤ → 𝑥 ∈ ℂ)
13 2cn 12411 . . . . . . . . . . . . . . . 16 2 ∈ ℂ
14 mulcl 11277 . . . . . . . . . . . . . . . 16 ((2 ∈ ℂ ∧ 𝑥 ∈ ℂ) → (2 · 𝑥) ∈ ℂ)
1513, 14mpan 703 . . . . . . . . . . . . . . 15 (𝑥 ∈ ℂ → (2 · 𝑥) ∈ ℂ)
16 peano2cn 11475 . . . . . . . . . . . . . . 15 ((2 · 𝑥) ∈ ℂ → ((2 · 𝑥) + 1) ∈ ℂ)
1715, 16syl 18 . . . . . . . . . . . . . 14 (𝑥 ∈ ℂ → ((2 · 𝑥) + 1) ∈ ℂ)
1812, 17syl 18 . . . . . . . . . . . . 13 (𝑥 ∈ ℤ → ((2 · 𝑥) + 1) ∈ ℂ)
1918adantl 487 . . . . . . . . . . . 12 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → ((2 · 𝑥) + 1) ∈ ℂ)
20 simpl 488 . . . . . . . . . . . . 13 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → 𝑁 ∈ ℝ)
2120recnd 11330 . . . . . . . . . . . 12 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → 𝑁 ∈ ℂ)
22 negcon2 11604 . . . . . . . . . . . 12 ((((2 · 𝑥) + 1) ∈ ℂ ∧ 𝑁 ∈ ℂ) → (((2 · 𝑥) + 1) = -𝑁 ↔ 𝑁 = -((2 · 𝑥) + 1)))
2319, 21, 22syl2anc 596 . . . . . . . . . . 11 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → (((2 · 𝑥) + 1) = -𝑁 ↔ 𝑁 = -((2 · 𝑥) + 1)))
24 eqcom 2768 . . . . . . . . . . . 12 (𝑁 = -((2 · 𝑥) + 1) ↔ -((2 · 𝑥) + 1) = 𝑁)
2513, 12, 14sylancr 599 . . . . . . . . . . . . . . . . . . 19 (𝑥 ∈ ℤ → (2 · 𝑥) ∈ ℂ)
26 ax-1cn 11251 . . . . . . . . . . . . . . . . . . . . 21 1 ∈ ℂ
2713, 26mulcli 11309 . . . . . . . . . . . . . . . . . . . 20 (2 · 1) ∈ ℂ
28 addsubass 11560 . . . . . . . . . . . . . . . . . . . 20 (((2 · 𝑥) ∈ ℂ ∧ (2 · 1) ∈ ℂ ∧ 1 ∈ ℂ) → (((2 · 𝑥) + (2 · 1)) − 1) = ((2 · 𝑥) + ((2 · 1) − 1)))
2927, 26, 28mp3an23 1482 . . . . . . . . . . . . . . . . . . 19 ((2 · 𝑥) ∈ ℂ → (((2 · 𝑥) + (2 · 1)) − 1) = ((2 · 𝑥) + ((2 · 1) − 1)))
3025, 29syl 18 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ ℤ → (((2 · 𝑥) + (2 · 1)) − 1) = ((2 · 𝑥) + ((2 · 1) − 1)))
31 2t1e2 12498 . . . . . . . . . . . . . . . . . . . . 21 (2 · 1) = 2
3231oveq1i 7428 . . . . . . . . . . . . . . . . . . . 20 ((2 · 1) − 1) = (2 − 1)
33 2m1e1 12460 . . . . . . . . . . . . . . . . . . . 20 (2 − 1) = 1
3432, 33eqtri 2784 . . . . . . . . . . . . . . . . . . 19 ((2 · 1) − 1) = 1
3534oveq2i 7429 . . . . . . . . . . . . . . . . . 18 ((2 · 𝑥) + ((2 · 1) − 1)) = ((2 · 𝑥) + 1)
3630, 35eqtr2di 2813 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → ((2 · 𝑥) + 1) = (((2 · 𝑥) + (2 · 1)) − 1))
37 adddi 11282 . . . . . . . . . . . . . . . . . . . 20 ((2 ∈ ℂ ∧ 𝑥 ∈ ℂ ∧ 1 ∈ ℂ) → (2 · (𝑥 + 1)) = ((2 · 𝑥) + (2 · 1)))
3813, 26, 37mp3an13 1481 . . . . . . . . . . . . . . . . . . 19 (𝑥 ∈ ℂ → (2 · (𝑥 + 1)) = ((2 · 𝑥) + (2 · 1)))
3912, 38syl 18 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ ℤ → (2 · (𝑥 + 1)) = ((2 · 𝑥) + (2 · 1)))
4039oveq1d 7433 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → ((2 · (𝑥 + 1)) − 1) = (((2 · 𝑥) + (2 · 1)) − 1))
4136, 40eqtr4d 2799 . . . . . . . . . . . . . . . 16 (𝑥 ∈ ℤ → ((2 · 𝑥) + 1) = ((2 · (𝑥 + 1)) − 1))
4241negeqd 11544 . . . . . . . . . . . . . . 15 (𝑥 ∈ ℤ → -((2 · 𝑥) + 1) = -((2 · (𝑥 + 1)) − 1))
438zcnd 12797 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ ℤ → (𝑥 + 1) ∈ ℂ)
44 mulneg2 11746 . . . . . . . . . . . . . . . . . 18 ((2 ∈ ℂ ∧ (𝑥 + 1) ∈ ℂ) → (2 · -(𝑥 + 1)) = -(2 · (𝑥 + 1)))
4513, 43, 44sylancr 599 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → (2 · -(𝑥 + 1)) = -(2 · (𝑥 + 1)))
4645oveq1d 7433 . . . . . . . . . . . . . . . 16 (𝑥 ∈ ℤ → ((2 · -(𝑥 + 1)) + 1) = (-(2 · (𝑥 + 1)) + 1))
47 mulcl 11277 . . . . . . . . . . . . . . . . . 18 ((2 ∈ ℂ ∧ (𝑥 + 1) ∈ ℂ) → (2 · (𝑥 + 1)) ∈ ℂ)
4813, 43, 47sylancr 599 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → (2 · (𝑥 + 1)) ∈ ℂ)
49 negsubdi 11607 . . . . . . . . . . . . . . . . 17 (((2 · (𝑥 + 1)) ∈ ℂ ∧ 1 ∈ ℂ) → -((2 · (𝑥 + 1)) − 1) = (-(2 · (𝑥 + 1)) + 1))
5048, 26, 49sylancl 598 . . . . . . . . . . . . . . . 16 (𝑥 ∈ ℤ → -((2 · (𝑥 + 1)) − 1) = (-(2 · (𝑥 + 1)) + 1))
5146, 50eqtr4d 2799 . . . . . . . . . . . . . . 15 (𝑥 ∈ ℤ → ((2 · -(𝑥 + 1)) + 1) = -((2 · (𝑥 + 1)) − 1))
5242, 51eqtr4d 2799 . . . . . . . . . . . . . 14 (𝑥 ∈ ℤ → -((2 · 𝑥) + 1) = ((2 · -(𝑥 + 1)) + 1))
5352adantl 487 . . . . . . . . . . . . 13 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → -((2 · 𝑥) + 1) = ((2 · -(𝑥 + 1)) + 1))
5453eqeq1d 2763 . . . . . . . . . . . 12 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → (-((2 · 𝑥) + 1) = 𝑁 ↔ ((2 · -(𝑥 + 1)) + 1) = 𝑁))
5524, 54bitrid 286 . . . . . . . . . . 11 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → (𝑁 = -((2 · 𝑥) + 1) ↔ ((2 · -(𝑥 + 1)) + 1) = 𝑁))
5623, 55bitrd 282 . . . . . . . . . 10 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → (((2 · 𝑥) + 1) = -𝑁 ↔ ((2 · -(𝑥 + 1)) + 1) = 𝑁))
5756biimpa 482 . . . . . . . . 9 (((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) ∧ ((2 · 𝑥) + 1) = -𝑁) → ((2 · -(𝑥 + 1)) + 1) = 𝑁)
58 oveq2 7426 . . . . . . . . . . . 12 (𝑛 = -(𝑥 + 1) → (2 · 𝑛) = (2 · -(𝑥 + 1)))
5958oveq1d 7433 . . . . . . . . . . 11 (𝑛 = -(𝑥 + 1) → ((2 · 𝑛) + 1) = ((2 · -(𝑥 + 1)) + 1))
6059eqeq1d 2763 . . . . . . . . . 10 (𝑛 = -(𝑥 + 1) → (((2 · 𝑛) + 1) = 𝑁 ↔ ((2 · -(𝑥 + 1)) + 1) = 𝑁))
6160rspcev 3577 . . . . . . . . 9 ((-(𝑥 + 1) ∈ ℤ ∧ ((2 · -(𝑥 + 1)) + 1) = 𝑁) → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁)
6211, 57, 61syl2anc 596 . . . . . . . 8 (((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) ∧ ((2 · 𝑥) + 1) = -𝑁) → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁)
6362rexlimdva2 3166 . . . . . . 7 (𝑁 ∈ ℝ → (∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = -𝑁 → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
64 znegcl 12724 . . . . . . . . . 10 (𝑦 ∈ ℤ → -𝑦 ∈ ℤ)
6564ad2antlr 740 . . . . . . . . 9 (((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) ∧ (𝑦 · 2) = -𝑁) → -𝑦 ∈ ℤ)
66 zcn 12691 . . . . . . . . . . . . 13 (𝑦 ∈ ℤ → 𝑦 ∈ ℂ)
67 mulcl 11277 . . . . . . . . . . . . 13 ((𝑦 ∈ ℂ ∧ 2 ∈ ℂ) → (𝑦 · 2) ∈ ℂ)
6866, 13, 67sylancl 598 . . . . . . . . . . . 12 (𝑦 ∈ ℤ → (𝑦 · 2) ∈ ℂ)
69 recn 11283 . . . . . . . . . . . 12 (𝑁 ∈ ℝ → 𝑁 ∈ ℂ)
70 negcon2 11604 . . . . . . . . . . . 12 (((𝑦 · 2) ∈ ℂ ∧ 𝑁 ∈ ℂ) → ((𝑦 · 2) = -𝑁 ↔ 𝑁 = -(𝑦 · 2)))
7168, 69, 70syl2anr 609 . . . . . . . . . . 11 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → ((𝑦 · 2) = -𝑁 ↔ 𝑁 = -(𝑦 · 2)))
72 eqcom 2768 . . . . . . . . . . . 12 (𝑁 = -(𝑦 · 2) ↔ -(𝑦 · 2) = 𝑁)
73 mulneg1 11745 . . . . . . . . . . . . . . 15 ((𝑦 ∈ ℂ ∧ 2 ∈ ℂ) → (-𝑦 · 2) = -(𝑦 · 2))
7466, 13, 73sylancl 598 . . . . . . . . . . . . . 14 (𝑦 ∈ ℤ → (-𝑦 · 2) = -(𝑦 · 2))
7574adantl 487 . . . . . . . . . . . . 13 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → (-𝑦 · 2) = -(𝑦 · 2))
7675eqeq1d 2763 . . . . . . . . . . . 12 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → ((-𝑦 · 2) = 𝑁 ↔ -(𝑦 · 2) = 𝑁))
7772, 76bitr4id 293 . . . . . . . . . . 11 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → (𝑁 = -(𝑦 · 2) ↔ (-𝑦 · 2) = 𝑁))
7871, 77bitrd 282 . . . . . . . . . 10 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → ((𝑦 · 2) = -𝑁 ↔ (-𝑦 · 2) = 𝑁))
7978biimpa 482 . . . . . . . . 9 (((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) ∧ (𝑦 · 2) = -𝑁) → (-𝑦 · 2) = 𝑁)
80 oveq1 7425 . . . . . . . . . . 11 (𝑘 = -𝑦 → (𝑘 · 2) = (-𝑦 · 2))
8180eqeq1d 2763 . . . . . . . . . 10 (𝑘 = -𝑦 → ((𝑘 · 2) = 𝑁 ↔ (-𝑦 · 2) = 𝑁))
8281rspcev 3577 . . . . . . . . 9 ((-𝑦 ∈ ℤ ∧ (-𝑦 · 2) = 𝑁) → ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)
8365, 79, 82syl2anc 596 . . . . . . . 8 (((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) ∧ (𝑦 · 2) = -𝑁) → ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)
8483rexlimdva2 3166 . . . . . . 7 (𝑁 ∈ ℝ → (∃𝑦 ∈ ℤ (𝑦 · 2) = -𝑁 → ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
8563, 84orim12d 979 . . . . . 6 (𝑁 ∈ ℝ → ((∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = -𝑁 ∨ ∃𝑦 ∈ ℤ (𝑦 · 2) = -𝑁) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)))
86 odd2np1lem 16503 . . . . . 6 (-𝑁 ∈ ℕ0 → (∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = -𝑁 ∨ ∃𝑦 ∈ ℤ (𝑦 · 2) = -𝑁))
8785, 86impel 515 . . . . 5 ((𝑁 ∈ ℝ ∧ -𝑁 ∈ ℕ0) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
887, 87jaodan 972 . . . 4 ((𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
895, 88sylbi 220 . . 3 (𝑁 ∈ ℤ → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
90 halfnz 12770 . . . 4 ¬ (1 / 2) ∈ ℤ
91 reeanv 3235 . . . . 5 (∃𝑛 ∈ ℤ ∃𝑘 ∈ ℤ (((2 · 𝑛) + 1) = 𝑁 ∧ (𝑘 · 2) = 𝑁) ↔ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∧ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
92 eqtr3 2783 . . . . . . 7 ((((2 · 𝑛) + 1) = 𝑁 ∧ (𝑘 · 2) = 𝑁) → ((2 · 𝑛) + 1) = (𝑘 · 2))
93 zcn 12691 . . . . . . . . . . 11 (𝑘 ∈ ℤ → 𝑘 ∈ ℂ)
94 mulcom 11279 . . . . . . . . . . 11 ((𝑘 ∈ ℂ ∧ 2 ∈ ℂ) → (𝑘 · 2) = (2 · 𝑘))
9593, 13, 94sylancl 598 . . . . . . . . . 10 (𝑘 ∈ ℤ → (𝑘 · 2) = (2 · 𝑘))
9695eqeq2d 2772 . . . . . . . . 9 (𝑘 ∈ ℤ → (((2 · 𝑛) + 1) = (𝑘 · 2) ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
9796adantl 487 . . . . . . . 8 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (((2 · 𝑛) + 1) = (𝑘 · 2) ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
98 mulcl 11277 . . . . . . . . . . 11 ((2 ∈ ℂ ∧ 𝑘 ∈ ℂ) → (2 · 𝑘) ∈ ℂ)
9913, 93, 98sylancr 599 . . . . . . . . . 10 (𝑘 ∈ ℤ → (2 · 𝑘) ∈ ℂ)
100 zcn 12691 . . . . . . . . . . 11 (𝑛 ∈ ℤ → 𝑛 ∈ ℂ)
101 mulcl 11277 . . . . . . . . . . 11 ((2 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (2 · 𝑛) ∈ ℂ)
10213, 100, 101sylancr 599 . . . . . . . . . 10 (𝑛 ∈ ℤ → (2 · 𝑛) ∈ ℂ)
103 subadd 11553 . . . . . . . . . . 11 (((2 · 𝑘) ∈ ℂ ∧ (2 · 𝑛) ∈ ℂ ∧ 1 ∈ ℂ) → (((2 · 𝑘) − (2 · 𝑛)) = 1 ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
10426, 103mp3an3 1479 . . . . . . . . . 10 (((2 · 𝑘) ∈ ℂ ∧ (2 · 𝑛) ∈ ℂ) → (((2 · 𝑘) − (2 · 𝑛)) = 1 ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
10599, 102, 104syl2anr 609 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (((2 · 𝑘) − (2 · 𝑛)) = 1 ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
106 subcl 11549 . . . . . . . . . . . . . 14 ((𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (𝑘 − 𝑛) ∈ ℂ)
107 2cnne0 12548 . . . . . . . . . . . . . . 15 (2 ∈ ℂ ∧ 2 ≠ 0)
108 eqcom 2768 . . . . . . . . . . . . . . . 16 ((𝑘 − 𝑛) = (1 / 2) ↔ (1 / 2) = (𝑘 − 𝑛))
109 divmul 11970 . . . . . . . . . . . . . . . 16 ((1 ∈ ℂ ∧ (𝑘 − 𝑛) ∈ ℂ ∧ (2 ∈ ℂ ∧ 2 ≠ 0)) → ((1 / 2) = (𝑘 − 𝑛) ↔ (2 · (𝑘 − 𝑛)) = 1))
110108, 109bitrid 286 . . . . . . . . . . . . . . 15 ((1 ∈ ℂ ∧ (𝑘 − 𝑛) ∈ ℂ ∧ (2 ∈ ℂ ∧ 2 ≠ 0)) → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
11126, 107, 110mp3an13 1481 . . . . . . . . . . . . . 14 ((𝑘 − 𝑛) ∈ ℂ → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
112106, 111syl 18 . . . . . . . . . . . . 13 ((𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
113112ancoms 464 . . . . . . . . . . . 12 ((𝑛 ∈ ℂ ∧ 𝑘 ∈ ℂ) → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
114 subdi 11742 . . . . . . . . . . . . . . 15 ((2 ∈ ℂ ∧ 𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (2 · (𝑘 − 𝑛)) = ((2 · 𝑘) − (2 · 𝑛)))
11513, 114mp3an1 1477 . . . . . . . . . . . . . 14 ((𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (2 · (𝑘 − 𝑛)) = ((2 · 𝑘) − (2 · 𝑛)))
116115ancoms 464 . . . . . . . . . . . . 13 ((𝑛 ∈ ℂ ∧ 𝑘 ∈ ℂ) → (2 · (𝑘 − 𝑛)) = ((2 · 𝑘) − (2 · 𝑛)))
117116eqeq1d 2763 . . . . . . . . . . . 12 ((𝑛 ∈ ℂ ∧ 𝑘 ∈ ℂ) → ((2 · (𝑘 − 𝑛)) = 1 ↔ ((2 · 𝑘) − (2 · 𝑛)) = 1))
118113, 117bitrd 282 . . . . . . . . . . 11 ((𝑛 ∈ ℂ ∧ 𝑘 ∈ ℂ) → ((𝑘 − 𝑛) = (1 / 2) ↔ ((2 · 𝑘) − (2 · 𝑛)) = 1))
119100, 93, 118syl2an 608 . . . . . . . . . 10 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → ((𝑘 − 𝑛) = (1 / 2) ↔ ((2 · 𝑘) − (2 · 𝑛)) = 1))
120 zsubcl 12731 . . . . . . . . . . . 12 ((𝑘 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑘 − 𝑛) ∈ ℤ)
121 eleq1 2849 . . . . . . . . . . . 12 ((𝑘 − 𝑛) = (1 / 2) → ((𝑘 − 𝑛) ∈ ℤ ↔ (1 / 2) ∈ ℤ))
122120, 121syl5ibcom 248 . . . . . . . . . . 11 ((𝑘 ∈ ℤ ∧ 𝑛 ∈ ℤ) → ((𝑘 − 𝑛) = (1 / 2) → (1 / 2) ∈ ℤ))
123122ancoms 464 . . . . . . . . . 10 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → ((𝑘 − 𝑛) = (1 / 2) → (1 / 2) ∈ ℤ))
124119, 123sylbird 263 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (((2 · 𝑘) − (2 · 𝑛)) = 1 → (1 / 2) ∈ ℤ))
125105, 124sylbird 263 . . . . . . . 8 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (((2 · 𝑛) + 1) = (2 · 𝑘) → (1 / 2) ∈ ℤ))
12697, 125sylbid 243 . . . . . . 7 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (((2 · 𝑛) + 1) = (𝑘 · 2) → (1 / 2) ∈ ℤ))
12792, 126syl5 35 . . . . . 6 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → ((((2 · 𝑛) + 1) = 𝑁 ∧ (𝑘 · 2) = 𝑁) → (1 / 2) ∈ ℤ))
128127rexlimivv 3205 . . . . 5 (∃𝑛 ∈ ℤ ∃𝑘 ∈ ℤ (((2 · 𝑛) + 1) = 𝑁 ∧ (𝑘 · 2) = 𝑁) → (1 / 2) ∈ ℤ)
12991, 128sylbir 238 . . . 4 ((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∧ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁) → (1 / 2) ∈ ℤ)
13090, 129mto 200 . . 3 ¬ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∧ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)
131 pm5.17 1029 . . . 4 (((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁) ∧ ¬ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∧ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)) ↔ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ↔ ¬ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
132 bicom 225 . . . 4 ((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ↔ ¬ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁) ↔ (¬ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
133131, 132bitri 278 . . 3 (((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁) ∧ ¬ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∧ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)) ↔ (¬ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
13489, 130, 133sylanblc 601 . 2 (𝑁 ∈ ℤ → (¬ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
1354, 134bitrd 282 1 (𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   ∧ w3a 1103   = wceq 1570   ∈ wcel 2145   ≠ wne 2956  ∃wrex 3087   class class class wbr 5103  (class class class)co 7418  ℂcc 11191  ℝcr 11192  0cc0 11193  1c1 11194   + caddc 11196   · cmul 11198   − cmin 11534  -cneg 11535   / cdiv 11966  2c2 12390  ℕ0cn0 12599  ℤcz 12686   ∥ cdvds 16415
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 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7749  ax-resscn 11250  ax-1cn 11251  ax-icn 11252  ax-addcl 11253  ax-addrcl 11254  ax-mulcl 11255  ax-mulrcl 11256  ax-mulcom 11257  ax-addass 11258  ax-mulass 11259  ax-distr 11260  ax-i2m1 11261  ax-1ne0 11262  ax-1rid 11263  ax-rnegex 11264  ax-rrecex 11265  ax-cnre 11266  ax-pre-lttri 11267  ax-pre-lttrn 11268  ax-pre-ltadd 11269  ax-pre-mulgt0 11270
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 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6303  df-ord 6364  df-on 6365  df-lim 6366  df-suc 6367  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fo 6543  df-f1o 6544  df-fv 6545  df-riota 7375  df-ov 7421  df-oprab 7422  df-mpo 7423  df-om 7876  df-2nd 8000  df-frecs 8292  df-wrecs 8323  df-recs 8372  df-rdg 8411  df-er 8710  df-en 8967  df-dom 8968  df-sdom 8969  df-pnf 11338  df-mnf 11339  df-xr 11340  df-ltxr 11341  df-le 11342  df-sub 11536  df-neg 11537  df-div 11967  df-nn 12329  df-2 12398  df-n0 12600  df-z 12687  df-dvds 16416
This theorem is used by:  oddm1even  16506  oexpneg  16508  mod2eq1n2dvds  16510  oddnn02np1  16511  2tp1odd  16515  sqoddm1div8z  16517  ltoddhalfle  16524  halfleoddlt  16525  opoe  16526  omoe  16527  opeo  16528  omeo  16529  m1expo  16538  m1exp1  16539  flodddiv4  16578  iserodd  17006  lgsquadlem1  27700  knoppndvlem9  37366  coskpi2  46845  cosknegpi  46848  stirlinglem5  47057  fourierswlem  47209  fmtnoodd  48587  dfodd3  48717
  Copyright terms: Public domain W3C validator