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

Theorem odd2np1lem 15683
Description: Lemma for odd2np1 15684. (Contributed by Scott Fenton, 3-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
odd2np1lem (𝑁 ∈ ℕ0 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
Distinct variable groups:   𝑘,𝑁   𝑛,𝑁

Proof of Theorem odd2np1lem
Dummy variables 𝑗 𝑚 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqeq2 2833 . . . 4 (𝑗 = 0 → (((2 · 𝑛) + 1) = 𝑗 ↔ ((2 · 𝑛) + 1) = 0))
21rexbidv 3297 . . 3 (𝑗 = 0 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 0))
3 eqeq2 2833 . . . 4 (𝑗 = 0 → ((𝑘 · 2) = 𝑗 ↔ (𝑘 · 2) = 0))
43rexbidv 3297 . . 3 (𝑗 = 0 → (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 0))
52, 4orbi12d 915 . 2 (𝑗 = 0 → ((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗) ↔ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 0 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 0)))
6 eqeq2 2833 . . . . 5 (𝑗 = 𝑚 → (((2 · 𝑛) + 1) = 𝑗 ↔ ((2 · 𝑛) + 1) = 𝑚))
76rexbidv 3297 . . . 4 (𝑗 = 𝑚 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑚))
8 oveq2 7158 . . . . . . 7 (𝑛 = 𝑥 → (2 · 𝑛) = (2 · 𝑥))
98oveq1d 7165 . . . . . 6 (𝑛 = 𝑥 → ((2 · 𝑛) + 1) = ((2 · 𝑥) + 1))
109eqeq1d 2823 . . . . 5 (𝑛 = 𝑥 → (((2 · 𝑛) + 1) = 𝑚 ↔ ((2 · 𝑥) + 1) = 𝑚))
1110cbvrexvw 3451 . . . 4 (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑚 ↔ ∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚)
127, 11syl6bb 289 . . 3 (𝑗 = 𝑚 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ↔ ∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚))
13 eqeq2 2833 . . . . 5 (𝑗 = 𝑚 → ((𝑘 · 2) = 𝑗 ↔ (𝑘 · 2) = 𝑚))
1413rexbidv 3297 . . . 4 (𝑗 = 𝑚 → (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑚))
15 oveq1 7157 . . . . . 6 (𝑘 = 𝑦 → (𝑘 · 2) = (𝑦 · 2))
1615eqeq1d 2823 . . . . 5 (𝑘 = 𝑦 → ((𝑘 · 2) = 𝑚 ↔ (𝑦 · 2) = 𝑚))
1716cbvrexvw 3451 . . . 4 (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑚 ↔ ∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚)
1814, 17syl6bb 289 . . 3 (𝑗 = 𝑚 → (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗 ↔ ∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚))
1912, 18orbi12d 915 . 2 (𝑗 = 𝑚 → ((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗) ↔ (∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚 ∨ ∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚)))
20 eqeq2 2833 . . . 4 (𝑗 = (𝑚 + 1) → (((2 · 𝑛) + 1) = 𝑗 ↔ ((2 · 𝑛) + 1) = (𝑚 + 1)))
2120rexbidv 3297 . . 3 (𝑗 = (𝑚 + 1) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
22 eqeq2 2833 . . . 4 (𝑗 = (𝑚 + 1) → ((𝑘 · 2) = 𝑗 ↔ (𝑘 · 2) = (𝑚 + 1)))
2322rexbidv 3297 . . 3 (𝑗 = (𝑚 + 1) → (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1)))
2421, 23orbi12d 915 . 2 (𝑗 = (𝑚 + 1) → ((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗) ↔ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1) ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1))))
25 eqeq2 2833 . . . 4 (𝑗 = 𝑁 → (((2 · 𝑛) + 1) = 𝑗 ↔ ((2 · 𝑛) + 1) = 𝑁))
2625rexbidv 3297 . . 3 (𝑗 = 𝑁 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
27 eqeq2 2833 . . . 4 (𝑗 = 𝑁 → ((𝑘 · 2) = 𝑗 ↔ (𝑘 · 2) = 𝑁))
2827rexbidv 3297 . . 3 (𝑗 = 𝑁 → (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
2926, 28orbi12d 915 . 2 (𝑗 = 𝑁 → ((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗) ↔ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)))
30 0z 11986 . . . 4 0 ∈ ℤ
31 2cn 11706 . . . . 5 2 ∈ ℂ
3231mul02i 10823 . . . 4 (0 · 2) = 0
33 oveq1 7157 . . . . . 6 (𝑘 = 0 → (𝑘 · 2) = (0 · 2))
3433eqeq1d 2823 . . . . 5 (𝑘 = 0 → ((𝑘 · 2) = 0 ↔ (0 · 2) = 0))
3534rspcev 3623 . . . 4 ((0 ∈ ℤ ∧ (0 · 2) = 0) → ∃𝑘 ∈ ℤ (𝑘 · 2) = 0)
3630, 32, 35mp2an 690 . . 3 𝑘 ∈ ℤ (𝑘 · 2) = 0
3736olci 862 . 2 (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 0 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 0)
38 orcom 866 . . 3 ((∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚 ∨ ∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚) ↔ (∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚 ∨ ∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚))
39 zcn 11980 . . . . . . . . 9 (𝑦 ∈ ℤ → 𝑦 ∈ ℂ)
40 mulcom 10617 . . . . . . . . 9 ((𝑦 ∈ ℂ ∧ 2 ∈ ℂ) → (𝑦 · 2) = (2 · 𝑦))
4139, 31, 40sylancl 588 . . . . . . . 8 (𝑦 ∈ ℤ → (𝑦 · 2) = (2 · 𝑦))
4241adantl 484 . . . . . . 7 ((𝑚 ∈ ℕ0𝑦 ∈ ℤ) → (𝑦 · 2) = (2 · 𝑦))
4342eqeq1d 2823 . . . . . 6 ((𝑚 ∈ ℕ0𝑦 ∈ ℤ) → ((𝑦 · 2) = 𝑚 ↔ (2 · 𝑦) = 𝑚))
44 eqid 2821 . . . . . . . . 9 ((2 · 𝑦) + 1) = ((2 · 𝑦) + 1)
45 oveq2 7158 . . . . . . . . . . . 12 (𝑛 = 𝑦 → (2 · 𝑛) = (2 · 𝑦))
4645oveq1d 7165 . . . . . . . . . . 11 (𝑛 = 𝑦 → ((2 · 𝑛) + 1) = ((2 · 𝑦) + 1))
4746eqeq1d 2823 . . . . . . . . . 10 (𝑛 = 𝑦 → (((2 · 𝑛) + 1) = ((2 · 𝑦) + 1) ↔ ((2 · 𝑦) + 1) = ((2 · 𝑦) + 1)))
4847rspcev 3623 . . . . . . . . 9 ((𝑦 ∈ ℤ ∧ ((2 · 𝑦) + 1) = ((2 · 𝑦) + 1)) → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = ((2 · 𝑦) + 1))
4944, 48mpan2 689 . . . . . . . 8 (𝑦 ∈ ℤ → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = ((2 · 𝑦) + 1))
50 oveq1 7157 . . . . . . . . . 10 ((2 · 𝑦) = 𝑚 → ((2 · 𝑦) + 1) = (𝑚 + 1))
5150eqeq2d 2832 . . . . . . . . 9 ((2 · 𝑦) = 𝑚 → (((2 · 𝑛) + 1) = ((2 · 𝑦) + 1) ↔ ((2 · 𝑛) + 1) = (𝑚 + 1)))
5251rexbidv 3297 . . . . . . . 8 ((2 · 𝑦) = 𝑚 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = ((2 · 𝑦) + 1) ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
5349, 52syl5ibcom 247 . . . . . . 7 (𝑦 ∈ ℤ → ((2 · 𝑦) = 𝑚 → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
5453adantl 484 . . . . . 6 ((𝑚 ∈ ℕ0𝑦 ∈ ℤ) → ((2 · 𝑦) = 𝑚 → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
5543, 54sylbid 242 . . . . 5 ((𝑚 ∈ ℕ0𝑦 ∈ ℤ) → ((𝑦 · 2) = 𝑚 → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
5655rexlimdva 3284 . . . 4 (𝑚 ∈ ℕ0 → (∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚 → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
57 peano2z 12017 . . . . . . 7 (𝑥 ∈ ℤ → (𝑥 + 1) ∈ ℤ)
58 zcn 11980 . . . . . . . . 9 (𝑥 ∈ ℤ → 𝑥 ∈ ℂ)
59 mulcom 10617 . . . . . . . . . . . . 13 ((𝑥 ∈ ℂ ∧ 2 ∈ ℂ) → (𝑥 · 2) = (2 · 𝑥))
6031, 59mpan2 689 . . . . . . . . . . . 12 (𝑥 ∈ ℂ → (𝑥 · 2) = (2 · 𝑥))
6131mulid2i 10640 . . . . . . . . . . . . 13 (1 · 2) = 2
6261a1i 11 . . . . . . . . . . . 12 (𝑥 ∈ ℂ → (1 · 2) = 2)
6360, 62oveq12d 7168 . . . . . . . . . . 11 (𝑥 ∈ ℂ → ((𝑥 · 2) + (1 · 2)) = ((2 · 𝑥) + 2))
64 df-2 11694 . . . . . . . . . . . 12 2 = (1 + 1)
6564oveq2i 7161 . . . . . . . . . . 11 ((2 · 𝑥) + 2) = ((2 · 𝑥) + (1 + 1))
6663, 65syl6eq 2872 . . . . . . . . . 10 (𝑥 ∈ ℂ → ((𝑥 · 2) + (1 · 2)) = ((2 · 𝑥) + (1 + 1)))
67 ax-1cn 10589 . . . . . . . . . . 11 1 ∈ ℂ
68 adddir 10626 . . . . . . . . . . 11 ((𝑥 ∈ ℂ ∧ 1 ∈ ℂ ∧ 2 ∈ ℂ) → ((𝑥 + 1) · 2) = ((𝑥 · 2) + (1 · 2)))
6967, 31, 68mp3an23 1449 . . . . . . . . . 10 (𝑥 ∈ ℂ → ((𝑥 + 1) · 2) = ((𝑥 · 2) + (1 · 2)))
70 mulcl 10615 . . . . . . . . . . . 12 ((2 ∈ ℂ ∧ 𝑥 ∈ ℂ) → (2 · 𝑥) ∈ ℂ)
7131, 70mpan 688 . . . . . . . . . . 11 (𝑥 ∈ ℂ → (2 · 𝑥) ∈ ℂ)
72 addass 10618 . . . . . . . . . . . 12 (((2 · 𝑥) ∈ ℂ ∧ 1 ∈ ℂ ∧ 1 ∈ ℂ) → (((2 · 𝑥) + 1) + 1) = ((2 · 𝑥) + (1 + 1)))
7367, 67, 72mp3an23 1449 . . . . . . . . . . 11 ((2 · 𝑥) ∈ ℂ → (((2 · 𝑥) + 1) + 1) = ((2 · 𝑥) + (1 + 1)))
7471, 73syl 17 . . . . . . . . . 10 (𝑥 ∈ ℂ → (((2 · 𝑥) + 1) + 1) = ((2 · 𝑥) + (1 + 1)))
7566, 69, 743eqtr4d 2866 . . . . . . . . 9 (𝑥 ∈ ℂ → ((𝑥 + 1) · 2) = (((2 · 𝑥) + 1) + 1))
7658, 75syl 17 . . . . . . . 8 (𝑥 ∈ ℤ → ((𝑥 + 1) · 2) = (((2 · 𝑥) + 1) + 1))
7776adantl 484 . . . . . . 7 ((𝑚 ∈ ℕ0𝑥 ∈ ℤ) → ((𝑥 + 1) · 2) = (((2 · 𝑥) + 1) + 1))
78 oveq1 7157 . . . . . . . . 9 (𝑘 = (𝑥 + 1) → (𝑘 · 2) = ((𝑥 + 1) · 2))
7978eqeq1d 2823 . . . . . . . 8 (𝑘 = (𝑥 + 1) → ((𝑘 · 2) = (((2 · 𝑥) + 1) + 1) ↔ ((𝑥 + 1) · 2) = (((2 · 𝑥) + 1) + 1)))
8079rspcev 3623 . . . . . . 7 (((𝑥 + 1) ∈ ℤ ∧ ((𝑥 + 1) · 2) = (((2 · 𝑥) + 1) + 1)) → ∃𝑘 ∈ ℤ (𝑘 · 2) = (((2 · 𝑥) + 1) + 1))
8157, 77, 80syl2an2 684 . . . . . 6 ((𝑚 ∈ ℕ0𝑥 ∈ ℤ) → ∃𝑘 ∈ ℤ (𝑘 · 2) = (((2 · 𝑥) + 1) + 1))
82 oveq1 7157 . . . . . . . 8 (((2 · 𝑥) + 1) = 𝑚 → (((2 · 𝑥) + 1) + 1) = (𝑚 + 1))
8382eqeq2d 2832 . . . . . . 7 (((2 · 𝑥) + 1) = 𝑚 → ((𝑘 · 2) = (((2 · 𝑥) + 1) + 1) ↔ (𝑘 · 2) = (𝑚 + 1)))
8483rexbidv 3297 . . . . . 6 (((2 · 𝑥) + 1) = 𝑚 → (∃𝑘 ∈ ℤ (𝑘 · 2) = (((2 · 𝑥) + 1) + 1) ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1)))
8581, 84syl5ibcom 247 . . . . 5 ((𝑚 ∈ ℕ0𝑥 ∈ ℤ) → (((2 · 𝑥) + 1) = 𝑚 → ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1)))
8685rexlimdva 3284 . . . 4 (𝑚 ∈ ℕ0 → (∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚 → ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1)))
8756, 86orim12d 961 . . 3 (𝑚 ∈ ℕ0 → ((∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚 ∨ ∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1) ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1))))
8838, 87syl5bi 244 . 2 (𝑚 ∈ ℕ0 → ((∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚 ∨ ∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1) ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1))))
895, 19, 24, 29, 37, 88nn0ind 12071 1 (𝑁 ∈ ℕ0 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  wo 843   = wceq 1533  wcel 2110  wrex 3139  (class class class)co 7150  cc 10529  0cc0 10531  1c1 10532   + caddc 10534   · cmul 10536  2c2 11686  0cn0 11891  cz 11975
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2156  ax-12 2172  ax-ext 2793  ax-sep 5196  ax-nul 5203  ax-pow 5259  ax-pr 5322  ax-un 7455  ax-resscn 10588  ax-1cn 10589  ax-icn 10590  ax-addcl 10591  ax-addrcl 10592  ax-mulcl 10593  ax-mulrcl 10594  ax-mulcom 10595  ax-addass 10596  ax-mulass 10597  ax-distr 10598  ax-i2m1 10599  ax-1ne0 10600  ax-1rid 10601  ax-rnegex 10602  ax-rrecex 10603  ax-cnre 10604  ax-pre-lttri 10605  ax-pre-lttrn 10606  ax-pre-ltadd 10607  ax-pre-mulgt0 10608
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rab 3147  df-v 3497  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-pss 3954  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4562  df-pr 4564  df-tp 4566  df-op 4568  df-uni 4833  df-iun 4914  df-br 5060  df-opab 5122  df-mpt 5140  df-tr 5166  df-id 5455  df-eprel 5460  df-po 5469  df-so 5470  df-fr 5509  df-we 5511  df-xp 5556  df-rel 5557  df-cnv 5558  df-co 5559  df-dm 5560  df-rn 5561  df-res 5562  df-ima 5563  df-pred 6143  df-ord 6189  df-on 6190  df-lim 6191  df-suc 6192  df-iota 6309  df-fun 6352  df-fn 6353  df-f 6354  df-f1 6355  df-fo 6356  df-f1o 6357  df-fv 6358  df-riota 7108  df-ov 7153  df-oprab 7154  df-mpo 7155  df-om 7575  df-wrecs 7941  df-recs 8002  df-rdg 8040  df-er 8283  df-en 8504  df-dom 8505  df-sdom 8506  df-pnf 10671  df-mnf 10672  df-xr 10673  df-ltxr 10674  df-le 10675  df-sub 10866  df-neg 10867  df-nn 11633  df-2 11694  df-n0 11892  df-z 11976
This theorem is referenced by:  odd2np1  15684
  Copyright terms: Public domain W3C validator