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

Theorem ifbi 4479
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 1050 . 2 ((𝜑𝜓) ↔ ((𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)))
2 iftrue 4462 . . . 4 (𝜑 → if(𝜑, 𝐴, 𝐵) = 𝐴)
3 iftrue 4462 . . . . 5 (𝜓 → if(𝜓, 𝐴, 𝐵) = 𝐴)
43eqcomd 2741 . . . 4 (𝜓𝐴 = if(𝜓, 𝐴, 𝐵))
52, 4sylan9eq 2790 . . 3 ((𝜑𝜓) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
6 iffalse 4465 . . . 4 𝜑 → if(𝜑, 𝐴, 𝐵) = 𝐵)
7 iffalse 4465 . . . . 5 𝜓 → if(𝜓, 𝐴, 𝐵) = 𝐵)
87eqcomd 2741 . . . 4 𝜓𝐵 = if(𝜓, 𝐴, 𝐵))
96, 8sylan9eq 2790 . . 3 ((¬ 𝜑 ∧ ¬ 𝜓) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
105, 9jaoi 858 . 2 (((𝜑𝜓) ∨ (¬ 𝜑 ∧ ¬ 𝜓)) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
111, 10sylbi 217 1 ((𝜑𝜓) → if(𝜑, 𝐴, 𝐵) = if(𝜓, 𝐴, 𝐵))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 206  wa 395  wo 848   = wceq 1542  ifcif 4456
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1912  ax-6 1969  ax-7 2010  ax-8 2116  ax-9 2124  ax-ext 2707
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 849  df-ex 1782  df-sb 2069  df-clab 2714  df-cleq 2727  df-clel 2810  df-if 4457
This theorem is referenced by:  ifbid  4480  ifbieq2i  4482  prodeq1i  15870  psdmvr  22124  gsummoncoe1  22261  scmatscm  22466  mulmarep1gsum1  22526  madugsum  22596  mp2pm2mplem4  22762  dchrhash  27222  lgsdi  27285  rpvmasum2  27463  ifnebib  32607  itgeq12i  36376  bj-projval  37291  matunitlindflem2  37926  itg2gt0cn  37984  dedths  39396  dfafv2  47568
  Copyright terms: Public domain W3C validator