ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  df-if Unicode version

Definition df-if 3527
Description: Define the conditional operator. Read  if ( ph ,  A ,  B ) as "if  ph then  A else  B". See iftrue 3531 and iffalse 3534 for its values. In mathematical literature, this operator is rarely defined formally but is implicit in informal definitions such as "let f(x)=0 if x=0 and 1/x otherwise."

In the absence of excluded middle, this will tend to be useful where  ph is decidable (in the sense of df-dc 830). (Contributed by NM, 15-May-1999.)

Assertion
Ref Expression
df-if  |-  if (
ph ,  A ,  B )  =  {
x  |  ( ( x  e.  A  /\  ph )  \/  ( x  e.  B  /\  -.  ph ) ) }
Distinct variable groups:    ph, x    x, A    x, B

Detailed syntax breakdown of Definition df-if
StepHypRef Expression
1 wph . . 3  wff  ph
2 cA . . 3  class  A
3 cB . . 3  class  B
41, 2, 3cif 3526 . 2  class  if (
ph ,  A ,  B )
5 vx . . . . . . 7  setvar  x
65cv 1347 . . . . . 6  class  x
76, 2wcel 2141 . . . . 5  wff  x  e.  A
87, 1wa 103 . . . 4  wff  ( x  e.  A  /\  ph )
96, 3wcel 2141 . . . . 5  wff  x  e.  B
101wn 3 . . . . 5  wff  -.  ph
119, 10wa 103 . . . 4  wff  ( x  e.  B  /\  -.  ph )
128, 11wo 703 . . 3  wff  ( ( x  e.  A  /\  ph )  \/  ( x  e.  B  /\  -.  ph ) )
1312, 5cab 2156 . 2  class  { x  |  ( ( x  e.  A  /\  ph )  \/  ( x  e.  B  /\  -.  ph ) ) }
144, 13wceq 1348 1  wff  if (
ph ,  A ,  B )  =  {
x  |  ( ( x  e.  A  /\  ph )  \/  ( x  e.  B  /\  -.  ph ) ) }
Colors of variables: wff set class
This definition is referenced by:  dfif6  3528  iftrue  3531  iffalse  3534  ifbi  3546  nfifd  3553  ifmdc  3565  if0ab  13840
  Copyright terms: Public domain W3C validator