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

Theorem ressn 6188
Description: Restriction of a class to a singleton. (Contributed by Mario Carneiro, 28-Dec-2014.) (Proof shortened by Peter Mazsa, 2-Oct-2022.)
Assertion
Ref Expression
ressn (𝐴 ↾ {𝐵}) = ({𝐵} × (𝐴 “ {𝐵}))

Proof of Theorem ressn
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 relres 5920 . 2 Rel (𝐴 ↾ {𝐵})
2 relxp 5607 . 2 Rel ({𝐵} × (𝐴 “ {𝐵}))
3 vex 3436 . . . . . 6 𝑥 ∈ V
4 vex 3436 . . . . . 6 𝑦 ∈ V
53, 4elimasn 5997 . . . . 5 (𝑦 ∈ (𝐴 “ {𝑥}) ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐴)
6 elsni 4578 . . . . . . . 8 (𝑥 ∈ {𝐵} → 𝑥 = 𝐵)
76sneqd 4573 . . . . . . 7 (𝑥 ∈ {𝐵} → {𝑥} = {𝐵})
87imaeq2d 5969 . . . . . 6 (𝑥 ∈ {𝐵} → (𝐴 “ {𝑥}) = (𝐴 “ {𝐵}))
98eleq2d 2824 . . . . 5 (𝑥 ∈ {𝐵} → (𝑦 ∈ (𝐴 “ {𝑥}) ↔ 𝑦 ∈ (𝐴 “ {𝐵})))
105, 9bitr3id 285 . . . 4 (𝑥 ∈ {𝐵} → (⟨𝑥, 𝑦⟩ ∈ 𝐴𝑦 ∈ (𝐴 “ {𝐵})))
1110pm5.32i 575 . . 3 ((𝑥 ∈ {𝐵} ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐴) ↔ (𝑥 ∈ {𝐵} ∧ 𝑦 ∈ (𝐴 “ {𝐵})))
124opelresi 5899 . . 3 (⟨𝑥, 𝑦⟩ ∈ (𝐴 ↾ {𝐵}) ↔ (𝑥 ∈ {𝐵} ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐴))
13 opelxp 5625 . . 3 (⟨𝑥, 𝑦⟩ ∈ ({𝐵} × (𝐴 “ {𝐵})) ↔ (𝑥 ∈ {𝐵} ∧ 𝑦 ∈ (𝐴 “ {𝐵})))
1411, 12, 133bitr4i 303 . 2 (⟨𝑥, 𝑦⟩ ∈ (𝐴 ↾ {𝐵}) ↔ ⟨𝑥, 𝑦⟩ ∈ ({𝐵} × (𝐴 “ {𝐵})))
151, 2, 14eqrelriiv 5700 1 (𝐴 ↾ {𝐵}) = ({𝐵} × (𝐴 “ {𝐵}))
Colors of variables: wff setvar class
Syntax hints:  wa 396   = wceq 1539  wcel 2106  {csn 4561  cop 4567   × cxp 5587  cres 5591  cima 5592
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-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-br 5075  df-opab 5137  df-xp 5595  df-rel 5596  df-cnv 5597  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602
This theorem is referenced by:  gsum2dlem2  19572  dprd2da  19645  ustneism  23375
  Copyright terms: Public domain W3C validator