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

Theorem xpcogend 14685
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 5636 . . . . . . 7 (𝑥(𝐴 × 𝐵)𝑦 ↔ (𝑥𝐴𝑦𝐵))
2 brxp 5636 . . . . . . . 8 (𝑦(𝐶 × 𝐷)𝑧 ↔ (𝑦𝐶𝑧𝐷))
32biancomi 463 . . . . . . 7 (𝑦(𝐶 × 𝐷)𝑧 ↔ (𝑧𝐷𝑦𝐶))
41, 3anbi12i 627 . . . . . 6 ((𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ ((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)))
54exbii 1850 . . . . 5 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ ∃𝑦((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)))
6 an4 653 . . . . . 6 (((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)) ↔ ((𝑥𝐴𝑧𝐷) ∧ (𝑦𝐵𝑦𝐶)))
76exbii 1850 . . . . 5 (∃𝑦((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)) ↔ ∃𝑦((𝑥𝐴𝑧𝐷) ∧ (𝑦𝐵𝑦𝐶)))
8 19.42v 1957 . . . . 5 (∃𝑦((𝑥𝐴𝑧𝐷) ∧ (𝑦𝐵𝑦𝐶)) ↔ ((𝑥𝐴𝑧𝐷) ∧ ∃𝑦(𝑦𝐵𝑦𝐶)))
95, 7, 83bitri 297 . . . 4 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ ((𝑥𝐴𝑧𝐷) ∧ ∃𝑦(𝑦𝐵𝑦𝐶)))
10 xpcogend.1 . . . . . 6 (𝜑 → (𝐵𝐶) ≠ ∅)
11 ndisj 4301 . . . . . 6 ((𝐵𝐶) ≠ ∅ ↔ ∃𝑦(𝑦𝐵𝑦𝐶))
1210, 11sylib 217 . . . . 5 (𝜑 → ∃𝑦(𝑦𝐵𝑦𝐶))
1312biantrud 532 . . . 4 (𝜑 → ((𝑥𝐴𝑧𝐷) ↔ ((𝑥𝐴𝑧𝐷) ∧ ∃𝑦(𝑦𝐵𝑦𝐶))))
149, 13bitr4id 290 . . 3 (𝜑 → (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ (𝑥𝐴𝑧𝐷)))
1514opabbidv 5140 . 2 (𝜑 → {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧)} = {⟨𝑥, 𝑧⟩ ∣ (𝑥𝐴𝑧𝐷)})
16 df-co 5598 . 2 ((𝐶 × 𝐷) ∘ (𝐴 × 𝐵)) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧)}
17 df-xp 5595 . 2 (𝐴 × 𝐷) = {⟨𝑥, 𝑧⟩ ∣ (𝑥𝐴𝑧𝐷)}
1815, 16, 173eqtr4g 2803 1 (𝜑 → ((𝐶 × 𝐷) ∘ (𝐴 × 𝐵)) = (𝐴 × 𝐷))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1539  wex 1782  wcel 2106  wne 2943  cin 3886  c0 4256   class class class wbr 5074  {copab 5136   × cxp 5587  ccom 5593
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-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  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-co 5598
This theorem is referenced by:  xpcoidgend  14686
  Copyright terms: Public domain W3C validator