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

Theorem uneqin 4235
Description: Equality of union and intersection is equivalent to equality of the arguments. (Contributed by NM, 16-Apr-2006.) (Proof shortened by Andrew Salmon, 26-Jun-2011.)
Assertion
Ref Expression
uneqin ((𝐴 ∪ 𝐵) = (𝐴 ∩ 𝐵) ↔ 𝐴 = 𝐵)

Proof of Theorem uneqin
StepHypRef Expression
1 eqimss 3989 . . . 4 ((𝐴 ∪ 𝐵) = (𝐴 ∩ 𝐵) → (𝐴 ∪ 𝐵) ⊆ (𝐴 ∩ 𝐵))
2 unss 4136 . . . . 5 ((𝐴 ⊆ (𝐴 ∩ 𝐵) ∧ 𝐵 ⊆ (𝐴 ∩ 𝐵)) ↔ (𝐴 ∪ 𝐵) ⊆ (𝐴 ∩ 𝐵))
3 ssin 4184 . . . . . . 7 ((𝐴 ⊆ 𝐴 ∧ 𝐴 ⊆ 𝐵) ↔ 𝐴 ⊆ (𝐴 ∩ 𝐵))
4 sstr 3939 . . . . . . 7 ((𝐴 ⊆ 𝐴 ∧ 𝐴 ⊆ 𝐵) → 𝐴 ⊆ 𝐵)
53, 4sylbir 238 . . . . . 6 (𝐴 ⊆ (𝐴 ∩ 𝐵) → 𝐴 ⊆ 𝐵)
6 ssin 4184 . . . . . . 7 ((𝐵 ⊆ 𝐴 ∧ 𝐵 ⊆ 𝐵) ↔ 𝐵 ⊆ (𝐴 ∩ 𝐵))
7 simpl 488 . . . . . . 7 ((𝐵 ⊆ 𝐴 ∧ 𝐵 ⊆ 𝐵) → 𝐵 ⊆ 𝐴)
86, 7sylbir 238 . . . . . 6 (𝐵 ⊆ (𝐴 ∩ 𝐵) → 𝐵 ⊆ 𝐴)
95, 8anim12i 625 . . . . 5 ((𝐴 ⊆ (𝐴 ∩ 𝐵) ∧ 𝐵 ⊆ (𝐴 ∩ 𝐵)) → (𝐴 ⊆ 𝐵 ∧ 𝐵 ⊆ 𝐴))
102, 9sylbir 238 . . . 4 ((𝐴 ∪ 𝐵) ⊆ (𝐴 ∩ 𝐵) → (𝐴 ⊆ 𝐵 ∧ 𝐵 ⊆ 𝐴))
111, 10syl 18 . . 3 ((𝐴 ∪ 𝐵) = (𝐴 ∩ 𝐵) → (𝐴 ⊆ 𝐵 ∧ 𝐵 ⊆ 𝐴))
12 eqss 3946 . . 3 (𝐴 = 𝐵 ↔ (𝐴 ⊆ 𝐵 ∧ 𝐵 ⊆ 𝐴))
1311, 12sylibr 237 . 2 ((𝐴 ∪ 𝐵) = (𝐴 ∩ 𝐵) → 𝐴 = 𝐵)
14 unidm 4104 . . . 4 (𝐴 ∪ 𝐴) = 𝐴
15 inidm 4172 . . . 4 (𝐴 ∩ 𝐴) = 𝐴
1614, 15eqtr4i 2787 . . 3 (𝐴 ∪ 𝐴) = (𝐴 ∩ 𝐴)
17 uneq2 4109 . . 3 (𝐴 = 𝐵 → (𝐴 ∪ 𝐴) = (𝐴 ∪ 𝐵))
18 ineq2 4160 . . 3 (𝐴 = 𝐵 → (𝐴 ∩ 𝐴) = (𝐴 ∩ 𝐵))
1916, 17, 183eqtr3a 2820 . 2 (𝐴 = 𝐵 → (𝐴 ∪ 𝐵) = (𝐴 ∩ 𝐵))
2013, 19impbii 212 1 ((𝐴 ∪ 𝐵) = (𝐴 ∩ 𝐵) ↔ 𝐴 = 𝐵)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570   ∪ cun 3897   ∩ cin 3898   ⊆ wss 3899
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-rab 3414  df-v 3453  df-un 3904  df-in 3906  df-ss 3916
This theorem is used by:  uniintsn  4945
  Copyright terms: Public domain W3C validator