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

Theorem nneob 7901
Description: A natural number is even iff its successor is odd. (Contributed by NM, 26-Jan-2006.) (Revised by Mario Carneiro, 15-Nov-2014.)
Assertion
Ref Expression
nneob (𝐴 ∈ ω → (∃𝑥 ∈ ω 𝐴 = (2𝑜 ·𝑜 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc 𝐴 = (2𝑜 ·𝑜 𝑥)))
Distinct variable group:   𝑥,𝐴

Proof of Theorem nneob
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 6821 . . . . 5 (𝑥 = 𝑦 → (2𝑜 ·𝑜 𝑥) = (2𝑜 ·𝑜 𝑦))
21eqeq2d 2770 . . . 4 (𝑥 = 𝑦 → (𝐴 = (2𝑜 ·𝑜 𝑥) ↔ 𝐴 = (2𝑜 ·𝑜 𝑦)))
32cbvrexv 3311 . . 3 (∃𝑥 ∈ ω 𝐴 = (2𝑜 ·𝑜 𝑥) ↔ ∃𝑦 ∈ ω 𝐴 = (2𝑜 ·𝑜 𝑦))
4 nnneo 7900 . . . . . . 7 ((𝑦 ∈ ω ∧ 𝑥 ∈ ω ∧ 𝐴 = (2𝑜 ·𝑜 𝑦)) → ¬ suc 𝐴 = (2𝑜 ·𝑜 𝑥))
543com23 1121 . . . . . 6 ((𝑦 ∈ ω ∧ 𝐴 = (2𝑜 ·𝑜 𝑦) ∧ 𝑥 ∈ ω) → ¬ suc 𝐴 = (2𝑜 ·𝑜 𝑥))
653expa 1112 . . . . 5 (((𝑦 ∈ ω ∧ 𝐴 = (2𝑜 ·𝑜 𝑦)) ∧ 𝑥 ∈ ω) → ¬ suc 𝐴 = (2𝑜 ·𝑜 𝑥))
76nrexdv 3139 . . . 4 ((𝑦 ∈ ω ∧ 𝐴 = (2𝑜 ·𝑜 𝑦)) → ¬ ∃𝑥 ∈ ω suc 𝐴 = (2𝑜 ·𝑜 𝑥))
87rexlimiva 3166 . . 3 (∃𝑦 ∈ ω 𝐴 = (2𝑜 ·𝑜 𝑦) → ¬ ∃𝑥 ∈ ω suc 𝐴 = (2𝑜 ·𝑜 𝑥))
93, 8sylbi 207 . 2 (∃𝑥 ∈ ω 𝐴 = (2𝑜 ·𝑜 𝑥) → ¬ ∃𝑥 ∈ ω suc 𝐴 = (2𝑜 ·𝑜 𝑥))
10 suceq 5951 . . . . . . 7 (𝑦 = ∅ → suc 𝑦 = suc ∅)
1110eqeq1d 2762 . . . . . 6 (𝑦 = ∅ → (suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ suc ∅ = (2𝑜 ·𝑜 𝑥)))
1211rexbidv 3190 . . . . 5 (𝑦 = ∅ → (∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ∃𝑥 ∈ ω suc ∅ = (2𝑜 ·𝑜 𝑥)))
1312notbid 307 . . . 4 (𝑦 = ∅ → (¬ ∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc ∅ = (2𝑜 ·𝑜 𝑥)))
14 eqeq1 2764 . . . . 5 (𝑦 = ∅ → (𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ∅ = (2𝑜 ·𝑜 𝑥)))
1514rexbidv 3190 . . . 4 (𝑦 = ∅ → (∃𝑥 ∈ ω 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ∃𝑥 ∈ ω ∅ = (2𝑜 ·𝑜 𝑥)))
1613, 15imbi12d 333 . . 3 (𝑦 = ∅ → ((¬ ∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω 𝑦 = (2𝑜 ·𝑜 𝑥)) ↔ (¬ ∃𝑥 ∈ ω suc ∅ = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω ∅ = (2𝑜 ·𝑜 𝑥))))
17 suceq 5951 . . . . . . 7 (𝑦 = 𝑧 → suc 𝑦 = suc 𝑧)
1817eqeq1d 2762 . . . . . 6 (𝑦 = 𝑧 → (suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
1918rexbidv 3190 . . . . 5 (𝑦 = 𝑧 → (∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ∃𝑥 ∈ ω suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
2019notbid 307 . . . 4 (𝑦 = 𝑧 → (¬ ∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
21 eqeq1 2764 . . . . 5 (𝑦 = 𝑧 → (𝑦 = (2𝑜 ·𝑜 𝑥) ↔ 𝑧 = (2𝑜 ·𝑜 𝑥)))
2221rexbidv 3190 . . . 4 (𝑦 = 𝑧 → (∃𝑥 ∈ ω 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ∃𝑥 ∈ ω 𝑧 = (2𝑜 ·𝑜 𝑥)))
2320, 22imbi12d 333 . . 3 (𝑦 = 𝑧 → ((¬ ∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω 𝑦 = (2𝑜 ·𝑜 𝑥)) ↔ (¬ ∃𝑥 ∈ ω suc 𝑧 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω 𝑧 = (2𝑜 ·𝑜 𝑥))))
24 suceq 5951 . . . . . . 7 (𝑦 = suc 𝑧 → suc 𝑦 = suc suc 𝑧)
2524eqeq1d 2762 . . . . . 6 (𝑦 = suc 𝑧 → (suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ suc suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
2625rexbidv 3190 . . . . 5 (𝑦 = suc 𝑧 → (∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ∃𝑥 ∈ ω suc suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
2726notbid 307 . . . 4 (𝑦 = suc 𝑧 → (¬ ∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
28 eqeq1 2764 . . . . 5 (𝑦 = suc 𝑧 → (𝑦 = (2𝑜 ·𝑜 𝑥) ↔ suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
2928rexbidv 3190 . . . 4 (𝑦 = suc 𝑧 → (∃𝑥 ∈ ω 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ∃𝑥 ∈ ω suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
3027, 29imbi12d 333 . . 3 (𝑦 = suc 𝑧 → ((¬ ∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω 𝑦 = (2𝑜 ·𝑜 𝑥)) ↔ (¬ ∃𝑥 ∈ ω suc suc 𝑧 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω suc 𝑧 = (2𝑜 ·𝑜 𝑥))))
31 suceq 5951 . . . . . . 7 (𝑦 = 𝐴 → suc 𝑦 = suc 𝐴)
3231eqeq1d 2762 . . . . . 6 (𝑦 = 𝐴 → (suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ suc 𝐴 = (2𝑜 ·𝑜 𝑥)))
3332rexbidv 3190 . . . . 5 (𝑦 = 𝐴 → (∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ∃𝑥 ∈ ω suc 𝐴 = (2𝑜 ·𝑜 𝑥)))
3433notbid 307 . . . 4 (𝑦 = 𝐴 → (¬ ∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc 𝐴 = (2𝑜 ·𝑜 𝑥)))
35 eqeq1 2764 . . . . 5 (𝑦 = 𝐴 → (𝑦 = (2𝑜 ·𝑜 𝑥) ↔ 𝐴 = (2𝑜 ·𝑜 𝑥)))
3635rexbidv 3190 . . . 4 (𝑦 = 𝐴 → (∃𝑥 ∈ ω 𝑦 = (2𝑜 ·𝑜 𝑥) ↔ ∃𝑥 ∈ ω 𝐴 = (2𝑜 ·𝑜 𝑥)))
3734, 36imbi12d 333 . . 3 (𝑦 = 𝐴 → ((¬ ∃𝑥 ∈ ω suc 𝑦 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω 𝑦 = (2𝑜 ·𝑜 𝑥)) ↔ (¬ ∃𝑥 ∈ ω suc 𝐴 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω 𝐴 = (2𝑜 ·𝑜 𝑥))))
38 peano1 7250 . . . . 5 ∅ ∈ ω
39 eqid 2760 . . . . 5 ∅ = ∅
40 oveq2 6821 . . . . . . . 8 (𝑥 = ∅ → (2𝑜 ·𝑜 𝑥) = (2𝑜 ·𝑜 ∅))
41 om0x 7768 . . . . . . . 8 (2𝑜 ·𝑜 ∅) = ∅
4240, 41syl6eq 2810 . . . . . . 7 (𝑥 = ∅ → (2𝑜 ·𝑜 𝑥) = ∅)
4342eqeq2d 2770 . . . . . 6 (𝑥 = ∅ → (∅ = (2𝑜 ·𝑜 𝑥) ↔ ∅ = ∅))
4443rspcev 3449 . . . . 5 ((∅ ∈ ω ∧ ∅ = ∅) → ∃𝑥 ∈ ω ∅ = (2𝑜 ·𝑜 𝑥))
4538, 39, 44mp2an 710 . . . 4 𝑥 ∈ ω ∅ = (2𝑜 ·𝑜 𝑥)
4645a1i 11 . . 3 (¬ ∃𝑥 ∈ ω suc ∅ = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω ∅ = (2𝑜 ·𝑜 𝑥))
471eqeq2d 2770 . . . . . . 7 (𝑥 = 𝑦 → (𝑧 = (2𝑜 ·𝑜 𝑥) ↔ 𝑧 = (2𝑜 ·𝑜 𝑦)))
4847cbvrexv 3311 . . . . . 6 (∃𝑥 ∈ ω 𝑧 = (2𝑜 ·𝑜 𝑥) ↔ ∃𝑦 ∈ ω 𝑧 = (2𝑜 ·𝑜 𝑦))
49 peano2 7251 . . . . . . . . . 10 (𝑦 ∈ ω → suc 𝑦 ∈ ω)
50 2onn 7889 . . . . . . . . . . . 12 2𝑜 ∈ ω
51 nnmsuc 7856 . . . . . . . . . . . 12 ((2𝑜 ∈ ω ∧ 𝑦 ∈ ω) → (2𝑜 ·𝑜 suc 𝑦) = ((2𝑜 ·𝑜 𝑦) +𝑜 2𝑜))
5250, 51mpan 708 . . . . . . . . . . 11 (𝑦 ∈ ω → (2𝑜 ·𝑜 suc 𝑦) = ((2𝑜 ·𝑜 𝑦) +𝑜 2𝑜))
53 df-2o 7730 . . . . . . . . . . . . 13 2𝑜 = suc 1𝑜
5453oveq2i 6824 . . . . . . . . . . . 12 ((2𝑜 ·𝑜 𝑦) +𝑜 2𝑜) = ((2𝑜 ·𝑜 𝑦) +𝑜 suc 1𝑜)
55 nnmcl 7861 . . . . . . . . . . . . . 14 ((2𝑜 ∈ ω ∧ 𝑦 ∈ ω) → (2𝑜 ·𝑜 𝑦) ∈ ω)
5650, 55mpan 708 . . . . . . . . . . . . 13 (𝑦 ∈ ω → (2𝑜 ·𝑜 𝑦) ∈ ω)
57 1onn 7888 . . . . . . . . . . . . 13 1𝑜 ∈ ω
58 nnasuc 7855 . . . . . . . . . . . . 13 (((2𝑜 ·𝑜 𝑦) ∈ ω ∧ 1𝑜 ∈ ω) → ((2𝑜 ·𝑜 𝑦) +𝑜 suc 1𝑜) = suc ((2𝑜 ·𝑜 𝑦) +𝑜 1𝑜))
5956, 57, 58sylancl 697 . . . . . . . . . . . 12 (𝑦 ∈ ω → ((2𝑜 ·𝑜 𝑦) +𝑜 suc 1𝑜) = suc ((2𝑜 ·𝑜 𝑦) +𝑜 1𝑜))
6054, 59syl5req 2807 . . . . . . . . . . 11 (𝑦 ∈ ω → suc ((2𝑜 ·𝑜 𝑦) +𝑜 1𝑜) = ((2𝑜 ·𝑜 𝑦) +𝑜 2𝑜))
61 nnon 7236 . . . . . . . . . . . 12 ((2𝑜 ·𝑜 𝑦) ∈ ω → (2𝑜 ·𝑜 𝑦) ∈ On)
62 oa1suc 7780 . . . . . . . . . . . 12 ((2𝑜 ·𝑜 𝑦) ∈ On → ((2𝑜 ·𝑜 𝑦) +𝑜 1𝑜) = suc (2𝑜 ·𝑜 𝑦))
63 suceq 5951 . . . . . . . . . . . 12 (((2𝑜 ·𝑜 𝑦) +𝑜 1𝑜) = suc (2𝑜 ·𝑜 𝑦) → suc ((2𝑜 ·𝑜 𝑦) +𝑜 1𝑜) = suc suc (2𝑜 ·𝑜 𝑦))
6456, 61, 62, 634syl 19 . . . . . . . . . . 11 (𝑦 ∈ ω → suc ((2𝑜 ·𝑜 𝑦) +𝑜 1𝑜) = suc suc (2𝑜 ·𝑜 𝑦))
6552, 60, 643eqtr2rd 2801 . . . . . . . . . 10 (𝑦 ∈ ω → suc suc (2𝑜 ·𝑜 𝑦) = (2𝑜 ·𝑜 suc 𝑦))
66 oveq2 6821 . . . . . . . . . . . 12 (𝑥 = suc 𝑦 → (2𝑜 ·𝑜 𝑥) = (2𝑜 ·𝑜 suc 𝑦))
6766eqeq2d 2770 . . . . . . . . . . 11 (𝑥 = suc 𝑦 → (suc suc (2𝑜 ·𝑜 𝑦) = (2𝑜 ·𝑜 𝑥) ↔ suc suc (2𝑜 ·𝑜 𝑦) = (2𝑜 ·𝑜 suc 𝑦)))
6867rspcev 3449 . . . . . . . . . 10 ((suc 𝑦 ∈ ω ∧ suc suc (2𝑜 ·𝑜 𝑦) = (2𝑜 ·𝑜 suc 𝑦)) → ∃𝑥 ∈ ω suc suc (2𝑜 ·𝑜 𝑦) = (2𝑜 ·𝑜 𝑥))
6949, 65, 68syl2anc 696 . . . . . . . . 9 (𝑦 ∈ ω → ∃𝑥 ∈ ω suc suc (2𝑜 ·𝑜 𝑦) = (2𝑜 ·𝑜 𝑥))
70 suceq 5951 . . . . . . . . . . . 12 (𝑧 = (2𝑜 ·𝑜 𝑦) → suc 𝑧 = suc (2𝑜 ·𝑜 𝑦))
71 suceq 5951 . . . . . . . . . . . 12 (suc 𝑧 = suc (2𝑜 ·𝑜 𝑦) → suc suc 𝑧 = suc suc (2𝑜 ·𝑜 𝑦))
7270, 71syl 17 . . . . . . . . . . 11 (𝑧 = (2𝑜 ·𝑜 𝑦) → suc suc 𝑧 = suc suc (2𝑜 ·𝑜 𝑦))
7372eqeq1d 2762 . . . . . . . . . 10 (𝑧 = (2𝑜 ·𝑜 𝑦) → (suc suc 𝑧 = (2𝑜 ·𝑜 𝑥) ↔ suc suc (2𝑜 ·𝑜 𝑦) = (2𝑜 ·𝑜 𝑥)))
7473rexbidv 3190 . . . . . . . . 9 (𝑧 = (2𝑜 ·𝑜 𝑦) → (∃𝑥 ∈ ω suc suc 𝑧 = (2𝑜 ·𝑜 𝑥) ↔ ∃𝑥 ∈ ω suc suc (2𝑜 ·𝑜 𝑦) = (2𝑜 ·𝑜 𝑥)))
7569, 74syl5ibrcom 237 . . . . . . . 8 (𝑦 ∈ ω → (𝑧 = (2𝑜 ·𝑜 𝑦) → ∃𝑥 ∈ ω suc suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
7675rexlimiv 3165 . . . . . . 7 (∃𝑦 ∈ ω 𝑧 = (2𝑜 ·𝑜 𝑦) → ∃𝑥 ∈ ω suc suc 𝑧 = (2𝑜 ·𝑜 𝑥))
7776a1i 11 . . . . . 6 (𝑧 ∈ ω → (∃𝑦 ∈ ω 𝑧 = (2𝑜 ·𝑜 𝑦) → ∃𝑥 ∈ ω suc suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
7848, 77syl5bi 232 . . . . 5 (𝑧 ∈ ω → (∃𝑥 ∈ ω 𝑧 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω suc suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
7978con3d 148 . . . 4 (𝑧 ∈ ω → (¬ ∃𝑥 ∈ ω suc suc 𝑧 = (2𝑜 ·𝑜 𝑥) → ¬ ∃𝑥 ∈ ω 𝑧 = (2𝑜 ·𝑜 𝑥)))
80 con1 143 . . . 4 ((¬ ∃𝑥 ∈ ω suc 𝑧 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω 𝑧 = (2𝑜 ·𝑜 𝑥)) → (¬ ∃𝑥 ∈ ω 𝑧 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω suc 𝑧 = (2𝑜 ·𝑜 𝑥)))
8179, 80syl9 77 . . 3 (𝑧 ∈ ω → ((¬ ∃𝑥 ∈ ω suc 𝑧 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω 𝑧 = (2𝑜 ·𝑜 𝑥)) → (¬ ∃𝑥 ∈ ω suc suc 𝑧 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω suc 𝑧 = (2𝑜 ·𝑜 𝑥))))
8216, 23, 30, 37, 46, 81finds 7257 . 2 (𝐴 ∈ ω → (¬ ∃𝑥 ∈ ω suc 𝐴 = (2𝑜 ·𝑜 𝑥) → ∃𝑥 ∈ ω 𝐴 = (2𝑜 ·𝑜 𝑥)))
839, 82impbid2 216 1 (𝐴 ∈ ω → (∃𝑥 ∈ ω 𝐴 = (2𝑜 ·𝑜 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc 𝐴 = (2𝑜 ·𝑜 𝑥)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wa 383   = wceq 1632  wcel 2139  wrex 3051  c0 4058  Oncon0 5884  suc csuc 5886  (class class class)co 6813  ωcom 7230  1𝑜c1o 7722  2𝑜c2o 7723   +𝑜 coa 7726   ·𝑜 comu 7727
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1871  ax-4 1886  ax-5 1988  ax-6 2054  ax-7 2090  ax-8 2141  ax-9 2148  ax-10 2168  ax-11 2183  ax-12 2196  ax-13 2391  ax-ext 2740  ax-sep 4933  ax-nul 4941  ax-pow 4992  ax-pr 5055  ax-un 7114
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1635  df-ex 1854  df-nf 1859  df-sb 2047  df-eu 2611  df-mo 2612  df-clab 2747  df-cleq 2753  df-clel 2756  df-nfc 2891  df-ne 2933  df-ral 3055  df-rex 3056  df-reu 3057  df-rab 3059  df-v 3342  df-sbc 3577  df-csb 3675  df-dif 3718  df-un 3720  df-in 3722  df-ss 3729  df-pss 3731  df-nul 4059  df-if 4231  df-pw 4304  df-sn 4322  df-pr 4324  df-tp 4326  df-op 4328  df-uni 4589  df-iun 4674  df-br 4805  df-opab 4865  df-mpt 4882  df-tr 4905  df-id 5174  df-eprel 5179  df-po 5187  df-so 5188  df-fr 5225  df-we 5227  df-xp 5272  df-rel 5273  df-cnv 5274  df-co 5275  df-dm 5276  df-rn 5277  df-res 5278  df-ima 5279  df-pred 5841  df-ord 5887  df-on 5888  df-lim 5889  df-suc 5890  df-iota 6012  df-fun 6051  df-fn 6052  df-f 6053  df-f1 6054  df-fo 6055  df-f1o 6056  df-fv 6057  df-ov 6816  df-oprab 6817  df-mpt2 6818  df-om 7231  df-1st 7333  df-2nd 7334  df-wrecs 7576  df-recs 7637  df-rdg 7675  df-1o 7729  df-2o 7730  df-oadd 7733  df-omul 7734
This theorem is referenced by:  fin1a2lem5  9418
  Copyright terms: Public domain W3C validator