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

Theorem dfif4 4500
Description: Alternate definition of the conditional operator df-if 4485. Note that 𝜑 is independent of 𝑥 i.e. a constant true or false. (Contributed by NM, 25-Aug-2013.)
Hypothesis
Ref Expression
dfif3.1 𝐶 = {𝑥 ∣ 𝜑}
Assertion
Ref Expression
dfif4 if(𝜑, 𝐴, 𝐵) = ((𝐴 ∪ 𝐵) ∩ ((𝐴 ∪ (V ∖ 𝐶)) ∩ (𝐵 ∪ 𝐶)))
Distinct variable group:   𝜑,𝑥
Allowed substitution hints:   𝐴(𝑥)   𝐵(𝑥)   𝐶(𝑥)

Proof of Theorem dfif4
StepHypRef Expression
1 dfif3.1 . . 3 𝐶 = {𝑥 ∣ 𝜑}
21dfif3 4499 . 2 if(𝜑, 𝐴, 𝐵) = ((𝐴 ∩ 𝐶) ∪ (𝐵 ∩ (V ∖ 𝐶)))
3 undir 4234 . 2 ((𝐴 ∩ 𝐶) ∪ (𝐵 ∩ (V ∖ 𝐶))) = ((𝐴 ∪ (𝐵 ∩ (V ∖ 𝐶))) ∩ (𝐶 ∪ (𝐵 ∩ (V ∖ 𝐶))))
4 undi 4232 . . . 4 (𝐴 ∪ (𝐵 ∩ (V ∖ 𝐶))) = ((𝐴 ∪ 𝐵) ∩ (𝐴 ∪ (V ∖ 𝐶)))
5 undi 4232 . . . . 5 (𝐶 ∪ (𝐵 ∩ (V ∖ 𝐶))) = ((𝐶 ∪ 𝐵) ∩ (𝐶 ∪ (V ∖ 𝐶)))
6 uncom 4159 . . . . . 6 (𝐶 ∪ 𝐵) = (𝐵 ∪ 𝐶)
7 unvdif 4431 . . . . . 6 (𝐶 ∪ (V ∖ 𝐶)) = V
86, 7ineq12i 4117 . . . . 5 ((𝐶 ∪ 𝐵) ∩ (𝐶 ∪ (V ∖ 𝐶))) = ((𝐵 ∪ 𝐶) ∩ V)
9 inv1 4350 . . . . 5 ((𝐵 ∪ 𝐶) ∩ V) = (𝐵 ∪ 𝐶)
105, 8, 93eqtri 2790 . . . 4 (𝐶 ∪ (𝐵 ∩ (V ∖ 𝐶))) = (𝐵 ∪ 𝐶)
114, 10ineq12i 4117 . . 3 ((𝐴 ∪ (𝐵 ∩ (V ∖ 𝐶))) ∩ (𝐶 ∪ (𝐵 ∩ (V ∖ 𝐶)))) = (((𝐴 ∪ 𝐵) ∩ (𝐴 ∪ (V ∖ 𝐶))) ∩ (𝐵 ∪ 𝐶))
12 inass 4126 . . 3 (((𝐴 ∪ 𝐵) ∩ (𝐴 ∪ (V ∖ 𝐶))) ∩ (𝐵 ∪ 𝐶)) = ((𝐴 ∪ 𝐵) ∩ ((𝐴 ∪ (V ∖ 𝐶)) ∩ (𝐵 ∪ 𝐶)))
1311, 12eqtri 2786 . 2 ((𝐴 ∪ (𝐵 ∩ (V ∖ 𝐶))) ∩ (𝐶 ∪ (𝐵 ∩ (V ∖ 𝐶)))) = ((𝐴 ∪ 𝐵) ∩ ((𝐴 ∪ (V ∖ 𝐶)) ∩ (𝐵 ∪ 𝐶)))
142, 3, 133eqtri 2790 1 if(𝜑, 𝐴, 𝐵) = ((𝐴 ∪ 𝐵) ∩ ((𝐴 ∪ (V ∖ 𝐶)) ∩ (𝐵 ∪ 𝐶)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   = wceq 1569  {cab 2741  Vcvv 3453   ∖ cdif 4047   ∩ cin 4091   ∪ cun 4151  ifcif 4484
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2101  df-clab 2742  df-cleq 2755  df-clel 2838  df-rab 3416  df-v 3455  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485
This theorem is used by:  dfif5  4501  ifssun  4502
  Copyright terms: Public domain W3C validator