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

Theorem xpcogend 14502
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 5583 . . . . . . 7 (𝑥(𝐴 × 𝐵)𝑦 ↔ (𝑥𝐴𝑦𝐵))
2 brxp 5583 . . . . . . . 8 (𝑦(𝐶 × 𝐷)𝑧 ↔ (𝑦𝐶𝑧𝐷))
32biancomi 466 . . . . . . 7 (𝑦(𝐶 × 𝐷)𝑧 ↔ (𝑧𝐷𝑦𝐶))
41, 3anbi12i 630 . . . . . 6 ((𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ ((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)))
54exbii 1855 . . . . 5 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ ∃𝑦((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)))
6 an4 656 . . . . . 6 (((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)) ↔ ((𝑥𝐴𝑧𝐷) ∧ (𝑦𝐵𝑦𝐶)))
76exbii 1855 . . . . 5 (∃𝑦((𝑥𝐴𝑦𝐵) ∧ (𝑧𝐷𝑦𝐶)) ↔ ∃𝑦((𝑥𝐴𝑧𝐷) ∧ (𝑦𝐵𝑦𝐶)))
8 19.42v 1962 . . . . 5 (∃𝑦((𝑥𝐴𝑧𝐷) ∧ (𝑦𝐵𝑦𝐶)) ↔ ((𝑥𝐴𝑧𝐷) ∧ ∃𝑦(𝑦𝐵𝑦𝐶)))
95, 7, 83bitri 300 . . . 4 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ ((𝑥𝐴𝑧𝐷) ∧ ∃𝑦(𝑦𝐵𝑦𝐶)))
10 xpcogend.1 . . . . . 6 (𝜑 → (𝐵𝐶) ≠ ∅)
11 ndisj 4268 . . . . . 6 ((𝐵𝐶) ≠ ∅ ↔ ∃𝑦(𝑦𝐵𝑦𝐶))
1210, 11sylib 221 . . . . 5 (𝜑 → ∃𝑦(𝑦𝐵𝑦𝐶))
1312biantrud 535 . . . 4 (𝜑 → ((𝑥𝐴𝑧𝐷) ↔ ((𝑥𝐴𝑧𝐷) ∧ ∃𝑦(𝑦𝐵𝑦𝐶))))
149, 13bitr4id 293 . . 3 (𝜑 → (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧) ↔ (𝑥𝐴𝑧𝐷)))
1514opabbidv 5105 . 2 (𝜑 → {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧)} = {⟨𝑥, 𝑧⟩ ∣ (𝑥𝐴𝑧𝐷)})
16 df-co 5545 . 2 ((𝐶 × 𝐷) ∘ (𝐴 × 𝐵)) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐶 × 𝐷)𝑧)}
17 df-xp 5542 . 2 (𝐴 × 𝐷) = {⟨𝑥, 𝑧⟩ ∣ (𝑥𝐴𝑧𝐷)}
1815, 16, 173eqtr4g 2796 1 (𝜑 → ((𝐶 × 𝐷) ∘ (𝐴 × 𝐵)) = (𝐴 × 𝐷))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399   = wceq 1543  wex 1787  wcel 2112  wne 2932  cin 3852  c0 4223   class class class wbr 5039  {copab 5101   × cxp 5534  ccom 5540
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2018  ax-8 2114  ax-9 2122  ax-ext 2708  ax-sep 5177  ax-nul 5184  ax-pr 5307
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-sb 2073  df-clab 2715  df-cleq 2728  df-clel 2809  df-ne 2933  df-ral 3056  df-rex 3057  df-rab 3060  df-v 3400  df-dif 3856  df-un 3858  df-in 3860  df-nul 4224  df-if 4426  df-sn 4528  df-pr 4530  df-op 4534  df-br 5040  df-opab 5102  df-xp 5542  df-co 5545
This theorem is referenced by:  xpcoidgend  14503
  Copyright terms: Public domain W3C validator