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

Theorem nneob 8446
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 (𝐴 ∈ ω → (∃𝑥 ∈ ω 𝐴 = (2o ·o 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc 𝐴 = (2o ·o 𝑥)))
Distinct variable group:   𝑥,𝐴

Proof of Theorem nneob
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 7263 . . . . 5 (𝑥 = 𝑦 → (2o ·o 𝑥) = (2o ·o 𝑦))
21eqeq2d 2749 . . . 4 (𝑥 = 𝑦 → (𝐴 = (2o ·o 𝑥) ↔ 𝐴 = (2o ·o 𝑦)))
32cbvrexvw 3373 . . 3 (∃𝑥 ∈ ω 𝐴 = (2o ·o 𝑥) ↔ ∃𝑦 ∈ ω 𝐴 = (2o ·o 𝑦))
4 nnneo 8445 . . . . . . 7 ((𝑦 ∈ ω ∧ 𝑥 ∈ ω ∧ 𝐴 = (2o ·o 𝑦)) → ¬ suc 𝐴 = (2o ·o 𝑥))
543com23 1124 . . . . . 6 ((𝑦 ∈ ω ∧ 𝐴 = (2o ·o 𝑦) ∧ 𝑥 ∈ ω) → ¬ suc 𝐴 = (2o ·o 𝑥))
653expa 1116 . . . . 5 (((𝑦 ∈ ω ∧ 𝐴 = (2o ·o 𝑦)) ∧ 𝑥 ∈ ω) → ¬ suc 𝐴 = (2o ·o 𝑥))
76nrexdv 3197 . . . 4 ((𝑦 ∈ ω ∧ 𝐴 = (2o ·o 𝑦)) → ¬ ∃𝑥 ∈ ω suc 𝐴 = (2o ·o 𝑥))
87rexlimiva 3209 . . 3 (∃𝑦 ∈ ω 𝐴 = (2o ·o 𝑦) → ¬ ∃𝑥 ∈ ω suc 𝐴 = (2o ·o 𝑥))
93, 8sylbi 216 . 2 (∃𝑥 ∈ ω 𝐴 = (2o ·o 𝑥) → ¬ ∃𝑥 ∈ ω suc 𝐴 = (2o ·o 𝑥))
10 suceq 6316 . . . . . . 7 (𝑦 = ∅ → suc 𝑦 = suc ∅)
1110eqeq1d 2740 . . . . . 6 (𝑦 = ∅ → (suc 𝑦 = (2o ·o 𝑥) ↔ suc ∅ = (2o ·o 𝑥)))
1211rexbidv 3225 . . . . 5 (𝑦 = ∅ → (∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) ↔ ∃𝑥 ∈ ω suc ∅ = (2o ·o 𝑥)))
1312notbid 317 . . . 4 (𝑦 = ∅ → (¬ ∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc ∅ = (2o ·o 𝑥)))
14 eqeq1 2742 . . . . 5 (𝑦 = ∅ → (𝑦 = (2o ·o 𝑥) ↔ ∅ = (2o ·o 𝑥)))
1514rexbidv 3225 . . . 4 (𝑦 = ∅ → (∃𝑥 ∈ ω 𝑦 = (2o ·o 𝑥) ↔ ∃𝑥 ∈ ω ∅ = (2o ·o 𝑥)))
1613, 15imbi12d 344 . . 3 (𝑦 = ∅ → ((¬ ∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) → ∃𝑥 ∈ ω 𝑦 = (2o ·o 𝑥)) ↔ (¬ ∃𝑥 ∈ ω suc ∅ = (2o ·o 𝑥) → ∃𝑥 ∈ ω ∅ = (2o ·o 𝑥))))
17 suceq 6316 . . . . . . 7 (𝑦 = 𝑧 → suc 𝑦 = suc 𝑧)
1817eqeq1d 2740 . . . . . 6 (𝑦 = 𝑧 → (suc 𝑦 = (2o ·o 𝑥) ↔ suc 𝑧 = (2o ·o 𝑥)))
1918rexbidv 3225 . . . . 5 (𝑦 = 𝑧 → (∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) ↔ ∃𝑥 ∈ ω suc 𝑧 = (2o ·o 𝑥)))
2019notbid 317 . . . 4 (𝑦 = 𝑧 → (¬ ∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc 𝑧 = (2o ·o 𝑥)))
21 eqeq1 2742 . . . . 5 (𝑦 = 𝑧 → (𝑦 = (2o ·o 𝑥) ↔ 𝑧 = (2o ·o 𝑥)))
2221rexbidv 3225 . . . 4 (𝑦 = 𝑧 → (∃𝑥 ∈ ω 𝑦 = (2o ·o 𝑥) ↔ ∃𝑥 ∈ ω 𝑧 = (2o ·o 𝑥)))
2320, 22imbi12d 344 . . 3 (𝑦 = 𝑧 → ((¬ ∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) → ∃𝑥 ∈ ω 𝑦 = (2o ·o 𝑥)) ↔ (¬ ∃𝑥 ∈ ω suc 𝑧 = (2o ·o 𝑥) → ∃𝑥 ∈ ω 𝑧 = (2o ·o 𝑥))))
24 suceq 6316 . . . . . . 7 (𝑦 = suc 𝑧 → suc 𝑦 = suc suc 𝑧)
2524eqeq1d 2740 . . . . . 6 (𝑦 = suc 𝑧 → (suc 𝑦 = (2o ·o 𝑥) ↔ suc suc 𝑧 = (2o ·o 𝑥)))
2625rexbidv 3225 . . . . 5 (𝑦 = suc 𝑧 → (∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) ↔ ∃𝑥 ∈ ω suc suc 𝑧 = (2o ·o 𝑥)))
2726notbid 317 . . . 4 (𝑦 = suc 𝑧 → (¬ ∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc suc 𝑧 = (2o ·o 𝑥)))
28 eqeq1 2742 . . . . 5 (𝑦 = suc 𝑧 → (𝑦 = (2o ·o 𝑥) ↔ suc 𝑧 = (2o ·o 𝑥)))
2928rexbidv 3225 . . . 4 (𝑦 = suc 𝑧 → (∃𝑥 ∈ ω 𝑦 = (2o ·o 𝑥) ↔ ∃𝑥 ∈ ω suc 𝑧 = (2o ·o 𝑥)))
3027, 29imbi12d 344 . . 3 (𝑦 = suc 𝑧 → ((¬ ∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) → ∃𝑥 ∈ ω 𝑦 = (2o ·o 𝑥)) ↔ (¬ ∃𝑥 ∈ ω suc suc 𝑧 = (2o ·o 𝑥) → ∃𝑥 ∈ ω suc 𝑧 = (2o ·o 𝑥))))
31 suceq 6316 . . . . . . 7 (𝑦 = 𝐴 → suc 𝑦 = suc 𝐴)
3231eqeq1d 2740 . . . . . 6 (𝑦 = 𝐴 → (suc 𝑦 = (2o ·o 𝑥) ↔ suc 𝐴 = (2o ·o 𝑥)))
3332rexbidv 3225 . . . . 5 (𝑦 = 𝐴 → (∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) ↔ ∃𝑥 ∈ ω suc 𝐴 = (2o ·o 𝑥)))
3433notbid 317 . . . 4 (𝑦 = 𝐴 → (¬ ∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc 𝐴 = (2o ·o 𝑥)))
35 eqeq1 2742 . . . . 5 (𝑦 = 𝐴 → (𝑦 = (2o ·o 𝑥) ↔ 𝐴 = (2o ·o 𝑥)))
3635rexbidv 3225 . . . 4 (𝑦 = 𝐴 → (∃𝑥 ∈ ω 𝑦 = (2o ·o 𝑥) ↔ ∃𝑥 ∈ ω 𝐴 = (2o ·o 𝑥)))
3734, 36imbi12d 344 . . 3 (𝑦 = 𝐴 → ((¬ ∃𝑥 ∈ ω suc 𝑦 = (2o ·o 𝑥) → ∃𝑥 ∈ ω 𝑦 = (2o ·o 𝑥)) ↔ (¬ ∃𝑥 ∈ ω suc 𝐴 = (2o ·o 𝑥) → ∃𝑥 ∈ ω 𝐴 = (2o ·o 𝑥))))
38 peano1 7710 . . . . 5 ∅ ∈ ω
39 eqid 2738 . . . . 5 ∅ = ∅
40 oveq2 7263 . . . . . . 7 (𝑥 = ∅ → (2o ·o 𝑥) = (2o ·o ∅))
41 2on 8275 . . . . . . . 8 2o ∈ On
42 om0 8309 . . . . . . . 8 (2o ∈ On → (2o ·o ∅) = ∅)
4341, 42ax-mp 5 . . . . . . 7 (2o ·o ∅) = ∅
4440, 43eqtrdi 2795 . . . . . 6 (𝑥 = ∅ → (2o ·o 𝑥) = ∅)
4544rspceeqv 3567 . . . . 5 ((∅ ∈ ω ∧ ∅ = ∅) → ∃𝑥 ∈ ω ∅ = (2o ·o 𝑥))
4638, 39, 45mp2an 688 . . . 4 𝑥 ∈ ω ∅ = (2o ·o 𝑥)
4746a1i 11 . . 3 (¬ ∃𝑥 ∈ ω suc ∅ = (2o ·o 𝑥) → ∃𝑥 ∈ ω ∅ = (2o ·o 𝑥))
481eqeq2d 2749 . . . . . . 7 (𝑥 = 𝑦 → (𝑧 = (2o ·o 𝑥) ↔ 𝑧 = (2o ·o 𝑦)))
4948cbvrexvw 3373 . . . . . 6 (∃𝑥 ∈ ω 𝑧 = (2o ·o 𝑥) ↔ ∃𝑦 ∈ ω 𝑧 = (2o ·o 𝑦))
50 peano2 7711 . . . . . . . . . 10 (𝑦 ∈ ω → suc 𝑦 ∈ ω)
51 2onn 8433 . . . . . . . . . . . 12 2o ∈ ω
52 nnmsuc 8400 . . . . . . . . . . . 12 ((2o ∈ ω ∧ 𝑦 ∈ ω) → (2o ·o suc 𝑦) = ((2o ·o 𝑦) +o 2o))
5351, 52mpan 686 . . . . . . . . . . 11 (𝑦 ∈ ω → (2o ·o suc 𝑦) = ((2o ·o 𝑦) +o 2o))
54 df-2o 8268 . . . . . . . . . . . . 13 2o = suc 1o
5554oveq2i 7266 . . . . . . . . . . . 12 ((2o ·o 𝑦) +o 2o) = ((2o ·o 𝑦) +o suc 1o)
56 nnmcl 8405 . . . . . . . . . . . . . 14 ((2o ∈ ω ∧ 𝑦 ∈ ω) → (2o ·o 𝑦) ∈ ω)
5751, 56mpan 686 . . . . . . . . . . . . 13 (𝑦 ∈ ω → (2o ·o 𝑦) ∈ ω)
58 1onn 8432 . . . . . . . . . . . . 13 1o ∈ ω
59 nnasuc 8399 . . . . . . . . . . . . 13 (((2o ·o 𝑦) ∈ ω ∧ 1o ∈ ω) → ((2o ·o 𝑦) +o suc 1o) = suc ((2o ·o 𝑦) +o 1o))
6057, 58, 59sylancl 585 . . . . . . . . . . . 12 (𝑦 ∈ ω → ((2o ·o 𝑦) +o suc 1o) = suc ((2o ·o 𝑦) +o 1o))
6155, 60eqtr2id 2792 . . . . . . . . . . 11 (𝑦 ∈ ω → suc ((2o ·o 𝑦) +o 1o) = ((2o ·o 𝑦) +o 2o))
62 nnon 7693 . . . . . . . . . . . 12 ((2o ·o 𝑦) ∈ ω → (2o ·o 𝑦) ∈ On)
63 oa1suc 8323 . . . . . . . . . . . 12 ((2o ·o 𝑦) ∈ On → ((2o ·o 𝑦) +o 1o) = suc (2o ·o 𝑦))
64 suceq 6316 . . . . . . . . . . . 12 (((2o ·o 𝑦) +o 1o) = suc (2o ·o 𝑦) → suc ((2o ·o 𝑦) +o 1o) = suc suc (2o ·o 𝑦))
6557, 62, 63, 644syl 19 . . . . . . . . . . 11 (𝑦 ∈ ω → suc ((2o ·o 𝑦) +o 1o) = suc suc (2o ·o 𝑦))
6653, 61, 653eqtr2rd 2785 . . . . . . . . . 10 (𝑦 ∈ ω → suc suc (2o ·o 𝑦) = (2o ·o suc 𝑦))
67 oveq2 7263 . . . . . . . . . . 11 (𝑥 = suc 𝑦 → (2o ·o 𝑥) = (2o ·o suc 𝑦))
6867rspceeqv 3567 . . . . . . . . . 10 ((suc 𝑦 ∈ ω ∧ suc suc (2o ·o 𝑦) = (2o ·o suc 𝑦)) → ∃𝑥 ∈ ω suc suc (2o ·o 𝑦) = (2o ·o 𝑥))
6950, 66, 68syl2anc 583 . . . . . . . . 9 (𝑦 ∈ ω → ∃𝑥 ∈ ω suc suc (2o ·o 𝑦) = (2o ·o 𝑥))
70 suceq 6316 . . . . . . . . . . . 12 (𝑧 = (2o ·o 𝑦) → suc 𝑧 = suc (2o ·o 𝑦))
71 suceq 6316 . . . . . . . . . . . 12 (suc 𝑧 = suc (2o ·o 𝑦) → suc suc 𝑧 = suc suc (2o ·o 𝑦))
7270, 71syl 17 . . . . . . . . . . 11 (𝑧 = (2o ·o 𝑦) → suc suc 𝑧 = suc suc (2o ·o 𝑦))
7372eqeq1d 2740 . . . . . . . . . 10 (𝑧 = (2o ·o 𝑦) → (suc suc 𝑧 = (2o ·o 𝑥) ↔ suc suc (2o ·o 𝑦) = (2o ·o 𝑥)))
7473rexbidv 3225 . . . . . . . . 9 (𝑧 = (2o ·o 𝑦) → (∃𝑥 ∈ ω suc suc 𝑧 = (2o ·o 𝑥) ↔ ∃𝑥 ∈ ω suc suc (2o ·o 𝑦) = (2o ·o 𝑥)))
7569, 74syl5ibrcom 246 . . . . . . . 8 (𝑦 ∈ ω → (𝑧 = (2o ·o 𝑦) → ∃𝑥 ∈ ω suc suc 𝑧 = (2o ·o 𝑥)))
7675rexlimiv 3208 . . . . . . 7 (∃𝑦 ∈ ω 𝑧 = (2o ·o 𝑦) → ∃𝑥 ∈ ω suc suc 𝑧 = (2o ·o 𝑥))
7776a1i 11 . . . . . 6 (𝑧 ∈ ω → (∃𝑦 ∈ ω 𝑧 = (2o ·o 𝑦) → ∃𝑥 ∈ ω suc suc 𝑧 = (2o ·o 𝑥)))
7849, 77syl5bi 241 . . . . 5 (𝑧 ∈ ω → (∃𝑥 ∈ ω 𝑧 = (2o ·o 𝑥) → ∃𝑥 ∈ ω suc suc 𝑧 = (2o ·o 𝑥)))
7978con3d 152 . . . 4 (𝑧 ∈ ω → (¬ ∃𝑥 ∈ ω suc suc 𝑧 = (2o ·o 𝑥) → ¬ ∃𝑥 ∈ ω 𝑧 = (2o ·o 𝑥)))
80 con1 146 . . . 4 ((¬ ∃𝑥 ∈ ω suc 𝑧 = (2o ·o 𝑥) → ∃𝑥 ∈ ω 𝑧 = (2o ·o 𝑥)) → (¬ ∃𝑥 ∈ ω 𝑧 = (2o ·o 𝑥) → ∃𝑥 ∈ ω suc 𝑧 = (2o ·o 𝑥)))
8179, 80syl9 77 . . 3 (𝑧 ∈ ω → ((¬ ∃𝑥 ∈ ω suc 𝑧 = (2o ·o 𝑥) → ∃𝑥 ∈ ω 𝑧 = (2o ·o 𝑥)) → (¬ ∃𝑥 ∈ ω suc suc 𝑧 = (2o ·o 𝑥) → ∃𝑥 ∈ ω suc 𝑧 = (2o ·o 𝑥))))
8216, 23, 30, 37, 47, 81finds 7719 . 2 (𝐴 ∈ ω → (¬ ∃𝑥 ∈ ω suc 𝐴 = (2o ·o 𝑥) → ∃𝑥 ∈ ω 𝐴 = (2o ·o 𝑥)))
839, 82impbid2 225 1 (𝐴 ∈ ω → (∃𝑥 ∈ ω 𝐴 = (2o ·o 𝑥) ↔ ¬ ∃𝑥 ∈ ω suc 𝐴 = (2o ·o 𝑥)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wrex 3064  c0 4253  Oncon0 6251  suc csuc 6253  (class class class)co 7255  ωcom 7687  1oc1o 8260  2oc2o 8261   +o coa 8264   ·o comu 8265
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-2o 8268  df-oadd 8271  df-omul 8272
This theorem is referenced by:  fin1a2lem5  10091
  Copyright terms: Public domain W3C validator