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

Theorem unineq 3877
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 2690 . . . . . . 7 ((𝐴𝐶) = (𝐵𝐶) → (𝑥 ∈ (𝐴𝐶) ↔ 𝑥 ∈ (𝐵𝐶)))
2 elin 3796 . . . . . . 7 (𝑥 ∈ (𝐴𝐶) ↔ (𝑥𝐴𝑥𝐶))
3 elin 3796 . . . . . . 7 (𝑥 ∈ (𝐵𝐶) ↔ (𝑥𝐵𝑥𝐶))
41, 2, 33bitr3g 302 . . . . . 6 ((𝐴𝐶) = (𝐵𝐶) → ((𝑥𝐴𝑥𝐶) ↔ (𝑥𝐵𝑥𝐶)))
5 iba 524 . . . . . . 7 (𝑥𝐶 → (𝑥𝐴 ↔ (𝑥𝐴𝑥𝐶)))
6 iba 524 . . . . . . 7 (𝑥𝐶 → (𝑥𝐵 ↔ (𝑥𝐵𝑥𝐶)))
75, 6bibi12d 335 . . . . . 6 (𝑥𝐶 → ((𝑥𝐴𝑥𝐵) ↔ ((𝑥𝐴𝑥𝐶) ↔ (𝑥𝐵𝑥𝐶))))
84, 7syl5ibr 236 . . . . 5 (𝑥𝐶 → ((𝐴𝐶) = (𝐵𝐶) → (𝑥𝐴𝑥𝐵)))
98adantld 483 . . . 4 (𝑥𝐶 → (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵)))
10 uncom 3757 . . . . . . . . 9 (𝐴𝐶) = (𝐶𝐴)
11 uncom 3757 . . . . . . . . 9 (𝐵𝐶) = (𝐶𝐵)
1210, 11eqeq12i 2636 . . . . . . . 8 ((𝐴𝐶) = (𝐵𝐶) ↔ (𝐶𝐴) = (𝐶𝐵))
13 eleq2 2690 . . . . . . . 8 ((𝐶𝐴) = (𝐶𝐵) → (𝑥 ∈ (𝐶𝐴) ↔ 𝑥 ∈ (𝐶𝐵)))
1412, 13sylbi 207 . . . . . . 7 ((𝐴𝐶) = (𝐵𝐶) → (𝑥 ∈ (𝐶𝐴) ↔ 𝑥 ∈ (𝐶𝐵)))
15 elun 3753 . . . . . . 7 (𝑥 ∈ (𝐶𝐴) ↔ (𝑥𝐶𝑥𝐴))
16 elun 3753 . . . . . . 7 (𝑥 ∈ (𝐶𝐵) ↔ (𝑥𝐶𝑥𝐵))
1714, 15, 163bitr3g 302 . . . . . 6 ((𝐴𝐶) = (𝐵𝐶) → ((𝑥𝐶𝑥𝐴) ↔ (𝑥𝐶𝑥𝐵)))
18 biorf 420 . . . . . . 7 𝑥𝐶 → (𝑥𝐴 ↔ (𝑥𝐶𝑥𝐴)))
19 biorf 420 . . . . . . 7 𝑥𝐶 → (𝑥𝐵 ↔ (𝑥𝐶𝑥𝐵)))
2018, 19bibi12d 335 . . . . . 6 𝑥𝐶 → ((𝑥𝐴𝑥𝐵) ↔ ((𝑥𝐶𝑥𝐴) ↔ (𝑥𝐶𝑥𝐵))))
2117, 20syl5ibr 236 . . . . 5 𝑥𝐶 → ((𝐴𝐶) = (𝐵𝐶) → (𝑥𝐴𝑥𝐵)))
2221adantrd 484 . . . 4 𝑥𝐶 → (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵)))
239, 22pm2.61i 176 . . 3 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵))
2423eqrdv 2620 . 2 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → 𝐴 = 𝐵)
25 uneq1 3760 . . 3 (𝐴 = 𝐵 → (𝐴𝐶) = (𝐵𝐶))
26 ineq1 3807 . . 3 (𝐴 = 𝐵 → (𝐴𝐶) = (𝐵𝐶))
2725, 26jca 554 . 2 (𝐴 = 𝐵 → ((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)))
2824, 27impbii 199 1 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) ↔ 𝐴 = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wo 383  wa 384   = wceq 1483  wcel 1990  cun 3572  cin 3573
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-v 3202  df-un 3579  df-in 3581
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator