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

Theorem ifan 4521
Description: Rewrite a conjunction in a conditional as two nested conditionals. (Contributed by Mario Carneiro, 28-Jul-2014.)
Assertion
Ref Expression
ifan if((𝜑𝜓), 𝐴, 𝐵) = if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵)

Proof of Theorem ifan
StepHypRef Expression
1 iftrue 4476 . . 3 (𝜑 → if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵) = if(𝜓, 𝐴, 𝐵))
2 ibar 531 . . . 4 (𝜑 → (𝜓 ↔ (𝜑𝜓)))
32ifbid 4492 . . 3 (𝜑 → if(𝜓, 𝐴, 𝐵) = if((𝜑𝜓), 𝐴, 𝐵))
41, 3eqtr2d 2860 . 2 (𝜑 → if((𝜑𝜓), 𝐴, 𝐵) = if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵))
5 simpl 485 . . . . 5 ((𝜑𝜓) → 𝜑)
65con3i 157 . . . 4 𝜑 → ¬ (𝜑𝜓))
76iffalsed 4481 . . 3 𝜑 → if((𝜑𝜓), 𝐴, 𝐵) = 𝐵)
8 iffalse 4479 . . 3 𝜑 → if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵) = 𝐵)
97, 8eqtr4d 2862 . 2 𝜑 → if((𝜑𝜓), 𝐴, 𝐵) = if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵))
104, 9pm2.61i 184 1 if((𝜑𝜓), 𝐴, 𝐵) = if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 398   = wceq 1536  ifcif 4470
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-ext 2796
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-ex 1780  df-sb 2069  df-clab 2803  df-cleq 2817  df-clel 2896  df-if 4471
This theorem is referenced by:  itg0  24383  iblre  24397  itgreval  24400  iblss  24408  iblss2  24409  itgle  24413  itgss  24415  itgeqa  24417  iblconst  24421  itgconst  24422  ibladdlem  24423  iblabslem  24431  iblabsr  24433  iblmulc2  24434  itgsplit  24439  itgcn  24446  mrsubrn  32764  itg2gt0cn  34951  ibladdnclem  34952  iblabsnclem  34959  iblmulc2nc  34961  bddiblnc  34966  iblsplit  42257
  Copyright terms: Public domain W3C validator