![]() |
Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
|
Mirrors > Home > MPE Home > Th. List > partfun | Structured version Visualization version GIF version |
Description: Rewrite a function defined by parts, using a mapping and an if construct, into a union of functions on disjoint domains. (Contributed by Thierry Arnoux, 30-Mar-2017.) |
Ref | Expression |
---|---|
partfun | ⊢ (𝑥 ∈ 𝐴 ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) = ((𝑥 ∈ (𝐴 ∩ 𝐵) ↦ 𝐶) ∪ (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ 𝐷)) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | mptun 6648 | . 2 ⊢ (𝑥 ∈ ((𝐴 ∩ 𝐵) ∪ (𝐴 ∖ 𝐵)) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) = ((𝑥 ∈ (𝐴 ∩ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) ∪ (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷))) | |
2 | inundif 4439 | . . 3 ⊢ ((𝐴 ∩ 𝐵) ∪ (𝐴 ∖ 𝐵)) = 𝐴 | |
3 | eqid 2733 | . . 3 ⊢ if(𝑥 ∈ 𝐵, 𝐶, 𝐷) = if(𝑥 ∈ 𝐵, 𝐶, 𝐷) | |
4 | 2, 3 | mpteq12i 5212 | . 2 ⊢ (𝑥 ∈ ((𝐴 ∩ 𝐵) ∪ (𝐴 ∖ 𝐵)) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) = (𝑥 ∈ 𝐴 ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) |
5 | elinel2 4157 | . . . . 5 ⊢ (𝑥 ∈ (𝐴 ∩ 𝐵) → 𝑥 ∈ 𝐵) | |
6 | 5 | iftrued 4495 | . . . 4 ⊢ (𝑥 ∈ (𝐴 ∩ 𝐵) → if(𝑥 ∈ 𝐵, 𝐶, 𝐷) = 𝐶) |
7 | 6 | mpteq2ia 5209 | . . 3 ⊢ (𝑥 ∈ (𝐴 ∩ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) = (𝑥 ∈ (𝐴 ∩ 𝐵) ↦ 𝐶) |
8 | eldifn 4088 | . . . . 5 ⊢ (𝑥 ∈ (𝐴 ∖ 𝐵) → ¬ 𝑥 ∈ 𝐵) | |
9 | 8 | iffalsed 4498 | . . . 4 ⊢ (𝑥 ∈ (𝐴 ∖ 𝐵) → if(𝑥 ∈ 𝐵, 𝐶, 𝐷) = 𝐷) |
10 | 9 | mpteq2ia 5209 | . . 3 ⊢ (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) = (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ 𝐷) |
11 | 7, 10 | uneq12i 4122 | . 2 ⊢ ((𝑥 ∈ (𝐴 ∩ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) ∪ (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷))) = ((𝑥 ∈ (𝐴 ∩ 𝐵) ↦ 𝐶) ∪ (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ 𝐷)) |
12 | 1, 4, 11 | 3eqtr3i 2769 | 1 ⊢ (𝑥 ∈ 𝐴 ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) = ((𝑥 ∈ (𝐴 ∩ 𝐵) ↦ 𝐶) ∪ (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ 𝐷)) |
Colors of variables: wff setvar class |
Syntax hints: = wceq 1542 ∈ wcel 2107 ∖ cdif 3908 ∪ cun 3909 ∩ cin 3910 ifcif 4487 ↦ cmpt 5189 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1798 ax-4 1812 ax-5 1914 ax-6 1972 ax-7 2012 ax-8 2109 ax-9 2117 ax-ext 2704 |
This theorem depends on definitions: df-bi 206 df-an 398 df-or 847 df-tru 1545 df-ex 1783 df-sb 2069 df-clab 2711 df-cleq 2725 df-clel 2811 df-v 3446 df-dif 3914 df-un 3916 df-in 3918 df-if 4488 df-opab 5169 df-mpt 5190 |
This theorem is referenced by: mptiffisupp 31654 mptprop 31659 cycpm2tr 32017 fsuppssindlem2 40810 |
Copyright terms: Public domain | W3C validator |