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

Theorem odd2np1 16555
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 12768 . . . 4 2 ∈ ℤ
2 divides 16468 . . . 4 ((2 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (2 ∥ 𝑁 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
31, 2mpan 703 . . 3 (𝑁 ∈ ℤ → (2 ∥ 𝑁 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
43notbid 321 . 2 (𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 ↔ ¬ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
5 elznn0 12748 . . . 4 (𝑁 ∈ ℤ ↔ (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)))
6 odd2np1lem 16554 . . . . . 6 (𝑁 ∈ ℕ0 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
76adantl 487 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
8 peano2z 12777 . . . . . . . . . . 11 (𝑥 ∈ ℤ → (𝑥 + 1) ∈ ℤ)
9 znegcl 12771 . . . . . . . . . . 11 ((𝑥 + 1) ∈ ℤ → -(𝑥 + 1) ∈ ℤ)
108, 9syl 18 . . . . . . . . . 10 (𝑥 ∈ ℤ → -(𝑥 + 1) ∈ ℤ)
1110ad2antlr 740 . . . . . . . . 9 (((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) ∧ ((2 · 𝑥) + 1) = -𝑁) → -(𝑥 + 1) ∈ ℤ)
12 zcn 12738 . . . . . . . . . . . . . 14 (𝑥 ∈ ℤ → 𝑥 ∈ ℂ)
13 2cn 12458 . . . . . . . . . . . . . . . 16 2 ∈ ℂ
14 mulcl 11323 . . . . . . . . . . . . . . . 16 ((2 ∈ ℂ ∧ 𝑥 ∈ ℂ) → (2 · 𝑥) ∈ ℂ)
1513, 14mpan 703 . . . . . . . . . . . . . . 15 (𝑥 ∈ ℂ → (2 · 𝑥) ∈ ℂ)
16 peano2cn 11521 . . . . . . . . . . . . . . 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 11376 . . . . . . . . . . . 12 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → 𝑁 ∈ ℂ)
22 negcon2 11650 . . . . . . . . . . . 12 ((((2 · 𝑥) + 1) ∈ ℂ ∧ 𝑁 ∈ ℂ) → (((2 · 𝑥) + 1) = -𝑁 ↔ 𝑁 = -((2 · 𝑥) + 1)))
2319, 21, 22syl2anc 596 . . . . . . . . . . 11 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → (((2 · 𝑥) + 1) = -𝑁 ↔ 𝑁 = -((2 · 𝑥) + 1)))
24 eqcom 2770 . . . . . . . . . . . 12 (𝑁 = -((2 · 𝑥) + 1) ↔ -((2 · 𝑥) + 1) = 𝑁)
2513, 12, 14sylancr 599 . . . . . . . . . . . . . . . . . . 19 (𝑥 ∈ ℤ → (2 · 𝑥) ∈ ℂ)
26 ax-1cn 11297 . . . . . . . . . . . . . . . . . . . . 21 1 ∈ ℂ
2713, 26mulcli 11355 . . . . . . . . . . . . . . . . . . . 20 (2 · 1) ∈ ℂ
28 addsubass 11606 . . . . . . . . . . . . . . . . . . . 20 (((2 · 𝑥) ∈ ℂ ∧ (2 · 1) ∈ ℂ ∧ 1 ∈ ℂ) → (((2 · 𝑥) + (2 · 1)) − 1) = ((2 · 𝑥) + ((2 · 1) − 1)))
2927, 26, 28mp3an23 1483 . . . . . . . . . . . . . . . . . . 19 ((2 · 𝑥) ∈ ℂ → (((2 · 𝑥) + (2 · 1)) − 1) = ((2 · 𝑥) + ((2 · 1) − 1)))
3025, 29syl 18 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ ℤ → (((2 · 𝑥) + (2 · 1)) − 1) = ((2 · 𝑥) + ((2 · 1) − 1)))
31 2t1e2 12545 . . . . . . . . . . . . . . . . . . . . 21 (2 · 1) = 2
3231oveq1i 7461 . . . . . . . . . . . . . . . . . . . 20 ((2 · 1) − 1) = (2 − 1)
33 2m1e1 12507 . . . . . . . . . . . . . . . . . . . 20 (2 − 1) = 1
3432, 33eqtri 2786 . . . . . . . . . . . . . . . . . . 19 ((2 · 1) − 1) = 1
3534oveq2i 7462 . . . . . . . . . . . . . . . . . 18 ((2 · 𝑥) + ((2 · 1) − 1)) = ((2 · 𝑥) + 1)
3630, 35eqtr2di 2815 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → ((2 · 𝑥) + 1) = (((2 · 𝑥) + (2 · 1)) − 1))
37 adddi 11328 . . . . . . . . . . . . . . . . . . . 20 ((2 ∈ ℂ ∧ 𝑥 ∈ ℂ ∧ 1 ∈ ℂ) → (2 · (𝑥 + 1)) = ((2 · 𝑥) + (2 · 1)))
3813, 26, 37mp3an13 1482 . . . . . . . . . . . . . . . . . . 19 (𝑥 ∈ ℂ → (2 · (𝑥 + 1)) = ((2 · 𝑥) + (2 · 1)))
3912, 38syl 18 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ ℤ → (2 · (𝑥 + 1)) = ((2 · 𝑥) + (2 · 1)))
4039oveq1d 7466 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → ((2 · (𝑥 + 1)) − 1) = (((2 · 𝑥) + (2 · 1)) − 1))
4136, 40eqtr4d 2801 . . . . . . . . . . . . . . . 16 (𝑥 ∈ ℤ → ((2 · 𝑥) + 1) = ((2 · (𝑥 + 1)) − 1))
4241negeqd 11590 . . . . . . . . . . . . . . 15 (𝑥 ∈ ℤ → -((2 · 𝑥) + 1) = -((2 · (𝑥 + 1)) − 1))
438zcnd 12844 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ ℤ → (𝑥 + 1) ∈ ℂ)
44 mulneg2 11792 . . . . . . . . . . . . . . . . . 18 ((2 ∈ ℂ ∧ (𝑥 + 1) ∈ ℂ) → (2 · -(𝑥 + 1)) = -(2 · (𝑥 + 1)))
4513, 43, 44sylancr 599 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → (2 · -(𝑥 + 1)) = -(2 · (𝑥 + 1)))
4645oveq1d 7466 . . . . . . . . . . . . . . . 16 (𝑥 ∈ ℤ → ((2 · -(𝑥 + 1)) + 1) = ( -(2 · (𝑥 + 1)) + 1))
47 mulcl 11323 . . . . . . . . . . . . . . . . . 18 ((2 ∈ ℂ ∧ (𝑥 + 1) ∈ ℂ) → (2 · (𝑥 + 1)) ∈ ℂ)
4813, 43, 47sylancr 599 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → (2 · (𝑥 + 1)) ∈ ℂ)
49 negsubdi 11653 . . . . . . . . . . . . . . . . 17 (((2 · (𝑥 + 1)) ∈ ℂ ∧ 1 ∈ ℂ) → -((2 · (𝑥 + 1)) − 1) = ( -(2 · (𝑥 + 1)) + 1))
5048, 26, 49sylancl 598 . . . . . . . . . . . . . . . 16 (𝑥 ∈ ℤ → -((2 · (𝑥 + 1)) − 1) = ( -(2 · (𝑥 + 1)) + 1))
5146, 50eqtr4d 2801 . . . . . . . . . . . . . . 15 (𝑥 ∈ ℤ → ((2 · -(𝑥 + 1)) + 1) = -((2 · (𝑥 + 1)) − 1))
5242, 51eqtr4d 2801 . . . . . . . . . . . . . 14 (𝑥 ∈ ℤ → -((2 · 𝑥) + 1) = ((2 · -(𝑥 + 1)) + 1))
5352adantl 487 . . . . . . . . . . . . 13 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → -((2 · 𝑥) + 1) = ((2 · -(𝑥 + 1)) + 1))
5453eqeq1d 2765 . . . . . . . . . . . 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 7459 . . . . . . . . . . . 12 (𝑛 = -(𝑥 + 1) → (2 · 𝑛) = (2 · -(𝑥 + 1)))
5958oveq1d 7466 . . . . . . . . . . 11 (𝑛 = -(𝑥 + 1) → ((2 · 𝑛) + 1) = ((2 · -(𝑥 + 1)) + 1))
6059eqeq1d 2765 . . . . . . . . . 10 (𝑛 = -(𝑥 + 1) → (((2 · 𝑛) + 1) = 𝑁 ↔ ((2 · -(𝑥 + 1)) + 1) = 𝑁))
6160rspcev 3580 . . . . . . . . 9 (( -(𝑥 + 1) ∈ ℤ ∧ ((2 · -(𝑥 + 1)) + 1) = 𝑁) → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁)
6211, 57, 61syl2anc 596 . . . . . . . 8 (((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) ∧ ((2 · 𝑥) + 1) = -𝑁) → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁)
6362rexlimdva2 3169 . . . . . . 7 (𝑁 ∈ ℝ → (∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = -𝑁 → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
64 znegcl 12771 . . . . . . . . . 10 (𝑦 ∈ ℤ → -𝑦 ∈ ℤ)
6564ad2antlr 740 . . . . . . . . 9 (((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) ∧ (𝑦 · 2) = -𝑁) → -𝑦 ∈ ℤ)
66 zcn 12738 . . . . . . . . . . . . 13 (𝑦 ∈ ℤ → 𝑦 ∈ ℂ)
67 mulcl 11323 . . . . . . . . . . . . 13 ((𝑦 ∈ ℂ ∧ 2 ∈ ℂ) → (𝑦 · 2) ∈ ℂ)
6866, 13, 67sylancl 598 . . . . . . . . . . . 12 (𝑦 ∈ ℤ → (𝑦 · 2) ∈ ℂ)
69 recn 11329 . . . . . . . . . . . 12 (𝑁 ∈ ℝ → 𝑁 ∈ ℂ)
70 negcon2 11650 . . . . . . . . . . . 12 (((𝑦 · 2) ∈ ℂ ∧ 𝑁 ∈ ℂ) → ((𝑦 · 2) = -𝑁 ↔ 𝑁 = -(𝑦 · 2)))
7168, 69, 70syl2anr 609 . . . . . . . . . . 11 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → ((𝑦 · 2) = -𝑁 ↔ 𝑁 = -(𝑦 · 2)))
72 eqcom 2770 . . . . . . . . . . . 12 (𝑁 = -(𝑦 · 2) ↔ -(𝑦 · 2) = 𝑁)
73 mulneg1 11791 . . . . . . . . . . . . . . 15 ((𝑦 ∈ ℂ ∧ 2 ∈ ℂ) → ( -𝑦 · 2) = -(𝑦 · 2))
7466, 13, 73sylancl 598 . . . . . . . . . . . . . 14 (𝑦 ∈ ℤ → ( -𝑦 · 2) = -(𝑦 · 2))
7574adantl 487 . . . . . . . . . . . . 13 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → ( -𝑦 · 2) = -(𝑦 · 2))
7675eqeq1d 2765 . . . . . . . . . . . 12 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → (( -𝑦 · 2) = 𝑁 ↔ -(𝑦 · 2) = 𝑁))
7772, 76bitr4id 293 . . . . . . . . . . 11 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → (𝑁 = -(𝑦 · 2) ↔ ( -𝑦 · 2) = 𝑁))
7871, 77bitrd 282 . . . . . . . . . 10 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → ((𝑦 · 2) = -𝑁 ↔ ( -𝑦 · 2) = 𝑁))
7978biimpa 482 . . . . . . . . 9 (((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) ∧ (𝑦 · 2) = -𝑁) → ( -𝑦 · 2) = 𝑁)
80 oveq1 7458 . . . . . . . . . . 11 (𝑘 = -𝑦 → (𝑘 · 2) = ( -𝑦 · 2))
8180eqeq1d 2765 . . . . . . . . . 10 (𝑘 = -𝑦 → ((𝑘 · 2) = 𝑁 ↔ ( -𝑦 · 2) = 𝑁))
8281rspcev 3580 . . . . . . . . 9 (( -𝑦 ∈ ℤ ∧ ( -𝑦 · 2) = 𝑁) → ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)
8365, 79, 82syl2anc 596 . . . . . . . 8 (((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) ∧ (𝑦 · 2) = -𝑁) → ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)
8483rexlimdva2 3169 . . . . . . 7 (𝑁 ∈ ℝ → (∃𝑦 ∈ ℤ (𝑦 · 2) = -𝑁 → ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
8563, 84orim12d 979 . . . . . 6 (𝑁 ∈ ℝ → ((∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = -𝑁 ∨ ∃𝑦 ∈ ℤ (𝑦 · 2) = -𝑁) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)))
86 odd2np1lem 16554 . . . . . 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 12817 . . . 4 ¬ (1 / 2) ∈ ℤ
91 reeanv 3238 . . . . 5 (∃𝑛 ∈ ℤ ∃𝑘 ∈ ℤ (((2 · 𝑛) + 1) = 𝑁 ∧ (𝑘 · 2) = 𝑁) ↔ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∧ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
92 eqtr3 2785 . . . . . . 7 ((((2 · 𝑛) + 1) = 𝑁 ∧ (𝑘 · 2) = 𝑁) → ((2 · 𝑛) + 1) = (𝑘 · 2))
93 zcn 12738 . . . . . . . . . . 11 (𝑘 ∈ ℤ → 𝑘 ∈ ℂ)
94 mulcom 11325 . . . . . . . . . . 11 ((𝑘 ∈ ℂ ∧ 2 ∈ ℂ) → (𝑘 · 2) = (2 · 𝑘))
9593, 13, 94sylancl 598 . . . . . . . . . 10 (𝑘 ∈ ℤ → (𝑘 · 2) = (2 · 𝑘))
9695eqeq2d 2774 . . . . . . . . 9 (𝑘 ∈ ℤ → (((2 · 𝑛) + 1) = (𝑘 · 2) ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
9796adantl 487 . . . . . . . 8 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (((2 · 𝑛) + 1) = (𝑘 · 2) ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
98 mulcl 11323 . . . . . . . . . . 11 ((2 ∈ ℂ ∧ 𝑘 ∈ ℂ) → (2 · 𝑘) ∈ ℂ)
9913, 93, 98sylancr 599 . . . . . . . . . 10 (𝑘 ∈ ℤ → (2 · 𝑘) ∈ ℂ)
100 zcn 12738 . . . . . . . . . . 11 (𝑛 ∈ ℤ → 𝑛 ∈ ℂ)
101 mulcl 11323 . . . . . . . . . . 11 ((2 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (2 · 𝑛) ∈ ℂ)
10213, 100, 101sylancr 599 . . . . . . . . . 10 (𝑛 ∈ ℤ → (2 · 𝑛) ∈ ℂ)
103 subadd 11599 . . . . . . . . . . 11 (((2 · 𝑘) ∈ ℂ ∧ (2 · 𝑛) ∈ ℂ ∧ 1 ∈ ℂ) → (((2 · 𝑘) − (2 · 𝑛)) = 1 ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
10426, 103mp3an3 1480 . . . . . . . . . 10 (((2 · 𝑘) ∈ ℂ ∧ (2 · 𝑛) ∈ ℂ) → (((2 · 𝑘) − (2 · 𝑛)) = 1 ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
10599, 102, 104syl2anr 609 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (((2 · 𝑘) − (2 · 𝑛)) = 1 ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
106 subcl 11595 . . . . . . . . . . . . . 14 ((𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (𝑘 − 𝑛) ∈ ℂ)
107 2cnne0 12595 . . . . . . . . . . . . . . 15 (2 ∈ ℂ ∧ 2 ≠ 0)
108 eqcom 2770 . . . . . . . . . . . . . . . 16 ((𝑘 − 𝑛) = (1 / 2) ↔ (1 / 2) = (𝑘 − 𝑛))
109 divmul 12017 . . . . . . . . . . . . . . . 16 ((1 ∈ ℂ ∧ (𝑘 − 𝑛) ∈ ℂ ∧ (2 ∈ ℂ ∧ 2 ≠ 0)) → ((1 / 2) = (𝑘 − 𝑛) ↔ (2 · (𝑘 − 𝑛)) = 1))
110108, 109bitrid 286 . . . . . . . . . . . . . . 15 ((1 ∈ ℂ ∧ (𝑘 − 𝑛) ∈ ℂ ∧ (2 ∈ ℂ ∧ 2 ≠ 0)) → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
11126, 107, 110mp3an13 1482 . . . . . . . . . . . . . 14 ((𝑘 − 𝑛) ∈ ℂ → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
112106, 111syl 18 . . . . . . . . . . . . 13 ((𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
113112ancoms 464 . . . . . . . . . . . 12 ((𝑛 ∈ ℂ ∧ 𝑘 ∈ ℂ) → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
114 subdi 11788 . . . . . . . . . . . . . . 15 ((2 ∈ ℂ ∧ 𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (2 · (𝑘 − 𝑛)) = ((2 · 𝑘) − (2 · 𝑛)))
11513, 114mp3an1 1478 . . . . . . . . . . . . . 14 ((𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (2 · (𝑘 − 𝑛)) = ((2 · 𝑘) − (2 · 𝑛)))
116115ancoms 464 . . . . . . . . . . . . 13 ((𝑛 ∈ ℂ ∧ 𝑘 ∈ ℂ) → (2 · (𝑘 − 𝑛)) = ((2 · 𝑘) − (2 · 𝑛)))
117116eqeq1d 2765 . . . . . . . . . . . 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 12778 . . . . . . . . . . . 12 ((𝑘 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑘 − 𝑛) ∈ ℤ)
121 eleq1 2852 . . . . . . . . . . . 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 3208 . . . . 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 2147   ≠ wne 2959  ∃wrex 3090   class class class wbr 5108  (class class class)co 7451  ℂcc 11237  ℝcr 11238  0cc0 11239  1c1 11240   + caddc 11242   · cmul 11244   − cmin 11580   -cneg 11581   / cdiv 12013  2c2 12437  ℕ0cn0 12646  ℤcz 12733   ∥ cdvds 16466
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783  ax-resscn 11296  ax-1cn 11297  ax-icn 11298  ax-addcl 11299  ax-addrcl 11300  ax-mulcl 11301  ax-mulrcl 11302  ax-mulcom 11303  ax-addass 11304  ax-mulass 11305  ax-distr 11306  ax-i2m1 11307  ax-1ne0 11308  ax-1rid 11309  ax-rnegex 11310  ax-rrecex 11311  ax-cnre 11312  ax-pre-lttri 11313  ax-pre-lttrn 11314  ax-pre-ltadd 11315  ax-pre-mulgt0 11316
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-tr 5219  df-id 5553  df-eprel 5558  df-po 5566  df-so 5567  df-fr 5611  df-we 5613  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-pred 6330  df-ord 6391  df-on 6392  df-lim 6393  df-suc 6394  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-riota 7408  df-ov 7454  df-oprab 7455  df-mpo 7456  df-om 7912  df-2nd 8036  df-frecs 8337  df-wrecs 8368  df-recs 8417  df-rdg 8456  df-er 8755  df-en 9012  df-dom 9013  df-sdom 9014  df-pnf 11384  df-mnf 11385  df-xr 11386  df-ltxr 11387  df-le 11388  df-sub 11582  df-neg 11583  df-div 12014  df-nn 12376  df-2 12445  df-n0 12647  df-z 12734  df-dvds 16467
This theorem is used by:  oddm1even  16557  oexpneg  16559  mod2eq1n2dvds  16561  oddnn02np1  16562  2tp1odd  16566  sqoddm1div8z  16568  ltoddhalfle  16575  halfleoddlt  16576  opoe  16577  omoe  16578  opeo  16579  omeo  16580  m1expo  16589  m1exp1  16590  flodddiv4  16629  iserodd  17057  lgsquadlem1  27764  knoppndvlem9  37601  coskpi2  47149  cosknegpi  47152  stirlinglem5  47361  fourierswlem  47513  fmtnoodd  48891  dfodd3  49021
  Copyright terms: Public domain W3C validator