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

Theorem xpcogend 14793
Description: The most interesting case of the composition of two Cartesian products. (Contributed by RP, 24-Dec-2019.)
Hypothesis
Ref Expression
xpcogend.1 (𝜑 → (𝐵𝐶) ≠ ∅)
Assertion
Ref Expression
xpcogend (𝜑 → ((𝐶 × 𝐷) ∘ (𝐴 × 𝐵)) = (𝐴 × 𝐷))

Proof of Theorem xpcogend
Dummy variables 𝑥 𝑧 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 brxp 5678 . . . . . . 7 (𝑥(𝐴 × 𝐵)𝑦 ↔ (𝑥𝐴𝑦𝐵))
2 brxp 5678 . . . . . . . 8 (𝑦(𝐶 × 𝐷)𝑧 ↔ (𝑦𝐶𝑧𝐷))
32biancomi 464 . . . . . . 7 (𝑦(𝐶 × 𝐷)𝑧 ↔ (𝑧𝐷𝑦𝐶))
41, 3anbi12i 628 . . . . . 6 ((𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ ((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)))
54exbii 1851 . . . . 5 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ ∃𝑦((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)))
6 an4 655 . . . . . 6 (((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)) ↔ ((𝑥𝐴𝑧𝐷) ∧ (𝑦𝐵𝑦𝐶)))
76exbii 1851 . . . . 5 (∃𝑦((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)) ↔ ∃𝑦((𝑥𝐴𝑧𝐷) ∧ (𝑦𝐵𝑦𝐶)))
8 19.42v 1958 . . . . 5 (∃𝑦((𝑥𝐴𝑧𝐷) ∧ (𝑦𝐵𝑦𝐶)) ↔ ((𝑥𝐴𝑧𝐷) ∧ ∃𝑦(𝑦𝐵𝑦𝐶)))
95, 7, 83bitri 297 . . . 4 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ ((𝑥𝐴𝑧𝐷) ∧ ∃𝑦(𝑦𝐵𝑦𝐶)))
10 xpcogend.1 . . . . . 6 (𝜑 → (𝐵𝐶) ≠ ∅)
11 ndisj 4326 . . . . . 6 ((𝐵𝐶) ≠ ∅ ↔ ∃𝑦(𝑦𝐵𝑦𝐶))
1210, 11sylib 217 . . . . 5 (𝜑 → ∃𝑦(𝑦𝐵𝑦𝐶))
1312biantrud 533 . . . 4 (𝜑 → ((𝑥𝐴𝑧𝐷) ↔ ((𝑥𝐴𝑧𝐷) ∧ ∃𝑦(𝑦𝐵𝑦𝐶))))
149, 13bitr4id 290 . . 3 (𝜑 → (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ (𝑥𝐴𝑧𝐷)))
1514opabbidv 5170 . 2 (𝜑 → {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧)} = {⟨𝑥, 𝑧⟩ ∣ (𝑥𝐴𝑧𝐷)})
16 df-co 5640 . 2 ((𝐶 × 𝐷) ∘ (𝐴 × 𝐵)) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧)}
17 df-xp 5637 . 2 (𝐴 × 𝐷) = {⟨𝑥, 𝑧⟩ ∣ (𝑥𝐴𝑧𝐷)}
1815, 16, 173eqtr4g 2803 1 (𝜑 → ((𝐶 × 𝐷) ∘ (𝐴 × 𝐵)) = (𝐴 × 𝐷))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397   = wceq 1542  wex 1782  wcel 2107  wne 2942  cin 3908  c0 4281   class class class wbr 5104  {copab 5166   × cxp 5629  ccom 5635
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 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-ext 2709  ax-sep 5255  ax-nul 5262  ax-pr 5383
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2816  df-ne 2943  df-ral 3064  df-rex 3073  df-rab 3407  df-v 3446  df-dif 3912  df-un 3914  df-in 3916  df-ss 3926  df-nul 4282  df-if 4486  df-sn 4586  df-pr 4588  df-op 4592  df-br 5105  df-opab 5167  df-xp 5637  df-co 5640
This theorem is referenced by:  xpcoidgend  14794
  Copyright terms: Public domain W3C validator