MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  fmptap Structured version   Visualization version   GIF version

Theorem fmptap 6436
Description: Append an additional value to a function. (Contributed by NM, 6-Jun-2006.) (Revised by Mario Carneiro, 31-Aug-2015.)
Hypotheses
Ref Expression
fmptap.0a 𝐴 ∈ V
fmptap.0b 𝐵 ∈ V
fmptap.1 (𝑅 ∪ {𝐴}) = 𝑆
fmptap.2 (𝑥 = 𝐴𝐶 = 𝐵)
Assertion
Ref Expression
fmptap ((𝑥𝑅𝐶) ∪ {⟨𝐴, 𝐵⟩}) = (𝑥𝑆𝐶)
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝑅   𝑥,𝑆
Allowed substitution hint:   𝐶(𝑥)

Proof of Theorem fmptap
StepHypRef Expression
1 fmptap.0a . . . . 5 𝐴 ∈ V
2 fmptap.0b . . . . 5 𝐵 ∈ V
3 fmptsn 6433 . . . . 5 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
41, 2, 3mp2an 708 . . . 4 {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵)
5 elsni 4194 . . . . . 6 (𝑥 ∈ {𝐴} → 𝑥 = 𝐴)
6 fmptap.2 . . . . . 6 (𝑥 = 𝐴𝐶 = 𝐵)
75, 6syl 17 . . . . 5 (𝑥 ∈ {𝐴} → 𝐶 = 𝐵)
87mpteq2ia 4740 . . . 4 (𝑥 ∈ {𝐴} ↦ 𝐶) = (𝑥 ∈ {𝐴} ↦ 𝐵)
94, 8eqtr4i 2647 . . 3 {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐶)
109uneq2i 3764 . 2 ((𝑥𝑅𝐶) ∪ {⟨𝐴, 𝐵⟩}) = ((𝑥𝑅𝐶) ∪ (𝑥 ∈ {𝐴} ↦ 𝐶))
11 mptun 6025 . 2 (𝑥 ∈ (𝑅 ∪ {𝐴}) ↦ 𝐶) = ((𝑥𝑅𝐶) ∪ (𝑥 ∈ {𝐴} ↦ 𝐶))
12 fmptap.1 . . 3 (𝑅 ∪ {𝐴}) = 𝑆
13 mpteq1 4737 . . 3 ((𝑅 ∪ {𝐴}) = 𝑆 → (𝑥 ∈ (𝑅 ∪ {𝐴}) ↦ 𝐶) = (𝑥𝑆𝐶))
1412, 13ax-mp 5 . 2 (𝑥 ∈ (𝑅 ∪ {𝐴}) ↦ 𝐶) = (𝑥𝑆𝐶)
1510, 11, 143eqtr2i 2650 1 ((𝑥𝑅𝐶) ∪ {⟨𝐴, 𝐵⟩}) = (𝑥𝑆𝐶)
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1483  wcel 1990  Vcvv 3200  cun 3572  {csn 4177  cop 4183  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  ax-sep 4781  ax-nul 4789  ax-pr 4906
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-ral 2917  df-rex 2918  df-reu 2919  df-rab 2921  df-v 3202  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-sn 4178  df-pr 4180  df-op 4184  df-br 4654  df-opab 4713  df-mpt 4730  df-id 5024  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-fun 5890  df-fn 5891  df-f 5892  df-f1 5893  df-fo 5894  df-f1o 5895
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator