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

Theorem xpcogend 15180
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 5710 . . . . . . 7 (𝑥(𝐴 × 𝐵)𝑦 ↔ (𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵))
2 brxp 5710 . . . . . . . 8 (𝑦(𝐶 × 𝐷)𝑧 ↔ (𝑦 ∈ 𝐶 ∧ 𝑧 ∈ 𝐷))
32biancomi 468 . . . . . . 7 (𝑦(𝐶 × 𝐷)𝑧 ↔ (𝑧 ∈ 𝐷 ∧ 𝑦 ∈ 𝐶))
41, 3anbi12i 640 . . . . . 6 ((𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 ∈ 𝐷 ∧ 𝑦 ∈ 𝐶)))
54exbii 1883 . . . . 5 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧) ↔ ∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 ∈ 𝐷 ∧ 𝑦 ∈ 𝐶)))
6 an4 669 . . . . . 6 (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 ∈ 𝐷 ∧ 𝑦 ∈ 𝐶)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ (𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶)))
76exbii 1883 . . . . 5 (∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 ∈ 𝐷 ∧ 𝑦 ∈ 𝐶)) ↔ ∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ (𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶)))
8 19.42v 1990 . . . . 5 (∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ (𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶)))
95, 7, 83bitri 300 . . . 4 (∃𝑦(𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶)))
10 xpcogend.1 . . . . . 6 (𝜑 → (𝐵 ∩ 𝐶) ≠ ∅)
11 ndisj 4323 . . . . . 6 ((𝐵 ∩ 𝐶) ≠ ∅ ↔ ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶))
1210, 11sylib 221 . . . . 5 (𝜑 → ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶))
1312biantrud 541 . . . 4 (𝜑 → ((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷) ∧ ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐶))))
149, 13bitr4id 293 . . 3 (𝜑 → (∃𝑦(𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧) ↔ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷)))
1514opabbidv 5180 . 2 (𝜑 → {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧)} = {⟨𝑥, 𝑧⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷)})
16 df-co 5670 . 2 ((𝐶 × 𝐷) ∘ (𝐴 × 𝐵)) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥(𝐴 × 𝐵)𝑦 ∧ 𝑦(𝐶 × 𝐷)𝑧)}
17 df-xp 5667 . 2 (𝐴 × 𝐷) = {⟨𝑥, 𝑧⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑧 ∈ 𝐷)}
1815, 16, 173eqtr4g 2829 1 (𝜑 → ((𝐶 × 𝐷) ∘ (𝐴 × 𝐵)) = (𝐴 × 𝐷))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1572  ∃wex 1814   ∈ wcel 2151   ≠ wne 2965   ∩ cin 4094  ∅c0 4283   class class class wbr 5111  {copab 5176   × cxp 5659   ∘ ccom 5665
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-ext 2741  ax-sep 5258  ax-pr 5401
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-ne 2966  df-ral 3087  df-rex 3097  df-rab 3419  df-v 3458  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-sn 4591  df-pr 4593  df-op 4844  df-br 5112  df-opab 5177  df-xp 5667  df-co 5670
This theorem is used by:  xpcoidgend  15181
  Copyright terms: Public domain W3C validator