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

Theorem xpnz 6015
Description: The Cartesian product of nonempty classes is nonempty. (Variation of a theorem contributed by Raph Levien, 30-Jun-2006.) (Contributed by NM, 30-Jun-2006.)
Assertion
Ref Expression
xpnz ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ↔ (𝐴 × 𝐵) ≠ ∅)

Proof of Theorem xpnz
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 n0 4309 . . . . 5 (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴)
2 n0 4309 . . . . 5 (𝐵 ≠ ∅ ↔ ∃𝑦 𝑦𝐵)
31, 2anbi12i 628 . . . 4 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ↔ (∃𝑥 𝑥𝐴 ∧ ∃𝑦 𝑦𝐵))
4 exdistrv 1952 . . . 4 (∃𝑥𝑦(𝑥𝐴𝑦𝐵) ↔ (∃𝑥 𝑥𝐴 ∧ ∃𝑦 𝑦𝐵))
53, 4bitr4i 280 . . 3 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ↔ ∃𝑥𝑦(𝑥𝐴𝑦𝐵))
6 opex 5355 . . . . . 6 𝑥, 𝑦⟩ ∈ V
7 eleq1 2900 . . . . . . 7 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧 ∈ (𝐴 × 𝐵) ↔ ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵)))
8 opelxp 5590 . . . . . . 7 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ↔ (𝑥𝐴𝑦𝐵))
97, 8syl6bb 289 . . . . . 6 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝑧 ∈ (𝐴 × 𝐵) ↔ (𝑥𝐴𝑦𝐵)))
106, 9spcev 3606 . . . . 5 ((𝑥𝐴𝑦𝐵) → ∃𝑧 𝑧 ∈ (𝐴 × 𝐵))
11 n0 4309 . . . . 5 ((𝐴 × 𝐵) ≠ ∅ ↔ ∃𝑧 𝑧 ∈ (𝐴 × 𝐵))
1210, 11sylibr 236 . . . 4 ((𝑥𝐴𝑦𝐵) → (𝐴 × 𝐵) ≠ ∅)
1312exlimivv 1929 . . 3 (∃𝑥𝑦(𝑥𝐴𝑦𝐵) → (𝐴 × 𝐵) ≠ ∅)
145, 13sylbi 219 . 2 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) → (𝐴 × 𝐵) ≠ ∅)
15 xpeq1 5568 . . . . 5 (𝐴 = ∅ → (𝐴 × 𝐵) = (∅ × 𝐵))
16 0xp 5648 . . . . 5 (∅ × 𝐵) = ∅
1715, 16syl6eq 2872 . . . 4 (𝐴 = ∅ → (𝐴 × 𝐵) = ∅)
1817necon3i 3048 . . 3 ((𝐴 × 𝐵) ≠ ∅ → 𝐴 ≠ ∅)
19 xpeq2 5575 . . . . 5 (𝐵 = ∅ → (𝐴 × 𝐵) = (𝐴 × ∅))
20 xp0 6014 . . . . 5 (𝐴 × ∅) = ∅
2119, 20syl6eq 2872 . . . 4 (𝐵 = ∅ → (𝐴 × 𝐵) = ∅)
2221necon3i 3048 . . 3 ((𝐴 × 𝐵) ≠ ∅ → 𝐵 ≠ ∅)
2318, 22jca 514 . 2 ((𝐴 × 𝐵) ≠ ∅ → (𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅))
2414, 23impbii 211 1 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ↔ (𝐴 × 𝐵) ≠ ∅)
Colors of variables: wff setvar class
Syntax hints:  wb 208  wa 398   = wceq 1533  wex 1776  wcel 2110  wne 3016  c0 4290  cop 4572   × cxp 5552
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5202  ax-nul 5209  ax-pr 5329
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-sn 4567  df-pr 4569  df-op 4573  df-br 5066  df-opab 5128  df-xp 5560  df-rel 5561  df-cnv 5562
This theorem is referenced by:  xpeq0  6016  ssxpb  6030  xp11  6031  unixpid  6134  xpexr2  7623  frxp  7819  xpfir  8739  axcc2lem  9857  axdc4lem  9876  mamufacex  20999  txindis  22241  bj-xpnzex  34271  bj-1upln0  34321  bj-2upln1upl  34336  dibn0  38288
  Copyright terms: Public domain W3C validator