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

Theorem unineq 3836
Description: Infer equality from equalities of union and intersection. Exercise 20 of [Enderton] p. 32 and its converse. (Contributed by NM, 10-Aug-2004.)
Assertion
Ref Expression
unineq (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) ↔ 𝐴 = 𝐵)

Proof of Theorem unineq
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 eleq2 2677 . . . . . . 7 ((𝐴𝐶) = (𝐵𝐶) → (𝑥 ∈ (𝐴𝐶) ↔ 𝑥 ∈ (𝐵𝐶)))
2 elin 3758 . . . . . . 7 (𝑥 ∈ (𝐴𝐶) ↔ (𝑥𝐴𝑥𝐶))
3 elin 3758 . . . . . . 7 (𝑥 ∈ (𝐵𝐶) ↔ (𝑥𝐵𝑥𝐶))
41, 2, 33bitr3g 301 . . . . . 6 ((𝐴𝐶) = (𝐵𝐶) → ((𝑥𝐴𝑥𝐶) ↔ (𝑥𝐵𝑥𝐶)))
5 iba 523 . . . . . . 7 (𝑥𝐶 → (𝑥𝐴 ↔ (𝑥𝐴𝑥𝐶)))
6 iba 523 . . . . . . 7 (𝑥𝐶 → (𝑥𝐵 ↔ (𝑥𝐵𝑥𝐶)))
75, 6bibi12d 334 . . . . . 6 (𝑥𝐶 → ((𝑥𝐴𝑥𝐵) ↔ ((𝑥𝐴𝑥𝐶) ↔ (𝑥𝐵𝑥𝐶))))
84, 7syl5ibr 235 . . . . 5 (𝑥𝐶 → ((𝐴𝐶) = (𝐵𝐶) → (𝑥𝐴𝑥𝐵)))
98adantld 482 . . . 4 (𝑥𝐶 → (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵)))
10 uncom 3719 . . . . . . . . 9 (𝐴𝐶) = (𝐶𝐴)
11 uncom 3719 . . . . . . . . 9 (𝐵𝐶) = (𝐶𝐵)
1210, 11eqeq12i 2624 . . . . . . . 8 ((𝐴𝐶) = (𝐵𝐶) ↔ (𝐶𝐴) = (𝐶𝐵))
13 eleq2 2677 . . . . . . . 8 ((𝐶𝐴) = (𝐶𝐵) → (𝑥 ∈ (𝐶𝐴) ↔ 𝑥 ∈ (𝐶𝐵)))
1412, 13sylbi 206 . . . . . . 7 ((𝐴𝐶) = (𝐵𝐶) → (𝑥 ∈ (𝐶𝐴) ↔ 𝑥 ∈ (𝐶𝐵)))
15 elun 3715 . . . . . . 7 (𝑥 ∈ (𝐶𝐴) ↔ (𝑥𝐶𝑥𝐴))
16 elun 3715 . . . . . . 7 (𝑥 ∈ (𝐶𝐵) ↔ (𝑥𝐶𝑥𝐵))
1714, 15, 163bitr3g 301 . . . . . 6 ((𝐴𝐶) = (𝐵𝐶) → ((𝑥𝐶𝑥𝐴) ↔ (𝑥𝐶𝑥𝐵)))
18 biorf 419 . . . . . . 7 𝑥𝐶 → (𝑥𝐴 ↔ (𝑥𝐶𝑥𝐴)))
19 biorf 419 . . . . . . 7 𝑥𝐶 → (𝑥𝐵 ↔ (𝑥𝐶𝑥𝐵)))
2018, 19bibi12d 334 . . . . . 6 𝑥𝐶 → ((𝑥𝐴𝑥𝐵) ↔ ((𝑥𝐶𝑥𝐴) ↔ (𝑥𝐶𝑥𝐵))))
2117, 20syl5ibr 235 . . . . 5 𝑥𝐶 → ((𝐴𝐶) = (𝐵𝐶) → (𝑥𝐴𝑥𝐵)))
2221adantrd 483 . . . 4 𝑥𝐶 → (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵)))
239, 22pm2.61i 175 . . 3 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵))
2423eqrdv 2608 . 2 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → 𝐴 = 𝐵)
25 uneq1 3722 . . 3 (𝐴 = 𝐵 → (𝐴𝐶) = (𝐵𝐶))
26 ineq1 3769 . . 3 (𝐴 = 𝐵 → (𝐴𝐶) = (𝐵𝐶))
2725, 26jca 553 . 2 (𝐴 = 𝐵 → ((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)))
2824, 27impbii 198 1 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) ↔ 𝐴 = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wo 382  wa 383   = wceq 1475  wcel 1977  cun 3538  cin 3539
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-v 3175  df-un 3545  df-in 3547
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator