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

Theorem unineq 4208
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 2827 . . . . . . 7 ((𝐴𝐶) = (𝐵𝐶) → (𝑥 ∈ (𝐴𝐶) ↔ 𝑥 ∈ (𝐵𝐶)))
2 elin 3899 . . . . . . 7 (𝑥 ∈ (𝐴𝐶) ↔ (𝑥𝐴𝑥𝐶))
3 elin 3899 . . . . . . 7 (𝑥 ∈ (𝐵𝐶) ↔ (𝑥𝐵𝑥𝐶))
41, 2, 33bitr3g 312 . . . . . 6 ((𝐴𝐶) = (𝐵𝐶) → ((𝑥𝐴𝑥𝐶) ↔ (𝑥𝐵𝑥𝐶)))
5 iba 527 . . . . . . 7 (𝑥𝐶 → (𝑥𝐴 ↔ (𝑥𝐴𝑥𝐶)))
6 iba 527 . . . . . . 7 (𝑥𝐶 → (𝑥𝐵 ↔ (𝑥𝐵𝑥𝐶)))
75, 6bibi12d 345 . . . . . 6 (𝑥𝐶 → ((𝑥𝐴𝑥𝐵) ↔ ((𝑥𝐴𝑥𝐶) ↔ (𝑥𝐵𝑥𝐶))))
84, 7syl5ibr 245 . . . . 5 (𝑥𝐶 → ((𝐴𝐶) = (𝐵𝐶) → (𝑥𝐴𝑥𝐵)))
98adantld 490 . . . 4 (𝑥𝐶 → (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵)))
10 uncom 4083 . . . . . . . . 9 (𝐴𝐶) = (𝐶𝐴)
11 uncom 4083 . . . . . . . . 9 (𝐵𝐶) = (𝐶𝐵)
1210, 11eqeq12i 2756 . . . . . . . 8 ((𝐴𝐶) = (𝐵𝐶) ↔ (𝐶𝐴) = (𝐶𝐵))
13 eleq2 2827 . . . . . . . 8 ((𝐶𝐴) = (𝐶𝐵) → (𝑥 ∈ (𝐶𝐴) ↔ 𝑥 ∈ (𝐶𝐵)))
1412, 13sylbi 216 . . . . . . 7 ((𝐴𝐶) = (𝐵𝐶) → (𝑥 ∈ (𝐶𝐴) ↔ 𝑥 ∈ (𝐶𝐵)))
15 elun 4079 . . . . . . 7 (𝑥 ∈ (𝐶𝐴) ↔ (𝑥𝐶𝑥𝐴))
16 elun 4079 . . . . . . 7 (𝑥 ∈ (𝐶𝐵) ↔ (𝑥𝐶𝑥𝐵))
1714, 15, 163bitr3g 312 . . . . . 6 ((𝐴𝐶) = (𝐵𝐶) → ((𝑥𝐶𝑥𝐴) ↔ (𝑥𝐶𝑥𝐵)))
18 biorf 933 . . . . . . 7 𝑥𝐶 → (𝑥𝐴 ↔ (𝑥𝐶𝑥𝐴)))
19 biorf 933 . . . . . . 7 𝑥𝐶 → (𝑥𝐵 ↔ (𝑥𝐶𝑥𝐵)))
2018, 19bibi12d 345 . . . . . 6 𝑥𝐶 → ((𝑥𝐴𝑥𝐵) ↔ ((𝑥𝐶𝑥𝐴) ↔ (𝑥𝐶𝑥𝐵))))
2117, 20syl5ibr 245 . . . . 5 𝑥𝐶 → ((𝐴𝐶) = (𝐵𝐶) → (𝑥𝐴𝑥𝐵)))
2221adantrd 491 . . . 4 𝑥𝐶 → (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵)))
239, 22pm2.61i 182 . . 3 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵))
2423eqrdv 2736 . 2 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → 𝐴 = 𝐵)
25 uneq1 4086 . . 3 (𝐴 = 𝐵 → (𝐴𝐶) = (𝐵𝐶))
26 ineq1 4136 . . 3 (𝐴 = 𝐵 → (𝐴𝐶) = (𝐵𝐶))
2725, 26jca 511 . 2 (𝐴 = 𝐵 → ((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)))
2824, 27impbii 208 1 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) ↔ 𝐴 = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wcel 2108  cun 3881  cin 3882
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-rab 3072  df-v 3424  df-un 3888  df-in 3890
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator