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

Theorem fmptsnd 7023
Description: Express a singleton function in maps-to notation. Deduction form of fmptsng 7022. (Contributed by AV, 4-Aug-2019.)
Hypotheses
Ref Expression
fmptsnd.1 ((𝜑𝑥 = 𝐴) → 𝐵 = 𝐶)
fmptsnd.2 (𝜑𝐴𝑉)
fmptsnd.3 (𝜑𝐶𝑊)
Assertion
Ref Expression
fmptsnd (𝜑 → {⟨𝐴, 𝐶⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐶   𝜑,𝑥
Allowed substitution hints:   𝐵(𝑥)   𝑉(𝑥)   𝑊(𝑥)

Proof of Theorem fmptsnd
Dummy variables 𝑝 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 velsn 4574 . . . . 5 (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴)
21bicomi 223 . . . 4 (𝑥 = 𝐴𝑥 ∈ {𝐴})
32anbi1i 623 . . 3 ((𝑥 = 𝐴𝑦 = 𝐵) ↔ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵))
43opabbii 5137 . 2 {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵)}
5 velsn 4574 . . . . 5 (𝑝 ∈ {⟨𝐴, 𝐶⟩} ↔ 𝑝 = ⟨𝐴, 𝐶⟩)
6 eqidd 2739 . . . . . . . 8 (𝜑𝐴 = 𝐴)
7 eqidd 2739 . . . . . . . 8 (𝜑𝐶 = 𝐶)
8 sbcan 3763 . . . . . . . . . . 11 ([𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵) ↔ ([𝐶 / 𝑦]𝑥 = 𝐴[𝐶 / 𝑦]𝑦 = 𝐵))
9 fmptsnd.3 . . . . . . . . . . . . 13 (𝜑𝐶𝑊)
10 sbcg 3791 . . . . . . . . . . . . 13 (𝐶𝑊 → ([𝐶 / 𝑦]𝑥 = 𝐴𝑥 = 𝐴))
119, 10syl 17 . . . . . . . . . . . 12 (𝜑 → ([𝐶 / 𝑦]𝑥 = 𝐴𝑥 = 𝐴))
12 eqsbc1 3760 . . . . . . . . . . . . 13 (𝐶𝑊 → ([𝐶 / 𝑦]𝑦 = 𝐵𝐶 = 𝐵))
139, 12syl 17 . . . . . . . . . . . 12 (𝜑 → ([𝐶 / 𝑦]𝑦 = 𝐵𝐶 = 𝐵))
1411, 13anbi12d 630 . . . . . . . . . . 11 (𝜑 → (([𝐶 / 𝑦]𝑥 = 𝐴[𝐶 / 𝑦]𝑦 = 𝐵) ↔ (𝑥 = 𝐴𝐶 = 𝐵)))
158, 14syl5bb 282 . . . . . . . . . 10 (𝜑 → ([𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵) ↔ (𝑥 = 𝐴𝐶 = 𝐵)))
1615sbcbidv 3770 . . . . . . . . 9 (𝜑 → ([𝐴 / 𝑥][𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵) ↔ [𝐴 / 𝑥](𝑥 = 𝐴𝐶 = 𝐵)))
17 fmptsnd.2 . . . . . . . . . 10 (𝜑𝐴𝑉)
18 eqeq1 2742 . . . . . . . . . . . 12 (𝑥 = 𝐴 → (𝑥 = 𝐴𝐴 = 𝐴))
1918adantl 481 . . . . . . . . . . 11 ((𝜑𝑥 = 𝐴) → (𝑥 = 𝐴𝐴 = 𝐴))
20 fmptsnd.1 . . . . . . . . . . . 12 ((𝜑𝑥 = 𝐴) → 𝐵 = 𝐶)
2120eqeq2d 2749 . . . . . . . . . . 11 ((𝜑𝑥 = 𝐴) → (𝐶 = 𝐵𝐶 = 𝐶))
2219, 21anbi12d 630 . . . . . . . . . 10 ((𝜑𝑥 = 𝐴) → ((𝑥 = 𝐴𝐶 = 𝐵) ↔ (𝐴 = 𝐴𝐶 = 𝐶)))
2317, 22sbcied 3756 . . . . . . . . 9 (𝜑 → ([𝐴 / 𝑥](𝑥 = 𝐴𝐶 = 𝐵) ↔ (𝐴 = 𝐴𝐶 = 𝐶)))
2416, 23bitrd 278 . . . . . . . 8 (𝜑 → ([𝐴 / 𝑥][𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵) ↔ (𝐴 = 𝐴𝐶 = 𝐶)))
256, 7, 24mpbir2and 709 . . . . . . 7 (𝜑[𝐴 / 𝑥][𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵))
26 opelopabsb 5436 . . . . . . 7 (⟨𝐴, 𝐶⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} ↔ [𝐴 / 𝑥][𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵))
2725, 26sylibr 233 . . . . . 6 (𝜑 → ⟨𝐴, 𝐶⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)})
28 eleq1 2826 . . . . . 6 (𝑝 = ⟨𝐴, 𝐶⟩ → (𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} ↔ ⟨𝐴, 𝐶⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
2927, 28syl5ibrcom 246 . . . . 5 (𝜑 → (𝑝 = ⟨𝐴, 𝐶⟩ → 𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
305, 29syl5bi 241 . . . 4 (𝜑 → (𝑝 ∈ {⟨𝐴, 𝐶⟩} → 𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
31 elopab 5433 . . . . 5 (𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} ↔ ∃𝑥𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 = 𝐴𝑦 = 𝐵)))
32 opeq12 4803 . . . . . . . . . . 11 ((𝑥 = 𝐴𝑦 = 𝐵) → ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
3332adantl 481 . . . . . . . . . 10 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
3433eqeq2d 2749 . . . . . . . . 9 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → (𝑝 = ⟨𝑥, 𝑦⟩ ↔ 𝑝 = ⟨𝐴, 𝐵⟩))
3520adantrr 713 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → 𝐵 = 𝐶)
3635opeq2d 4808 . . . . . . . . . . 11 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → ⟨𝐴, 𝐵⟩ = ⟨𝐴, 𝐶⟩)
37 opex 5373 . . . . . . . . . . . 12 𝐴, 𝐶⟩ ∈ V
3837snid 4594 . . . . . . . . . . 11 𝐴, 𝐶⟩ ∈ {⟨𝐴, 𝐶⟩}
3936, 38eqeltrdi 2847 . . . . . . . . . 10 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → ⟨𝐴, 𝐵⟩ ∈ {⟨𝐴, 𝐶⟩})
40 eleq1 2826 . . . . . . . . . 10 (𝑝 = ⟨𝐴, 𝐵⟩ → (𝑝 ∈ {⟨𝐴, 𝐶⟩} ↔ ⟨𝐴, 𝐵⟩ ∈ {⟨𝐴, 𝐶⟩}))
4139, 40syl5ibrcom 246 . . . . . . . . 9 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → (𝑝 = ⟨𝐴, 𝐵⟩ → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
4234, 41sylbid 239 . . . . . . . 8 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → (𝑝 = ⟨𝑥, 𝑦⟩ → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
4342ex 412 . . . . . . 7 (𝜑 → ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑝 = ⟨𝑥, 𝑦⟩ → 𝑝 ∈ {⟨𝐴, 𝐶⟩})))
4443impcomd 411 . . . . . 6 (𝜑 → ((𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
4544exlimdvv 1938 . . . . 5 (𝜑 → (∃𝑥𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
4631, 45syl5bi 241 . . . 4 (𝜑 → (𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
4730, 46impbid 211 . . 3 (𝜑 → (𝑝 ∈ {⟨𝐴, 𝐶⟩} ↔ 𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
4847eqrdv 2736 . 2 (𝜑 → {⟨𝐴, 𝐶⟩} = {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)})
49 df-mpt 5154 . . 3 (𝑥 ∈ {𝐴} ↦ 𝐵) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵)}
5049a1i 11 . 2 (𝜑 → (𝑥 ∈ {𝐴} ↦ 𝐵) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵)})
514, 48, 503eqtr4a 2805 1 (𝜑 → {⟨𝐴, 𝐶⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  [wsbc 3711  {csn 4558  cop 4564  {copab 5132  cmpt 5153
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-opab 5133  df-mpt 5154
This theorem is referenced by:  fmptapd  7025  fmptpr  7026  mposn  7914
  Copyright terms: Public domain W3C validator