Users' Mathboxes Mathbox for BJ < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  bj-inxpALT Structured version   Visualization version   GIF version

Theorem bj-inxpALT 38252
Description: Alternate proof of inxp 5822 not depending on df-rel 5668. The main proof inxp 5822 is shorter because it benefits from the efficient machinery developed for relations: one shows that a class is a relation using theorems like relxp 5679, relinxp 5804, relin1 5802, relres 6015, and then uses the generic properties of relations, in particular ordered-pair extensionality eqrelriiv 5778. This illustrates the fact that the definitions of Cartesian product df-xp 5667, restriction df-res 5673, and relation df-rel 5668 are closely intertwined. Note however that one could use a variant of eqrelriiv 5778 not using the Rel predicate, as in bj-ssrel 38251. (Contributed by BJ, 24-Oct-2026.) (Proof modification is discouraged.) (New usage is discouraged.)
Assertion
Ref Expression
bj-inxpALT ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷)) = ((𝐴 ∩ 𝐶) × (𝐵 ∩ 𝐷))

Proof of Theorem bj-inxpALT
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eleq1 2858 . . . . . 6 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧 ∈ ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷)) ↔ ⟨𝑥, 𝑦⟩ ∈ ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷))))
2 elin 4098 . . . . . 6 (⟨𝑥, 𝑦⟩ ∈ ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷)) ↔ (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 × 𝐷)))
31, 2bitrdi 290 . . . . 5 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧 ∈ ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷)) ↔ (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 × 𝐷))))
4 an4 669 . . . . . 6 (((𝑥 ∈ 𝐴 ∧ 𝑥 ∈ 𝐶) ∧ (𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐷)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑥 ∈ 𝐶 ∧ 𝑦 ∈ 𝐷)))
5 elin 4098 . . . . . . 7 (𝑥 ∈ (𝐴 ∩ 𝐶) ↔ (𝑥 ∈ 𝐴 ∧ 𝑥 ∈ 𝐶))
6 elin 4098 . . . . . . 7 (𝑦 ∈ (𝐵 ∩ 𝐷) ↔ (𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐷))
75, 6anbi12i 640 . . . . . 6 ((𝑥 ∈ (𝐴 ∩ 𝐶) ∧ 𝑦 ∈ (𝐵 ∩ 𝐷)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑥 ∈ 𝐶) ∧ (𝑦 ∈ 𝐵 ∧ 𝑦 ∈ 𝐷)))
8 opelxp 5697 . . . . . . 7 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ↔ (𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵))
9 opelxp 5697 . . . . . . 7 (⟨𝑥, 𝑦⟩ ∈ (𝐶 × 𝐷) ↔ (𝑥 ∈ 𝐶 ∧ 𝑦 ∈ 𝐷))
108, 9anbi12i 640 . . . . . 6 ((⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 × 𝐷)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑥 ∈ 𝐶 ∧ 𝑦 ∈ 𝐷)))
114, 7, 103bitr4ri 307 . . . . 5 ((⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐶 × 𝐷)) ↔ (𝑥 ∈ (𝐴 ∩ 𝐶) ∧ 𝑦 ∈ (𝐵 ∩ 𝐷)))
123, 11bitrdi 290 . . . 4 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧 ∈ ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷)) ↔ (𝑥 ∈ (𝐴 ∩ 𝐶) ∧ 𝑦 ∈ (𝐵 ∩ 𝐷))))
1312copsex2gb 5796 . . 3 (∃𝑥∃𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 ∈ (𝐴 ∩ 𝐶) ∧ 𝑦 ∈ (𝐵 ∩ 𝐷))) ↔ (𝑧 ∈ (V × V) ∧ 𝑧 ∈ ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷))))
14 elxp 5684 . . 3 (𝑧 ∈ ((𝐴 ∩ 𝐶) × (𝐵 ∩ 𝐷)) ↔ ∃𝑥∃𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑥 ∈ (𝐴 ∩ 𝐶) ∧ 𝑦 ∈ (𝐵 ∩ 𝐷))))
15 xpss 5677 . . . . 5 (𝐴 × 𝐵) ⊆ (V × V)
16 elinel1 4103 . . . . 5 (𝑧 ∈ ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷)) → 𝑧 ∈ (𝐴 × 𝐵))
1715, 16sselid 3913 . . . 4 (𝑧 ∈ ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷)) → 𝑧 ∈ (V × V))
1817pm4.71ri 570 . . 3 (𝑧 ∈ ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷)) ↔ (𝑧 ∈ (V × V) ∧ 𝑧 ∈ ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷))))
1913, 14, 183bitr4ri 307 . 2 (𝑧 ∈ ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷)) ↔ 𝑧 ∈ ((𝐴 ∩ 𝐶) × (𝐵 ∩ 𝐷)))
2019eqriv 2766 1 ((𝐴 × 𝐵) ∩ (𝐶 × 𝐷)) = ((𝐴 ∩ 𝐶) × (𝐵 ∩ 𝐷))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ wa 401   = wceq 1572  ∃wex 1814   ∈ wcel 2151  Vcvv 3456   ∩ cin 4094  ⟨cop 4843   × cxp 5659
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-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-opab 5177  df-xp 5667
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator