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

Theorem dfco2 5634
Description: Alternate definition of a class composition, using only one bound variable. (Contributed by NM, 19-Dec-2008.)
Assertion
Ref Expression
dfco2 (𝐴𝐵) = 𝑥 ∈ V ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥}))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵

Proof of Theorem dfco2
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 relco 5633 . 2 Rel (𝐴𝐵)
2 reliun 5239 . . 3 (Rel 𝑥 ∈ V ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})) ↔ ∀𝑥 ∈ V Rel ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})))
3 relxp 5227 . . . 4 Rel ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥}))
43a1i 11 . . 3 (𝑥 ∈ V → Rel ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})))
52, 4mprgbir 2927 . 2 Rel 𝑥 ∈ V ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥}))
6 vex 3203 . . . 4 𝑦 ∈ V
7 vex 3203 . . . 4 𝑧 ∈ V
8 opelco2g 5289 . . . 4 ((𝑦 ∈ V ∧ 𝑧 ∈ V) → (⟨𝑦, 𝑧⟩ ∈ (𝐴𝐵) ↔ ∃𝑥(⟨𝑦, 𝑥⟩ ∈ 𝐵 ∧ ⟨𝑥, 𝑧⟩ ∈ 𝐴)))
96, 7, 8mp2an 708 . . 3 (⟨𝑦, 𝑧⟩ ∈ (𝐴𝐵) ↔ ∃𝑥(⟨𝑦, 𝑥⟩ ∈ 𝐵 ∧ ⟨𝑥, 𝑧⟩ ∈ 𝐴))
10 eliun 4524 . . . 4 (⟨𝑦, 𝑧⟩ ∈ 𝑥 ∈ V ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})) ↔ ∃𝑥 ∈ V ⟨𝑦, 𝑧⟩ ∈ ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})))
11 rexv 3220 . . . 4 (∃𝑥 ∈ V ⟨𝑦, 𝑧⟩ ∈ ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})) ↔ ∃𝑥𝑦, 𝑧⟩ ∈ ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})))
12 opelxp 5146 . . . . . 6 (⟨𝑦, 𝑧⟩ ∈ ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})) ↔ (𝑦 ∈ (𝐵 “ {𝑥}) ∧ 𝑧 ∈ (𝐴 “ {𝑥})))
13 vex 3203 . . . . . . . . 9 𝑥 ∈ V
1413, 6elimasn 5490 . . . . . . . 8 (𝑦 ∈ (𝐵 “ {𝑥}) ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵)
1513, 6opelcnv 5304 . . . . . . . 8 (⟨𝑥, 𝑦⟩ ∈ 𝐵 ↔ ⟨𝑦, 𝑥⟩ ∈ 𝐵)
1614, 15bitri 264 . . . . . . 7 (𝑦 ∈ (𝐵 “ {𝑥}) ↔ ⟨𝑦, 𝑥⟩ ∈ 𝐵)
1713, 7elimasn 5490 . . . . . . 7 (𝑧 ∈ (𝐴 “ {𝑥}) ↔ ⟨𝑥, 𝑧⟩ ∈ 𝐴)
1816, 17anbi12i 733 . . . . . 6 ((𝑦 ∈ (𝐵 “ {𝑥}) ∧ 𝑧 ∈ (𝐴 “ {𝑥})) ↔ (⟨𝑦, 𝑥⟩ ∈ 𝐵 ∧ ⟨𝑥, 𝑧⟩ ∈ 𝐴))
1912, 18bitri 264 . . . . 5 (⟨𝑦, 𝑧⟩ ∈ ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})) ↔ (⟨𝑦, 𝑥⟩ ∈ 𝐵 ∧ ⟨𝑥, 𝑧⟩ ∈ 𝐴))
2019exbii 1774 . . . 4 (∃𝑥𝑦, 𝑧⟩ ∈ ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})) ↔ ∃𝑥(⟨𝑦, 𝑥⟩ ∈ 𝐵 ∧ ⟨𝑥, 𝑧⟩ ∈ 𝐴))
2110, 11, 203bitrri 287 . . 3 (∃𝑥(⟨𝑦, 𝑥⟩ ∈ 𝐵 ∧ ⟨𝑥, 𝑧⟩ ∈ 𝐴) ↔ ⟨𝑦, 𝑧⟩ ∈ 𝑥 ∈ V ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})))
229, 21bitri 264 . 2 (⟨𝑦, 𝑧⟩ ∈ (𝐴𝐵) ↔ ⟨𝑦, 𝑧⟩ ∈ 𝑥 ∈ V ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥})))
231, 5, 22eqrelriiv 5214 1 (𝐴𝐵) = 𝑥 ∈ V ((𝐵 “ {𝑥}) × (𝐴 “ {𝑥}))
Colors of variables: wff setvar class
Syntax hints:  wb 196  wa 384   = wceq 1483  wex 1704  wcel 1990  wrex 2913  Vcvv 3200  {csn 4177  cop 4183   ciun 4520   × cxp 5112  ccnv 5113  cima 5117  ccom 5118  Rel wrel 5119
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pr 4906
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ral 2917  df-rex 2918  df-rab 2921  df-v 3202  df-sbc 3436  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-sn 4178  df-pr 4180  df-op 4184  df-iun 4522  df-br 4654  df-opab 4713  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127
This theorem is referenced by:  dfco2a  5635
  Copyright terms: Public domain W3C validator