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

Theorem somincom 6039
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 5529 . . . . 5 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → ¬ (𝐴𝑅𝐵𝐵𝑅𝐴))
2 nan 827 . . . . 5 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → ¬ (𝐴𝑅𝐵𝐵𝑅𝐴)) ↔ (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → ¬ 𝐵𝑅𝐴))
31, 2mpbi 229 . . . 4 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → ¬ 𝐵𝑅𝐴)
43iffalsed 4470 . . 3 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → if(𝐵𝑅𝐴, 𝐵, 𝐴) = 𝐴)
54eqcomd 2744 . 2 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ 𝐴𝑅𝐵) → 𝐴 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
6 sotric 5531 . . . . 5 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → (𝐴𝑅𝐵 ↔ ¬ (𝐴 = 𝐵𝐵𝑅𝐴)))
76con2bid 355 . . . 4 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → ((𝐴 = 𝐵𝐵𝑅𝐴) ↔ ¬ 𝐴𝑅𝐵))
8 ifeq2 4464 . . . . . 6 (𝐴 = 𝐵 → if(𝐵𝑅𝐴, 𝐵, 𝐴) = if(𝐵𝑅𝐴, 𝐵, 𝐵))
9 ifid 4499 . . . . . 6 if(𝐵𝑅𝐴, 𝐵, 𝐵) = 𝐵
108, 9eqtr2di 2795 . . . . 5 (𝐴 = 𝐵𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
11 iftrue 4465 . . . . . 6 (𝐵𝑅𝐴 → if(𝐵𝑅𝐴, 𝐵, 𝐴) = 𝐵)
1211eqcomd 2744 . . . . 5 (𝐵𝑅𝐴𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
1310, 12jaoi 854 . . . 4 ((𝐴 = 𝐵𝐵𝑅𝐴) → 𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
147, 13syl6bir 253 . . 3 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → (¬ 𝐴𝑅𝐵𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴)))
1514imp 407 . 2 (((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) ∧ ¬ 𝐴𝑅𝐵) → 𝐵 = if(𝐵𝑅𝐴, 𝐵, 𝐴))
165, 15ifeqda 4495 1 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → if(𝐴𝑅𝐵, 𝐴, 𝐵) = if(𝐵𝑅𝐴, 𝐵, 𝐴))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396  wo 844   = wceq 1539  wcel 2106  ifcif 4459   class class class wbr 5074   Or wor 5502
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-ral 3069  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-br 5075  df-po 5503  df-so 5504
This theorem is referenced by:  somin2  6040
  Copyright terms: Public domain W3C validator