MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  ifeq1 Structured version   Unicode version

Theorem ifeq1 3735
Description: Equality theorem for conditional operator. (Contributed by NM, 1-Sep-2004.) (Revised by Mario Carneiro, 8-Sep-2013.)
Assertion
Ref Expression
ifeq1  |-  ( A  =  B  ->  if ( ph ,  A ,  C )  =  if ( ph ,  B ,  C ) )

Proof of Theorem ifeq1
Dummy variable  x is distinct from all other variables.
StepHypRef Expression
1 rabeq 2942 . . 3  |-  ( A  =  B  ->  { x  e.  A  |  ph }  =  { x  e.  B  |  ph } )
21uneq1d 3492 . 2  |-  ( A  =  B  ->  ( { x  e.  A  |  ph }  u.  {
x  e.  C  |  -.  ph } )  =  ( { x  e.  B  |  ph }  u.  { x  e.  C  |  -.  ph } ) )
3 dfif6 3734 . 2  |-  if (
ph ,  A ,  C )  =  ( { x  e.  A  |  ph }  u.  {
x  e.  C  |  -.  ph } )
4 dfif6 3734 . 2  |-  if (
ph ,  B ,  C )  =  ( { x  e.  B  |  ph }  u.  {
x  e.  C  |  -.  ph } )
52, 3, 43eqtr4g 2492 1  |-  ( A  =  B  ->  if ( ph ,  A ,  C )  =  if ( ph ,  B ,  C ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    = wceq 1652   {crab 2701    u. cun 3310   ifcif 3731
This theorem is referenced by:  ifeq12  3744  ifeq1d  3745  ifbieq12i  3752  ifexg  3790  rdgeq2  6662  dfoi  7472  wemaplem2  7508  cantnflem1  7637  sumeq2w  12478  sumeq2ii  12479  mplcoe3  16521  ellimc  19752  ply1nzb  20037  dchrvmasumiflem1  21187  prodeq2w  25230  prodeq2ii  25231  dfrdg2  25415  dfafv2  27963
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-rab 2706  df-v 2950  df-un 3317  df-if 3732
  Copyright terms: Public domain W3C validator