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

Theorem ifnot 4540
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 4498 . . 3 (𝜑 → if(¬ 𝜑, 𝐴, 𝐵) = 𝐵)
3 iftrue 4493 . . 3 (𝜑 → if(𝜑, 𝐵, 𝐴) = 𝐵)
42, 3eqtr4d 2807 . 2 (𝜑 → if(¬ 𝜑, 𝐴, 𝐵) = if(𝜑, 𝐵, 𝐴))
5 iftrue 4493 . . 3 (¬ 𝜑 → if(¬ 𝜑, 𝐴, 𝐵) = 𝐴)
6 iffalse 4496 . . 3 (¬ 𝜑 → if(𝜑, 𝐵, 𝐴) = 𝐴)
75, 6eqtr4d 2807 . 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 1572  ifcif 4487
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-ext 2741
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-ex 1815  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-if 4488
This theorem is used by:  suppsnop  8244  2resupmax  13369  sgnneg  15309  sadadd2lem2  16676  maducoeval2  23055  tmsxpsval2  24958  itg2uba  26164  lgsneg  27772  lgsdilem  27775  bj-xpimasn  38109  itgaddnclem2  38891  ftc1anclem5  38909
  Copyright terms: Public domain W3C validator