MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  ifnot Structured version   Visualization version   GIF version

Theorem ifnot 4538
Description: Negating the first argument swaps the last two arguments of a conditional operator. (Contributed by NM, 21-Jun-2007.)
Assertion
Ref Expression
ifnot if(¬ 𝜑, 𝐴, 𝐵) = if(𝜑, 𝐵, 𝐴)

Proof of Theorem ifnot
StepHypRef Expression
1 notnot 143 . . . 4 (𝜑 → ¬ ¬ 𝜑)
21iffalsed 4496 . . 3 (𝜑 → if(¬ 𝜑, 𝐴, 𝐵) = 𝐵)
3 iftrue 4491 . . 3 (𝜑 → if(𝜑, 𝐵, 𝐴) = 𝐵)
42, 3eqtr4d 2801 . 2 (𝜑 → if(¬ 𝜑, 𝐴, 𝐵) = if(𝜑, 𝐵, 𝐴))
5 iftrue 4491 . . 3 (¬ 𝜑 → if(¬ 𝜑, 𝐴, 𝐵) = 𝐴)
6 iffalse 4494 . . 3 (¬ 𝜑 → if(𝜑, 𝐵, 𝐴) = 𝐴)
75, 6eqtr4d 2801 . 2 (¬ 𝜑 → if(¬ 𝜑, 𝐴, 𝐵) = if(𝜑, 𝐵, 𝐴))
84, 7pm2.61i 184 1 if(¬ 𝜑, 𝐴, 𝐵) = if(𝜑, 𝐵, 𝐴)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   = wceq 1570  ifcif 4485
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ex 1813  df-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-if 4486
This theorem is used by:  suppsnop  8226  2resupmax  13348  sgnneg  15285  sadadd2lem2  16652  maducoeval2  22988  tmsxpsval2  24891  itg2uba  26097  lgsneg  27681  lgsdilem  27684  bj-xpimasn  38059  itgaddnclem2  38802  ftc1anclem5  38820
  Copyright terms: Public domain W3C validator