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

Theorem odd2np1lem 15681
Description: Lemma for odd2np1 15682. (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 2810 . . . 4 (𝑗 = 0 → (((2 · 𝑛) + 1) = 𝑗 ↔ ((2 · 𝑛) + 1) = 0))
21rexbidv 3256 . . 3 (𝑗 = 0 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 0))
3 eqeq2 2810 . . . 4 (𝑗 = 0 → ((𝑘 · 2) = 𝑗 ↔ (𝑘 · 2) = 0))
43rexbidv 3256 . . 3 (𝑗 = 0 → (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 0))
52, 4orbi12d 916 . 2 (𝑗 = 0 → ((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗) ↔ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 0 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 0)))
6 eqeq2 2810 . . . . 5 (𝑗 = 𝑚 → (((2 · 𝑛) + 1) = 𝑗 ↔ ((2 · 𝑛) + 1) = 𝑚))
76rexbidv 3256 . . . 4 (𝑗 = 𝑚 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑚))
8 oveq2 7143 . . . . . . 7 (𝑛 = 𝑥 → (2 · 𝑛) = (2 · 𝑥))
98oveq1d 7150 . . . . . 6 (𝑛 = 𝑥 → ((2 · 𝑛) + 1) = ((2 · 𝑥) + 1))
109eqeq1d 2800 . . . . 5 (𝑛 = 𝑥 → (((2 · 𝑛) + 1) = 𝑚 ↔ ((2 · 𝑥) + 1) = 𝑚))
1110cbvrexvw 3397 . . . 4 (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑚 ↔ ∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚)
127, 11syl6bb 290 . . 3 (𝑗 = 𝑚 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ↔ ∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚))
13 eqeq2 2810 . . . . 5 (𝑗 = 𝑚 → ((𝑘 · 2) = 𝑗 ↔ (𝑘 · 2) = 𝑚))
1413rexbidv 3256 . . . 4 (𝑗 = 𝑚 → (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑚))
15 oveq1 7142 . . . . . 6 (𝑘 = 𝑦 → (𝑘 · 2) = (𝑦 · 2))
1615eqeq1d 2800 . . . . 5 (𝑘 = 𝑦 → ((𝑘 · 2) = 𝑚 ↔ (𝑦 · 2) = 𝑚))
1716cbvrexvw 3397 . . . 4 (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑚 ↔ ∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚)
1814, 17syl6bb 290 . . 3 (𝑗 = 𝑚 → (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗 ↔ ∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚))
1912, 18orbi12d 916 . 2 (𝑗 = 𝑚 → ((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗) ↔ (∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚 ∨ ∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚)))
20 eqeq2 2810 . . . 4 (𝑗 = (𝑚 + 1) → (((2 · 𝑛) + 1) = 𝑗 ↔ ((2 · 𝑛) + 1) = (𝑚 + 1)))
2120rexbidv 3256 . . 3 (𝑗 = (𝑚 + 1) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
22 eqeq2 2810 . . . 4 (𝑗 = (𝑚 + 1) → ((𝑘 · 2) = 𝑗 ↔ (𝑘 · 2) = (𝑚 + 1)))
2322rexbidv 3256 . . 3 (𝑗 = (𝑚 + 1) → (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1)))
2421, 23orbi12d 916 . 2 (𝑗 = (𝑚 + 1) → ((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗) ↔ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1) ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1))))
25 eqeq2 2810 . . . 4 (𝑗 = 𝑁 → (((2 · 𝑛) + 1) = 𝑗 ↔ ((2 · 𝑛) + 1) = 𝑁))
2625rexbidv 3256 . . 3 (𝑗 = 𝑁 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁))
27 eqeq2 2810 . . . 4 (𝑗 = 𝑁 → ((𝑘 · 2) = 𝑗 ↔ (𝑘 · 2) = 𝑁))
2827rexbidv 3256 . . 3 (𝑗 = 𝑁 → (∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗 ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
2926, 28orbi12d 916 . 2 (𝑗 = 𝑁 → ((∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑗 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑗) ↔ (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁)))
30 0z 11980 . . . 4 0 ∈ ℤ
31 2cn 11700 . . . . 5 2 ∈ ℂ
3231mul02i 10818 . . . 4 (0 · 2) = 0
33 oveq1 7142 . . . . . 6 (𝑘 = 0 → (𝑘 · 2) = (0 · 2))
3433eqeq1d 2800 . . . . 5 (𝑘 = 0 → ((𝑘 · 2) = 0 ↔ (0 · 2) = 0))
3534rspcev 3571 . . . 4 ((0 ∈ ℤ ∧ (0 · 2) = 0) → ∃𝑘 ∈ ℤ (𝑘 · 2) = 0)
3630, 32, 35mp2an 691 . . 3 𝑘 ∈ ℤ (𝑘 · 2) = 0
3736olci 863 . 2 (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 0 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 0)
38 orcom 867 . . 3 ((∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚 ∨ ∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚) ↔ (∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚 ∨ ∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚))
39 zcn 11974 . . . . . . . . 9 (𝑦 ∈ ℤ → 𝑦 ∈ ℂ)
40 mulcom 10612 . . . . . . . . 9 ((𝑦 ∈ ℂ ∧ 2 ∈ ℂ) → (𝑦 · 2) = (2 · 𝑦))
4139, 31, 40sylancl 589 . . . . . . . 8 (𝑦 ∈ ℤ → (𝑦 · 2) = (2 · 𝑦))
4241adantl 485 . . . . . . 7 ((𝑚 ∈ ℕ0𝑦 ∈ ℤ) → (𝑦 · 2) = (2 · 𝑦))
4342eqeq1d 2800 . . . . . 6 ((𝑚 ∈ ℕ0𝑦 ∈ ℤ) → ((𝑦 · 2) = 𝑚 ↔ (2 · 𝑦) = 𝑚))
44 eqid 2798 . . . . . . . . 9 ((2 · 𝑦) + 1) = ((2 · 𝑦) + 1)
45 oveq2 7143 . . . . . . . . . . . 12 (𝑛 = 𝑦 → (2 · 𝑛) = (2 · 𝑦))
4645oveq1d 7150 . . . . . . . . . . 11 (𝑛 = 𝑦 → ((2 · 𝑛) + 1) = ((2 · 𝑦) + 1))
4746eqeq1d 2800 . . . . . . . . . 10 (𝑛 = 𝑦 → (((2 · 𝑛) + 1) = ((2 · 𝑦) + 1) ↔ ((2 · 𝑦) + 1) = ((2 · 𝑦) + 1)))
4847rspcev 3571 . . . . . . . . 9 ((𝑦 ∈ ℤ ∧ ((2 · 𝑦) + 1) = ((2 · 𝑦) + 1)) → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = ((2 · 𝑦) + 1))
4944, 48mpan2 690 . . . . . . . 8 (𝑦 ∈ ℤ → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = ((2 · 𝑦) + 1))
50 oveq1 7142 . . . . . . . . . 10 ((2 · 𝑦) = 𝑚 → ((2 · 𝑦) + 1) = (𝑚 + 1))
5150eqeq2d 2809 . . . . . . . . 9 ((2 · 𝑦) = 𝑚 → (((2 · 𝑛) + 1) = ((2 · 𝑦) + 1) ↔ ((2 · 𝑛) + 1) = (𝑚 + 1)))
5251rexbidv 3256 . . . . . . . 8 ((2 · 𝑦) = 𝑚 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = ((2 · 𝑦) + 1) ↔ ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
5349, 52syl5ibcom 248 . . . . . . 7 (𝑦 ∈ ℤ → ((2 · 𝑦) = 𝑚 → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
5453adantl 485 . . . . . 6 ((𝑚 ∈ ℕ0𝑦 ∈ ℤ) → ((2 · 𝑦) = 𝑚 → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
5543, 54sylbid 243 . . . . 5 ((𝑚 ∈ ℕ0𝑦 ∈ ℤ) → ((𝑦 · 2) = 𝑚 → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
5655rexlimdva 3243 . . . 4 (𝑚 ∈ ℕ0 → (∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚 → ∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1)))
57 peano2z 12011 . . . . . . 7 (𝑥 ∈ ℤ → (𝑥 + 1) ∈ ℤ)
58 zcn 11974 . . . . . . . . 9 (𝑥 ∈ ℤ → 𝑥 ∈ ℂ)
59 mulcom 10612 . . . . . . . . . . . . 13 ((𝑥 ∈ ℂ ∧ 2 ∈ ℂ) → (𝑥 · 2) = (2 · 𝑥))
6031, 59mpan2 690 . . . . . . . . . . . 12 (𝑥 ∈ ℂ → (𝑥 · 2) = (2 · 𝑥))
6131mulid2i 10635 . . . . . . . . . . . . 13 (1 · 2) = 2
6261a1i 11 . . . . . . . . . . . 12 (𝑥 ∈ ℂ → (1 · 2) = 2)
6360, 62oveq12d 7153 . . . . . . . . . . 11 (𝑥 ∈ ℂ → ((𝑥 · 2) + (1 · 2)) = ((2 · 𝑥) + 2))
64 df-2 11688 . . . . . . . . . . . 12 2 = (1 + 1)
6564oveq2i 7146 . . . . . . . . . . 11 ((2 · 𝑥) + 2) = ((2 · 𝑥) + (1 + 1))
6663, 65eqtrdi 2849 . . . . . . . . . 10 (𝑥 ∈ ℂ → ((𝑥 · 2) + (1 · 2)) = ((2 · 𝑥) + (1 + 1)))
67 ax-1cn 10584 . . . . . . . . . . 11 1 ∈ ℂ
68 adddir 10621 . . . . . . . . . . 11 ((𝑥 ∈ ℂ ∧ 1 ∈ ℂ ∧ 2 ∈ ℂ) → ((𝑥 + 1) · 2) = ((𝑥 · 2) + (1 · 2)))
6967, 31, 68mp3an23 1450 . . . . . . . . . 10 (𝑥 ∈ ℂ → ((𝑥 + 1) · 2) = ((𝑥 · 2) + (1 · 2)))
70 mulcl 10610 . . . . . . . . . . . 12 ((2 ∈ ℂ ∧ 𝑥 ∈ ℂ) → (2 · 𝑥) ∈ ℂ)
7131, 70mpan 689 . . . . . . . . . . 11 (𝑥 ∈ ℂ → (2 · 𝑥) ∈ ℂ)
72 addass 10613 . . . . . . . . . . . 12 (((2 · 𝑥) ∈ ℂ ∧ 1 ∈ ℂ ∧ 1 ∈ ℂ) → (((2 · 𝑥) + 1) + 1) = ((2 · 𝑥) + (1 + 1)))
7367, 67, 72mp3an23 1450 . . . . . . . . . . 11 ((2 · 𝑥) ∈ ℂ → (((2 · 𝑥) + 1) + 1) = ((2 · 𝑥) + (1 + 1)))
7471, 73syl 17 . . . . . . . . . 10 (𝑥 ∈ ℂ → (((2 · 𝑥) + 1) + 1) = ((2 · 𝑥) + (1 + 1)))
7566, 69, 743eqtr4d 2843 . . . . . . . . 9 (𝑥 ∈ ℂ → ((𝑥 + 1) · 2) = (((2 · 𝑥) + 1) + 1))
7658, 75syl 17 . . . . . . . 8 (𝑥 ∈ ℤ → ((𝑥 + 1) · 2) = (((2 · 𝑥) + 1) + 1))
7776adantl 485 . . . . . . 7 ((𝑚 ∈ ℕ0𝑥 ∈ ℤ) → ((𝑥 + 1) · 2) = (((2 · 𝑥) + 1) + 1))
78 oveq1 7142 . . . . . . . . 9 (𝑘 = (𝑥 + 1) → (𝑘 · 2) = ((𝑥 + 1) · 2))
7978eqeq1d 2800 . . . . . . . 8 (𝑘 = (𝑥 + 1) → ((𝑘 · 2) = (((2 · 𝑥) + 1) + 1) ↔ ((𝑥 + 1) · 2) = (((2 · 𝑥) + 1) + 1)))
8079rspcev 3571 . . . . . . 7 (((𝑥 + 1) ∈ ℤ ∧ ((𝑥 + 1) · 2) = (((2 · 𝑥) + 1) + 1)) → ∃𝑘 ∈ ℤ (𝑘 · 2) = (((2 · 𝑥) + 1) + 1))
8157, 77, 80syl2an2 685 . . . . . 6 ((𝑚 ∈ ℕ0𝑥 ∈ ℤ) → ∃𝑘 ∈ ℤ (𝑘 · 2) = (((2 · 𝑥) + 1) + 1))
82 oveq1 7142 . . . . . . . 8 (((2 · 𝑥) + 1) = 𝑚 → (((2 · 𝑥) + 1) + 1) = (𝑚 + 1))
8382eqeq2d 2809 . . . . . . 7 (((2 · 𝑥) + 1) = 𝑚 → ((𝑘 · 2) = (((2 · 𝑥) + 1) + 1) ↔ (𝑘 · 2) = (𝑚 + 1)))
8483rexbidv 3256 . . . . . 6 (((2 · 𝑥) + 1) = 𝑚 → (∃𝑘 ∈ ℤ (𝑘 · 2) = (((2 · 𝑥) + 1) + 1) ↔ ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1)))
8581, 84syl5ibcom 248 . . . . 5 ((𝑚 ∈ ℕ0𝑥 ∈ ℤ) → (((2 · 𝑥) + 1) = 𝑚 → ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1)))
8685rexlimdva 3243 . . . 4 (𝑚 ∈ ℕ0 → (∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚 → ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1)))
8756, 86orim12d 962 . . 3 (𝑚 ∈ ℕ0 → ((∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚 ∨ ∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1) ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1))))
8838, 87syl5bi 245 . 2 (𝑚 ∈ ℕ0 → ((∃𝑥 ∈ ℤ ((2 · 𝑥) + 1) = 𝑚 ∨ ∃𝑦 ∈ ℤ (𝑦 · 2) = 𝑚) → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = (𝑚 + 1) ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = (𝑚 + 1))))
895, 19, 24, 29, 37, 88nn0ind 12065 1 (𝑁 ∈ ℕ0 → (∃𝑛 ∈ ℤ ((2 · 𝑛) + 1) = 𝑁 ∨ ∃𝑘 ∈ ℤ (𝑘 · 2) = 𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  wo 844   = wceq 1538  wcel 2111  wrex 3107  (class class class)co 7135  cc 10524  0cc0 10526  1c1 10527   + caddc 10529   · cmul 10531  2c2 11680  0cn0 11885  cz 11969
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-er 8272  df-en 8493  df-dom 8494  df-sdom 8495  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-nn 11626  df-2 11688  df-n0 11886  df-z 11970
This theorem is referenced by:  odd2np1  15682
  Copyright terms: Public domain W3C validator