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

Theorem rabxp 5709
Description: Class abstraction restricted to a Cartesian product as an ordered-pair class abstraction. (Contributed by NM, 20-Feb-2014.)
Hypothesis
Ref Expression
rabxp.1 (𝑥 = ⟨𝑦, 𝑧⟩ → (𝜑 ↔ 𝜓))
Assertion
Ref Expression
rabxp {𝑥 ∈ (𝐴 × 𝐵) ∣ 𝜑} = {⟨𝑦, 𝑧⟩ ∣ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵 ∧ 𝜓)}
Distinct variable groups:   𝑥,𝑦,𝑧,𝐴   𝑥,𝐵,𝑦,𝑧   𝜑,𝑦,𝑧   𝜓,𝑥
Allowed substitution hints:   𝜑(𝑥)   𝜓(𝑦, 𝑧)

Proof of Theorem rabxp
StepHypRef Expression
1 elxp 5684 . . . . 5 (𝑥 ∈ (𝐴 × 𝐵) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵)))
21anbi1i 636 . . . 4 ((𝑥 ∈ (𝐴 × 𝐵) ∧ 𝜑) ↔ (∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵)) ∧ 𝜑))
3 19.41vv 1987 . . . 4 (∃𝑦∃𝑧((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵)) ∧ 𝜑) ↔ (∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵)) ∧ 𝜑))
4 anass 474 . . . . . 6 (((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵)) ∧ 𝜑) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵) ∧ 𝜑)))
5 rabxp.1 . . . . . . . . 9 (𝑥 = ⟨𝑦, 𝑧⟩ → (𝜑 ↔ 𝜓))
65anbi2d 642 . . . . . . . 8 (𝑥 = ⟨𝑦, 𝑧⟩ → (((𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵) ∧ 𝜑) ↔ ((𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵) ∧ 𝜓)))
7 df-3an 1106 . . . . . . . 8 ((𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵 ∧ 𝜓) ↔ ((𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵) ∧ 𝜓))
86, 7bitr4di 292 . . . . . . 7 (𝑥 = ⟨𝑦, 𝑧⟩ → (((𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵) ∧ 𝜑) ↔ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵 ∧ 𝜓)))
98pm5.32i 585 . . . . . 6 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵) ∧ 𝜑)) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵 ∧ 𝜓)))
104, 9bitri 278 . . . . 5 (((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵)) ∧ 𝜑) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵 ∧ 𝜓)))
11102exbii 1884 . . . 4 (∃𝑦∃𝑧((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵)) ∧ 𝜑) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵 ∧ 𝜓)))
122, 3, 113bitr2i 302 . . 3 ((𝑥 ∈ (𝐴 × 𝐵) ∧ 𝜑) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵 ∧ 𝜓)))
1312abbii 2836 . 2 {𝑥 ∣ (𝑥 ∈ (𝐴 × 𝐵) ∧ 𝜑)} = {𝑥 ∣ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵 ∧ 𝜓))}
14 df-rab 3419 . 2 {𝑥 ∈ (𝐴 × 𝐵) ∣ 𝜑} = {𝑥 ∣ (𝑥 ∈ (𝐴 × 𝐵) ∧ 𝜑)}
15 df-opab 5177 . 2 {⟨𝑦, 𝑧⟩ ∣ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵 ∧ 𝜓)} = {𝑥 ∣ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵 ∧ 𝜓))}
1613, 14, 153eqtr4i 2802 1 {𝑥 ∈ (𝐴 × 𝐵) ∣ 𝜑} = {⟨𝑦, 𝑧⟩ ∣ (𝑦 ∈ 𝐴 ∧ 𝑧 ∈ 𝐵 ∧ 𝜓)}
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1104   = wceq 1572  ∃wex 1814   ∈ wcel 2151  {cab 2747  {crab 3418  ⟨cop 4843  {copab 5176   × cxp 5659
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-ext 2741  ax-sep 5258  ax-pr 5401
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-ex 1815  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-rab 3419  df-v 3458  df-ss 3903  df-in 4096  df-un 4156  df-sn 4591  df-pr 4593  df-op 4844  df-opab 5177  df-xp 5667
This theorem is used by:  cicer  18051  poimirlem26  38858  dib1dim  42514  diclspsn  42543  fgraphxp  44489  relcic  50618
  Copyright terms: Public domain W3C validator