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

Theorem ifan 4539
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 4491 . . 3 (𝜑 → if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵) = if(𝜓, 𝐴, 𝐵))
2 ibar 538 . . . 4 (𝜑 → (𝜓 ↔ (𝜑 ∧ 𝜓)))
32ifbid 4509 . . 3 (𝜑 → if(𝜓, 𝐴, 𝐵) = if((𝜑 ∧ 𝜓), 𝐴, 𝐵))
41, 3eqtr2d 2799 . 2 (𝜑 → if((𝜑 ∧ 𝜓), 𝐴, 𝐵) = if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵))
5 simpl 488 . . . . 5 ((𝜑 ∧ 𝜓) → 𝜑)
65con3i 155 . . . 4 (¬ 𝜑 → ¬ (𝜑 ∧ 𝜓))
76iffalsed 4496 . . 3 (¬ 𝜑 → if((𝜑 ∧ 𝜓), 𝐴, 𝐵) = 𝐵)
8 iffalse 4494 . . 3 (¬ 𝜑 → if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵) = 𝐵)
97, 8eqtr4d 2801 . 2 (¬ 𝜑 → if((𝜑 ∧ 𝜓), 𝐴, 𝐵) = if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵))
104, 9pm2.61i 184 1 if((𝜑 ∧ 𝜓), 𝐴, 𝐵) = if(𝜑, if(𝜓, 𝐴, 𝐵), 𝐵)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ∧ wa 401   = 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:  selvvvval  22481  psdmvr  22520  itg0  26130  iblre  26144  itgreval  26147  iblss  26155  iblss2  26156  itgle  26160  itgss  26162  itgeqa  26164  iblconst  26168  itgconst  26169  ibladdlem  26170  iblabslem  26178  iblabsr  26180  iblmulc2  26181  itgsplit  26186  bddiblnc  26192  itgcn  26195  ififcom  33218  esplyfv  34272  esplyfval3  34274  mrsubrn  36445  itg2gt0cn  38785  ibladdnclem  38786  iblabsnclem  38793  iblmulc2nc  38795  iblsplit  47181
  Copyright terms: Public domain W3C validator