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

Theorem fvsnun1 6933
Description: The value of a function with one of its ordered pairs replaced, at the replaced ordered pair. See also fvsnun2 6934. (Contributed by NM, 23-Sep-2007.) Put in deduction form. (Revised by BJ, 25-Feb-2023.)
Hypotheses
Ref Expression
fvsnun.1 (𝜑𝐴𝑉)
fvsnun.2 (𝜑𝐵𝑊)
fvsnun.3 𝐺 = ({⟨𝐴, 𝐵⟩} ∪ (𝐹 ↾ (𝐶 ∖ {𝐴})))
Assertion
Ref Expression
fvsnun1 (𝜑 → (𝐺𝐴) = 𝐵)

Proof of Theorem fvsnun1
StepHypRef Expression
1 fvsnun.3 . . . . 5 𝐺 = ({⟨𝐴, 𝐵⟩} ∪ (𝐹 ↾ (𝐶 ∖ {𝐴})))
21reseq1i 5837 . . . 4 (𝐺 ↾ {𝐴}) = (({⟨𝐴, 𝐵⟩} ∪ (𝐹 ↾ (𝐶 ∖ {𝐴}))) ↾ {𝐴})
3 resundir 5856 . . . . 5 (({⟨𝐴, 𝐵⟩} ∪ (𝐹 ↾ (𝐶 ∖ {𝐴}))) ↾ {𝐴}) = (({⟨𝐴, 𝐵⟩} ↾ {𝐴}) ∪ ((𝐹 ↾ (𝐶 ∖ {𝐴})) ↾ {𝐴}))
4 incom 4163 . . . . . . . . 9 ((𝐶 ∖ {𝐴}) ∩ {𝐴}) = ({𝐴} ∩ (𝐶 ∖ {𝐴}))
5 disjdif 4404 . . . . . . . . 9 ({𝐴} ∩ (𝐶 ∖ {𝐴})) = ∅
64, 5eqtri 2847 . . . . . . . 8 ((𝐶 ∖ {𝐴}) ∩ {𝐴}) = ∅
7 resdisj 6014 . . . . . . . 8 (((𝐶 ∖ {𝐴}) ∩ {𝐴}) = ∅ → ((𝐹 ↾ (𝐶 ∖ {𝐴})) ↾ {𝐴}) = ∅)
86, 7ax-mp 5 . . . . . . 7 ((𝐹 ↾ (𝐶 ∖ {𝐴})) ↾ {𝐴}) = ∅
98uneq2i 4122 . . . . . 6 (({⟨𝐴, 𝐵⟩} ↾ {𝐴}) ∪ ((𝐹 ↾ (𝐶 ∖ {𝐴})) ↾ {𝐴})) = (({⟨𝐴, 𝐵⟩} ↾ {𝐴}) ∪ ∅)
10 un0 4327 . . . . . 6 (({⟨𝐴, 𝐵⟩} ↾ {𝐴}) ∪ ∅) = ({⟨𝐴, 𝐵⟩} ↾ {𝐴})
119, 10eqtri 2847 . . . . 5 (({⟨𝐴, 𝐵⟩} ↾ {𝐴}) ∪ ((𝐹 ↾ (𝐶 ∖ {𝐴})) ↾ {𝐴})) = ({⟨𝐴, 𝐵⟩} ↾ {𝐴})
123, 11eqtri 2847 . . . 4 (({⟨𝐴, 𝐵⟩} ∪ (𝐹 ↾ (𝐶 ∖ {𝐴}))) ↾ {𝐴}) = ({⟨𝐴, 𝐵⟩} ↾ {𝐴})
132, 12eqtri 2847 . . 3 (𝐺 ↾ {𝐴}) = ({⟨𝐴, 𝐵⟩} ↾ {𝐴})
1413fveq1i 6660 . 2 ((𝐺 ↾ {𝐴})‘𝐴) = (({⟨𝐴, 𝐵⟩} ↾ {𝐴})‘𝐴)
15 fvsnun.1 . . . 4 (𝜑𝐴𝑉)
16 snidg 4584 . . . 4 (𝐴𝑉𝐴 ∈ {𝐴})
1715, 16syl 17 . . 3 (𝜑𝐴 ∈ {𝐴})
1817fvresd 6679 . 2 (𝜑 → ((𝐺 ↾ {𝐴})‘𝐴) = (𝐺𝐴))
1917fvresd 6679 . . 3 (𝜑 → (({⟨𝐴, 𝐵⟩} ↾ {𝐴})‘𝐴) = ({⟨𝐴, 𝐵⟩}‘𝐴))
20 fvsnun.2 . . . 4 (𝜑𝐵𝑊)
21 fvsng 6931 . . . 4 ((𝐴𝑉𝐵𝑊) → ({⟨𝐴, 𝐵⟩}‘𝐴) = 𝐵)
2215, 20, 21syl2anc 587 . . 3 (𝜑 → ({⟨𝐴, 𝐵⟩}‘𝐴) = 𝐵)
2319, 22eqtrd 2859 . 2 (𝜑 → (({⟨𝐴, 𝐵⟩} ↾ {𝐴})‘𝐴) = 𝐵)
2414, 18, 233eqtr3a 2883 1 (𝜑 → (𝐺𝐴) = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1538  wcel 2115  cdif 3916  cun 3917  cin 3918  c0 4276  {csn 4550  cop 4556  cres 5545  cfv 6344
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1912  ax-6 1971  ax-7 2016  ax-8 2117  ax-9 2125  ax-10 2146  ax-11 2162  ax-12 2179  ax-ext 2796  ax-sep 5190  ax-nul 5197  ax-pr 5318
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2071  df-mo 2624  df-eu 2655  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2964  df-ral 3138  df-rex 3139  df-rab 3142  df-v 3482  df-sbc 3759  df-dif 3922  df-un 3924  df-in 3926  df-ss 3936  df-nul 4277  df-if 4451  df-sn 4551  df-pr 4553  df-op 4557  df-uni 4826  df-br 5054  df-opab 5116  df-id 5448  df-xp 5549  df-rel 5550  df-cnv 5551  df-co 5552  df-dm 5553  df-res 5555  df-iota 6303  df-fun 6346  df-fv 6352
This theorem is referenced by:  fac0  13639  ruclem4  15585  satfv1lem  32636
  Copyright terms: Public domain W3C validator