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

Theorem prel12 4323
Description: Equality of two unordered pairs. (Contributed by NM, 17-Oct-1996.)
Hypotheses
Ref Expression
preqr1.a 𝐴 ∈ V
preqr1.b 𝐵 ∈ V
preq12b.c 𝐶 ∈ V
preq12b.d 𝐷 ∈ V
Assertion
Ref Expression
prel12 𝐴 = 𝐵 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))

Proof of Theorem prel12
StepHypRef Expression
1 preqr1.a . . . . 5 𝐴 ∈ V
21prid1 4241 . . . 4 𝐴 ∈ {𝐴, 𝐵}
3 eleq2 2677 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 ∈ {𝐴, 𝐵} ↔ 𝐴 ∈ {𝐶, 𝐷}))
42, 3mpbii 222 . . 3 ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐴 ∈ {𝐶, 𝐷})
5 preqr1.b . . . . 5 𝐵 ∈ V
65prid2 4242 . . . 4 𝐵 ∈ {𝐴, 𝐵}
7 eleq2 2677 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐵 ∈ {𝐴, 𝐵} ↔ 𝐵 ∈ {𝐶, 𝐷}))
86, 7mpbii 222 . . 3 ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐵 ∈ {𝐶, 𝐷})
94, 8jca 553 . 2 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}))
101elpr 4146 . . . 4 (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷))
11 eqeq2 2621 . . . . . . . . . . . 12 (𝐵 = 𝐷 → (𝐴 = 𝐵𝐴 = 𝐷))
1211notbid 307 . . . . . . . . . . 11 (𝐵 = 𝐷 → (¬ 𝐴 = 𝐵 ↔ ¬ 𝐴 = 𝐷))
13 orel2 397 . . . . . . . . . . 11 𝐴 = 𝐷 → ((𝐴 = 𝐶𝐴 = 𝐷) → 𝐴 = 𝐶))
1412, 13syl6bi 242 . . . . . . . . . 10 (𝐵 = 𝐷 → (¬ 𝐴 = 𝐵 → ((𝐴 = 𝐶𝐴 = 𝐷) → 𝐴 = 𝐶)))
1514impd 446 . . . . . . . . 9 (𝐵 = 𝐷 → ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → 𝐴 = 𝐶))
1615com12 32 . . . . . . . 8 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → (𝐵 = 𝐷𝐴 = 𝐶))
1716ancrd 575 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → (𝐵 = 𝐷 → (𝐴 = 𝐶𝐵 = 𝐷)))
18 eqeq2 2621 . . . . . . . . . . . 12 (𝐵 = 𝐶 → (𝐴 = 𝐵𝐴 = 𝐶))
1918notbid 307 . . . . . . . . . . 11 (𝐵 = 𝐶 → (¬ 𝐴 = 𝐵 ↔ ¬ 𝐴 = 𝐶))
20 orel1 396 . . . . . . . . . . 11 𝐴 = 𝐶 → ((𝐴 = 𝐶𝐴 = 𝐷) → 𝐴 = 𝐷))
2119, 20syl6bi 242 . . . . . . . . . 10 (𝐵 = 𝐶 → (¬ 𝐴 = 𝐵 → ((𝐴 = 𝐶𝐴 = 𝐷) → 𝐴 = 𝐷)))
2221impd 446 . . . . . . . . 9 (𝐵 = 𝐶 → ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → 𝐴 = 𝐷))
2322com12 32 . . . . . . . 8 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → (𝐵 = 𝐶𝐴 = 𝐷))
2423ancrd 575 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → (𝐵 = 𝐶 → (𝐴 = 𝐷𝐵 = 𝐶)))
2517, 24orim12d 879 . . . . . 6 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → ((𝐵 = 𝐷𝐵 = 𝐶) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
265elpr 4146 . . . . . . 7 (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶𝐵 = 𝐷))
27 orcom 401 . . . . . . 7 ((𝐵 = 𝐶𝐵 = 𝐷) ↔ (𝐵 = 𝐷𝐵 = 𝐶))
2826, 27bitri 263 . . . . . 6 (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐷𝐵 = 𝐶))
29 preq12b.c . . . . . . 7 𝐶 ∈ V
30 preq12b.d . . . . . . 7 𝐷 ∈ V
311, 5, 29, 30preq12b 4322 . . . . . 6 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
3225, 28, 313imtr4g 284 . . . . 5 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → (𝐵 ∈ {𝐶, 𝐷} → {𝐴, 𝐵} = {𝐶, 𝐷}))
3332ex 449 . . . 4 𝐴 = 𝐵 → ((𝐴 = 𝐶𝐴 = 𝐷) → (𝐵 ∈ {𝐶, 𝐷} → {𝐴, 𝐵} = {𝐶, 𝐷})))
3410, 33syl5bi 231 . . 3 𝐴 = 𝐵 → (𝐴 ∈ {𝐶, 𝐷} → (𝐵 ∈ {𝐶, 𝐷} → {𝐴, 𝐵} = {𝐶, 𝐷})))
3534impd 446 . 2 𝐴 = 𝐵 → ((𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}) → {𝐴, 𝐵} = {𝐶, 𝐷}))
369, 35impbid2 215 1 𝐴 = 𝐵 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195  wo 382  wa 383   = wceq 1475  wcel 1977  Vcvv 3173  {cpr 4127
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-sn 4126  df-pr 4128
This theorem is referenced by:  prel12g  4327  dfac2  8836
  Copyright terms: Public domain W3C validator