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

Theorem fmptapd 7180
Description: Append an additional value to a function. (Contributed by Thierry Arnoux, 3-Jan-2017.) (Revised by AV, 10-Aug-2024.)
Hypotheses
Ref Expression
fmptapd.a (𝜑 → 𝐴 ∈ 𝑉)
fmptapd.b (𝜑 → 𝐵 ∈ 𝑊)
fmptapd.s (𝜑 → (𝑅 ∪ {𝐴}) = 𝑆)
fmptapd.c ((𝜑 ∧ 𝑥 = 𝐴) → 𝐶 = 𝐵)
Assertion
Ref Expression
fmptapd (𝜑 → ((𝑥 ∈ 𝑅 ↦ 𝐶) ∪ {⟨𝐴, 𝐵⟩}) = (𝑥 ∈ 𝑆 ↦ 𝐶))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝑅   𝑥,𝑆   𝜑,𝑥
Allowed substitution hints:   𝐶(𝑥)   𝑉(𝑥)   𝑊(𝑥)

Proof of Theorem fmptapd
StepHypRef Expression
1 fmptapd.c . . . 4 ((𝜑 ∧ 𝑥 = 𝐴) → 𝐶 = 𝐵)
2 fmptapd.a . . . 4 (𝜑 → 𝐴 ∈ 𝑉)
3 fmptapd.b . . . 4 (𝜑 → 𝐵 ∈ 𝑊)
41, 2, 3fmptsnd 7178 . . 3 (𝜑 → {⟨𝐴, 𝐵⟩} = (𝑥 ∈ {𝐴} ↦ 𝐶))
54uneq2d 4166 . 2 (𝜑 → ((𝑥 ∈ 𝑅 ↦ 𝐶) ∪ {⟨𝐴, 𝐵⟩}) = ((𝑥 ∈ 𝑅 ↦ 𝐶) ∪ (𝑥 ∈ {𝐴} ↦ 𝐶)))
6 mptun 6690 . . 3 (𝑥 ∈ (𝑅 ∪ {𝐴}) ↦ 𝐶) = ((𝑥 ∈ 𝑅 ↦ 𝐶) ∪ (𝑥 ∈ {𝐴} ↦ 𝐶))
76a1i 11 . 2 (𝜑 → (𝑥 ∈ (𝑅 ∪ {𝐴}) ↦ 𝐶) = ((𝑥 ∈ 𝑅 ↦ 𝐶) ∪ (𝑥 ∈ {𝐴} ↦ 𝐶)))
8 fmptapd.s . . 3 (𝜑 → (𝑅 ∪ {𝐴}) = 𝑆)
98mpteq1d 5194 . 2 (𝜑 → (𝑥 ∈ (𝑅 ∪ {𝐴}) ↦ 𝐶) = (𝑥 ∈ 𝑆 ↦ 𝐶))
105, 7, 93eqtr2d 2801 1 (𝜑 → ((𝑥 ∈ 𝑅 ↦ 𝐶) ∪ {⟨𝐴, 𝐵⟩}) = (𝑥 ∈ 𝑆 ↦ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2144   ∪ cun 4148  {csn 4584  ⟨cop 4834   ↦ cmpt 5185
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-ss 3897  df-dif 4046  df-in 4090  df-un 4150  df-nul 4278  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-opab 5167  df-mpt 5186
This theorem is used by:  fmptpr  7181  poimirlem3  38678  poimirlem4  38679  poimirlem16  38691  poimirlem17  38692  poimirlem19  38694  poimirlem20  38695
  Copyright terms: Public domain W3C validator