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

Theorem prel12g 4791
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 4790 . 2 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
2 prid1g 4693 . . . . . . . . 9 (𝐴𝑉𝐴 ∈ {𝐴, 𝐷})
323ad2ant1 1131 . . . . . . . 8 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐴 ∈ {𝐴, 𝐷})
43adantr 480 . . . . . . 7 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → 𝐴 ∈ {𝐴, 𝐷})
5 preq1 4666 . . . . . . . 8 (𝐴 = 𝐶 → {𝐴, 𝐷} = {𝐶, 𝐷})
65adantl 481 . . . . . . 7 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → {𝐴, 𝐷} = {𝐶, 𝐷})
74, 6eleqtrd 2841 . . . . . 6 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → 𝐴 ∈ {𝐶, 𝐷})
87ex 412 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 = 𝐶𝐴 ∈ {𝐶, 𝐷}))
9 prid2g 4694 . . . . . . 7 (𝐵𝑊𝐵 ∈ {𝐶, 𝐵})
1093ad2ant2 1132 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐵 ∈ {𝐶, 𝐵})
11 preq2 4667 . . . . . . 7 (𝐵 = 𝐷 → {𝐶, 𝐵} = {𝐶, 𝐷})
1211eleq2d 2824 . . . . . 6 (𝐵 = 𝐷 → (𝐵 ∈ {𝐶, 𝐵} ↔ 𝐵 ∈ {𝐶, 𝐷}))
1310, 12syl5ibcom 244 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 = 𝐷𝐵 ∈ {𝐶, 𝐷}))
148, 13anim12d 608 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 = 𝐶𝐵 = 𝐷) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
15 prid2g 4694 . . . . . . 7 (𝐴𝑉𝐴 ∈ {𝐶, 𝐴})
16153ad2ant1 1131 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐴 ∈ {𝐶, 𝐴})
17 preq2 4667 . . . . . . 7 (𝐴 = 𝐷 → {𝐶, 𝐴} = {𝐶, 𝐷})
1817eleq2d 2824 . . . . . 6 (𝐴 = 𝐷 → (𝐴 ∈ {𝐶, 𝐴} ↔ 𝐴 ∈ {𝐶, 𝐷}))
1916, 18syl5ibcom 244 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 = 𝐷𝐴 ∈ {𝐶, 𝐷}))
20 prid1g 4693 . . . . . . 7 (𝐵𝑊𝐵 ∈ {𝐵, 𝐷})
21203ad2ant2 1132 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐵 ∈ {𝐵, 𝐷})
22 preq1 4666 . . . . . . 7 (𝐵 = 𝐶 → {𝐵, 𝐷} = {𝐶, 𝐷})
2322eleq2d 2824 . . . . . 6 (𝐵 = 𝐶 → (𝐵 ∈ {𝐵, 𝐷} ↔ 𝐵 ∈ {𝐶, 𝐷}))
2421, 23syl5ibcom 244 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 = 𝐶𝐵 ∈ {𝐶, 𝐷}))
2519, 24anim12d 608 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
2614, 25jaod 855 . . 3 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
27 elprg 4579 . . . . . 6 (𝐴𝑉 → (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷)))
28273ad2ant1 1131 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷)))
29 elprg 4579 . . . . . 6 (𝐵𝑊 → (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶𝐵 = 𝐷)))
30293ad2ant2 1132 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶𝐵 = 𝐷)))
3128, 30anbi12d 630 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}) ↔ ((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷))))
32 eqtr3 2764 . . . . . . . 8 ((𝐴 = 𝐶𝐵 = 𝐶) → 𝐴 = 𝐵)
33 eqneqall 2953 . . . . . . . 8 (𝐴 = 𝐵 → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
3432, 33syl 17 . . . . . . 7 ((𝐴 = 𝐶𝐵 = 𝐶) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
35 olc 864 . . . . . . . 8 ((𝐴 = 𝐷𝐵 = 𝐶) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
3635a1d 25 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
37 orc 863 . . . . . . . 8 ((𝐴 = 𝐶𝐵 = 𝐷) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
3837a1d 25 . . . . . . 7 ((𝐴 = 𝐶𝐵 = 𝐷) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
39 eqtr3 2764 . . . . . . . 8 ((𝐴 = 𝐷𝐵 = 𝐷) → 𝐴 = 𝐵)
4039, 33syl 17 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐷) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4134, 36, 38, 40ccase 1034 . . . . . 6 (((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷)) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4241com12 32 . . . . 5 (𝐴𝐵 → (((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷)) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
43423ad2ant3 1133 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷)) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4431, 43sylbid 239 . . 3 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4526, 44impbid 211 . 2 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
461, 45bitrd 278 1 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1539  wcel 2108  wne 2942  {cpr 4560
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ne 2943  df-v 3424  df-dif 3886  df-un 3888  df-nul 4254  df-sn 4559  df-pr 4561
This theorem is referenced by:  dfac2b  9817  hash2prd  14117
  Copyright terms: Public domain W3C validator