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

Theorem dfif2 3743
Description: An alternate definition of the conditional operator df-if 3742 with one fewer connectives (but probably less intuitive to understand). (Contributed by NM, 30-Jan-2006.)
Assertion
Ref Expression
dfif2  |-  if (
ph ,  A ,  B )  =  {
x  |  ( ( x  e.  B  ->  ph )  ->  ( x  e.  A  /\  ph ) ) }
Distinct variable groups:    ph, x    x, A    x, B

Proof of Theorem dfif2
StepHypRef Expression
1 df-if 3742 . 2  |-  if (
ph ,  A ,  B )  =  {
x  |  ( ( x  e.  A  /\  ph )  \/  ( x  e.  B  /\  -.  ph ) ) }
2 df-or 361 . . . 4  |-  ( ( ( x  e.  B  /\  -.  ph )  \/  ( x  e.  A  /\  ph ) )  <->  ( -.  ( x  e.  B  /\  -.  ph )  -> 
( x  e.  A  /\  ph ) ) )
3 orcom 378 . . . 4  |-  ( ( ( x  e.  A  /\  ph )  \/  (
x  e.  B  /\  -.  ph ) )  <->  ( (
x  e.  B  /\  -.  ph )  \/  (
x  e.  A  /\  ph ) ) )
4 iman 415 . . . . 5  |-  ( ( x  e.  B  ->  ph )  <->  -.  ( x  e.  B  /\  -.  ph ) )
54imbi1i 317 . . . 4  |-  ( ( ( x  e.  B  ->  ph )  ->  (
x  e.  A  /\  ph ) )  <->  ( -.  ( x  e.  B  /\  -.  ph )  -> 
( x  e.  A  /\  ph ) ) )
62, 3, 53bitr4i 270 . . 3  |-  ( ( ( x  e.  A  /\  ph )  \/  (
x  e.  B  /\  -.  ph ) )  <->  ( (
x  e.  B  ->  ph )  ->  ( x  e.  A  /\  ph ) ) )
76abbii 2550 . 2  |-  { x  |  ( ( x  e.  A  /\  ph )  \/  ( x  e.  B  /\  -.  ph ) ) }  =  { x  |  (
( x  e.  B  ->  ph )  ->  (
x  e.  A  /\  ph ) ) }
81, 7eqtri 2458 1  |-  if (
ph ,  A ,  B )  =  {
x  |  ( ( x  e.  B  ->  ph )  ->  ( x  e.  A  /\  ph ) ) }
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    \/ wo 359    /\ wa 360    = wceq 1653    e. wcel 1726   {cab 2424   ifcif 3741
This theorem is referenced by:  iftrue  3747  nfifd  3764
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2419
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-clab 2425  df-cleq 2431  df-if 3742
  Copyright terms: Public domain W3C validator