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

Theorem xpco 6152
Description: Composition of two Cartesian products. (Contributed by Thierry Arnoux, 17-Nov-2017.)
Assertion
Ref Expression
xpco (𝐵 ≠ ∅ → ((𝐵 × 𝐶) ∘ (𝐴 × 𝐵)) = (𝐴 × 𝐶))

Proof of Theorem xpco
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 n0 4261 . . . . . 6 (𝐵 ≠ ∅ ↔ ∃𝑦 𝑦𝐵)
21biimpi 219 . . . . 5 (𝐵 ≠ ∅ → ∃𝑦 𝑦𝐵)
32biantrurd 536 . . . 4 (𝐵 ≠ ∅ → ((𝑥𝐴𝑧𝐶) ↔ (∃𝑦 𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶))))
4 ancom 464 . . . . . . . 8 ((𝑥𝐴𝑦𝐵) ↔ (𝑦𝐵𝑥𝐴))
54anbi1i 627 . . . . . . 7 (((𝑥𝐴𝑦𝐵) ∧ (𝑦𝐵𝑧𝐶)) ↔ ((𝑦𝐵𝑥𝐴) ∧ (𝑦𝐵𝑧𝐶)))
6 brxp 5598 . . . . . . . 8 (𝑥(𝐴 × 𝐵)𝑦 ↔ (𝑥𝐴𝑦𝐵))
7 brxp 5598 . . . . . . . 8 (𝑦(𝐵 × 𝐶)𝑧 ↔ (𝑦𝐵𝑧𝐶))
86, 7anbi12i 630 . . . . . . 7 ((𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧) ↔ ((𝑥𝐴𝑦𝐵) ∧ (𝑦𝐵𝑧𝐶)))
9 anandi 676 . . . . . . 7 ((𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)) ↔ ((𝑦𝐵𝑥𝐴) ∧ (𝑦𝐵𝑧𝐶)))
105, 8, 93bitr4i 306 . . . . . 6 ((𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧) ↔ (𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)))
1110exbii 1855 . . . . 5 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧) ↔ ∃𝑦(𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)))
12 19.41v 1958 . . . . 5 (∃𝑦(𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)) ↔ (∃𝑦 𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)))
1311, 12bitr2i 279 . . . 4 ((∃𝑦 𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)) ↔ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧))
143, 13bitr2di 291 . . 3 (𝐵 ≠ ∅ → (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧) ↔ (𝑥𝐴𝑧𝐶)))
1514opabbidv 5119 . 2 (𝐵 ≠ ∅ → {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧)} = {⟨𝑥, 𝑧⟩ ∣ (𝑥𝐴𝑧𝐶)})
16 df-co 5560 . 2 ((𝐵 × 𝐶) ∘ (𝐴 × 𝐵)) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧)}
17 df-xp 5557 . 2 (𝐴 × 𝐶) = {⟨𝑥, 𝑧⟩ ∣ (𝑥𝐴𝑧𝐶)}
1815, 16, 173eqtr4g 2803 1 (𝐵 ≠ ∅ → ((𝐵 × 𝐶) ∘ (𝐴 × 𝐵)) = (𝐴 × 𝐶))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399   = wceq 1543  wex 1787  wcel 2110  wne 2940  c0 4237   class class class wbr 5053  {copab 5115   × cxp 5549  ccom 5555
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 2016  ax-8 2112  ax-9 2120  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pr 5322
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 2071  df-clab 2715  df-cleq 2729  df-clel 2816  df-ne 2941  df-ral 3066  df-rex 3067  df-rab 3070  df-v 3410  df-dif 3869  df-un 3871  df-nul 4238  df-if 4440  df-sn 4542  df-pr 4544  df-op 4548  df-br 5054  df-opab 5116  df-xp 5557  df-co 5560
This theorem is referenced by:  xpcoid  6153  ustund  23119  ustneism  23121  cosnop  30748
  Copyright terms: Public domain W3C validator