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

Theorem unineq 4254
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 2901 . . . . . . 7 ((𝐴𝐶) = (𝐵𝐶) → (𝑥 ∈ (𝐴𝐶) ↔ 𝑥 ∈ (𝐵𝐶)))
2 elin 4169 . . . . . . 7 (𝑥 ∈ (𝐴𝐶) ↔ (𝑥𝐴𝑥𝐶))
3 elin 4169 . . . . . . 7 (𝑥 ∈ (𝐵𝐶) ↔ (𝑥𝐵𝑥𝐶))
41, 2, 33bitr3g 315 . . . . . 6 ((𝐴𝐶) = (𝐵𝐶) → ((𝑥𝐴𝑥𝐶) ↔ (𝑥𝐵𝑥𝐶)))
5 iba 530 . . . . . . 7 (𝑥𝐶 → (𝑥𝐴 ↔ (𝑥𝐴𝑥𝐶)))
6 iba 530 . . . . . . 7 (𝑥𝐶 → (𝑥𝐵 ↔ (𝑥𝐵𝑥𝐶)))
75, 6bibi12d 348 . . . . . 6 (𝑥𝐶 → ((𝑥𝐴𝑥𝐵) ↔ ((𝑥𝐴𝑥𝐶) ↔ (𝑥𝐵𝑥𝐶))))
84, 7syl5ibr 248 . . . . 5 (𝑥𝐶 → ((𝐴𝐶) = (𝐵𝐶) → (𝑥𝐴𝑥𝐵)))
98adantld 493 . . . 4 (𝑥𝐶 → (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵)))
10 uncom 4129 . . . . . . . . 9 (𝐴𝐶) = (𝐶𝐴)
11 uncom 4129 . . . . . . . . 9 (𝐵𝐶) = (𝐶𝐵)
1210, 11eqeq12i 2836 . . . . . . . 8 ((𝐴𝐶) = (𝐵𝐶) ↔ (𝐶𝐴) = (𝐶𝐵))
13 eleq2 2901 . . . . . . . 8 ((𝐶𝐴) = (𝐶𝐵) → (𝑥 ∈ (𝐶𝐴) ↔ 𝑥 ∈ (𝐶𝐵)))
1412, 13sylbi 219 . . . . . . 7 ((𝐴𝐶) = (𝐵𝐶) → (𝑥 ∈ (𝐶𝐴) ↔ 𝑥 ∈ (𝐶𝐵)))
15 elun 4125 . . . . . . 7 (𝑥 ∈ (𝐶𝐴) ↔ (𝑥𝐶𝑥𝐴))
16 elun 4125 . . . . . . 7 (𝑥 ∈ (𝐶𝐵) ↔ (𝑥𝐶𝑥𝐵))
1714, 15, 163bitr3g 315 . . . . . 6 ((𝐴𝐶) = (𝐵𝐶) → ((𝑥𝐶𝑥𝐴) ↔ (𝑥𝐶𝑥𝐵)))
18 biorf 933 . . . . . . 7 𝑥𝐶 → (𝑥𝐴 ↔ (𝑥𝐶𝑥𝐴)))
19 biorf 933 . . . . . . 7 𝑥𝐶 → (𝑥𝐵 ↔ (𝑥𝐶𝑥𝐵)))
2018, 19bibi12d 348 . . . . . 6 𝑥𝐶 → ((𝑥𝐴𝑥𝐵) ↔ ((𝑥𝐶𝑥𝐴) ↔ (𝑥𝐶𝑥𝐵))))
2117, 20syl5ibr 248 . . . . 5 𝑥𝐶 → ((𝐴𝐶) = (𝐵𝐶) → (𝑥𝐴𝑥𝐵)))
2221adantrd 494 . . . 4 𝑥𝐶 → (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵)))
239, 22pm2.61i 184 . . 3 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → (𝑥𝐴𝑥𝐵))
2423eqrdv 2819 . 2 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) → 𝐴 = 𝐵)
25 uneq1 4132 . . 3 (𝐴 = 𝐵 → (𝐴𝐶) = (𝐵𝐶))
26 ineq1 4181 . . 3 (𝐴 = 𝐵 → (𝐴𝐶) = (𝐵𝐶))
2725, 26jca 514 . 2 (𝐴 = 𝐵 → ((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)))
2824, 27impbii 211 1 (((𝐴𝐶) = (𝐵𝐶) ∧ (𝐴𝐶) = (𝐵𝐶)) ↔ 𝐴 = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wo 843   = wceq 1533  wcel 2110  cun 3934  cin 3935
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 2156  ax-12 2172  ax-ext 2793
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-rab 3147  df-v 3497  df-un 3941  df-in 3943
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator