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

Theorem preq12bg 4326
Description: Closed form of preq12b 4322. (Contributed by Scott Fenton, 28-Mar-2014.)
Assertion
Ref Expression
preq12bg (((𝐴𝑉𝐵𝑊) ∧ (𝐶𝑋𝐷𝑌)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))

Proof of Theorem preq12bg
Dummy variables 𝑥 𝑦 𝑧 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 preq1 4212 . . . . . . 7 (𝑥 = 𝐴 → {𝑥, 𝑦} = {𝐴, 𝑦})
21eqeq1d 2612 . . . . . 6 (𝑥 = 𝐴 → ({𝑥, 𝑦} = {𝑧, 𝐷} ↔ {𝐴, 𝑦} = {𝑧, 𝐷}))
3 eqeq1 2614 . . . . . . . 8 (𝑥 = 𝐴 → (𝑥 = 𝑧𝐴 = 𝑧))
43anbi1d 737 . . . . . . 7 (𝑥 = 𝐴 → ((𝑥 = 𝑧𝑦 = 𝐷) ↔ (𝐴 = 𝑧𝑦 = 𝐷)))
5 eqeq1 2614 . . . . . . . 8 (𝑥 = 𝐴 → (𝑥 = 𝐷𝐴 = 𝐷))
65anbi1d 737 . . . . . . 7 (𝑥 = 𝐴 → ((𝑥 = 𝐷𝑦 = 𝑧) ↔ (𝐴 = 𝐷𝑦 = 𝑧)))
74, 6orbi12d 742 . . . . . 6 (𝑥 = 𝐴 → (((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧)) ↔ ((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧))))
82, 7bibi12d 334 . . . . 5 (𝑥 = 𝐴 → (({𝑥, 𝑦} = {𝑧, 𝐷} ↔ ((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧))) ↔ ({𝐴, 𝑦} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧)))))
98imbi2d 329 . . . 4 (𝑥 = 𝐴 → ((𝐷𝑌 → ({𝑥, 𝑦} = {𝑧, 𝐷} ↔ ((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧)))) ↔ (𝐷𝑌 → ({𝐴, 𝑦} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧))))))
10 preq2 4213 . . . . . . 7 (𝑦 = 𝐵 → {𝐴, 𝑦} = {𝐴, 𝐵})
1110eqeq1d 2612 . . . . . 6 (𝑦 = 𝐵 → ({𝐴, 𝑦} = {𝑧, 𝐷} ↔ {𝐴, 𝐵} = {𝑧, 𝐷}))
12 eqeq1 2614 . . . . . . . 8 (𝑦 = 𝐵 → (𝑦 = 𝐷𝐵 = 𝐷))
1312anbi2d 736 . . . . . . 7 (𝑦 = 𝐵 → ((𝐴 = 𝑧𝑦 = 𝐷) ↔ (𝐴 = 𝑧𝐵 = 𝐷)))
14 eqeq1 2614 . . . . . . . 8 (𝑦 = 𝐵 → (𝑦 = 𝑧𝐵 = 𝑧))
1514anbi2d 736 . . . . . . 7 (𝑦 = 𝐵 → ((𝐴 = 𝐷𝑦 = 𝑧) ↔ (𝐴 = 𝐷𝐵 = 𝑧)))
1613, 15orbi12d 742 . . . . . 6 (𝑦 = 𝐵 → (((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧)) ↔ ((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧))))
1711, 16bibi12d 334 . . . . 5 (𝑦 = 𝐵 → (({𝐴, 𝑦} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧))) ↔ ({𝐴, 𝐵} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧)))))
1817imbi2d 329 . . . 4 (𝑦 = 𝐵 → ((𝐷𝑌 → ({𝐴, 𝑦} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧)))) ↔ (𝐷𝑌 → ({𝐴, 𝐵} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧))))))
19 preq1 4212 . . . . . . 7 (𝑧 = 𝐶 → {𝑧, 𝐷} = {𝐶, 𝐷})
2019eqeq2d 2620 . . . . . 6 (𝑧 = 𝐶 → ({𝐴, 𝐵} = {𝑧, 𝐷} ↔ {𝐴, 𝐵} = {𝐶, 𝐷}))
21 eqeq2 2621 . . . . . . . 8 (𝑧 = 𝐶 → (𝐴 = 𝑧𝐴 = 𝐶))
2221anbi1d 737 . . . . . . 7 (𝑧 = 𝐶 → ((𝐴 = 𝑧𝐵 = 𝐷) ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
23 eqeq2 2621 . . . . . . . 8 (𝑧 = 𝐶 → (𝐵 = 𝑧𝐵 = 𝐶))
2423anbi2d 736 . . . . . . 7 (𝑧 = 𝐶 → ((𝐴 = 𝐷𝐵 = 𝑧) ↔ (𝐴 = 𝐷𝐵 = 𝐶)))
2522, 24orbi12d 742 . . . . . 6 (𝑧 = 𝐶 → (((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧)) ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
2620, 25bibi12d 334 . . . . 5 (𝑧 = 𝐶 → (({𝐴, 𝐵} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧))) ↔ ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
2726imbi2d 329 . . . 4 (𝑧 = 𝐶 → ((𝐷𝑌 → ({𝐴, 𝐵} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧)))) ↔ (𝐷𝑌 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))))
28 preq2 4213 . . . . . . 7 (𝑤 = 𝐷 → {𝑧, 𝑤} = {𝑧, 𝐷})
2928eqeq2d 2620 . . . . . 6 (𝑤 = 𝐷 → ({𝑥, 𝑦} = {𝑧, 𝑤} ↔ {𝑥, 𝑦} = {𝑧, 𝐷}))
30 eqeq2 2621 . . . . . . . 8 (𝑤 = 𝐷 → (𝑦 = 𝑤𝑦 = 𝐷))
3130anbi2d 736 . . . . . . 7 (𝑤 = 𝐷 → ((𝑥 = 𝑧𝑦 = 𝑤) ↔ (𝑥 = 𝑧𝑦 = 𝐷)))
32 eqeq2 2621 . . . . . . . 8 (𝑤 = 𝐷 → (𝑥 = 𝑤𝑥 = 𝐷))
3332anbi1d 737 . . . . . . 7 (𝑤 = 𝐷 → ((𝑥 = 𝑤𝑦 = 𝑧) ↔ (𝑥 = 𝐷𝑦 = 𝑧)))
3431, 33orbi12d 742 . . . . . 6 (𝑤 = 𝐷 → (((𝑥 = 𝑧𝑦 = 𝑤) ∨ (𝑥 = 𝑤𝑦 = 𝑧)) ↔ ((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧))))
35 vex 3176 . . . . . . 7 𝑥 ∈ V
36 vex 3176 . . . . . . 7 𝑦 ∈ V
37 vex 3176 . . . . . . 7 𝑧 ∈ V
38 vex 3176 . . . . . . 7 𝑤 ∈ V
3935, 36, 37, 38preq12b 4322 . . . . . 6 ({𝑥, 𝑦} = {𝑧, 𝑤} ↔ ((𝑥 = 𝑧𝑦 = 𝑤) ∨ (𝑥 = 𝑤𝑦 = 𝑧)))
4029, 34, 39vtoclbg 3240 . . . . 5 (𝐷𝑌 → ({𝑥, 𝑦} = {𝑧, 𝐷} ↔ ((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧))))
4140a1i 11 . . . 4 ((𝑥𝑉𝑦𝑊𝑧𝑋) → (𝐷𝑌 → ({𝑥, 𝑦} = {𝑧, 𝐷} ↔ ((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧)))))
429, 18, 27, 41vtocl3ga 3249 . . 3 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐷𝑌 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
43423expa 1257 . 2 (((𝐴𝑉𝐵𝑊) ∧ 𝐶𝑋) → (𝐷𝑌 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
4443impr 647 1 (((𝐴𝑉𝐵𝑊) ∧ (𝐶𝑋𝐷𝑌)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 195  wo 382  wa 383  w3a 1031   = wceq 1475  wcel 1977  {cpr 4127
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-v 3175  df-un 3545  df-sn 4126  df-pr 4128
This theorem is referenced by:  prneimg  4328  preqsnd  4330  pythagtriplem2  15360  pythagtrip  15377  usgraidx2v  25922  usgra2adedgspthlem2  26140  usgra2wlkspthlem1  26147  constr3trllem2  26179  pr1eqbg  40313  uhgr2edg  40435  usgredg2v  40454  2pthon3v-av  41150
  Copyright terms: Public domain W3C validator