Intuitionistic Logic Explorer < Previous   Next > Nearby theorems Mirrors  >  Home  >  ILE Home  >  Th. List  >  prel12 GIF version

Theorem prel12 3542
 Description: Equality of two unordered pairs. (Contributed by NM, 17-Oct-1996.)
Hypotheses
Ref Expression
preq12b.1 𝐴 ∈ V
preq12b.2 𝐵 ∈ V
preq12b.3 𝐶 ∈ V
preq12b.4 𝐷 ∈ V
Assertion
Ref Expression
prel12 𝐴 = 𝐵 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))

Proof of Theorem prel12
StepHypRef Expression
1 preq12b.1 . . . . 5 𝐴 ∈ V
21prid1 3476 . . . 4 𝐴 ∈ {𝐴, 𝐵}
3 eleq2 2101 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 ∈ {𝐴, 𝐵} ↔ 𝐴 ∈ {𝐶, 𝐷}))
42, 3mpbii 136 . . 3 ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐴 ∈ {𝐶, 𝐷})
5 preq12b.2 . . . . 5 𝐵 ∈ V
65prid2 3477 . . . 4 𝐵 ∈ {𝐴, 𝐵}
7 eleq2 2101 . . . 4 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐵 ∈ {𝐴, 𝐵} ↔ 𝐵 ∈ {𝐶, 𝐷}))
86, 7mpbii 136 . . 3 ({𝐴, 𝐵} = {𝐶, 𝐷} → 𝐵 ∈ {𝐶, 𝐷})
94, 8jca 290 . 2 ({𝐴, 𝐵} = {𝐶, 𝐷} → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}))
101elpr 3396 . . . 4 (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷))
11 eqeq2 2049 . . . . . . . . . . . 12 (𝐵 = 𝐷 → (𝐴 = 𝐵𝐴 = 𝐷))
1211notbid 592 . . . . . . . . . . 11 (𝐵 = 𝐷 → (¬ 𝐴 = 𝐵 ↔ ¬ 𝐴 = 𝐷))
13 orel2 645 . . . . . . . . . . 11 𝐴 = 𝐷 → ((𝐴 = 𝐶𝐴 = 𝐷) → 𝐴 = 𝐶))
1412, 13syl6bi 152 . . . . . . . . . 10 (𝐵 = 𝐷 → (¬ 𝐴 = 𝐵 → ((𝐴 = 𝐶𝐴 = 𝐷) → 𝐴 = 𝐶)))
1514com3l 75 . . . . . . . . 9 𝐴 = 𝐵 → ((𝐴 = 𝐶𝐴 = 𝐷) → (𝐵 = 𝐷𝐴 = 𝐶)))
1615imp 115 . . . . . . . 8 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → (𝐵 = 𝐷𝐴 = 𝐶))
1716ancrd 309 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → (𝐵 = 𝐷 → (𝐴 = 𝐶𝐵 = 𝐷)))
18 eqeq2 2049 . . . . . . . . . . . 12 (𝐵 = 𝐶 → (𝐴 = 𝐵𝐴 = 𝐶))
1918notbid 592 . . . . . . . . . . 11 (𝐵 = 𝐶 → (¬ 𝐴 = 𝐵 ↔ ¬ 𝐴 = 𝐶))
20 orel1 644 . . . . . . . . . . 11 𝐴 = 𝐶 → ((𝐴 = 𝐶𝐴 = 𝐷) → 𝐴 = 𝐷))
2119, 20syl6bi 152 . . . . . . . . . 10 (𝐵 = 𝐶 → (¬ 𝐴 = 𝐵 → ((𝐴 = 𝐶𝐴 = 𝐷) → 𝐴 = 𝐷)))
2221com3l 75 . . . . . . . . 9 𝐴 = 𝐵 → ((𝐴 = 𝐶𝐴 = 𝐷) → (𝐵 = 𝐶𝐴 = 𝐷)))
2322imp 115 . . . . . . . 8 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → (𝐵 = 𝐶𝐴 = 𝐷))
2423ancrd 309 . . . . . . 7 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → (𝐵 = 𝐶 → (𝐴 = 𝐷𝐵 = 𝐶)))
2517, 24orim12d 700 . . . . . 6 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → ((𝐵 = 𝐷𝐵 = 𝐶) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
265elpr 3396 . . . . . . 7 (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶𝐵 = 𝐷))
27 orcom 647 . . . . . . 7 ((𝐵 = 𝐶𝐵 = 𝐷) ↔ (𝐵 = 𝐷𝐵 = 𝐶))
2826, 27bitri 173 . . . . . 6 (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐷𝐵 = 𝐶))
29 preq12b.3 . . . . . . 7 𝐶 ∈ V
30 preq12b.4 . . . . . . 7 𝐷 ∈ V
311, 5, 29, 30preq12b 3541 . . . . . 6 ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
3225, 28, 313imtr4g 194 . . . . 5 ((¬ 𝐴 = 𝐵 ∧ (𝐴 = 𝐶𝐴 = 𝐷)) → (𝐵 ∈ {𝐶, 𝐷} → {𝐴, 𝐵} = {𝐶, 𝐷}))
3332ex 108 . . . 4 𝐴 = 𝐵 → ((𝐴 = 𝐶𝐴 = 𝐷) → (𝐵 ∈ {𝐶, 𝐷} → {𝐴, 𝐵} = {𝐶, 𝐷})))
3410, 33syl5bi 141 . . 3 𝐴 = 𝐵 → (𝐴 ∈ {𝐶, 𝐷} → (𝐵 ∈ {𝐶, 𝐷} → {𝐴, 𝐵} = {𝐶, 𝐷})))
3534impd 242 . 2 𝐴 = 𝐵 → ((𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}) → {𝐴, 𝐵} = {𝐶, 𝐷}))
369, 35impbid2 131 1 𝐴 = 𝐵 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
 Colors of variables: wff set class Syntax hints:  ¬ wn 3   → wi 4   ∧ wa 97   ↔ wb 98   ∨ wo 629   = wceq 1243   ∈ wcel 1393  Vcvv 2557  {cpr 3376 This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 99  ax-ia2 100  ax-ia3 101  ax-in1 544  ax-in2 545  ax-io 630  ax-5 1336  ax-7 1337  ax-gen 1338  ax-ie1 1382  ax-ie2 1383  ax-8 1395  ax-10 1396  ax-11 1397  ax-i12 1398  ax-bndl 1399  ax-4 1400  ax-17 1419  ax-i9 1423  ax-ial 1427  ax-i5r 1428  ax-ext 2022 This theorem depends on definitions:  df-bi 110  df-tru 1246  df-nf 1350  df-sb 1646  df-clab 2027  df-cleq 2033  df-clel 2036  df-nfc 2167  df-v 2559  df-un 2922  df-sn 3381  df-pr 3382 This theorem is referenced by: (None)
 Copyright terms: Public domain W3C validator