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

Theorem xpcogend 15107
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 5700 . . . . . . 7 (𝑥(𝐴 × 𝐵)𝑦 ↔ (𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵))
2 brxp 5700 . . . . . . . 8 (𝑦(𝐶 × 𝐷)𝑧 ↔ (𝑦 ∈ 𝐶 ∧ 𝑧 ∈ 𝐷))
32biancomi 468 . . . . . . 7 (𝑦(𝐶 × 𝐷)𝑧 ↔ (𝑧 ∈ 𝐷 ∧ 𝑦 ∈ 𝐶))
41, 3anbi12i 640 . . . . . 6 ((𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 ∈ 𝐷 ∧ 𝑦 ∈ 𝐶)))
54exbii 1881 . . . . 5 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧) ↔ ∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 ∈ 𝐷 ∧ 𝑦 ∈ 𝐶)))
6 an4 669 . . . . . 6 (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 ∈ 𝐷 ∧ 𝑦 ∈ 𝐶)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ (𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶)))
76exbii 1881 . . . . 5 (∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 ∈ 𝐷 ∧ 𝑦 ∈ 𝐶)) ↔ ∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ (𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶)))
8 19.42v 1986 . . . . 5 (∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ (𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶)))
95, 7, 83bitri 300 . . . 4 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶)))
10 xpcogend.1 . . . . . 6 (𝜑 → (𝐵 ∩ 𝐶) ≠ ∅)
11 ndisj 4318 . . . . . 6 ((𝐵 ∩ 𝐶) ≠ ∅ ↔ ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶))
1210, 11sylib 221 . . . . 5 (𝜑 → ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶))
1312biantrud 541 . . . 4 (𝜑 → ((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶))))
149, 13bitr4id 293 . . 3 (𝜑 → (∃𝑦(𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧) ↔ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷)))
1514opabbidv 5171 . 2 (𝜑 → {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧)} = {⟨𝑥, 𝑧⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷)})
16 df-co 5660 . 2 ((𝐶 × 𝐷) ∘ (𝐴 × 𝐵)) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧)}
17 df-xp 5657 . 2 (𝐴 × 𝐷) = {⟨𝑥, 𝑧⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷)}
1815, 16, 173eqtr4g 2821 1 (𝜑 → ((𝐶 × 𝐷) ∘ (𝐴 × 𝐵)) = (𝐴 × 𝐷))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2145   ≠ wne 2956   ∩ cin 3898  ∅c0 4279   class class class wbr 5103  {copab 5167   × cxp 5649   ∘ ccom 5655
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-ext 2733  ax-sep 5249  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-br 5104  df-opab 5168  df-xp 5657  df-co 5660
This theorem is used by:  xpcoidgend  15108
  Copyright terms: Public domain W3C validator