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

Theorem prel12g 4865
Description: Equality of two unordered pairs. (Contributed by NM, 17-Oct-1996.) (Revised by AV, 9-Dec-2018.) (Revised by AV, 12-Jun-2022.)
Assertion
Ref Expression
prel12g ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))

Proof of Theorem prel12g
StepHypRef Expression
1 preq12nebg 4864 . 2 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
2 prid1g 4765 . . . . . . . . 9 (𝐴𝑉𝐴 ∈ {𝐴, 𝐷})
323ad2ant1 1134 . . . . . . . 8 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐴 ∈ {𝐴, 𝐷})
43adantr 482 . . . . . . 7 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → 𝐴 ∈ {𝐴, 𝐷})
5 preq1 4738 . . . . . . . 8 (𝐴 = 𝐶 → {𝐴, 𝐷} = {𝐶, 𝐷})
65adantl 483 . . . . . . 7 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → {𝐴, 𝐷} = {𝐶, 𝐷})
74, 6eleqtrd 2836 . . . . . 6 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → 𝐴 ∈ {𝐶, 𝐷})
87ex 414 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 = 𝐶𝐴 ∈ {𝐶, 𝐷}))
9 prid2g 4766 . . . . . . 7 (𝐵𝑊𝐵 ∈ {𝐶, 𝐵})
1093ad2ant2 1135 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐵 ∈ {𝐶, 𝐵})
11 preq2 4739 . . . . . . 7 (𝐵 = 𝐷 → {𝐶, 𝐵} = {𝐶, 𝐷})
1211eleq2d 2820 . . . . . 6 (𝐵 = 𝐷 → (𝐵 ∈ {𝐶, 𝐵} ↔ 𝐵 ∈ {𝐶, 𝐷}))
1310, 12syl5ibcom 244 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 = 𝐷𝐵 ∈ {𝐶, 𝐷}))
148, 13anim12d 610 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 = 𝐶𝐵 = 𝐷) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
15 prid2g 4766 . . . . . . 7 (𝐴𝑉𝐴 ∈ {𝐶, 𝐴})
16153ad2ant1 1134 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐴 ∈ {𝐶, 𝐴})
17 preq2 4739 . . . . . . 7 (𝐴 = 𝐷 → {𝐶, 𝐴} = {𝐶, 𝐷})
1817eleq2d 2820 . . . . . 6 (𝐴 = 𝐷 → (𝐴 ∈ {𝐶, 𝐴} ↔ 𝐴 ∈ {𝐶, 𝐷}))
1916, 18syl5ibcom 244 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 = 𝐷𝐴 ∈ {𝐶, 𝐷}))
20 prid1g 4765 . . . . . . 7 (𝐵𝑊𝐵 ∈ {𝐵, 𝐷})
21203ad2ant2 1135 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐵 ∈ {𝐵, 𝐷})
22 preq1 4738 . . . . . . 7 (𝐵 = 𝐶 → {𝐵, 𝐷} = {𝐶, 𝐷})
2322eleq2d 2820 . . . . . 6 (𝐵 = 𝐶 → (𝐵 ∈ {𝐵, 𝐷} ↔ 𝐵 ∈ {𝐶, 𝐷}))
2421, 23syl5ibcom 244 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 = 𝐶𝐵 ∈ {𝐶, 𝐷}))
2519, 24anim12d 610 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
2614, 25jaod 858 . . 3 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
27 elprg 4650 . . . . . 6 (𝐴𝑉 → (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷)))
28273ad2ant1 1134 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷)))
29 elprg 4650 . . . . . 6 (𝐵𝑊 → (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶𝐵 = 𝐷)))
30293ad2ant2 1135 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶𝐵 = 𝐷)))
3128, 30anbi12d 632 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}) ↔ ((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷))))
32 eqtr3 2759 . . . . . . . 8 ((𝐴 = 𝐶𝐵 = 𝐶) → 𝐴 = 𝐵)
33 eqneqall 2952 . . . . . . . 8 (𝐴 = 𝐵 → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
3432, 33syl 17 . . . . . . 7 ((𝐴 = 𝐶𝐵 = 𝐶) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
35 olc 867 . . . . . . . 8 ((𝐴 = 𝐷𝐵 = 𝐶) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
3635a1d 25 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
37 orc 866 . . . . . . . 8 ((𝐴 = 𝐶𝐵 = 𝐷) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
3837a1d 25 . . . . . . 7 ((𝐴 = 𝐶𝐵 = 𝐷) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
39 eqtr3 2759 . . . . . . . 8 ((𝐴 = 𝐷𝐵 = 𝐷) → 𝐴 = 𝐵)
4039, 33syl 17 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐷) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4134, 36, 38, 40ccase 1037 . . . . . 6 (((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷)) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4241com12 32 . . . . 5 (𝐴𝐵 → (((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷)) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
43423ad2ant3 1136 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷)) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4431, 43sylbid 239 . . 3 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4526, 44impbid 211 . 2 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
461, 45bitrd 279 1 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 397  wo 846  w3a 1088   = wceq 1542  wcel 2107  wne 2941  {cpr 4631
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-ext 2704
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-sb 2069  df-clab 2711  df-cleq 2725  df-clel 2811  df-ne 2942  df-v 3477  df-dif 3952  df-un 3954  df-nul 4324  df-sn 4630  df-pr 4632
This theorem is referenced by:  dfac2b  10125  hash2prd  14436
  Copyright terms: Public domain W3C validator