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

Theorem ifbi 4057
Description: Equivalence theorem for conditional operators. (Contributed by Raph Levien, 15-Jan-2004.)
Assertion
Ref Expression
ifbi ((𝜑𝜓) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))

Proof of Theorem ifbi
StepHypRef Expression
1 dfbi3 933 . 2 ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)))
2 iftrue 4042 . . . 4 (𝜑 → if(𝜑, 𝐴, 𝐵) = 𝐴)
3 iftrue 4042 . . . . 5 (𝜓 → if(𝜓, 𝐴, 𝐵) = 𝐴)
43eqcomd 2616 . . . 4 (𝜓𝐴 = if(𝜓, 𝐴, 𝐵))
52, 4sylan9eq 2664 . . 3 ((𝜑𝜓) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
6 iffalse 4045 . . . 4 𝜑 → if(𝜑, 𝐴, 𝐵) = 𝐵)
7 iffalse 4045 . . . . 5 𝜓 → if(𝜓, 𝐴, 𝐵) = 𝐵)
87eqcomd 2616 . . . 4 𝜓𝐵 = if(𝜓, 𝐴, 𝐵))
96, 8sylan9eq 2664 . . 3 ((¬ 𝜑 ∧ ¬ 𝜓) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
105, 9jaoi 393 . 2 (((𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
111, 10sylbi 206 1 ((𝜑𝜓) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wo 382  wa 383   = wceq 1475  ifcif 4036
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-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-if 4037
This theorem is referenced by:  ifbid  4058  ifbieq2i  4060  gsummoncoe1  19495  scmatscm  20138  mulmarep1gsum1  20198  madugsum  20268  mp2pm2mplem4  20433  dchrhash  24796  lgsdi  24859  rpvmasum2  25001  bj-projval  32177  matunitlindflem2  32576  itg2gt0cn  32635  elimhyps  33265  dedths  33266
  Copyright terms: Public domain W3C validator