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

Theorem somincom 6028
Description: Commutativity of minimum in a total order. (Contributed by Stefan O'Rear, 17-Jan-2015.)
Assertion
Ref Expression
somincom ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → if(𝐴𝑅𝐵, 𝐴, 𝐵) = if(𝐵𝑅𝐴, 𝐵, 𝐴))

Proof of Theorem somincom
StepHypRef Expression
1 so2nr 5520 . . . . 5 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → ¬ (𝐴𝑅𝐵𝐵𝑅𝐴))
2 nan 826 . . . . 5 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → ¬ (𝐴𝑅𝐵𝐵𝑅𝐴)) ↔ (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → ¬ 𝐵𝑅𝐴))
31, 2mpbi 229 . . . 4 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → ¬ 𝐵𝑅𝐴)
43iffalsed 4467 . . 3 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → if(𝐵𝑅𝐴, 𝐵, 𝐴) = 𝐴)
54eqcomd 2744 . 2 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → 𝐴 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
6 sotric 5522 . . . . 5 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → (𝐴𝑅𝐵 ↔ ¬ (𝐴 = 𝐵𝐵𝑅𝐴)))
76con2bid 354 . . . 4 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → ((𝐴 = 𝐵𝐵𝑅𝐴) ↔ ¬ 𝐴𝑅𝐵))
8 ifeq2 4461 . . . . . 6 (𝐴 = 𝐵 → if(𝐵𝑅𝐴, 𝐵, 𝐴) = if(𝐵𝑅𝐴, 𝐵, 𝐵))
9 ifid 4496 . . . . . 6 if(𝐵𝑅𝐴, 𝐵, 𝐵) = 𝐵
108, 9eqtr2di 2796 . . . . 5 (𝐴 = 𝐵𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
11 iftrue 4462 . . . . . 6 (𝐵𝑅𝐴 → if(𝐵𝑅𝐴, 𝐵, 𝐴) = 𝐵)
1211eqcomd 2744 . . . . 5 (𝐵𝑅𝐴𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
1310, 12jaoi 853 . . . 4 ((𝐴 = 𝐵𝐵𝑅𝐴) → 𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
147, 13syl6bir 253 . . 3 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → (¬ 𝐴𝑅𝐵𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴)))
1514imp 406 . 2 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ ¬ 𝐴𝑅𝐵) → 𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
165, 15ifeqda 4492 1 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → if(𝐴𝑅𝐵, 𝐴, 𝐵) = if(𝐵𝑅𝐴, 𝐵, 𝐴))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395  wo 843   = wceq 1539  wcel 2108  ifcif 4456   class class class wbr 5070   Or wor 5493
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-br 5071  df-po 5494  df-so 5495
This theorem is referenced by:  somin2  6029
  Copyright terms: Public domain W3C validator