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

Theorem prel12g 4774
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 4773 . 2 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
2 prid1g 4676 . . . . . . . . 9 (𝐴𝑉𝐴 ∈ {𝐴, 𝐷})
323ad2ant1 1135 . . . . . . . 8 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐴 ∈ {𝐴, 𝐷})
43adantr 484 . . . . . . 7 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → 𝐴 ∈ {𝐴, 𝐷})
5 preq1 4649 . . . . . . . 8 (𝐴 = 𝐶 → {𝐴, 𝐷} = {𝐶, 𝐷})
65adantl 485 . . . . . . 7 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → {𝐴, 𝐷} = {𝐶, 𝐷})
74, 6eleqtrd 2840 . . . . . 6 (((𝐴𝑉𝐵𝑊𝐴𝐵) ∧ 𝐴 = 𝐶) → 𝐴 ∈ {𝐶, 𝐷})
87ex 416 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 = 𝐶𝐴 ∈ {𝐶, 𝐷}))
9 prid2g 4677 . . . . . . 7 (𝐵𝑊𝐵 ∈ {𝐶, 𝐵})
1093ad2ant2 1136 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐵 ∈ {𝐶, 𝐵})
11 preq2 4650 . . . . . . 7 (𝐵 = 𝐷 → {𝐶, 𝐵} = {𝐶, 𝐷})
1211eleq2d 2823 . . . . . 6 (𝐵 = 𝐷 → (𝐵 ∈ {𝐶, 𝐵} ↔ 𝐵 ∈ {𝐶, 𝐷}))
1310, 12syl5ibcom 248 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 = 𝐷𝐵 ∈ {𝐶, 𝐷}))
148, 13anim12d 612 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 = 𝐶𝐵 = 𝐷) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
15 prid2g 4677 . . . . . . 7 (𝐴𝑉𝐴 ∈ {𝐶, 𝐴})
16153ad2ant1 1135 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐴 ∈ {𝐶, 𝐴})
17 preq2 4650 . . . . . . 7 (𝐴 = 𝐷 → {𝐶, 𝐴} = {𝐶, 𝐷})
1817eleq2d 2823 . . . . . 6 (𝐴 = 𝐷 → (𝐴 ∈ {𝐶, 𝐴} ↔ 𝐴 ∈ {𝐶, 𝐷}))
1916, 18syl5ibcom 248 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 = 𝐷𝐴 ∈ {𝐶, 𝐷}))
20 prid1g 4676 . . . . . . 7 (𝐵𝑊𝐵 ∈ {𝐵, 𝐷})
21203ad2ant2 1136 . . . . . 6 ((𝐴𝑉𝐵𝑊𝐴𝐵) → 𝐵 ∈ {𝐵, 𝐷})
22 preq1 4649 . . . . . . 7 (𝐵 = 𝐶 → {𝐵, 𝐷} = {𝐶, 𝐷})
2322eleq2d 2823 . . . . . 6 (𝐵 = 𝐶 → (𝐵 ∈ {𝐵, 𝐷} ↔ 𝐵 ∈ {𝐶, 𝐷}))
2421, 23syl5ibcom 248 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 = 𝐶𝐵 ∈ {𝐶, 𝐷}))
2519, 24anim12d 612 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
2614, 25jaod 859 . . 3 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
27 elprg 4562 . . . . . 6 (𝐴𝑉 → (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷)))
28273ad2ant1 1135 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶𝐴 = 𝐷)))
29 elprg 4562 . . . . . 6 (𝐵𝑊 → (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶𝐵 = 𝐷)))
30293ad2ant2 1136 . . . . 5 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶𝐵 = 𝐷)))
3128, 30anbi12d 634 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}) ↔ ((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷))))
32 eqtr3 2763 . . . . . . . 8 ((𝐴 = 𝐶𝐵 = 𝐶) → 𝐴 = 𝐵)
33 eqneqall 2951 . . . . . . . 8 (𝐴 = 𝐵 → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
3432, 33syl 17 . . . . . . 7 ((𝐴 = 𝐶𝐵 = 𝐶) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
35 olc 868 . . . . . . . 8 ((𝐴 = 𝐷𝐵 = 𝐶) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
3635a1d 25 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐶) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
37 orc 867 . . . . . . . 8 ((𝐴 = 𝐶𝐵 = 𝐷) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))
3837a1d 25 . . . . . . 7 ((𝐴 = 𝐶𝐵 = 𝐷) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
39 eqtr3 2763 . . . . . . . 8 ((𝐴 = 𝐷𝐵 = 𝐷) → 𝐴 = 𝐵)
4039, 33syl 17 . . . . . . 7 ((𝐴 = 𝐷𝐵 = 𝐷) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4134, 36, 38, 40ccase 1038 . . . . . 6 (((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷)) → (𝐴𝐵 → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4241com12 32 . . . . 5 (𝐴𝐵 → (((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷)) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
43423ad2ant3 1137 . . . 4 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (((𝐴 = 𝐶𝐴 = 𝐷) ∧ (𝐵 = 𝐶𝐵 = 𝐷)) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4431, 43sylbid 243 . . 3 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ((𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}) → ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
4526, 44impbid 215 . 2 ((𝐴𝑉𝐵𝑊𝐴𝐵) → (((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)) ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
461, 45bitrd 282 1 ((𝐴𝑉𝐵𝑊𝐴𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷})))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  wo 847  w3a 1089   = wceq 1543  wcel 2110  wne 2940  {cpr 4543
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-ext 2708
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-sb 2071  df-clab 2715  df-cleq 2729  df-clel 2816  df-ne 2941  df-v 3410  df-dif 3869  df-un 3871  df-nul 4238  df-sn 4542  df-pr 4544
This theorem is referenced by:  dfac2b  9744  hash2prd  14041
  Copyright terms: Public domain W3C validator