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

Theorem xpco 6192
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 4280 . . . . . 6 (𝐵 ≠ ∅ ↔ ∃𝑦 𝑦𝐵)
21biimpi 215 . . . . 5 (𝐵 ≠ ∅ → ∃𝑦 𝑦𝐵)
32biantrurd 533 . . . 4 (𝐵 ≠ ∅ → ((𝑥𝐴𝑧𝐶) ↔ (∃𝑦 𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶))))
4 ancom 461 . . . . . . . 8 ((𝑥𝐴𝑦𝐵) ↔ (𝑦𝐵𝑥𝐴))
54anbi1i 624 . . . . . . 7 (((𝑥𝐴𝑦𝐵) ∧ (𝑦𝐵𝑧𝐶)) ↔ ((𝑦𝐵𝑥𝐴) ∧ (𝑦𝐵𝑧𝐶)))
6 brxp 5636 . . . . . . . 8 (𝑥(𝐴 × 𝐵)𝑦 ↔ (𝑥𝐴𝑦𝐵))
7 brxp 5636 . . . . . . . 8 (𝑦(𝐵 × 𝐶)𝑧 ↔ (𝑦𝐵𝑧𝐶))
86, 7anbi12i 627 . . . . . . 7 ((𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧) ↔ ((𝑥𝐴𝑦𝐵) ∧ (𝑦𝐵𝑧𝐶)))
9 anandi 673 . . . . . . 7 ((𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)) ↔ ((𝑦𝐵𝑥𝐴) ∧ (𝑦𝐵𝑧𝐶)))
105, 8, 93bitr4i 303 . . . . . 6 ((𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧) ↔ (𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)))
1110exbii 1850 . . . . 5 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧) ↔ ∃𝑦(𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)))
12 19.41v 1953 . . . . 5 (∃𝑦(𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)) ↔ (∃𝑦 𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)))
1311, 12bitr2i 275 . . . 4 ((∃𝑦 𝑦𝐵 ∧ (𝑥𝐴𝑧𝐶)) ↔ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦𝑦(𝐵 × 𝐶)𝑧))
143, 13bitr2di 288 . . 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  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-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:  xpcoid  6193  ustund  23373  ustneism  23375  cosnop  31028
  Copyright terms: Public domain W3C validator