Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  dmrab Structured version   Visualization version   GIF version

Theorem dmrab 30745
Description: Domain of a restricted class abstraction over a cartesian product. (Contributed by Thierry Arnoux, 3-Jul-2023.)
Hypothesis
Ref Expression
dmrab.1 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝜑𝜓))
Assertion
Ref Expression
dmrab dom {𝑧 ∈ (𝐴 × 𝐵) ∣ 𝜑} = {𝑥𝐴 ∣ ∃𝑦𝐵 𝜓}
Distinct variable groups:   𝑥,𝐴,𝑦,𝑧   𝑥,𝐵,𝑦,𝑧   𝜑,𝑥,𝑦   𝜓,𝑧
Allowed substitution hints:   𝜑(𝑧)   𝜓(𝑥,𝑦)

Proof of Theorem dmrab
StepHypRef Expression
1 dmrab.1 . . . . . . . . 9 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝜑𝜓))
21elrab 3617 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ {𝑧 ∈ (𝐴 × 𝐵) ∣ 𝜑} ↔ (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ∧ 𝜓))
3 opelxp 5616 . . . . . . . . 9 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ↔ (𝑥𝐴𝑦𝐵))
43anbi1i 623 . . . . . . . 8 ((⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ∧ 𝜓) ↔ ((𝑥𝐴𝑦𝐵) ∧ 𝜓))
5 ancom 460 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) ↔ (𝑦𝐵𝑥𝐴))
65anbi1i 623 . . . . . . . 8 (((𝑥𝐴𝑦𝐵) ∧ 𝜓) ↔ ((𝑦𝐵𝑥𝐴) ∧ 𝜓))
72, 4, 63bitri 296 . . . . . . 7 (⟨𝑥, 𝑦⟩ ∈ {𝑧 ∈ (𝐴 × 𝐵) ∣ 𝜑} ↔ ((𝑦𝐵𝑥𝐴) ∧ 𝜓))
8 anass 468 . . . . . . 7 (((𝑦𝐵𝑥𝐴) ∧ 𝜓) ↔ (𝑦𝐵 ∧ (𝑥𝐴𝜓)))
9 ancom 460 . . . . . . . 8 ((𝑥𝐴𝜓) ↔ (𝜓𝑥𝐴))
109anbi2i 622 . . . . . . 7 ((𝑦𝐵 ∧ (𝑥𝐴𝜓)) ↔ (𝑦𝐵 ∧ (𝜓𝑥𝐴)))
117, 8, 103bitri 296 . . . . . 6 (⟨𝑥, 𝑦⟩ ∈ {𝑧 ∈ (𝐴 × 𝐵) ∣ 𝜑} ↔ (𝑦𝐵 ∧ (𝜓𝑥𝐴)))
1211exbii 1851 . . . . 5 (∃𝑦𝑥, 𝑦⟩ ∈ {𝑧 ∈ (𝐴 × 𝐵) ∣ 𝜑} ↔ ∃𝑦(𝑦𝐵 ∧ (𝜓𝑥𝐴)))
13 df-rex 3069 . . . . 5 (∃𝑦𝐵 (𝜓𝑥𝐴) ↔ ∃𝑦(𝑦𝐵 ∧ (𝜓𝑥𝐴)))
14 r19.41v 3273 . . . . 5 (∃𝑦𝐵 (𝜓𝑥𝐴) ↔ (∃𝑦𝐵 𝜓𝑥𝐴))
1512, 13, 143bitr2i 298 . . . 4 (∃𝑦𝑥, 𝑦⟩ ∈ {𝑧 ∈ (𝐴 × 𝐵) ∣ 𝜑} ↔ (∃𝑦𝐵 𝜓𝑥𝐴))
1615biancomi 462 . . 3 (∃𝑦𝑥, 𝑦⟩ ∈ {𝑧 ∈ (𝐴 × 𝐵) ∣ 𝜑} ↔ (𝑥𝐴 ∧ ∃𝑦𝐵 𝜓))
1716abbii 2809 . 2 {𝑥 ∣ ∃𝑦𝑥, 𝑦⟩ ∈ {𝑧 ∈ (𝐴 × 𝐵) ∣ 𝜑}} = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦𝐵 𝜓)}
18 dfdm3 5785 . 2 dom {𝑧 ∈ (𝐴 × 𝐵) ∣ 𝜑} = {𝑥 ∣ ∃𝑦𝑥, 𝑦⟩ ∈ {𝑧 ∈ (𝐴 × 𝐵) ∣ 𝜑}}
19 df-rab 3072 . 2 {𝑥𝐴 ∣ ∃𝑦𝐵 𝜓} = {𝑥 ∣ (𝑥𝐴 ∧ ∃𝑦𝐵 𝜓)}
2017, 18, 193eqtr4i 2776 1 dom {𝑧 ∈ (𝐴 × 𝐵) ∣ 𝜑} = {𝑥𝐴 ∣ ∃𝑦𝐵 𝜓}
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  {cab 2715  wrex 3064  {crab 3067  cop 4564   × cxp 5578  dom cdm 5580
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-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-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-br 5071  df-opab 5133  df-xp 5586  df-dm 5590
This theorem is referenced by:  fedgmullem2  31613
  Copyright terms: Public domain W3C validator