Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > dfif3 | Structured version Visualization version GIF version |
Description: Alternate definition of the conditional operator df-if 4087. Note that 𝜑 is independent of 𝑥 i.e. a constant true or false. (Contributed by NM, 25-Aug-2013.) (Revised by Mario Carneiro, 8-Sep-2013.) |
Ref | Expression |
---|---|
dfif3.1 | ⊢ 𝐶 = {𝑥 ∣ 𝜑} |
Ref | Expression |
---|---|
dfif3 | ⊢ if(𝜑, 𝐴, 𝐵) = ((𝐴 ∩ 𝐶) ∪ (𝐵 ∩ (V ∖ 𝐶))) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | dfif6 4089 | . 2 ⊢ if(𝜑, 𝐴, 𝐵) = ({𝑦 ∈ 𝐴 ∣ 𝜑} ∪ {𝑦 ∈ 𝐵 ∣ ¬ 𝜑}) | |
2 | dfif3.1 | . . . . . 6 ⊢ 𝐶 = {𝑥 ∣ 𝜑} | |
3 | biidd 252 | . . . . . . 7 ⊢ (𝑥 = 𝑦 → (𝜑 ↔ 𝜑)) | |
4 | 3 | cbvabv 2747 | . . . . . 6 ⊢ {𝑥 ∣ 𝜑} = {𝑦 ∣ 𝜑} |
5 | 2, 4 | eqtri 2644 | . . . . 5 ⊢ 𝐶 = {𝑦 ∣ 𝜑} |
6 | 5 | ineq2i 3811 | . . . 4 ⊢ (𝐴 ∩ 𝐶) = (𝐴 ∩ {𝑦 ∣ 𝜑}) |
7 | dfrab3 3902 | . . . 4 ⊢ {𝑦 ∈ 𝐴 ∣ 𝜑} = (𝐴 ∩ {𝑦 ∣ 𝜑}) | |
8 | 6, 7 | eqtr4i 2647 | . . 3 ⊢ (𝐴 ∩ 𝐶) = {𝑦 ∈ 𝐴 ∣ 𝜑} |
9 | dfrab3 3902 | . . . 4 ⊢ {𝑦 ∈ 𝐵 ∣ ¬ 𝜑} = (𝐵 ∩ {𝑦 ∣ ¬ 𝜑}) | |
10 | notab 3897 | . . . . . 6 ⊢ {𝑦 ∣ ¬ 𝜑} = (V ∖ {𝑦 ∣ 𝜑}) | |
11 | 5 | difeq2i 3725 | . . . . . 6 ⊢ (V ∖ 𝐶) = (V ∖ {𝑦 ∣ 𝜑}) |
12 | 10, 11 | eqtr4i 2647 | . . . . 5 ⊢ {𝑦 ∣ ¬ 𝜑} = (V ∖ 𝐶) |
13 | 12 | ineq2i 3811 | . . . 4 ⊢ (𝐵 ∩ {𝑦 ∣ ¬ 𝜑}) = (𝐵 ∩ (V ∖ 𝐶)) |
14 | 9, 13 | eqtr2i 2645 | . . 3 ⊢ (𝐵 ∩ (V ∖ 𝐶)) = {𝑦 ∈ 𝐵 ∣ ¬ 𝜑} |
15 | 8, 14 | uneq12i 3765 | . 2 ⊢ ((𝐴 ∩ 𝐶) ∪ (𝐵 ∩ (V ∖ 𝐶))) = ({𝑦 ∈ 𝐴 ∣ 𝜑} ∪ {𝑦 ∈ 𝐵 ∣ ¬ 𝜑}) |
16 | 1, 15 | eqtr4i 2647 | 1 ⊢ if(𝜑, 𝐴, 𝐵) = ((𝐴 ∩ 𝐶) ∪ (𝐵 ∩ (V ∖ 𝐶))) |
Colors of variables: wff setvar class |
Syntax hints: ¬ wn 3 = wceq 1483 {cab 2608 {crab 2916 Vcvv 3200 ∖ cdif 3571 ∪ cun 3572 ∩ cin 3573 ifcif 4086 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1722 ax-4 1737 ax-5 1839 ax-6 1888 ax-7 1935 ax-9 1999 ax-10 2019 ax-11 2034 ax-12 2047 ax-13 2246 ax-ext 2602 |
This theorem depends on definitions: df-bi 197 df-or 385 df-an 386 df-tru 1486 df-ex 1705 df-nf 1710 df-sb 1881 df-clab 2609 df-cleq 2615 df-clel 2618 df-nfc 2753 df-ral 2917 df-rab 2921 df-v 3202 df-dif 3577 df-un 3579 df-in 3581 df-if 4087 |
This theorem is referenced by: dfif4 4101 |
Copyright terms: Public domain | W3C validator |