Step | Hyp | Ref
| Expression |
1 | | dfmpt3 6512 |
. . . 4
⊢ (𝑥 ∈ 𝑂 ↦ if(𝑥 ∈ 𝐴, 1, 0)) = ∪ 𝑥 ∈ 𝑂 ({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) |
2 | | indval 31693 |
. . . 4
⊢ ((𝑂 ∈ 𝑉 ∧ 𝐴 ⊆ 𝑂) → ((𝟭‘𝑂)‘𝐴) = (𝑥 ∈ 𝑂 ↦ if(𝑥 ∈ 𝐴, 1, 0))) |
3 | | undif 4396 |
. . . . . . 7
⊢ (𝐴 ⊆ 𝑂 ↔ (𝐴 ∪ (𝑂 ∖ 𝐴)) = 𝑂) |
4 | 3 | biimpi 219 |
. . . . . 6
⊢ (𝐴 ⊆ 𝑂 → (𝐴 ∪ (𝑂 ∖ 𝐴)) = 𝑂) |
5 | 4 | adantl 485 |
. . . . 5
⊢ ((𝑂 ∈ 𝑉 ∧ 𝐴 ⊆ 𝑂) → (𝐴 ∪ (𝑂 ∖ 𝐴)) = 𝑂) |
6 | 5 | iuneq1d 4931 |
. . . 4
⊢ ((𝑂 ∈ 𝑉 ∧ 𝐴 ⊆ 𝑂) → ∪
𝑥 ∈ (𝐴 ∪ (𝑂 ∖ 𝐴))({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) = ∪ 𝑥 ∈ 𝑂 ({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)})) |
7 | 1, 2, 6 | 3eqtr4a 2804 |
. . 3
⊢ ((𝑂 ∈ 𝑉 ∧ 𝐴 ⊆ 𝑂) → ((𝟭‘𝑂)‘𝐴) = ∪
𝑥 ∈ (𝐴 ∪ (𝑂 ∖ 𝐴))({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)})) |
8 | | iunxun 5002 |
. . 3
⊢ ∪ 𝑥 ∈ (𝐴 ∪ (𝑂 ∖ 𝐴))({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) = (∪ 𝑥 ∈ 𝐴 ({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) ∪ ∪ 𝑥 ∈ (𝑂 ∖ 𝐴)({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)})) |
9 | 7, 8 | eqtrdi 2794 |
. 2
⊢ ((𝑂 ∈ 𝑉 ∧ 𝐴 ⊆ 𝑂) → ((𝟭‘𝑂)‘𝐴) = (∪
𝑥 ∈ 𝐴 ({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) ∪ ∪ 𝑥 ∈ (𝑂 ∖ 𝐴)({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}))) |
10 | | iftrue 4445 |
. . . . . . 7
⊢ (𝑥 ∈ 𝐴 → if(𝑥 ∈ 𝐴, 1, 0) = 1) |
11 | 10 | sneqd 4553 |
. . . . . 6
⊢ (𝑥 ∈ 𝐴 → {if(𝑥 ∈ 𝐴, 1, 0)} = {1}) |
12 | 11 | xpeq2d 5581 |
. . . . 5
⊢ (𝑥 ∈ 𝐴 → ({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) = ({𝑥} × {1})) |
13 | 12 | iuneq2i 4925 |
. . . 4
⊢ ∪ 𝑥 ∈ 𝐴 ({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) = ∪ 𝑥 ∈ 𝐴 ({𝑥} × {1}) |
14 | | iunxpconst 5621 |
. . . 4
⊢ ∪ 𝑥 ∈ 𝐴 ({𝑥} × {1}) = (𝐴 × {1}) |
15 | 13, 14 | eqtri 2765 |
. . 3
⊢ ∪ 𝑥 ∈ 𝐴 ({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) = (𝐴 × {1}) |
16 | | eldifn 4042 |
. . . . . . 7
⊢ (𝑥 ∈ (𝑂 ∖ 𝐴) → ¬ 𝑥 ∈ 𝐴) |
17 | | iffalse 4448 |
. . . . . . . 8
⊢ (¬
𝑥 ∈ 𝐴 → if(𝑥 ∈ 𝐴, 1, 0) = 0) |
18 | 17 | sneqd 4553 |
. . . . . . 7
⊢ (¬
𝑥 ∈ 𝐴 → {if(𝑥 ∈ 𝐴, 1, 0)} = {0}) |
19 | 16, 18 | syl 17 |
. . . . . 6
⊢ (𝑥 ∈ (𝑂 ∖ 𝐴) → {if(𝑥 ∈ 𝐴, 1, 0)} = {0}) |
20 | 19 | xpeq2d 5581 |
. . . . 5
⊢ (𝑥 ∈ (𝑂 ∖ 𝐴) → ({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) = ({𝑥} × {0})) |
21 | 20 | iuneq2i 4925 |
. . . 4
⊢ ∪ 𝑥 ∈ (𝑂 ∖ 𝐴)({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) = ∪ 𝑥 ∈ (𝑂 ∖ 𝐴)({𝑥} × {0}) |
22 | | iunxpconst 5621 |
. . . 4
⊢ ∪ 𝑥 ∈ (𝑂 ∖ 𝐴)({𝑥} × {0}) = ((𝑂 ∖ 𝐴) × {0}) |
23 | 21, 22 | eqtri 2765 |
. . 3
⊢ ∪ 𝑥 ∈ (𝑂 ∖ 𝐴)({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) = ((𝑂 ∖ 𝐴) × {0}) |
24 | 15, 23 | uneq12i 4075 |
. 2
⊢ (∪ 𝑥 ∈ 𝐴 ({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)}) ∪ ∪ 𝑥 ∈ (𝑂 ∖ 𝐴)({𝑥} × {if(𝑥 ∈ 𝐴, 1, 0)})) = ((𝐴 × {1}) ∪ ((𝑂 ∖ 𝐴) × {0})) |
25 | 9, 24 | eqtrdi 2794 |
1
⊢ ((𝑂 ∈ 𝑉 ∧ 𝐴 ⊆ 𝑂) → ((𝟭‘𝑂)‘𝐴) = ((𝐴 × {1}) ∪ ((𝑂 ∖ 𝐴) × {0}))) |