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

Theorem xpcan2 6001
Description: Cancellation law for Cartesian product. (Contributed by NM, 30-Aug-2011.)
Assertion
Ref Expression
xpcan2 (𝐶 ≠ ∅ → ((𝐴 × 𝐶) = (𝐵 × 𝐶) ↔ 𝐴 = 𝐵))

Proof of Theorem xpcan2
StepHypRef Expression
1 xp11 5999 . . 3 ((𝐴 ≠ ∅ ∧ 𝐶 ≠ ∅) → ((𝐴 × 𝐶) = (𝐵 × 𝐶) ↔ (𝐴 = 𝐵𝐶 = 𝐶)))
2 eqid 2798 . . . 4 𝐶 = 𝐶
32biantru 533 . . 3 (𝐴 = 𝐵 ↔ (𝐴 = 𝐵𝐶 = 𝐶))
41, 3syl6bbr 292 . 2 ((𝐴 ≠ ∅ ∧ 𝐶 ≠ ∅) → ((𝐴 × 𝐶) = (𝐵 × 𝐶) ↔ 𝐴 = 𝐵))
5 nne 2991 . . 3 𝐴 ≠ ∅ ↔ 𝐴 = ∅)
6 simpl 486 . . . . 5 ((𝐴 = ∅ ∧ 𝐶 ≠ ∅) → 𝐴 = ∅)
7 xpeq1 5533 . . . . . . . . . 10 (𝐴 = ∅ → (𝐴 × 𝐶) = (∅ × 𝐶))
8 0xp 5613 . . . . . . . . . 10 (∅ × 𝐶) = ∅
97, 8eqtrdi 2849 . . . . . . . . 9 (𝐴 = ∅ → (𝐴 × 𝐶) = ∅)
109eqeq1d 2800 . . . . . . . 8 (𝐴 = ∅ → ((𝐴 × 𝐶) = (𝐵 × 𝐶) ↔ ∅ = (𝐵 × 𝐶)))
11 eqcom 2805 . . . . . . . 8 (∅ = (𝐵 × 𝐶) ↔ (𝐵 × 𝐶) = ∅)
1210, 11syl6bb 290 . . . . . . 7 (𝐴 = ∅ → ((𝐴 × 𝐶) = (𝐵 × 𝐶) ↔ (𝐵 × 𝐶) = ∅))
1312adantr 484 . . . . . 6 ((𝐴 = ∅ ∧ 𝐶 ≠ ∅) → ((𝐴 × 𝐶) = (𝐵 × 𝐶) ↔ (𝐵 × 𝐶) = ∅))
14 df-ne 2988 . . . . . . . 8 (𝐶 ≠ ∅ ↔ ¬ 𝐶 = ∅)
15 xpeq0 5984 . . . . . . . . 9 ((𝐵 × 𝐶) = ∅ ↔ (𝐵 = ∅ ∨ 𝐶 = ∅))
16 orel2 888 . . . . . . . . 9 𝐶 = ∅ → ((𝐵 = ∅ ∨ 𝐶 = ∅) → 𝐵 = ∅))
1715, 16syl5bi 245 . . . . . . . 8 𝐶 = ∅ → ((𝐵 × 𝐶) = ∅ → 𝐵 = ∅))
1814, 17sylbi 220 . . . . . . 7 (𝐶 ≠ ∅ → ((𝐵 × 𝐶) = ∅ → 𝐵 = ∅))
1918adantl 485 . . . . . 6 ((𝐴 = ∅ ∧ 𝐶 ≠ ∅) → ((𝐵 × 𝐶) = ∅ → 𝐵 = ∅))
2013, 19sylbid 243 . . . . 5 ((𝐴 = ∅ ∧ 𝐶 ≠ ∅) → ((𝐴 × 𝐶) = (𝐵 × 𝐶) → 𝐵 = ∅))
21 eqtr3 2820 . . . . 5 ((𝐴 = ∅ ∧ 𝐵 = ∅) → 𝐴 = 𝐵)
226, 20, 21syl6an 683 . . . 4 ((𝐴 = ∅ ∧ 𝐶 ≠ ∅) → ((𝐴 × 𝐶) = (𝐵 × 𝐶) → 𝐴 = 𝐵))
23 xpeq1 5533 . . . 4 (𝐴 = 𝐵 → (𝐴 × 𝐶) = (𝐵 × 𝐶))
2422, 23impbid1 228 . . 3 ((𝐴 = ∅ ∧ 𝐶 ≠ ∅) → ((𝐴 × 𝐶) = (𝐵 × 𝐶) ↔ 𝐴 = 𝐵))
255, 24sylanb 584 . 2 ((¬ 𝐴 ≠ ∅ ∧ 𝐶 ≠ ∅) → ((𝐴 × 𝐶) = (𝐵 × 𝐶) ↔ 𝐴 = 𝐵))
264, 25pm2.61ian 811 1 (𝐶 ≠ ∅ → ((𝐴 × 𝐶) = (𝐵 × 𝐶) ↔ 𝐴 = 𝐵))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 844   = wceq 1538  wne 2987  c0 4243   × cxp 5517
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pr 5295
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-v 3443  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-br 5031  df-opab 5093  df-xp 5525  df-rel 5526  df-cnv 5527  df-dm 5529  df-rn 5530
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator