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

Theorem xpco 5592
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 3890 . . . . . 6 (𝐵 ≠ ∅ ↔ ∃𝑦 𝑦𝐵)
21biimpi 205 . . . . 5 (𝐵 ≠ ∅ → ∃𝑦 𝑦𝐵)
32biantrurd 528 . . . 4 (𝐵 ≠ ∅ → ((𝑥𝐴𝑧𝐶) ↔ (∃𝑦 𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶))))
4 ancom 465 . . . . . . . 8 ((𝑥𝐴𝑦𝐵) ↔ (𝑦𝐵𝑥𝐴))
54anbi1i 727 . . . . . . 7 (((𝑥𝐴𝑦𝐵) ∧ (𝑦𝐵𝑧𝐶)) ↔ ((𝑦𝐵𝑥𝐴) ∧ (𝑦𝐵𝑧𝐶)))
6 brxp 5071 . . . . . . . 8 (𝑥(𝐴 × 𝐵)𝑦 ↔ (𝑥𝐴𝑦𝐵))
7 brxp 5071 . . . . . . . 8 (𝑦(𝐵 × 𝐶)𝑧 ↔ (𝑦𝐵𝑧𝐶))
86, 7anbi12i 729 . . . . . . 7 ((𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧) ↔ ((𝑥𝐴𝑦𝐵) ∧ (𝑦𝐵𝑧𝐶)))
9 anandi 867 . . . . . . 7 ((𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)) ↔ ((𝑦𝐵𝑥𝐴) ∧ (𝑦𝐵𝑧𝐶)))
105, 8, 93bitr4i 291 . . . . . 6 ((𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧) ↔ (𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)))
1110exbii 1764 . . . . 5 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧) ↔ ∃𝑦(𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)))
12 19.41v 1901 . . . . 5 (∃𝑦(𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)) ↔ (∃𝑦 𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)))
1311, 12bitr2i 264 . . . 4 ((∃𝑦 𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)) ↔ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧))
143, 13syl6rbb 276 . . 3 (𝐵 ≠ ∅ → (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧) ↔ (𝑥𝐴𝑧𝐶)))
1514opabbidv 4648 . 2 (𝐵 ≠ ∅ → {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧)} = {⟨𝑥, 𝑧⟩ ∣ (𝑥𝐴𝑧𝐶)})
16 df-co 5047 . 2 ((𝐵 × 𝐶) ∘ (𝐴 × 𝐵)) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧)}
17 df-xp 5044 . 2 (𝐴 × 𝐶) = {⟨𝑥, 𝑧⟩ ∣ (𝑥𝐴𝑧𝐶)}
1815, 16, 173eqtr4g 2669 1 (𝐵 ≠ ∅ → ((𝐵 × 𝐶) ∘ (𝐴 × 𝐵)) = (𝐴 × 𝐶))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383   = wceq 1475  wex 1695  wcel 1977  wne 2780  c0 3874   class class class wbr 4583  {copab 4642   × cxp 5036  ccom 5042
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pr 4833
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-rab 2905  df-v 3175  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-br 4584  df-opab 4644  df-xp 5044  df-co 5047
This theorem is referenced by:  xpcoid  5593  ustund  21835  ustneism  21837
  Copyright terms: Public domain W3C validator