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

Theorem odd2np1 16572
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 12784 . . . 4 2 ∈ ℤ
2 divides 16485 . . . 4 ((2 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (2 ∥ 𝑁 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
31, 2mpan 703 . . 3 (𝑁 ∈ ℤ → (2 ∥ 𝑁 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
43notbid 321 . 2 (𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁 ↔ ¬ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
5 elznn0 12764 . . . 4 (𝑁 ∈ ℤ ↔ (𝑁 ∈ ℝ ∧ (𝑁 ∈ ℕ0 ∨ -𝑁 ∈ ℕ0)))
6 odd2np1lem 16571 . . . . . 6 (𝑁 ∈ ℕ0 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
76adantl 487 . . . . 5 ((𝑁 ∈ ℝ ∧ 𝑁 ∈ ℕ0) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
8 peano2z 12793 . . . . . . . . . . 11 (𝑥 ∈ ℤ → (𝑥 + 1) ∈ ℤ)
9 znegcl 12787 . . . . . . . . . . 11 ((𝑥 + 1) ∈ ℤ → -(𝑥 + 1) ∈ ℤ)
108, 9syl 18 . . . . . . . . . 10 (𝑥 ∈ ℤ → -(𝑥 + 1) ∈ ℤ)
1110ad2antlr 740 . . . . . . . . 9 (((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) ∧ ((2 · 𝑥) + 1) = -𝑁) → -(𝑥 + 1) ∈ ℤ)
12 zcn 12754 . . . . . . . . . . . . . 14 (𝑥 ∈ ℤ → 𝑥 ∈ ℂ)
13 2cn 12474 . . . . . . . . . . . . . . . 16 2 ∈ ℂ
14 mulcl 11339 . . . . . . . . . . . . . . . 16 ((2 ∈ ℂ ∧ 𝑥 ∈ ℂ) → (2 · 𝑥) ∈ ℂ)
1513, 14mpan 703 . . . . . . . . . . . . . . 15 (𝑥 ∈ ℂ → (2 · 𝑥) ∈ ℂ)
16 peano2cn 11537 . . . . . . . . . . . . . . 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 11392 . . . . . . . . . . . 12 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → 𝑁 ∈ ℂ)
22 negcon2 11666 . . . . . . . . . . . 12 ((((2 · 𝑥) + 1) ∈ ℂ ∧ 𝑁 ∈ ℂ) → (((2 · 𝑥) + 1) = -𝑁 ↔ 𝑁 = -((2 · 𝑥) + 1)))
2319, 21, 22syl2anc 596 . . . . . . . . . . 11 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → (((2 · 𝑥) + 1) = -𝑁 ↔ 𝑁 = -((2 · 𝑥) + 1)))
24 eqcom 2781 . . . . . . . . . . . 12 (𝑁 = -((2 · 𝑥) + 1) ↔ -((2 · 𝑥) + 1) = 𝑁)
2513, 12, 14sylancr 599 . . . . . . . . . . . . . . . . . . 19 (𝑥 ∈ ℤ → (2 · 𝑥) ∈ ℂ)
26 ax-1cn 11313 . . . . . . . . . . . . . . . . . . . . 21 1 ∈ ℂ
2713, 26mulcli 11371 . . . . . . . . . . . . . . . . . . . 20 (2 · 1) ∈ ℂ
28 addsubass 11622 . . . . . . . . . . . . . . . . . . . 20 (((2 · 𝑥) ∈ ℂ ∧ (2 · 1) ∈ ℂ ∧ 1 ∈ ℂ) → (((2 · 𝑥) + (2 · 1)) − 1) = ((2 · 𝑥) + ((2 · 1) − 1)))
2927, 26, 28mp3an23 1485 . . . . . . . . . . . . . . . . . . 19 ((2 · 𝑥) ∈ ℂ → (((2 · 𝑥) + (2 · 1)) − 1) = ((2 · 𝑥) + ((2 · 1) − 1)))
3025, 29syl 18 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ ℤ → (((2 · 𝑥) + (2 · 1)) − 1) = ((2 · 𝑥) + ((2 · 1) − 1)))
31 2t1e2 12561 . . . . . . . . . . . . . . . . . . . . 21 (2 · 1) = 2
3231oveq1i 7477 . . . . . . . . . . . . . . . . . . . 20 ((2 · 1) − 1) = (2 − 1)
33 2m1e1 12523 . . . . . . . . . . . . . . . . . . . 20 (2 − 1) = 1
3432, 33eqtri 2797 . . . . . . . . . . . . . . . . . . 19 ((2 · 1) − 1) = 1
3534oveq2i 7478 . . . . . . . . . . . . . . . . . 18 ((2 · 𝑥) + ((2 · 1) − 1)) = ((2 · 𝑥) + 1)
3630, 35eqtr2di 2826 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → ((2 · 𝑥) + 1) = (((2 · 𝑥) + (2 · 1)) − 1))
37 adddi 11344 . . . . . . . . . . . . . . . . . . . 20 ((2 ∈ ℂ ∧ 𝑥 ∈ ℂ ∧ 1 ∈ ℂ) → (2 · (𝑥 + 1)) = ((2 · 𝑥) + (2 · 1)))
3813, 26, 37mp3an13 1484 . . . . . . . . . . . . . . . . . . 19 (𝑥 ∈ ℂ → (2 · (𝑥 + 1)) = ((2 · 𝑥) + (2 · 1)))
3912, 38syl 18 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ ℤ → (2 · (𝑥 + 1)) = ((2 · 𝑥) + (2 · 1)))
4039oveq1d 7482 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → ((2 · (𝑥 + 1)) − 1) = (((2 · 𝑥) + (2 · 1)) − 1))
4136, 40eqtr4d 2812 . . . . . . . . . . . . . . . 16 (𝑥 ∈ ℤ → ((2 · 𝑥) + 1) = ((2 · (𝑥 + 1)) − 1))
4241negeqd 11606 . . . . . . . . . . . . . . 15 (𝑥 ∈ ℤ → -((2 · 𝑥) + 1) = -((2 · (𝑥 + 1)) − 1))
438zcnd 12860 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ ℤ → (𝑥 + 1) ∈ ℂ)
44 mulneg2 11808 . . . . . . . . . . . . . . . . . 18 ((2 ∈ ℂ ∧ (𝑥 + 1) ∈ ℂ) → (2 · -(𝑥 + 1)) = -(2 · (𝑥 + 1)))
4513, 43, 44sylancr 599 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → (2 · -(𝑥 + 1)) = -(2 · (𝑥 + 1)))
4645oveq1d 7482 . . . . . . . . . . . . . . . 16 (𝑥 ∈ ℤ → ((2 · -(𝑥 + 1)) + 1) = ( -(2 · (𝑥 + 1)) + 1))
47 mulcl 11339 . . . . . . . . . . . . . . . . . 18 ((2 ∈ ℂ ∧ (𝑥 + 1) ∈ ℂ) → (2 · (𝑥 + 1)) ∈ ℂ)
4813, 43, 47sylancr 599 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℤ → (2 · (𝑥 + 1)) ∈ ℂ)
49 negsubdi 11669 . . . . . . . . . . . . . . . . 17 (((2 · (𝑥 + 1)) ∈ ℂ ∧ 1 ∈ ℂ) → -((2 · (𝑥 + 1)) − 1) = ( -(2 · (𝑥 + 1)) + 1))
5048, 26, 49sylancl 598 . . . . . . . . . . . . . . . 16 (𝑥 ∈ ℤ → -((2 · (𝑥 + 1)) − 1) = ( -(2 · (𝑥 + 1)) + 1))
5146, 50eqtr4d 2812 . . . . . . . . . . . . . . 15 (𝑥 ∈ ℤ → ((2 · -(𝑥 + 1)) + 1) = -((2 · (𝑥 + 1)) − 1))
5242, 51eqtr4d 2812 . . . . . . . . . . . . . 14 (𝑥 ∈ ℤ → -((2 · 𝑥) + 1) = ((2 · -(𝑥 + 1)) + 1))
5352adantl 487 . . . . . . . . . . . . 13 ((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) → -((2 · 𝑥) + 1) = ((2 · -(𝑥 + 1)) + 1))
5453eqeq1d 2776 . . . . . . . . . . . 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 7475 . . . . . . . . . . . 12 (𝑛 = -(𝑥 + 1) → (2 · 𝑛) = (2 · -(𝑥 + 1)))
5958oveq1d 7482 . . . . . . . . . . 11 (𝑛 = -(𝑥 + 1) → ((2 · 𝑛) + 1) = ((2 · -(𝑥 + 1)) + 1))
6059eqeq1d 2776 . . . . . . . . . 10 (𝑛 = -(𝑥 + 1) → (((2 · 𝑛) + 1) = 𝑁 ↔ ((2 · -(𝑥 + 1)) + 1) = 𝑁))
6160rspcev 3587 . . . . . . . . 9 (( -(𝑥 + 1) ∈ ℤ ∧ ((2 · -(𝑥 + 1)) + 1) = 𝑁) → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁)
6211, 57, 61syl2anc 596 . . . . . . . 8 (((𝑁 ∈ ℝ ∧ 𝑥 ∈ ℤ) ∧ ((2 · 𝑥) + 1) = -𝑁) → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁)
6362rexlimdva2 3180 . . . . . . 7 (𝑁 ∈ ℝ → (∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = -𝑁 → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
64 znegcl 12787 . . . . . . . . . 10 (𝑦 ∈ ℤ → -𝑦 ∈ ℤ)
6564ad2antlr 740 . . . . . . . . 9 (((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) ∧ (𝑦 · 2) = -𝑁) → -𝑦 ∈ ℤ)
66 zcn 12754 . . . . . . . . . . . . 13 (𝑦 ∈ ℤ → 𝑦 ∈ ℂ)
67 mulcl 11339 . . . . . . . . . . . . 13 ((𝑦 ∈ ℂ ∧ 2 ∈ ℂ) → (𝑦 · 2) ∈ ℂ)
6866, 13, 67sylancl 598 . . . . . . . . . . . 12 (𝑦 ∈ ℤ → (𝑦 · 2) ∈ ℂ)
69 recn 11345 . . . . . . . . . . . 12 (𝑁 ∈ ℝ → 𝑁 ∈ ℂ)
70 negcon2 11666 . . . . . . . . . . . 12 (((𝑦 · 2) ∈ ℂ ∧ 𝑁 ∈ ℂ) → ((𝑦 · 2) = -𝑁 ↔ 𝑁 = -(𝑦 · 2)))
7168, 69, 70syl2anr 609 . . . . . . . . . . 11 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → ((𝑦 · 2) = -𝑁 ↔ 𝑁 = -(𝑦 · 2)))
72 eqcom 2781 . . . . . . . . . . . 12 (𝑁 = -(𝑦 · 2) ↔ -(𝑦 · 2) = 𝑁)
73 mulneg1 11807 . . . . . . . . . . . . . . 15 ((𝑦 ∈ ℂ ∧ 2 ∈ ℂ) → ( -𝑦 · 2) = -(𝑦 · 2))
7466, 13, 73sylancl 598 . . . . . . . . . . . . . 14 (𝑦 ∈ ℤ → ( -𝑦 · 2) = -(𝑦 · 2))
7574adantl 487 . . . . . . . . . . . . 13 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → ( -𝑦 · 2) = -(𝑦 · 2))
7675eqeq1d 2776 . . . . . . . . . . . 12 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → (( -𝑦 · 2) = 𝑁 ↔ -(𝑦 · 2) = 𝑁))
7772, 76bitr4id 293 . . . . . . . . . . 11 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → (𝑁 = -(𝑦 · 2) ↔ ( -𝑦 · 2) = 𝑁))
7871, 77bitrd 282 . . . . . . . . . 10 ((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) → ((𝑦 · 2) = -𝑁 ↔ ( -𝑦 · 2) = 𝑁))
7978biimpa 482 . . . . . . . . 9 (((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) ∧ (𝑦 · 2) = -𝑁) → ( -𝑦 · 2) = 𝑁)
80 oveq1 7474 . . . . . . . . . . 11 (𝑘 = -𝑦 → (𝑘 · 2) = ( -𝑦 · 2))
8180eqeq1d 2776 . . . . . . . . . 10 (𝑘 = -𝑦 → ((𝑘 · 2) = 𝑁 ↔ ( -𝑦 · 2) = 𝑁))
8281rspcev 3587 . . . . . . . . 9 (( -𝑦 ∈ ℤ ∧ ( -𝑦 · 2) = 𝑁) → ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)
8365, 79, 82syl2anc 596 . . . . . . . 8 (((𝑁 ∈ ℝ ∧ 𝑦 ∈ ℤ) ∧ (𝑦 · 2) = -𝑁) → ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)
8483rexlimdva2 3180 . . . . . . 7 (𝑁 ∈ ℝ → (∃𝑦 ∈ ℤ (𝑦 · 2) = -𝑁 → ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
8563, 84orim12d 980 . . . . . 6 (𝑁 ∈ ℝ → ((∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = -𝑁 ∨ ∃𝑦 ∈ ℤ (𝑦 · 2) = -𝑁) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)))
86 odd2np1lem 16571 . . . . . 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 12833 . . . 4 ¬ (1 / 2) ∈ ℤ
91 reeanv 3246 . . . . 5 (∃𝑛 ∈ ℤ ∃𝑘 ∈ ℤ (((2 · 𝑛) + 1) = 𝑁 ∧ (𝑘 · 2) = 𝑁) ↔ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∧ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
92 eqtr3 2796 . . . . . . 7 ((((2 · 𝑛) + 1) = 𝑁 ∧ (𝑘 · 2) = 𝑁) → ((2 · 𝑛) + 1) = (𝑘 · 2))
93 zcn 12754 . . . . . . . . . . 11 (𝑘 ∈ ℤ → 𝑘 ∈ ℂ)
94 mulcom 11341 . . . . . . . . . . 11 ((𝑘 ∈ ℂ ∧ 2 ∈ ℂ) → (𝑘 · 2) = (2 · 𝑘))
9593, 13, 94sylancl 598 . . . . . . . . . 10 (𝑘 ∈ ℤ → (𝑘 · 2) = (2 · 𝑘))
9695eqeq2d 2785 . . . . . . . . 9 (𝑘 ∈ ℤ → (((2 · 𝑛) + 1) = (𝑘 · 2) ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
9796adantl 487 . . . . . . . 8 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (((2 · 𝑛) + 1) = (𝑘 · 2) ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
98 mulcl 11339 . . . . . . . . . . 11 ((2 ∈ ℂ ∧ 𝑘 ∈ ℂ) → (2 · 𝑘) ∈ ℂ)
9913, 93, 98sylancr 599 . . . . . . . . . 10 (𝑘 ∈ ℤ → (2 · 𝑘) ∈ ℂ)
100 zcn 12754 . . . . . . . . . . 11 (𝑛 ∈ ℤ → 𝑛 ∈ ℂ)
101 mulcl 11339 . . . . . . . . . . 11 ((2 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (2 · 𝑛) ∈ ℂ)
10213, 100, 101sylancr 599 . . . . . . . . . 10 (𝑛 ∈ ℤ → (2 · 𝑛) ∈ ℂ)
103 subadd 11615 . . . . . . . . . . 11 (((2 · 𝑘) ∈ ℂ ∧ (2 · 𝑛) ∈ ℂ ∧ 1 ∈ ℂ) → (((2 · 𝑘) − (2 · 𝑛)) = 1 ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
10426, 103mp3an3 1482 . . . . . . . . . 10 (((2 · 𝑘) ∈ ℂ ∧ (2 · 𝑛) ∈ ℂ) → (((2 · 𝑘) − (2 · 𝑛)) = 1 ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
10599, 102, 104syl2anr 609 . . . . . . . . 9 ((𝑛 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (((2 · 𝑘) − (2 · 𝑛)) = 1 ↔ ((2 · 𝑛) + 1) = (2 · 𝑘)))
106 subcl 11611 . . . . . . . . . . . . . 14 ((𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (𝑘 − 𝑛) ∈ ℂ)
107 2cnne0 12611 . . . . . . . . . . . . . . 15 (2 ∈ ℂ ∧ 2 ≠ 0)
108 eqcom 2781 . . . . . . . . . . . . . . . 16 ((𝑘 − 𝑛) = (1 / 2) ↔ (1 / 2) = (𝑘 − 𝑛))
109 divmul 12033 . . . . . . . . . . . . . . . 16 ((1 ∈ ℂ ∧ (𝑘 − 𝑛) ∈ ℂ ∧ (2 ∈ ℂ ∧ 2 ≠ 0)) → ((1 / 2) = (𝑘 − 𝑛) ↔ (2 · (𝑘 − 𝑛)) = 1))
110108, 109bitrid 286 . . . . . . . . . . . . . . 15 ((1 ∈ ℂ ∧ (𝑘 − 𝑛) ∈ ℂ ∧ (2 ∈ ℂ ∧ 2 ≠ 0)) → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
11126, 107, 110mp3an13 1484 . . . . . . . . . . . . . 14 ((𝑘 − 𝑛) ∈ ℂ → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
112106, 111syl 18 . . . . . . . . . . . . 13 ((𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
113112ancoms 464 . . . . . . . . . . . 12 ((𝑛 ∈ ℂ ∧ 𝑘 ∈ ℂ) → ((𝑘 − 𝑛) = (1 / 2) ↔ (2 · (𝑘 − 𝑛)) = 1))
114 subdi 11804 . . . . . . . . . . . . . . 15 ((2 ∈ ℂ ∧ 𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (2 · (𝑘 − 𝑛)) = ((2 · 𝑘) − (2 · 𝑛)))
11513, 114mp3an1 1480 . . . . . . . . . . . . . 14 ((𝑘 ∈ ℂ ∧ 𝑛 ∈ ℂ) → (2 · (𝑘 − 𝑛)) = ((2 · 𝑘) − (2 · 𝑛)))
116115ancoms 464 . . . . . . . . . . . . 13 ((𝑛 ∈ ℂ ∧ 𝑘 ∈ ℂ) → (2 · (𝑘 − 𝑛)) = ((2 · 𝑘) − (2 · 𝑛)))
117116eqeq1d 2776 . . . . . . . . . . . 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 12794 . . . . . . . . . . . 12 ((𝑘 ∈ ℤ ∧ 𝑛 ∈ ℤ) → (𝑘 − 𝑛) ∈ ℤ)
121 eleq1 2863 . . . . . . . . . . . 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 3219 . . . . 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 1030 . . . 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 1104   = wceq 1572   ∈ wcel 2156   ≠ wne 2970  ∃wrex 3101   class class class wbr 5116  (class class class)co 7467  ℂcc 11253  ℝcr 11254  0cc0 11255  1c1 11256   + caddc 11258   · cmul 11260   − cmin 11596   -cneg 11597   / cdiv 12029  2c2 12453  ℕ0cn0 12662  ℤcz 12749   ∥ cdvds 16483
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7799  ax-resscn 11312  ax-1cn 11313  ax-icn 11314  ax-addcl 11315  ax-addrcl 11316  ax-mulcl 11317  ax-mulrcl 11318  ax-mulcom 11319  ax-addass 11320  ax-mulass 11321  ax-distr 11322  ax-i2m1 11323  ax-1ne0 11324  ax-1rid 11325  ax-rnegex 11326  ax-rrecex 11327  ax-cnre 11328  ax-pre-lttri 11329  ax-pre-lttrn 11330  ax-pre-ltadd 11331  ax-pre-mulgt0 11332
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-nel 3077  df-ral 3092  df-rex 3102  df-rmo 3376  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-pss 4024  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-tr 5227  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6342  df-ord 6403  df-on 6404  df-lim 6405  df-suc 6406  df-iota 6532  df-fun 6580  df-fn 6581  df-f 6582  df-f1 6583  df-fo 6584  df-f1o 6585  df-fv 6586  df-riota 7423  df-ov 7470  df-oprab 7471  df-mpo 7472  df-om 7928  df-2nd 8052  df-frecs 8353  df-wrecs 8384  df-recs 8433  df-rdg 8472  df-er 8771  df-en 9028  df-dom 9029  df-sdom 9030  df-pnf 11400  df-mnf 11401  df-xr 11402  df-ltxr 11403  df-le 11404  df-sub 11598  df-neg 11599  df-div 12030  df-nn 12392  df-2 12461  df-n0 12663  df-z 12750  df-dvds 16484
This theorem is used by:  oddm1even  16574  oexpneg  16576  mod2eq1n2dvds  16578  oddnn02np1  16579  2tp1odd  16583  sqoddm1div8z  16585  ltoddhalfle  16592  halfleoddlt  16593  opoe  16594  omoe  16595  opeo  16596  omeo  16597  m1expo  16606  m1exp1  16607  flodddiv4  16646  iserodd  17078  lgsquadlem1  27852  knoppndvlem9  37681  coskpi2  47289  cosknegpi  47292  stirlinglem5  47501  fourierswlem  47653  fmtnoodd  49029  dfodd3  49159
  Copyright terms: Public domain W3C validator