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

Theorem nnaordi 7585
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 6967 . . . . . 6 ((𝐴𝐵𝐵 ∈ ω) → 𝐴 ∈ ω)
21ancoms 468 . . . . 5 ((𝐵 ∈ ω ∧ 𝐴𝐵) → 𝐴 ∈ ω)
32adantll 746 . . . 4 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) → 𝐴 ∈ ω)
4 nnord 6965 . . . . . . . . 9 (𝐵 ∈ ω → Ord 𝐵)
5 ordsucss 6910 . . . . . . . . 9 (Ord 𝐵 → (𝐴𝐵 → suc 𝐴𝐵))
64, 5syl 17 . . . . . . . 8 (𝐵 ∈ ω → (𝐴𝐵 → suc 𝐴𝐵))
76ad2antlr 759 . . . . . . 7 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → (𝐴𝐵 → suc 𝐴𝐵))
8 peano2b 6973 . . . . . . . . . 10 (𝐴 ∈ ω ↔ suc 𝐴 ∈ ω)
9 oveq2 6557 . . . . . . . . . . . . . 14 (𝑥 = suc 𝐴 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 suc 𝐴))
109sseq2d 3596 . . . . . . . . . . . . 13 (𝑥 = suc 𝐴 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴)))
1110imbi2d 329 . . . . . . . . . . . 12 (𝑥 = suc 𝐴 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴))))
12 oveq2 6557 . . . . . . . . . . . . . 14 (𝑥 = 𝑦 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 𝑦))
1312sseq2d 3596 . . . . . . . . . . . . 13 (𝑥 = 𝑦 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦)))
1413imbi2d 329 . . . . . . . . . . . 12 (𝑥 = 𝑦 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦))))
15 oveq2 6557 . . . . . . . . . . . . . 14 (𝑥 = suc 𝑦 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 suc 𝑦))
1615sseq2d 3596 . . . . . . . . . . . . 13 (𝑥 = suc 𝑦 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦)))
1716imbi2d 329 . . . . . . . . . . . 12 (𝑥 = suc 𝑦 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
18 oveq2 6557 . . . . . . . . . . . . . 14 (𝑥 = 𝐵 → (𝐶 +𝑜 𝑥) = (𝐶 +𝑜 𝐵))
1918sseq2d 3596 . . . . . . . . . . . . 13 (𝑥 = 𝐵 → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
2019imbi2d 329 . . . . . . . . . . . 12 (𝑥 = 𝐵 → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑥)) ↔ (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵))))
21 ssid 3587 . . . . . . . . . . . . 13 (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴)
22212a1i 12 . . . . . . . . . . . 12 (suc 𝐴 ∈ ω → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝐴)))
23 sssucid 5719 . . . . . . . . . . . . . . . . 17 (𝐶 +𝑜 𝑦) ⊆ suc (𝐶 +𝑜 𝑦)
24 sstr2 3575 . . . . . . . . . . . . . . . . 17 ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → ((𝐶 +𝑜 𝑦) ⊆ suc (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ suc (𝐶 +𝑜 𝑦)))
2523, 24mpi 20 . . . . . . . . . . . . . . . 16 ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ suc (𝐶 +𝑜 𝑦))
26 nnasuc 7573 . . . . . . . . . . . . . . . . . 18 ((𝐶 ∈ ω ∧ 𝑦 ∈ ω) → (𝐶 +𝑜 suc 𝑦) = suc (𝐶 +𝑜 𝑦))
2726ancoms 468 . . . . . . . . . . . . . . . . 17 ((𝑦 ∈ ω ∧ 𝐶 ∈ ω) → (𝐶 +𝑜 suc 𝑦) = suc (𝐶 +𝑜 𝑦))
2827sseq2d 3596 . . . . . . . . . . . . . . . 16 ((𝑦 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦) ↔ (𝐶 +𝑜 suc 𝐴) ⊆ suc (𝐶 +𝑜 𝑦)))
2925, 28syl5ibr 235 . . . . . . . . . . . . . . 15 ((𝑦 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦)))
3029ex 449 . . . . . . . . . . . . . 14 (𝑦 ∈ ω → (𝐶 ∈ ω → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
3130ad2antrr 758 . . . . . . . . . . . . 13 (((𝑦 ∈ ω ∧ suc 𝐴 ∈ ω) ∧ suc 𝐴𝑦) → (𝐶 ∈ ω → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦) → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
3231a2d 29 . . . . . . . . . . . 12 (((𝑦 ∈ ω ∧ suc 𝐴 ∈ ω) ∧ suc 𝐴𝑦) → ((𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝑦)) → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 suc 𝑦))))
3311, 14, 17, 20, 22, 32findsg 6985 . . . . . . . . . . 11 (((𝐵 ∈ ω ∧ suc 𝐴 ∈ ω) ∧ suc 𝐴𝐵) → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
3433exp31 628 . . . . . . . . . 10 (𝐵 ∈ ω → (suc 𝐴 ∈ ω → (suc 𝐴𝐵 → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))))
358, 34syl5bi 231 . . . . . . . . 9 (𝐵 ∈ ω → (𝐴 ∈ ω → (suc 𝐴𝐵 → (𝐶 ∈ ω → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))))
3635com4r 92 . . . . . . . 8 (𝐶 ∈ ω → (𝐵 ∈ ω → (𝐴 ∈ ω → (suc 𝐴𝐵 → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))))
3736imp31 447 . . . . . . 7 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → (suc 𝐴𝐵 → (𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
38 nnasuc 7573 . . . . . . . . . 10 ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) → (𝐶 +𝑜 suc 𝐴) = suc (𝐶 +𝑜 𝐴))
3938sseq1d 3595 . . . . . . . . 9 ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵) ↔ suc (𝐶 +𝑜 𝐴) ⊆ (𝐶 +𝑜 𝐵)))
40 ovex 6577 . . . . . . . . . 10 (𝐶 +𝑜 𝐴) ∈ V
41 sucssel 5736 . . . . . . . . . 10 ((𝐶 +𝑜 𝐴) ∈ V → (suc (𝐶 +𝑜 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
4240, 41ax-mp 5 . . . . . . . . 9 (suc (𝐶 +𝑜 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
4339, 42syl6bi 242 . . . . . . . 8 ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
4443adantlr 747 . . . . . . 7 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → ((𝐶 +𝑜 suc 𝐴) ⊆ (𝐶 +𝑜 𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
457, 37, 443syld 58 . . . . . 6 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) → (𝐴𝐵 → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
4645imp 444 . . . . 5 ((((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 ∈ ω) ∧ 𝐴𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
4746an32s 842 . . . 4 ((((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) ∧ 𝐴 ∈ ω) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
483, 47mpdan 699 . . 3 (((𝐶 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵))
4948ex 449 . 2 ((𝐶 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴𝐵 → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
5049ancoms 468 1 ((𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴𝐵 → (𝐶 +𝑜 𝐴) ∈ (𝐶 +𝑜 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383   = wceq 1475  wcel 1977  Vcvv 3173  wss 3540  Ord word 5639  suc csuc 5642  (class class class)co 6549  ωcom 6957   +𝑜 coa 7444
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3or 1032  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-reu 2903  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-pss 3556  df-nul 3875  df-if 4037  df-pw 4110  df-sn 4126  df-pr 4128  df-tp 4130  df-op 4132  df-uni 4373  df-iun 4457  df-br 4584  df-opab 4644  df-mpt 4645  df-tr 4681  df-eprel 4949  df-id 4953  df-po 4959  df-so 4960  df-fr 4997  df-we 4999  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-pred 5597  df-ord 5643  df-on 5644  df-lim 5645  df-suc 5646  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811  df-fv 5812  df-ov 6552  df-oprab 6553  df-mpt2 6554  df-om 6958  df-wrecs 7294  df-recs 7355  df-rdg 7393  df-oadd 7451
This theorem is referenced by:  nnaord  7586  nnmordi  7598  addclpi  9593  addnidpi  9602
  Copyright terms: Public domain W3C validator