| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > dfif4 | Structured version Visualization version GIF version | ||
| Description: Alternate definition of the conditional operator df-if 4481. Note that 𝜑 is independent of 𝑥 i.e. a constant true or false. (Contributed by NM, 25-Aug-2013.) |
| Ref | Expression |
|---|---|
| dfif3.1 | ⊢ 𝐶 = {𝑥 ∣ 𝜑} |
| Ref | Expression |
|---|---|
| dfif4 | ⊢ if(𝜑, 𝐴, 𝐵) = ((𝐴 ∪ 𝐵) ∩ ((𝐴 ∪ (V ∖ 𝐶)) ∩ (𝐵 ∪ 𝐶))) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | dfif3.1 | . . 3 ⊢ 𝐶 = {𝑥 ∣ 𝜑} | |
| 2 | 1 | dfif3 4495 | . 2 ⊢ if(𝜑, 𝐴, 𝐵) = ((𝐴 ∩ 𝐶) ∪ (𝐵 ∩ (V ∖ 𝐶))) |
| 3 | undir 4239 | . 2 ⊢ ((𝐴 ∩ 𝐶) ∪ (𝐵 ∩ (V ∖ 𝐶))) = ((𝐴 ∪ (𝐵 ∩ (V ∖ 𝐶))) ∩ (𝐶 ∪ (𝐵 ∩ (V ∖ 𝐶)))) | |
| 4 | undi 4237 | . . . 4 ⊢ (𝐴 ∪ (𝐵 ∩ (V ∖ 𝐶))) = ((𝐴 ∪ 𝐵) ∩ (𝐴 ∪ (V ∖ 𝐶))) | |
| 5 | undi 4237 | . . . . 5 ⊢ (𝐶 ∪ (𝐵 ∩ (V ∖ 𝐶))) = ((𝐶 ∪ 𝐵) ∩ (𝐶 ∪ (V ∖ 𝐶))) | |
| 6 | uncom 4111 | . . . . . 6 ⊢ (𝐶 ∪ 𝐵) = (𝐵 ∪ 𝐶) | |
| 7 | unvdif 4429 | . . . . . 6 ⊢ (𝐶 ∪ (V ∖ 𝐶)) = V | |
| 8 | 6, 7 | ineq12i 4170 | . . . . 5 ⊢ ((𝐶 ∪ 𝐵) ∩ (𝐶 ∪ (V ∖ 𝐶))) = ((𝐵 ∪ 𝐶) ∩ V) |
| 9 | inv1 4352 | . . . . 5 ⊢ ((𝐵 ∪ 𝐶) ∩ V) = (𝐵 ∪ 𝐶) | |
| 10 | 5, 8, 9 | 3eqtri 2789 | . . . 4 ⊢ (𝐶 ∪ (𝐵 ∩ (V ∖ 𝐶))) = (𝐵 ∪ 𝐶) |
| 11 | 4, 10 | ineq12i 4170 | . . 3 ⊢ ((𝐴 ∪ (𝐵 ∩ (V ∖ 𝐶))) ∩ (𝐶 ∪ (𝐵 ∩ (V ∖ 𝐶)))) = (((𝐴 ∪ 𝐵) ∩ (𝐴 ∪ (V ∖ 𝐶))) ∩ (𝐵 ∪ 𝐶)) |
| 12 | inass 4179 | . . 3 ⊢ (((𝐴 ∪ 𝐵) ∩ (𝐴 ∪ (V ∖ 𝐶))) ∩ (𝐵 ∪ 𝐶)) = ((𝐴 ∪ 𝐵) ∩ ((𝐴 ∪ (V ∖ 𝐶)) ∩ (𝐵 ∪ 𝐶))) | |
| 13 | 11, 12 | eqtri 2785 | . 2 ⊢ ((𝐴 ∪ (𝐵 ∩ (V ∖ 𝐶))) ∩ (𝐶 ∪ (𝐵 ∩ (V ∖ 𝐶)))) = ((𝐴 ∪ 𝐵) ∩ ((𝐴 ∪ (V ∖ 𝐶)) ∩ (𝐵 ∪ 𝐶))) |
| 14 | 2, 3, 13 | 3eqtri 2789 | 1 ⊢ if(𝜑, 𝐴, 𝐵) = ((𝐴 ∪ 𝐵) ∩ ((𝐴 ∪ (V ∖ 𝐶)) ∩ (𝐵 ∪ 𝐶))) |
| Colors of variables: wff setvar class |
| Syntax hints: = wceq 1560 {cab 2740 Vcvv 3454 ∖ cdif 3901 ∪ cun 3902 ∩ cin 3903 ifcif 4480 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1815 ax-4 1829 ax-5 1930 ax-6 1987 ax-7 2028 ax-8 2144 ax-9 2152 ax-ext 2734 |
| This theorem depends on definitions: df-bi 209 df-an 400 df-or 859 df-tru 1563 df-fal 1573 df-ex 1800 df-sb 2091 df-clab 2741 df-cleq 2754 df-clel 2837 df-rab 3415 df-v 3456 df-dif 3907 df-un 3909 df-in 3911 df-ss 3921 df-nul 4286 df-if 4481 |
| This theorem is referenced by: dfif5 4497 ifssun 4498 |
| Copyright terms: Public domain | W3C validator |