| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > ifnot | Structured version Visualization version GIF version | ||
| Description: Negating the first argument swaps the last two arguments of a conditional operator. (Contributed by NM, 21-Jun-2007.) |
| Ref | Expression |
|---|---|
| ifnot | ⊢ if(¬ 𝜑, 𝐴, 𝐵) = if(𝜑, 𝐵, 𝐴) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | notnot 143 | . . . 4 ⊢ (𝜑 → ¬ ¬ 𝜑) | |
| 2 | 1 | iffalsed 4503 | . . 3 ⊢ (𝜑 → if(¬ 𝜑, 𝐴, 𝐵) = 𝐵) |
| 3 | iftrue 4498 | . . 3 ⊢ (𝜑 → if(𝜑, 𝐵, 𝐴) = 𝐵) | |
| 4 | 2, 3 | eqtr4d 2804 | . 2 ⊢ (𝜑 → if(¬ 𝜑, 𝐴, 𝐵) = if(𝜑, 𝐵, 𝐴)) |
| 5 | iftrue 4498 | . . 3 ⊢ (¬ 𝜑 → if(¬ 𝜑, 𝐴, 𝐵) = 𝐴) | |
| 6 | iffalse 4501 | . . 3 ⊢ (¬ 𝜑 → if(𝜑, 𝐵, 𝐴) = 𝐴) | |
| 7 | 5, 6 | eqtr4d 2804 | . 2 ⊢ (¬ 𝜑 → if(¬ 𝜑, 𝐴, 𝐵) = if(𝜑, 𝐵, 𝐴)) |
| 8 | 4, 7 | pm2.61i 184 | 1 ⊢ if(¬ 𝜑, 𝐴, 𝐵) = if(𝜑, 𝐵, 𝐴) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: ¬ wn 3 = wceq 1570 ifcif 4492 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1828 ax-4 1842 ax-5 1943 ax-6 2000 ax-7 2041 ax-8 2148 ax-9 2156 ax-ext 2738 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-ex 1813 df-sb 2100 df-clab 2745 df-cleq 2758 df-clel 2841 df-if 4493 |
| This theorem is used by: suppsnop 8183 2resupmax 13232 sgnneg 15163 sadadd2lem2 16533 maducoeval2 22834 tmsxpsval2 24733 itg2uba 25939 lgsneg 27522 lgsdilem 27525 bj-xpimasn 37632 itgaddnclem2 38371 ftc1anclem5 38389 |
| Copyright terms: Public domain | W3C validator |