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

Theorem prel12g 4794
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 4793 . 2 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
2 prid1g 4696 . . . . . . . . 9 (𝐴𝑉𝐴 ∈ {𝐴, 𝐷})
323ad2ant1 1132 . . . . . . . 8 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐴 ∈ {𝐴, 𝐷})
43adantr 481 . . . . . . 7 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → 𝐴 ∈ {𝐴, 𝐷})
5 preq1 4669 . . . . . . . 8 (𝐴 = 𝐶 → {𝐴, 𝐷} = {𝐶, 𝐷})
65adantl 482 . . . . . . 7 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → {𝐴, 𝐷} = {𝐶, 𝐷})
74, 6eleqtrd 2841 . . . . . 6 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → 𝐴 ∈ {𝐶, 𝐷})
87ex 413 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 = 𝐶𝐴 ∈ {𝐶, 𝐷}))
9 prid2g 4697 . . . . . . 7 (𝐵𝑊𝐵 ∈ {𝐶, 𝐵})
1093ad2ant2 1133 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐵 ∈ {𝐶, 𝐵})
11 preq2 4670 . . . . . . 7 (𝐵 = 𝐷 → {𝐶, 𝐵} = {𝐶, 𝐷})
1211eleq2d 2824 . . . . . 6 (𝐵 = 𝐷 → (𝐵 ∈ {𝐶, 𝐵} ↔ 𝐵 ∈ {𝐶, 𝐷}))
1310, 12syl5ibcom 244 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 = 𝐷𝐵 ∈ {𝐶, 𝐷}))
148, 13anim12d 609 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 = 𝐶𝐵 = 𝐷) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
15 prid2g 4697 . . . . . . 7 (𝐴𝑉𝐴 ∈ {𝐶, 𝐴})
16153ad2ant1 1132 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐴 ∈ {𝐶, 𝐴})
17 preq2 4670 . . . . . . 7 (𝐴 = 𝐷 → {𝐶, 𝐴} = {𝐶, 𝐷})
1817eleq2d 2824 . . . . . 6 (𝐴 = 𝐷 → (𝐴 ∈ {𝐶, 𝐴} ↔ 𝐴 ∈ {𝐶, 𝐷}))
1916, 18syl5ibcom 244 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 = 𝐷𝐴 ∈ {𝐶, 𝐷}))
20 prid1g 4696 . . . . . . 7 (𝐵𝑊𝐵 ∈ {𝐵, 𝐷})
21203ad2ant2 1133 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐵 ∈ {𝐵, 𝐷})
22 preq1 4669 . . . . . . 7 (𝐵 = 𝐶 → {𝐵, 𝐷} = {𝐶, 𝐷})
2322eleq2d 2824 . . . . . 6 (𝐵 = 𝐶 → (𝐵 ∈ {𝐵, 𝐷} ↔ 𝐵 ∈ {𝐶, 𝐷}))
2421, 23syl5ibcom 244 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 = 𝐶𝐵 ∈ {𝐶, 𝐷}))
2519, 24anim12d 609 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
2614, 25jaod 856 . . 3 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
27 elprg 4582 . . . . . 6 (𝐴𝑉 → (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷)))
28273ad2ant1 1132 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷)))
29 elprg 4582 . . . . . 6 (𝐵𝑊 → (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶𝐵 = 𝐷)))
30293ad2ant2 1133 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶𝐵 = 𝐷)))
3128, 30anbi12d 631 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}) ↔ ((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷))))
32 eqtr3 2764 . . . . . . . 8 ((𝐴 = 𝐶𝐵 = 𝐶) → 𝐴 = 𝐵)
33 eqneqall 2954 . . . . . . . 8 (𝐴 = 𝐵 → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
3432, 33syl 17 . . . . . . 7 ((𝐴 = 𝐶𝐵 = 𝐶) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
35 olc 865 . . . . . . . 8 ((𝐴 = 𝐷𝐵 = 𝐶) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
3635a1d 25 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
37 orc 864 . . . . . . . 8 ((𝐴 = 𝐶𝐵 = 𝐷) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
3837a1d 25 . . . . . . 7 ((𝐴 = 𝐶𝐵 = 𝐷) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
39 eqtr3 2764 . . . . . . . 8 ((𝐴 = 𝐷𝐵 = 𝐷) → 𝐴 = 𝐵)
4039, 33syl 17 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐷) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4134, 36, 38, 40ccase 1035 . . . . . 6 (((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷)) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4241com12 32 . . . . 5 (𝐴𝐵 → (((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷)) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
43423ad2ant3 1134 . . . 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 396  wo 844  w3a 1086   = wceq 1539  wcel 2106  wne 2943  {cpr 4563
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-ne 2944  df-v 3434  df-dif 3890  df-un 3892  df-nul 4257  df-sn 4562  df-pr 4564
This theorem is referenced by:  dfac2b  9886  hash2prd  14189
  Copyright terms: Public domain W3C validator