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

Theorem ovif12 7365
Description: Move a conditional outside of an operation. (Contributed by Thierry Arnoux, 25-Jan-2017.)
Assertion
Ref Expression
ovif12 (if(𝜑, 𝐴, 𝐵)𝐹if(𝜑, 𝐶, 𝐷)) = if(𝜑, (𝐴𝐹𝐶), (𝐵𝐹𝐷))

Proof of Theorem ovif12
StepHypRef Expression
1 iftrue 4470 . . . 4 (𝜑 → if(𝜑, 𝐴, 𝐵) = 𝐴)
2 iftrue 4470 . . . 4 (𝜑 → if(𝜑, 𝐶, 𝐷) = 𝐶)
31, 2oveq12d 7286 . . 3 (𝜑 → (if(𝜑, 𝐴, 𝐵)𝐹if(𝜑, 𝐶, 𝐷)) = (𝐴𝐹𝐶))
4 iftrue 4470 . . 3 (𝜑 → if(𝜑, (𝐴𝐹𝐶), (𝐵𝐹𝐷)) = (𝐴𝐹𝐶))
53, 4eqtr4d 2782 . 2 (𝜑 → (if(𝜑, 𝐴, 𝐵)𝐹if(𝜑, 𝐶, 𝐷)) = if(𝜑, (𝐴𝐹𝐶), (𝐵𝐹𝐷)))
6 iffalse 4473 . . . 4 𝜑 → if(𝜑, 𝐴, 𝐵) = 𝐵)
7 iffalse 4473 . . . 4 𝜑 → if(𝜑, 𝐶, 𝐷) = 𝐷)
86, 7oveq12d 7286 . . 3 𝜑 → (if(𝜑, 𝐴, 𝐵)𝐹if(𝜑, 𝐶, 𝐷)) = (𝐵𝐹𝐷))
9 iffalse 4473 . . 3 𝜑 → if(𝜑, (𝐴𝐹𝐶), (𝐵𝐹𝐷)) = (𝐵𝐹𝐷))
108, 9eqtr4d 2782 . 2 𝜑 → (if(𝜑, 𝐴, 𝐵)𝐹if(𝜑, 𝐶, 𝐷)) = if(𝜑, (𝐴𝐹𝐶), (𝐵𝐹𝐷)))
115, 10pm2.61i 182 1 (if(𝜑, 𝐴, 𝐵)𝐹if(𝜑, 𝐶, 𝐷)) = if(𝜑, (𝐴𝐹𝐶), (𝐵𝐹𝐷))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3   = wceq 1541  ifcif 4464  (class class class)co 7268
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-ext 2710
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-sb 2071  df-clab 2717  df-cleq 2731  df-clel 2817  df-rab 3074  df-v 3432  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4845  df-br 5079  df-iota 6388  df-fv 6438  df-ov 7271
This theorem is referenced by:  ofccat  14661  limccnp2  25037  ftc1anclem5  35833  fsuppind  40259  sqrtcval  41202
  Copyright terms: Public domain W3C validator