Mathbox for Thierry Arnoux |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > Mathboxes > 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 6025 | . 2 ⊢ (𝑥 ∈ ((𝐴 ∩ 𝐵) ∪ (𝐴 ∖ 𝐵)) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) = ((𝑥 ∈ (𝐴 ∩ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) ∪ (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷))) | |
2 | inundif 4046 | . . 3 ⊢ ((𝐴 ∩ 𝐵) ∪ (𝐴 ∖ 𝐵)) = 𝐴 | |
3 | eqid 2622 | . . 3 ⊢ if(𝑥 ∈ 𝐵, 𝐶, 𝐷) = if(𝑥 ∈ 𝐵, 𝐶, 𝐷) | |
4 | 2, 3 | mpteq12i 4742 | . 2 ⊢ (𝑥 ∈ ((𝐴 ∩ 𝐵) ∪ (𝐴 ∖ 𝐵)) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) = (𝑥 ∈ 𝐴 ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) |
5 | elinel2 3800 | . . . . 5 ⊢ (𝑥 ∈ (𝐴 ∩ 𝐵) → 𝑥 ∈ 𝐵) | |
6 | 5 | iftrued 4094 | . . . 4 ⊢ (𝑥 ∈ (𝐴 ∩ 𝐵) → if(𝑥 ∈ 𝐵, 𝐶, 𝐷) = 𝐶) |
7 | 6 | mpteq2ia 4740 | . . 3 ⊢ (𝑥 ∈ (𝐴 ∩ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) = (𝑥 ∈ (𝐴 ∩ 𝐵) ↦ 𝐶) |
8 | eldifn 3733 | . . . . 5 ⊢ (𝑥 ∈ (𝐴 ∖ 𝐵) → ¬ 𝑥 ∈ 𝐵) | |
9 | 8 | iffalsed 4097 | . . . 4 ⊢ (𝑥 ∈ (𝐴 ∖ 𝐵) → if(𝑥 ∈ 𝐵, 𝐶, 𝐷) = 𝐷) |
10 | 9 | mpteq2ia 4740 | . . 3 ⊢ (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) = (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ 𝐷) |
11 | 7, 10 | uneq12i 3765 | . 2 ⊢ ((𝑥 ∈ (𝐴 ∩ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) ∪ (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷))) = ((𝑥 ∈ (𝐴 ∩ 𝐵) ↦ 𝐶) ∪ (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ 𝐷)) |
12 | 1, 4, 11 | 3eqtr3i 2652 | 1 ⊢ (𝑥 ∈ 𝐴 ↦ if(𝑥 ∈ 𝐵, 𝐶, 𝐷)) = ((𝑥 ∈ (𝐴 ∩ 𝐵) ↦ 𝐶) ∪ (𝑥 ∈ (𝐴 ∖ 𝐵) ↦ 𝐷)) |
Colors of variables: wff setvar class |
Syntax hints: = wceq 1483 ∈ wcel 1990 ∖ cdif 3571 ∪ cun 3572 ∩ cin 3573 ifcif 4086 ↦ cmpt 4729 |
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-v 3202 df-dif 3577 df-un 3579 df-in 3581 df-if 4087 df-opab 4713 df-mpt 4730 |
This theorem is referenced by: (None) |
Copyright terms: Public domain | W3C validator |