Description: Definition of the conditional operator for classes. The expression if ( ph , A , B ) is read "if ph then A else B ". See iftrue and iffalse for its values. In the 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".
An important use for us is in conjunction with the weak deduction theorem, which is described in the next section, beginning at dedth . (Contributed by NM, 15-May-1999)
Ref | Expression | ||
---|---|---|---|
Assertion | df-if |
Step | Hyp | Ref | Expression |
---|---|---|---|
0 | wph | ||
1 | cA | ||
2 | cB | ||
3 | 0 1 2 | cif | |
4 | vx | ||
5 | 4 | cv | |
6 | 5 1 | wcel | |
7 | 6 0 | wa | |
8 | 5 2 | wcel | |
9 | 0 | wn | |
10 | 8 9 | wa | |
11 | 7 10 | wo | |
12 | 11 4 | cab | |
13 | 3 12 | wceq |