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

Theorem fmptsng 7040
Description: Express a singleton function in maps-to notation. Version of fmptsn 7039 allowing the value 𝐵 to depend on the variable 𝑥. (Contributed by AV, 27-Feb-2019.)
Hypothesis
Ref Expression
fmptsng.1 (𝑥 = 𝐴𝐵 = 𝐶)
Assertion
Ref Expression
fmptsng ((𝐴𝑉𝐶𝑊) → {⟨𝐴, 𝐶⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐶
Allowed substitution hints:   𝐵(𝑥)   𝑉(𝑥)   𝑊(𝑥)

Proof of Theorem fmptsng
Dummy variables 𝑝 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 velsn 4577 . . . . 5 (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴)
21bicomi 223 . . . 4 (𝑥 = 𝐴𝑥 ∈ {𝐴})
32anbi1i 624 . . 3 ((𝑥 = 𝐴𝑦 = 𝐵) ↔ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵))
43opabbii 5141 . 2 {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵)}
5 velsn 4577 . . . . 5 (𝑝 ∈ {⟨𝐴, 𝐶⟩} ↔ 𝑝 = ⟨𝐴, 𝐶⟩)
6 eqidd 2739 . . . . . . 7 ((𝐴𝑉𝐶𝑊) → 𝐴 = 𝐴)
7 eqidd 2739 . . . . . . 7 ((𝐴𝑉𝐶𝑊) → 𝐶 = 𝐶)
8 eqeq1 2742 . . . . . . . . . 10 (𝑥 = 𝐴 → (𝑥 = 𝐴𝐴 = 𝐴))
98adantr 481 . . . . . . . . 9 ((𝑥 = 𝐴𝑦 = 𝐶) → (𝑥 = 𝐴𝐴 = 𝐴))
10 eqeq1 2742 . . . . . . . . . 10 (𝑦 = 𝐶 → (𝑦 = 𝐵𝐶 = 𝐵))
11 fmptsng.1 . . . . . . . . . . 11 (𝑥 = 𝐴𝐵 = 𝐶)
1211eqeq2d 2749 . . . . . . . . . 10 (𝑥 = 𝐴 → (𝐶 = 𝐵𝐶 = 𝐶))
1310, 12sylan9bbr 511 . . . . . . . . 9 ((𝑥 = 𝐴𝑦 = 𝐶) → (𝑦 = 𝐵𝐶 = 𝐶))
149, 13anbi12d 631 . . . . . . . 8 ((𝑥 = 𝐴𝑦 = 𝐶) → ((𝑥 = 𝐴𝑦 = 𝐵) ↔ (𝐴 = 𝐴𝐶 = 𝐶)))
1514opelopabga 5446 . . . . . . 7 ((𝐴𝑉𝐶𝑊) → (⟨𝐴, 𝐶⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} ↔ (𝐴 = 𝐴𝐶 = 𝐶)))
166, 7, 15mpbir2and 710 . . . . . 6 ((𝐴𝑉𝐶𝑊) → ⟨𝐴, 𝐶⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)})
17 eleq1 2826 . . . . . 6 (𝑝 = ⟨𝐴, 𝐶⟩ → (𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} ↔ ⟨𝐴, 𝐶⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
1816, 17syl5ibrcom 246 . . . . 5 ((𝐴𝑉𝐶𝑊) → (𝑝 = ⟨𝐴, 𝐶⟩ → 𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
195, 18syl5bi 241 . . . 4 ((𝐴𝑉𝐶𝑊) → (𝑝 ∈ {⟨𝐴, 𝐶⟩} → 𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
20 elopab 5440 . . . . 5 (𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} ↔ ∃𝑥𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 = 𝐴𝑦 = 𝐵)))
21 opeq12 4806 . . . . . . . . . 10 ((𝑥 = 𝐴𝑦 = 𝐵) → ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
2221eqeq2d 2749 . . . . . . . . 9 ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑝 = ⟨𝑥, 𝑦⟩ ↔ 𝑝 = ⟨𝐴, 𝐵⟩))
2311adantr 481 . . . . . . . . . . . 12 ((𝑥 = 𝐴𝑦 = 𝐵) → 𝐵 = 𝐶)
2423opeq2d 4811 . . . . . . . . . . 11 ((𝑥 = 𝐴𝑦 = 𝐵) → ⟨𝐴, 𝐵⟩ = ⟨𝐴, 𝐶⟩)
25 opex 5379 . . . . . . . . . . . 12 𝐴, 𝐶⟩ ∈ V
2625snid 4597 . . . . . . . . . . 11 𝐴, 𝐶⟩ ∈ {⟨𝐴, 𝐶⟩}
2724, 26eqeltrdi 2847 . . . . . . . . . 10 ((𝑥 = 𝐴𝑦 = 𝐵) → ⟨𝐴, 𝐵⟩ ∈ {⟨𝐴, 𝐶⟩})
28 eleq1 2826 . . . . . . . . . 10 (𝑝 = ⟨𝐴, 𝐵⟩ → (𝑝 ∈ {⟨𝐴, 𝐶⟩} ↔ ⟨𝐴, 𝐵⟩ ∈ {⟨𝐴, 𝐶⟩}))
2927, 28syl5ibrcom 246 . . . . . . . . 9 ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑝 = ⟨𝐴, 𝐵⟩ → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
3022, 29sylbid 239 . . . . . . . 8 ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑝 = ⟨𝑥, 𝑦⟩ → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
3130impcom 408 . . . . . . 7 ((𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → 𝑝 ∈ {⟨𝐴, 𝐶⟩})
3231exlimivv 1935 . . . . . 6 (∃𝑥𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → 𝑝 ∈ {⟨𝐴, 𝐶⟩})
3332a1i 11 . . . . 5 ((𝐴𝑉𝐶𝑊) → (∃𝑥𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
3420, 33syl5bi 241 . . . 4 ((𝐴𝑉𝐶𝑊) → (𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
3519, 34impbid 211 . . 3 ((𝐴𝑉𝐶𝑊) → (𝑝 ∈ {⟨𝐴, 𝐶⟩} ↔ 𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
3635eqrdv 2736 . 2 ((𝐴𝑉𝐶𝑊) → {⟨𝐴, 𝐶⟩} = {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)})
37 df-mpt 5158 . . 3 (𝑥 ∈ {𝐴} ↦ 𝐵) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵)}
3837a1i 11 . 2 ((𝐴𝑉𝐶𝑊) → (𝑥 ∈ {𝐴} ↦ 𝐵) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵)})
394, 36, 383eqtr4a 2804 1 ((𝐴𝑉𝐶𝑊) → {⟨𝐴, 𝐶⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wex 1782  wcel 2106  {csn 4561  cop 4567  {copab 5136  cmpt 5157
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-opab 5137  df-mpt 5158
This theorem is referenced by:  mdet0pr  21741  m1detdiag  21746
  Copyright terms: Public domain W3C validator