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

Theorem somincom 6136
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 5615 . . . . 5 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → ¬ (𝐴𝑅𝐵𝐵𝑅𝐴))
2 nan 829 . . . . 5 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → ¬ (𝐴𝑅𝐵𝐵𝑅𝐴)) ↔ (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → ¬ 𝐵𝑅𝐴))
31, 2mpbi 229 . . . 4 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → ¬ 𝐵𝑅𝐴)
43iffalsed 4540 . . 3 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → if(𝐵𝑅𝐴, 𝐵, 𝐴) = 𝐴)
54eqcomd 2739 . 2 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → 𝐴 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
6 sotric 5617 . . . . 5 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → (𝐴𝑅𝐵 ↔ ¬ (𝐴 = 𝐵𝐵𝑅𝐴)))
76con2bid 355 . . . 4 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → ((𝐴 = 𝐵𝐵𝑅𝐴) ↔ ¬ 𝐴𝑅𝐵))
8 ifeq2 4534 . . . . . 6 (𝐴 = 𝐵 → if(𝐵𝑅𝐴, 𝐵, 𝐴) = if(𝐵𝑅𝐴, 𝐵, 𝐵))
9 ifid 4569 . . . . . 6 if(𝐵𝑅𝐴, 𝐵, 𝐵) = 𝐵
108, 9eqtr2di 2790 . . . . 5 (𝐴 = 𝐵𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
11 iftrue 4535 . . . . . 6 (𝐵𝑅𝐴 → if(𝐵𝑅𝐴, 𝐵, 𝐴) = 𝐵)
1211eqcomd 2739 . . . . 5 (𝐵𝑅𝐴𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
1310, 12jaoi 856 . . . 4 ((𝐴 = 𝐵𝐵𝑅𝐴) → 𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
147, 13syl6bir 254 . . 3 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → (¬ 𝐴𝑅𝐵𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴)))
1514imp 408 . 2 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ ¬ 𝐴𝑅𝐵) → 𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
165, 15ifeqda 4565 1 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → if(𝐴𝑅𝐵, 𝐴, 𝐵) = if(𝐵𝑅𝐴, 𝐵, 𝐴))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 397  wo 846   = wceq 1542  wcel 2107  ifcif 4529   class class class wbr 5149   Or wor 5588
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-ext 2704
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-sb 2069  df-clab 2711  df-cleq 2725  df-clel 2811  df-ral 3063  df-rab 3434  df-v 3477  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-nul 4324  df-if 4530  df-sn 4630  df-pr 4632  df-op 4636  df-br 5150  df-po 5589  df-so 5590
This theorem is referenced by:  somin2  6137
  Copyright terms: Public domain W3C validator