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

Theorem nnneo 7936
Description: If a natural number is even, its successor is odd. (Contributed by Mario Carneiro, 16-Nov-2014.)
Assertion
Ref Expression
nnneo ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 = (2𝑜 ·𝑜 𝐴)) → ¬ suc 𝐶 = (2𝑜 ·𝑜 𝐵))

Proof of Theorem nnneo
StepHypRef Expression
1 nnon 7269 . . . 4 (𝐴 ∈ ω → 𝐴 ∈ On)
2 onnbtwn 5999 . . . 4 (𝐴 ∈ On → ¬ (𝐴𝐵𝐵 ∈ suc 𝐴))
31, 2syl 17 . . 3 (𝐴 ∈ ω → ¬ (𝐴𝐵𝐵 ∈ suc 𝐴))
433ad2ant1 1163 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 = (2𝑜 ·𝑜 𝐴)) → ¬ (𝐴𝐵𝐵 ∈ suc 𝐴))
5 suceq 5973 . . . . 5 (𝐶 = (2𝑜 ·𝑜 𝐴) → suc 𝐶 = suc (2𝑜 ·𝑜 𝐴))
65eqeq1d 2767 . . . 4 (𝐶 = (2𝑜 ·𝑜 𝐴) → (suc 𝐶 = (2𝑜 ·𝑜 𝐵) ↔ suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵)))
763ad2ant3 1165 . . 3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 = (2𝑜 ·𝑜 𝐴)) → (suc 𝐶 = (2𝑜 ·𝑜 𝐵) ↔ suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵)))
8 ovex 6874 . . . . . . . 8 (2𝑜 ·𝑜 𝐴) ∈ V
98sucid 5987 . . . . . . 7 (2𝑜 ·𝑜 𝐴) ∈ suc (2𝑜 ·𝑜 𝐴)
10 eleq2 2833 . . . . . . 7 (suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵) → ((2𝑜 ·𝑜 𝐴) ∈ suc (2𝑜 ·𝑜 𝐴) ↔ (2𝑜 ·𝑜 𝐴) ∈ (2𝑜 ·𝑜 𝐵)))
119, 10mpbii 224 . . . . . 6 (suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵) → (2𝑜 ·𝑜 𝐴) ∈ (2𝑜 ·𝑜 𝐵))
12 2onn 7925 . . . . . . . 8 2𝑜 ∈ ω
13 nnmord 7917 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 2𝑜 ∈ ω) → ((𝐴𝐵 ∧ ∅ ∈ 2𝑜) ↔ (2𝑜 ·𝑜 𝐴) ∈ (2𝑜 ·𝑜 𝐵)))
1412, 13mp3an3 1574 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐴𝐵 ∧ ∅ ∈ 2𝑜) ↔ (2𝑜 ·𝑜 𝐴) ∈ (2𝑜 ·𝑜 𝐵)))
15 simpl 474 . . . . . . 7 ((𝐴𝐵 ∧ ∅ ∈ 2𝑜) → 𝐴𝐵)
1614, 15syl6bir 245 . . . . . 6 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((2𝑜 ·𝑜 𝐴) ∈ (2𝑜 ·𝑜 𝐵) → 𝐴𝐵))
1711, 16syl5 34 . . . . 5 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵) → 𝐴𝐵))
18 simpr 477 . . . . . . . . 9 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵)) → suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵))
19 nnmcl 7897 . . . . . . . . . . . . 13 ((2𝑜 ∈ ω ∧ 𝐴 ∈ ω) → (2𝑜 ·𝑜 𝐴) ∈ ω)
2012, 19mpan 681 . . . . . . . . . . . 12 (𝐴 ∈ ω → (2𝑜 ·𝑜 𝐴) ∈ ω)
21 nnon 7269 . . . . . . . . . . . 12 ((2𝑜 ·𝑜 𝐴) ∈ ω → (2𝑜 ·𝑜 𝐴) ∈ On)
22 oa1suc 7816 . . . . . . . . . . . 12 ((2𝑜 ·𝑜 𝐴) ∈ On → ((2𝑜 ·𝑜 𝐴) +𝑜 1𝑜) = suc (2𝑜 ·𝑜 𝐴))
2320, 21, 223syl 18 . . . . . . . . . . 11 (𝐴 ∈ ω → ((2𝑜 ·𝑜 𝐴) +𝑜 1𝑜) = suc (2𝑜 ·𝑜 𝐴))
24 1onn 7924 . . . . . . . . . . . . . . . 16 1𝑜 ∈ ω
2524elexi 3366 . . . . . . . . . . . . . . 15 1𝑜 ∈ V
2625sucid 5987 . . . . . . . . . . . . . 14 1𝑜 ∈ suc 1𝑜
27 df-2o 7765 . . . . . . . . . . . . . 14 2𝑜 = suc 1𝑜
2826, 27eleqtrri 2843 . . . . . . . . . . . . 13 1𝑜 ∈ 2𝑜
29 nnaord 7904 . . . . . . . . . . . . . . 15 ((1𝑜 ∈ ω ∧ 2𝑜 ∈ ω ∧ (2𝑜 ·𝑜 𝐴) ∈ ω) → (1𝑜 ∈ 2𝑜 ↔ ((2𝑜 ·𝑜 𝐴) +𝑜 1𝑜) ∈ ((2𝑜 ·𝑜 𝐴) +𝑜 2𝑜)))
3024, 12, 29mp3an12 1575 . . . . . . . . . . . . . 14 ((2𝑜 ·𝑜 𝐴) ∈ ω → (1𝑜 ∈ 2𝑜 ↔ ((2𝑜 ·𝑜 𝐴) +𝑜 1𝑜) ∈ ((2𝑜 ·𝑜 𝐴) +𝑜 2𝑜)))
3120, 30syl 17 . . . . . . . . . . . . 13 (𝐴 ∈ ω → (1𝑜 ∈ 2𝑜 ↔ ((2𝑜 ·𝑜 𝐴) +𝑜 1𝑜) ∈ ((2𝑜 ·𝑜 𝐴) +𝑜 2𝑜)))
3228, 31mpbii 224 . . . . . . . . . . . 12 (𝐴 ∈ ω → ((2𝑜 ·𝑜 𝐴) +𝑜 1𝑜) ∈ ((2𝑜 ·𝑜 𝐴) +𝑜 2𝑜))
33 nnmsuc 7892 . . . . . . . . . . . . 13 ((2𝑜 ∈ ω ∧ 𝐴 ∈ ω) → (2𝑜 ·𝑜 suc 𝐴) = ((2𝑜 ·𝑜 𝐴) +𝑜 2𝑜))
3412, 33mpan 681 . . . . . . . . . . . 12 (𝐴 ∈ ω → (2𝑜 ·𝑜 suc 𝐴) = ((2𝑜 ·𝑜 𝐴) +𝑜 2𝑜))
3532, 34eleqtrrd 2847 . . . . . . . . . . 11 (𝐴 ∈ ω → ((2𝑜 ·𝑜 𝐴) +𝑜 1𝑜) ∈ (2𝑜 ·𝑜 suc 𝐴))
3623, 35eqeltrrd 2845 . . . . . . . . . 10 (𝐴 ∈ ω → suc (2𝑜 ·𝑜 𝐴) ∈ (2𝑜 ·𝑜 suc 𝐴))
3736ad2antrr 717 . . . . . . . . 9 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵)) → suc (2𝑜 ·𝑜 𝐴) ∈ (2𝑜 ·𝑜 suc 𝐴))
3818, 37eqeltrrd 2845 . . . . . . . 8 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵)) → (2𝑜 ·𝑜 𝐵) ∈ (2𝑜 ·𝑜 suc 𝐴))
39 peano2 7284 . . . . . . . . . . 11 (𝐴 ∈ ω → suc 𝐴 ∈ ω)
40 nnmord 7917 . . . . . . . . . . . 12 ((𝐵 ∈ ω ∧ suc 𝐴 ∈ ω ∧ 2𝑜 ∈ ω) → ((𝐵 ∈ suc 𝐴 ∧ ∅ ∈ 2𝑜) ↔ (2𝑜 ·𝑜 𝐵) ∈ (2𝑜 ·𝑜 suc 𝐴)))
4112, 40mp3an3 1574 . . . . . . . . . . 11 ((𝐵 ∈ ω ∧ suc 𝐴 ∈ ω) → ((𝐵 ∈ suc 𝐴 ∧ ∅ ∈ 2𝑜) ↔ (2𝑜 ·𝑜 𝐵) ∈ (2𝑜 ·𝑜 suc 𝐴)))
4239, 41sylan2 586 . . . . . . . . . 10 ((𝐵 ∈ ω ∧ 𝐴 ∈ ω) → ((𝐵 ∈ suc 𝐴 ∧ ∅ ∈ 2𝑜) ↔ (2𝑜 ·𝑜 𝐵) ∈ (2𝑜 ·𝑜 suc 𝐴)))
4342ancoms 450 . . . . . . . . 9 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → ((𝐵 ∈ suc 𝐴 ∧ ∅ ∈ 2𝑜) ↔ (2𝑜 ·𝑜 𝐵) ∈ (2𝑜 ·𝑜 suc 𝐴)))
4443adantr 472 . . . . . . . 8 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵)) → ((𝐵 ∈ suc 𝐴 ∧ ∅ ∈ 2𝑜) ↔ (2𝑜 ·𝑜 𝐵) ∈ (2𝑜 ·𝑜 suc 𝐴)))
4538, 44mpbird 248 . . . . . . 7 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵)) → (𝐵 ∈ suc 𝐴 ∧ ∅ ∈ 2𝑜))
4645simpld 488 . . . . . 6 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵)) → 𝐵 ∈ suc 𝐴)
4746ex 401 . . . . 5 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵) → 𝐵 ∈ suc 𝐴))
4817, 47jcad 508 . . . 4 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵) → (𝐴𝐵𝐵 ∈ suc 𝐴)))
49483adant3 1162 . . 3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 = (2𝑜 ·𝑜 𝐴)) → (suc (2𝑜 ·𝑜 𝐴) = (2𝑜 ·𝑜 𝐵) → (𝐴𝐵𝐵 ∈ suc 𝐴)))
507, 49sylbid 231 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 = (2𝑜 ·𝑜 𝐴)) → (suc 𝐶 = (2𝑜 ·𝑜 𝐵) → (𝐴𝐵𝐵 ∈ suc 𝐴)))
514, 50mtod 189 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 = (2𝑜 ·𝑜 𝐴)) → ¬ suc 𝐶 = (2𝑜 ·𝑜 𝐵))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 197  wa 384  w3a 1107   = wceq 1652  wcel 2155  c0 4079  Oncon0 5908  suc csuc 5910  (class class class)co 6842  ωcom 7263  1𝑜c1o 7757  2𝑜c2o 7758   +𝑜 coa 7761   ·𝑜 comu 7762
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1890  ax-4 1904  ax-5 2005  ax-6 2070  ax-7 2105  ax-8 2157  ax-9 2164  ax-10 2183  ax-11 2198  ax-12 2211  ax-13 2352  ax-ext 2743  ax-sep 4941  ax-nul 4949  ax-pow 5001  ax-pr 5062  ax-un 7147
This theorem depends on definitions:  df-bi 198  df-an 385  df-or 874  df-3or 1108  df-3an 1109  df-tru 1656  df-ex 1875  df-nf 1879  df-sb 2063  df-mo 2565  df-eu 2582  df-clab 2752  df-cleq 2758  df-clel 2761  df-nfc 2896  df-ne 2938  df-ral 3060  df-rex 3061  df-reu 3062  df-rab 3064  df-v 3352  df-sbc 3597  df-csb 3692  df-dif 3735  df-un 3737  df-in 3739  df-ss 3746  df-pss 3748  df-nul 4080  df-if 4244  df-pw 4317  df-sn 4335  df-pr 4337  df-tp 4339  df-op 4341  df-uni 4595  df-iun 4678  df-br 4810  df-opab 4872  df-mpt 4889  df-tr 4912  df-id 5185  df-eprel 5190  df-po 5198  df-so 5199  df-fr 5236  df-we 5238  df-xp 5283  df-rel 5284  df-cnv 5285  df-co 5286  df-dm 5287  df-rn 5288  df-res 5289  df-ima 5290  df-pred 5865  df-ord 5911  df-on 5912  df-lim 5913  df-suc 5914  df-iota 6031  df-fun 6070  df-fn 6071  df-f 6072  df-f1 6073  df-fo 6074  df-f1o 6075  df-fv 6076  df-ov 6845  df-oprab 6846  df-mpt2 6847  df-om 7264  df-wrecs 7610  df-recs 7672  df-rdg 7710  df-1o 7764  df-2o 7765  df-oadd 7768  df-omul 7769
This theorem is referenced by:  nneob  7937
  Copyright terms: Public domain W3C validator