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

Theorem nnaord 8223
 Description: Ordering property of addition. Proposition 8.4 of [TakeutiZaring] p. 58, limited to natural numbers, and its converse. (Contributed by NM, 7-Mar-1996.) (Revised by Mario Carneiro, 15-Nov-2014.)
Assertion
Ref Expression
nnaord ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴𝐵 ↔ (𝐶 +o 𝐴) ∈ (𝐶 +o 𝐵)))

Proof of Theorem nnaord
StepHypRef Expression
1 nnaordi 8222 . . 3 ((𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴𝐵 → (𝐶 +o 𝐴) ∈ (𝐶 +o 𝐵)))
213adant1 1126 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴𝐵 → (𝐶 +o 𝐴) ∈ (𝐶 +o 𝐵)))
3 oveq2 7141 . . . . . 6 (𝐴 = 𝐵 → (𝐶 +o 𝐴) = (𝐶 +o 𝐵))
43a1i 11 . . . . 5 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴 = 𝐵 → (𝐶 +o 𝐴) = (𝐶 +o 𝐵)))
5 nnaordi 8222 . . . . . 6 ((𝐴 ∈ ω ∧ 𝐶 ∈ ω) → (𝐵𝐴 → (𝐶 +o 𝐵) ∈ (𝐶 +o 𝐴)))
653adant2 1127 . . . . 5 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐵𝐴 → (𝐶 +o 𝐵) ∈ (𝐶 +o 𝐴)))
74, 6orim12d 961 . . . 4 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐴 = 𝐵𝐵𝐴) → ((𝐶 +o 𝐴) = (𝐶 +o 𝐵) ∨ (𝐶 +o 𝐵) ∈ (𝐶 +o 𝐴))))
87con3d 155 . . 3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (¬ ((𝐶 +o 𝐴) = (𝐶 +o 𝐵) ∨ (𝐶 +o 𝐵) ∈ (𝐶 +o 𝐴)) → ¬ (𝐴 = 𝐵𝐵𝐴)))
9 df-3an 1085 . . . . . 6 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) ↔ ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐶 ∈ ω))
10 ancom 463 . . . . . 6 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐶 ∈ ω) ↔ (𝐶 ∈ ω ∧ (𝐴 ∈ ω ∧ 𝐵 ∈ ω)))
11 anandi 674 . . . . . 6 ((𝐶 ∈ ω ∧ (𝐴 ∈ ω ∧ 𝐵 ∈ ω)) ↔ ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) ∧ (𝐶 ∈ ω ∧ 𝐵 ∈ ω)))
129, 10, 113bitri 299 . . . . 5 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) ↔ ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) ∧ (𝐶 ∈ ω ∧ 𝐵 ∈ ω)))
13 nnacl 8215 . . . . . . 7 ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) → (𝐶 +o 𝐴) ∈ ω)
14 nnord 7566 . . . . . . 7 ((𝐶 +o 𝐴) ∈ ω → Ord (𝐶 +o 𝐴))
1513, 14syl 17 . . . . . 6 ((𝐶 ∈ ω ∧ 𝐴 ∈ ω) → Ord (𝐶 +o 𝐴))
16 nnacl 8215 . . . . . . 7 ((𝐶 ∈ ω ∧ 𝐵 ∈ ω) → (𝐶 +o 𝐵) ∈ ω)
17 nnord 7566 . . . . . . 7 ((𝐶 +o 𝐵) ∈ ω → Ord (𝐶 +o 𝐵))
1816, 17syl 17 . . . . . 6 ((𝐶 ∈ ω ∧ 𝐵 ∈ ω) → Ord (𝐶 +o 𝐵))
1915, 18anim12i 614 . . . . 5 (((𝐶 ∈ ω ∧ 𝐴 ∈ ω) ∧ (𝐶 ∈ ω ∧ 𝐵 ∈ ω)) → (Ord (𝐶 +o 𝐴) ∧ Ord (𝐶 +o 𝐵)))
2012, 19sylbi 219 . . . 4 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (Ord (𝐶 +o 𝐴) ∧ Ord (𝐶 +o 𝐵)))
21 ordtri2 6202 . . . 4 ((Ord (𝐶 +o 𝐴) ∧ Ord (𝐶 +o 𝐵)) → ((𝐶 +o 𝐴) ∈ (𝐶 +o 𝐵) ↔ ¬ ((𝐶 +o 𝐴) = (𝐶 +o 𝐵) ∨ (𝐶 +o 𝐵) ∈ (𝐶 +o 𝐴))))
2220, 21syl 17 . . 3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐶 +o 𝐴) ∈ (𝐶 +o 𝐵) ↔ ¬ ((𝐶 +o 𝐴) = (𝐶 +o 𝐵) ∨ (𝐶 +o 𝐵) ∈ (𝐶 +o 𝐴))))
23 nnord 7566 . . . . . 6 (𝐴 ∈ ω → Ord 𝐴)
24 nnord 7566 . . . . . 6 (𝐵 ∈ ω → Ord 𝐵)
2523, 24anim12i 614 . . . . 5 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (Ord 𝐴 ∧ Ord 𝐵))
26253adant3 1128 . . . 4 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (Ord 𝐴 ∧ Ord 𝐵))
27 ordtri2 6202 . . . 4 ((Ord 𝐴 ∧ Ord 𝐵) → (𝐴𝐵 ↔ ¬ (𝐴 = 𝐵𝐵𝐴)))
2826, 27syl 17 . . 3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴𝐵 ↔ ¬ (𝐴 = 𝐵𝐵𝐴)))
298, 22, 283imtr4d 296 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → ((𝐶 +o 𝐴) ∈ (𝐶 +o 𝐵) → 𝐴𝐵))
302, 29impbid 214 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω ∧ 𝐶 ∈ ω) → (𝐴𝐵 ↔ (𝐶 +o 𝐴) ∈ (𝐶 +o 𝐵)))
 Colors of variables: wff setvar class Syntax hints:  ¬ wn 3   → wi 4   ↔ wb 208   ∧ wa 398   ∨ wo 843   ∧ w3a 1083   = wceq 1537   ∈ wcel 2114  Ord word 6166  (class class class)co 7133  ωcom 7558   +o coa 8077 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2792  ax-sep 5179  ax-nul 5186  ax-pow 5242  ax-pr 5306  ax-un 7439 This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2653  df-clab 2799  df-cleq 2813  df-clel 2891  df-nfc 2959  df-ne 3007  df-ral 3130  df-rex 3131  df-reu 3132  df-rab 3134  df-v 3475  df-sbc 3753  df-csb 3861  df-dif 3916  df-un 3918  df-in 3920  df-ss 3930  df-pss 3932  df-nul 4270  df-if 4444  df-pw 4517  df-sn 4544  df-pr 4546  df-tp 4548  df-op 4550  df-uni 4815  df-iun 4897  df-br 5043  df-opab 5105  df-mpt 5123  df-tr 5149  df-id 5436  df-eprel 5441  df-po 5450  df-so 5451  df-fr 5490  df-we 5492  df-xp 5537  df-rel 5538  df-cnv 5539  df-co 5540  df-dm 5541  df-rn 5542  df-res 5543  df-ima 5544  df-pred 6124  df-ord 6170  df-on 6171  df-lim 6172  df-suc 6173  df-iota 6290  df-fun 6333  df-fn 6334  df-f 6335  df-f1 6336  df-fo 6337  df-f1o 6338  df-fv 6339  df-ov 7136  df-oprab 7137  df-mpo 7138  df-om 7559  df-wrecs 7925  df-recs 7986  df-rdg 8024  df-oadd 8084 This theorem is referenced by:  nnaordr  8224  nnaword  8231  nnaordex  8242  nnneo  8256  unfilem1  8760  ltapi  10303  1lt2pi  10305
 Copyright terms: Public domain W3C validator