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

Theorem nnaordi 7644
Description: Ordering property of addition. Proposition 8.4 of [TakeutiZaring] p. 58, limited to natural numbers. (Contributed by NM, 3-Feb-1996.) (Revised by Mario Carneiro, 15-Nov-2014.)
Assertion
Ref Expression
nnaordi ((𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴𝐵 → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))

Proof of Theorem nnaordi
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elnn 7023 . . . . . 6 ((𝐴𝐵𝐵 ∈ ω) → 𝐴 ∈ ω)
21ancoms 469 . . . . 5 ((𝐵 ∈ ω ∧ 𝐴𝐵) → 𝐴 ∈ ω)
32adantll 749 . . . 4 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) → 𝐴 ∈ ω)
4 nnord 7021 . . . . . . . . 9 (𝐵 ∈ ω → Ord 𝐵)
5 ordsucss 6966 . . . . . . . . 9 (Ord 𝐵 → (𝐴𝐵 → suc 𝐴𝐵))
64, 5syl 17 . . . . . . . 8 (𝐵 ∈ ω → (𝐴𝐵 → suc 𝐴𝐵))
76ad2antlr 762 . . . . . . 7 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → (𝐴𝐵 → suc 𝐴𝐵))
8 peano2b 7029 . . . . . . . . . 10 (𝐴 ∈ ω ↔ suc 𝐴 ∈ ω)
9 oveq2 6613 . . . . . . . . . . . . . 14 (𝑥 = suc 𝐴 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 suc 𝐴))
109sseq2d 3617 . . . . . . . . . . . . 13 (𝑥 = suc 𝐴 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴)))
1110imbi2d 330 . . . . . . . . . . . 12 (𝑥 = suc 𝐴 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴))))
12 oveq2 6613 . . . . . . . . . . . . . 14 (𝑥 = 𝑦 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 𝑦))
1312sseq2d 3617 . . . . . . . . . . . . 13 (𝑥 = 𝑦 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦)))
1413imbi2d 330 . . . . . . . . . . . 12 (𝑥 = 𝑦 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦))))
15 oveq2 6613 . . . . . . . . . . . . . 14 (𝑥 = suc 𝑦 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 suc 𝑦))
1615sseq2d 3617 . . . . . . . . . . . . 13 (𝑥 = suc 𝑦 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦)))
1716imbi2d 330 . . . . . . . . . . . 12 (𝑥 = suc 𝑦 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
18 oveq2 6613 . . . . . . . . . . . . . 14 (𝑥 = 𝐵 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 𝐵))
1918sseq2d 3617 . . . . . . . . . . . . 13 (𝑥 = 𝐵 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
2019imbi2d 330 . . . . . . . . . . . 12 (𝑥 = 𝐵 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵))))
21 ssid 3608 . . . . . . . . . . . . 13 (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴)
22212a1i 12 . . . . . . . . . . . 12 (suc 𝐴 ∈ ω → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴)))
23 sssucid 5764 . . . . . . . . . . . . . . . . 17 (𝐶 +𝑜 𝑦) ⊆ suc (𝐶 +𝑜 𝑦)
24 sstr2 3595 . . . . . . . . . . . . . . . . 17 ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → ((𝐶 +𝑜 𝑦) ⊆ suc (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ suc (𝐶 +𝑜 𝑦)))
2523, 24mpi 20 . . . . . . . . . . . . . . . 16 ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ suc (𝐶 +𝑜 𝑦))
26 nnasuc 7632 . . . . . . . . . . . . . . . . . 18 ((𝐶 ∈ ω ∧ 𝑦 ∈ ω) → (𝐶 +𝑜 suc 𝑦) = suc (𝐶 +𝑜 𝑦))
2726ancoms 469 . . . . . . . . . . . . . . . . 17 ((𝑦 ∈ ω ∧ 𝐶 ∈ ω) → (𝐶 +𝑜 suc 𝑦) = suc (𝐶 +𝑜 𝑦))
2827sseq2d 3617 . . . . . . . . . . . . . . . 16 ((𝑦 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ suc (𝐶 +𝑜 𝑦)))
2925, 28syl5ibr 236 . . . . . . . . . . . . . . 15 ((𝑦 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦)))
3029ex 450 . . . . . . . . . . . . . 14 (𝑦 ∈ ω → (𝐶 ∈ ω → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
3130ad2antrr 761 . . . . . . . . . . . . 13 (((𝑦 ∈ ω ∧ suc 𝐴 ∈ ω) ∧ suc 𝐴𝑦) → (𝐶 ∈ ω → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
3231a2d 29 . . . . . . . . . . . 12 (((𝑦 ∈ ω ∧ suc 𝐴 ∈ ω) ∧ suc 𝐴𝑦) → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦)) → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
3311, 14, 17, 20, 22, 32findsg 7041 . . . . . . . . . . 11 (((𝐵 ∈ ω ∧ suc 𝐴 ∈ ω) ∧ suc 𝐴𝐵) → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
3433exp31 629 . . . . . . . . . 10 (𝐵 ∈ ω → (suc 𝐴 ∈ ω → (suc 𝐴𝐵 → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))))
358, 34syl5bi 232 . . . . . . . . 9 (𝐵 ∈ ω → (𝐴 ∈ ω → (suc 𝐴𝐵 → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))))
3635com4r 94 . . . . . . . 8 (𝐶 ∈ ω → (𝐵 ∈ ω → (𝐴 ∈ ω → (suc 𝐴𝐵 → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))))
3736imp31 448 . . . . . . 7 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → (suc 𝐴𝐵 → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
38 nnasuc 7632 . . . . . . . . . 10 ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) → (𝐶 +𝑜 suc 𝐴) = suc (𝐶 +𝑜 𝐴))
3938sseq1d 3616 . . . . . . . . 9 ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵) ↔ suc (𝐶 +𝑜 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
40 ovex 6633 . . . . . . . . . 10 (𝐶 +𝑜 𝐴) ∈ V
41 sucssel 5781 . . . . . . . . . 10 ((𝐶 +𝑜 𝐴) ∈ V → (suc (𝐶 +𝑜 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
4240, 41ax-mp 5 . . . . . . . . 9 (suc (𝐶 +𝑜 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
4339, 42syl6bi 243 . . . . . . . 8 ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
4443adantlr 750 . . . . . . 7 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
457, 37, 443syld 60 . . . . . 6 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → (𝐴𝐵 → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
4645imp 445 . . . . 5 ((((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) ∧ 𝐴𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
4746an32s 845 . . . 4 ((((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) ∧ 𝐴 ∈ ω) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
483, 47mpdan 701 . . 3 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
4948ex 450 . 2 ((𝐶 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴𝐵 → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
5049ancoms 469 1 ((𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴𝐵 → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384   = wceq 1480  wcel 1992  Vcvv 3191  wss 3560  Ord word 5684  suc csuc 5687  (class class class)co 6605  ωcom 7013   +𝑜 coa 7503
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1841  ax-6 1890  ax-7 1937  ax-8 1994  ax-9 2001  ax-10 2021  ax-11 2036  ax-12 2049  ax-13 2250  ax-ext 2606  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6903
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1883  df-eu 2478  df-mo 2479  df-clab 2613  df-cleq 2619  df-clel 2622  df-nfc 2756  df-ne 2797  df-ral 2917  df-rex 2918  df-reu 2919  df-rab 2921  df-v 3193  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-pss 3576  df-nul 3897  df-if 4064  df-pw 4137  df-sn 4154  df-pr 4156  df-tp 4158  df-op 4160  df-uni 4408  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-tr 4718  df-eprel 4990  df-id 4994  df-po 5000  df-so 5001  df-fr 5038  df-we 5040  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-pred 5642  df-ord 5688  df-on 5689  df-lim 5690  df-suc 5691  df-iota 5813  df-fun 5852  df-fn 5853  df-f 5854  df-f1 5855  df-fo 5856  df-f1o 5857  df-fv 5858  df-ov 6608  df-oprab 6609  df-mpt2 6610  df-om 7014  df-wrecs 7353  df-recs 7414  df-rdg 7452  df-oadd 7510
This theorem is referenced by:  nnaord  7645  nnmordi  7657  addclpi  9659  addnidpi  9668
  Copyright terms: Public domain W3C validator