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

Theorem nnaordi 7698
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 7075 . . . . . 6 ((𝐴𝐵𝐵 ∈ ω) → 𝐴 ∈ ω)
21ancoms 469 . . . . 5 ((𝐵 ∈ ω ∧ 𝐴𝐵) → 𝐴 ∈ ω)
32adantll 750 . . . 4 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) → 𝐴 ∈ ω)
4 nnord 7073 . . . . . . . . 9 (𝐵 ∈ ω → Ord 𝐵)
5 ordsucss 7018 . . . . . . . . 9 (Ord 𝐵 → (𝐴𝐵 → suc 𝐴𝐵))
64, 5syl 17 . . . . . . . 8 (𝐵 ∈ ω → (𝐴𝐵 → suc 𝐴𝐵))
76ad2antlr 763 . . . . . . 7 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → (𝐴𝐵 → suc 𝐴𝐵))
8 peano2b 7081 . . . . . . . . . 10 (𝐴 ∈ ω ↔ suc 𝐴 ∈ ω)
9 oveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = suc 𝐴 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 suc 𝐴))
109sseq2d 3633 . . . . . . . . . . . . 13 (𝑥 = suc 𝐴 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴)))
1110imbi2d 330 . . . . . . . . . . . 12 (𝑥 = suc 𝐴 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴))))
12 oveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = 𝑦 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 𝑦))
1312sseq2d 3633 . . . . . . . . . . . . 13 (𝑥 = 𝑦 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦)))
1413imbi2d 330 . . . . . . . . . . . 12 (𝑥 = 𝑦 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦))))
15 oveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = suc 𝑦 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 suc 𝑦))
1615sseq2d 3633 . . . . . . . . . . . . 13 (𝑥 = suc 𝑦 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦)))
1716imbi2d 330 . . . . . . . . . . . 12 (𝑥 = suc 𝑦 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
18 oveq2 6658 . . . . . . . . . . . . . 14 (𝑥 = 𝐵 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 𝐵))
1918sseq2d 3633 . . . . . . . . . . . . 13 (𝑥 = 𝐵 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
2019imbi2d 330 . . . . . . . . . . . 12 (𝑥 = 𝐵 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵))))
21 ssid 3624 . . . . . . . . . . . . 13 (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴)
22212a1i 12 . . . . . . . . . . . 12 (suc 𝐴 ∈ ω → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴)))
23 sssucid 5802 . . . . . . . . . . . . . . . . 17 (𝐶 +𝑜 𝑦) ⊆ suc (𝐶 +𝑜 𝑦)
24 sstr2 3610 . . . . . . . . . . . . . . . . 17 ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → ((𝐶 +𝑜 𝑦) ⊆ suc (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ suc (𝐶 +𝑜 𝑦)))
2523, 24mpi 20 . . . . . . . . . . . . . . . 16 ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ suc (𝐶 +𝑜 𝑦))
26 nnasuc 7686 . . . . . . . . . . . . . . . . . 18 ((𝐶 ∈ ω ∧ 𝑦 ∈ ω) → (𝐶 +𝑜 suc 𝑦) = suc (𝐶 +𝑜 𝑦))
2726ancoms 469 . . . . . . . . . . . . . . . . 17 ((𝑦 ∈ ω ∧ 𝐶 ∈ ω) → (𝐶 +𝑜 suc 𝑦) = suc (𝐶 +𝑜 𝑦))
2827sseq2d 3633 . . . . . . . . . . . . . . . 16 ((𝑦 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ suc (𝐶 +𝑜 𝑦)))
2925, 28syl5ibr 236 . . . . . . . . . . . . . . 15 ((𝑦 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦)))
3029ex 450 . . . . . . . . . . . . . 14 (𝑦 ∈ ω → (𝐶 ∈ ω → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
3130ad2antrr 762 . . . . . . . . . . . . 13 (((𝑦 ∈ ω ∧ suc 𝐴 ∈ ω) ∧ suc 𝐴𝑦) → (𝐶 ∈ ω → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
3231a2d 29 . . . . . . . . . . . 12 (((𝑦 ∈ ω ∧ suc 𝐴 ∈ ω) ∧ suc 𝐴𝑦) → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦)) → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
3311, 14, 17, 20, 22, 32findsg 7093 . . . . . . . . . . 11 (((𝐵 ∈ ω ∧ suc 𝐴 ∈ ω) ∧ suc 𝐴𝐵) → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
3433exp31 630 . . . . . . . . . 10 (𝐵 ∈ ω → (suc 𝐴 ∈ ω → (suc 𝐴𝐵 → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))))
358, 34syl5bi 232 . . . . . . . . 9 (𝐵 ∈ ω → (𝐴 ∈ ω → (suc 𝐴𝐵 → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))))
3635com4r 94 . . . . . . . 8 (𝐶 ∈ ω → (𝐵 ∈ ω → (𝐴 ∈ ω → (suc 𝐴𝐵 → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))))
3736imp31 448 . . . . . . 7 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → (suc 𝐴𝐵 → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
38 nnasuc 7686 . . . . . . . . . 10 ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) → (𝐶 +𝑜 suc 𝐴) = suc (𝐶 +𝑜 𝐴))
3938sseq1d 3632 . . . . . . . . 9 ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵) ↔ suc (𝐶 +𝑜 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
40 ovex 6678 . . . . . . . . . 10 (𝐶 +𝑜 𝐴) ∈ V
41 sucssel 5819 . . . . . . . . . 10 ((𝐶 +𝑜 𝐴) ∈ V → (suc (𝐶 +𝑜 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
4240, 41ax-mp 5 . . . . . . . . 9 (suc (𝐶 +𝑜 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
4339, 42syl6bi 243 . . . . . . . 8 ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
4443adantlr 751 . . . . . . 7 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
457, 37, 443syld 60 . . . . . 6 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → (𝐴𝐵 → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
4645imp 445 . . . . 5 ((((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) ∧ 𝐴𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
4746an32s 846 . . . 4 ((((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) ∧ 𝐴 ∈ ω) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
483, 47mpdan 702 . . 3 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
4948ex 450 . 2 ((𝐶 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴𝐵 → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
5049ancoms 469 1 ((𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴𝐵 → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384   = wceq 1483  wcel 1990  Vcvv 3200  wss 3574  Ord word 5722  suc csuc 5725  (class class class)co 6650  ωcom 7065   +𝑜 coa 7557
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1038  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-ral 2917  df-rex 2918  df-reu 2919  df-rab 2921  df-v 3202  df-sbc 3436  df-csb 3534  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-pss 3590  df-nul 3916  df-if 4087  df-pw 4160  df-sn 4178  df-pr 4180  df-tp 4182  df-op 4184  df-uni 4437  df-iun 4522  df-br 4654  df-opab 4713  df-mpt 4730  df-tr 4753  df-id 5024  df-eprel 5029  df-po 5035  df-so 5036  df-fr 5073  df-we 5075  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127  df-pred 5680  df-ord 5726  df-on 5727  df-lim 5728  df-suc 5729  df-iota 5851  df-fun 5890  df-fn 5891  df-f 5892  df-f1 5893  df-fo 5894  df-f1o 5895  df-fv 5896  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-om 7066  df-wrecs 7407  df-recs 7468  df-rdg 7506  df-oadd 7564
This theorem is referenced by:  nnaord  7699  nnmordi  7711  addclpi  9714  addnidpi  9723
  Copyright terms: Public domain W3C validator