| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > fmptap | Structured version Visualization version GIF version | ||
| Description: Append an additional value to a function. (Contributed by NM, 6-Jun-2006.) (Revised by Mario Carneiro, 31-Aug-2015.) |
| Ref | Expression |
|---|---|
| fmptap.0a | ⊢ 𝐴 ∈ V |
| fmptap.0b | ⊢ 𝐵 ∈ V |
| fmptap.1 | ⊢ (𝑅 ∪ {𝐴}) = 𝑆 |
| fmptap.2 | ⊢ (𝑥 = 𝐴 → 𝐶 = 𝐵) |
| Ref | Expression |
|---|---|
| fmptap | ⊢ ((𝑥 ∈ 𝑅 ↦ 𝐶) ∪ {〈𝐴, 𝐵〉}) = (𝑥 ∈ 𝑆 ↦ 𝐶) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | fmptap.0a | . . . . 5 ⊢ 𝐴 ∈ V | |
| 2 | fmptap.0b | . . . . 5 ⊢ 𝐵 ∈ V | |
| 3 | fmptsn 7151 | . . . . 5 ⊢ ((𝐴 ∈ V ∧ 𝐵 ∈ V) → {〈𝐴, 𝐵〉} = (𝑥 ∈ {𝐴} ↦ 𝐵)) | |
| 4 | 1, 2, 3 | mp2an 702 | . . . 4 ⊢ {〈𝐴, 𝐵〉} = (𝑥 ∈ {𝐴} ↦ 𝐵) |
| 5 | elsni 4599 | . . . . . 6 ⊢ (𝑥 ∈ {𝐴} → 𝑥 = 𝐴) | |
| 6 | fmptap.2 | . . . . . 6 ⊢ (𝑥 = 𝐴 → 𝐶 = 𝐵) | |
| 7 | 5, 6 | syl 17 | . . . . 5 ⊢ (𝑥 ∈ {𝐴} → 𝐶 = 𝐵) |
| 8 | 7 | mpteq2ia 5195 | . . . 4 ⊢ (𝑥 ∈ {𝐴} ↦ 𝐶) = (𝑥 ∈ {𝐴} ↦ 𝐵) |
| 9 | 4, 8 | eqtr4i 2788 | . . 3 ⊢ {〈𝐴, 𝐵〉} = (𝑥 ∈ {𝐴} ↦ 𝐶) |
| 10 | 9 | uneq2i 4118 | . 2 ⊢ ((𝑥 ∈ 𝑅 ↦ 𝐶) ∪ {〈𝐴, 𝐵〉}) = ((𝑥 ∈ 𝑅 ↦ 𝐶) ∪ (𝑥 ∈ {𝐴} ↦ 𝐶)) |
| 11 | mptun 6667 | . 2 ⊢ (𝑥 ∈ (𝑅 ∪ {𝐴}) ↦ 𝐶) = ((𝑥 ∈ 𝑅 ↦ 𝐶) ∪ (𝑥 ∈ {𝐴} ↦ 𝐶)) | |
| 12 | fmptap.1 | . . 3 ⊢ (𝑅 ∪ {𝐴}) = 𝑆 | |
| 13 | 12 | mpteq1i 5191 | . 2 ⊢ (𝑥 ∈ (𝑅 ∪ {𝐴}) ↦ 𝐶) = (𝑥 ∈ 𝑆 ↦ 𝐶) |
| 14 | 10, 11, 13 | 3eqtr2i 2791 | 1 ⊢ ((𝑥 ∈ 𝑅 ↦ 𝐶) ∪ {〈𝐴, 𝐵〉}) = (𝑥 ∈ 𝑆 ↦ 𝐶) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 = wceq 1560 ∈ wcel 2142 Vcvv 3454 ∪ cun 3902 {csn 4582 〈cop 4588 ↦ cmpt 5181 |
| 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-10 2175 ax-11 2191 ax-12 2212 ax-ext 2734 ax-sep 5246 ax-pr 5390 |
| This theorem depends on definitions: df-bi 209 df-an 400 df-or 859 df-3an 1100 df-tru 1563 df-fal 1573 df-ex 1800 df-nf 1804 df-sb 2091 df-mo 2566 df-eu 2596 df-clab 2741 df-cleq 2754 df-clel 2837 df-nfc 2911 df-ne 2958 df-ral 3077 df-rex 3087 df-reu 3368 df-rab 3415 df-v 3456 df-dif 3907 df-un 3909 df-in 3911 df-ss 3921 df-nul 4286 df-if 4481 df-sn 4583 df-pr 4585 df-op 4589 df-br 5101 df-opab 5163 df-mpt 5182 df-id 5542 df-xp 5653 df-rel 5654 df-cnv 5655 df-co 5656 df-dm 5657 df-rn 5658 df-fun 6523 df-fn 6524 df-f 6525 df-f1 6526 df-fo 6527 df-f1o 6528 |
| This theorem is referenced by: (None) |
| Copyright terms: Public domain | W3C validator |