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

Theorem fmptsnd 7041
Description: Express a singleton function in maps-to notation. Deduction form of fmptsng 7040. (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 4577 . . . . 5 (𝑥 ∈ {𝐴} ↔ 𝑥 = 𝐴)
21bicomi 223 . . . 4 (𝑥 = 𝐴𝑥 ∈ {𝐴})
32anbi1i 624 . . 3 ((𝑥 = 𝐴𝑦 = 𝐵) ↔ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵))
43opabbii 5141 . 2 {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵)}
5 velsn 4577 . . . . 5 (𝑝 ∈ {⟨𝐴, 𝐶⟩} ↔ 𝑝 = ⟨𝐴, 𝐶⟩)
6 eqidd 2739 . . . . . . . 8 (𝜑𝐴 = 𝐴)
7 eqidd 2739 . . . . . . . 8 (𝜑𝐶 = 𝐶)
8 sbcan 3768 . . . . . . . . . . 11 ([𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵) ↔ ([𝐶 / 𝑦]𝑥 = 𝐴[𝐶 / 𝑦]𝑦 = 𝐵))
9 fmptsnd.3 . . . . . . . . . . . . 13 (𝜑𝐶𝑊)
10 sbcg 3795 . . . . . . . . . . . . 13 (𝐶𝑊 → ([𝐶 / 𝑦]𝑥 = 𝐴𝑥 = 𝐴))
119, 10syl 17 . . . . . . . . . . . 12 (𝜑 → ([𝐶 / 𝑦]𝑥 = 𝐴𝑥 = 𝐴))
12 eqsbc1 3765 . . . . . . . . . . . . 13 (𝐶𝑊 → ([𝐶 / 𝑦]𝑦 = 𝐵𝐶 = 𝐵))
139, 12syl 17 . . . . . . . . . . . 12 (𝜑 → ([𝐶 / 𝑦]𝑦 = 𝐵𝐶 = 𝐵))
1411, 13anbi12d 631 . . . . . . . . . . 11 (𝜑 → (([𝐶 / 𝑦]𝑥 = 𝐴[𝐶 / 𝑦]𝑦 = 𝐵) ↔ (𝑥 = 𝐴𝐶 = 𝐵)))
158, 14bitrid 282 . . . . . . . . . 10 (𝜑 → ([𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵) ↔ (𝑥 = 𝐴𝐶 = 𝐵)))
1615sbcbidv 3775 . . . . . . . . 9 (𝜑 → ([𝐴 / 𝑥][𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵) ↔ [𝐴 / 𝑥](𝑥 = 𝐴𝐶 = 𝐵)))
17 fmptsnd.2 . . . . . . . . . 10 (𝜑𝐴𝑉)
18 eqeq1 2742 . . . . . . . . . . . 12 (𝑥 = 𝐴 → (𝑥 = 𝐴𝐴 = 𝐴))
1918adantl 482 . . . . . . . . . . 11 ((𝜑𝑥 = 𝐴) → (𝑥 = 𝐴𝐴 = 𝐴))
20 fmptsnd.1 . . . . . . . . . . . 12 ((𝜑𝑥 = 𝐴) → 𝐵 = 𝐶)
2120eqeq2d 2749 . . . . . . . . . . 11 ((𝜑𝑥 = 𝐴) → (𝐶 = 𝐵𝐶 = 𝐶))
2219, 21anbi12d 631 . . . . . . . . . 10 ((𝜑𝑥 = 𝐴) → ((𝑥 = 𝐴𝐶 = 𝐵) ↔ (𝐴 = 𝐴𝐶 = 𝐶)))
2317, 22sbcied 3761 . . . . . . . . 9 (𝜑 → ([𝐴 / 𝑥](𝑥 = 𝐴𝐶 = 𝐵) ↔ (𝐴 = 𝐴𝐶 = 𝐶)))
2416, 23bitrd 278 . . . . . . . 8 (𝜑 → ([𝐴 / 𝑥][𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵) ↔ (𝐴 = 𝐴𝐶 = 𝐶)))
256, 7, 24mpbir2and 710 . . . . . . 7 (𝜑[𝐴 / 𝑥][𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵))
26 opelopabsb 5443 . . . . . . 7 (⟨𝐴, 𝐶⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} ↔ [𝐴 / 𝑥][𝐶 / 𝑦](𝑥 = 𝐴𝑦 = 𝐵))
2725, 26sylibr 233 . . . . . 6 (𝜑 → ⟨𝐴, 𝐶⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)})
28 eleq1 2826 . . . . . 6 (𝑝 = ⟨𝐴, 𝐶⟩ → (𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} ↔ ⟨𝐴, 𝐶⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
2927, 28syl5ibrcom 246 . . . . 5 (𝜑 → (𝑝 = ⟨𝐴, 𝐶⟩ → 𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
305, 29syl5bi 241 . . . 4 (𝜑 → (𝑝 ∈ {⟨𝐴, 𝐶⟩} → 𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
31 elopab 5440 . . . . 5 (𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} ↔ ∃𝑥𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 = 𝐴𝑦 = 𝐵)))
32 opeq12 4806 . . . . . . . . . . 11 ((𝑥 = 𝐴𝑦 = 𝐵) → ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
3332adantl 482 . . . . . . . . . 10 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → ⟨𝑥, 𝑦⟩ = ⟨𝐴, 𝐵⟩)
3433eqeq2d 2749 . . . . . . . . 9 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → (𝑝 = ⟨𝑥, 𝑦⟩ ↔ 𝑝 = ⟨𝐴, 𝐵⟩))
3520adantrr 714 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → 𝐵 = 𝐶)
3635opeq2d 4811 . . . . . . . . . . 11 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → ⟨𝐴, 𝐵⟩ = ⟨𝐴, 𝐶⟩)
37 opex 5379 . . . . . . . . . . . 12 𝐴, 𝐶⟩ ∈ V
3837snid 4597 . . . . . . . . . . 11 𝐴, 𝐶⟩ ∈ {⟨𝐴, 𝐶⟩}
3936, 38eqeltrdi 2847 . . . . . . . . . 10 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → ⟨𝐴, 𝐵⟩ ∈ {⟨𝐴, 𝐶⟩})
40 eleq1 2826 . . . . . . . . . 10 (𝑝 = ⟨𝐴, 𝐵⟩ → (𝑝 ∈ {⟨𝐴, 𝐶⟩} ↔ ⟨𝐴, 𝐵⟩ ∈ {⟨𝐴, 𝐶⟩}))
4139, 40syl5ibrcom 246 . . . . . . . . 9 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → (𝑝 = ⟨𝐴, 𝐵⟩ → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
4234, 41sylbid 239 . . . . . . . 8 ((𝜑 ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → (𝑝 = ⟨𝑥, 𝑦⟩ → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
4342ex 413 . . . . . . 7 (𝜑 → ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑝 = ⟨𝑥, 𝑦⟩ → 𝑝 ∈ {⟨𝐴, 𝐶⟩})))
4443impcomd 412 . . . . . 6 (𝜑 → ((𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
4544exlimdvv 1937 . . . . 5 (𝜑 → (∃𝑥𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 = 𝐴𝑦 = 𝐵)) → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
4631, 45syl5bi 241 . . . 4 (𝜑 → (𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)} → 𝑝 ∈ {⟨𝐴, 𝐶⟩}))
4730, 46impbid 211 . . 3 (𝜑 → (𝑝 ∈ {⟨𝐴, 𝐶⟩} ↔ 𝑝 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)}))
4847eqrdv 2736 . 2 (𝜑 → {⟨𝐴, 𝐶⟩} = {⟨𝑥, 𝑦⟩ ∣ (𝑥 = 𝐴𝑦 = 𝐵)})
49 df-mpt 5158 . . 3 (𝑥 ∈ {𝐴} ↦ 𝐵) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵)}
5049a1i 11 . 2 (𝜑 → (𝑥 ∈ {𝐴} ↦ 𝐵) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ {𝐴} ∧ 𝑦 = 𝐵)})
514, 48, 503eqtr4a 2804 1 (𝜑 → {⟨𝐴, 𝐶⟩} = (𝑥 ∈ {𝐴} ↦ 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wex 1782  wcel 2106  [wsbc 3716  {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-10 2137  ax-11 2154  ax-12 2171  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-nf 1787  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  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:  fmptapd  7043  fmptpr  7044  mposn  7943
  Copyright terms: Public domain W3C validator