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

Theorem preq12bg 4786
Description: Closed form of preq12b 4783. (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 4671 . . . . . . 7 (𝑥 = 𝐴 → {𝑥, 𝑦} = {𝐴, 𝑦})
21eqeq1d 2825 . . . . . 6 (𝑥 = 𝐴 → ({𝑥, 𝑦} = {𝑧, 𝐷} ↔ {𝐴, 𝑦} = {𝑧, 𝐷}))
3 eqeq1 2827 . . . . . . . 8 (𝑥 = 𝐴 → (𝑥 = 𝑧𝐴 = 𝑧))
43anbi1d 631 . . . . . . 7 (𝑥 = 𝐴 → ((𝑥 = 𝑧𝑦 = 𝐷) ↔ (𝐴 = 𝑧𝑦 = 𝐷)))
5 eqeq1 2827 . . . . . . . 8 (𝑥 = 𝐴 → (𝑥 = 𝐷𝐴 = 𝐷))
65anbi1d 631 . . . . . . 7 (𝑥 = 𝐴 → ((𝑥 = 𝐷𝑦 = 𝑧) ↔ (𝐴 = 𝐷𝑦 = 𝑧)))
74, 6orbi12d 915 . . . . . 6 (𝑥 = 𝐴 → (((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧)) ↔ ((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧))))
82, 7bibi12d 348 . . . . 5 (𝑥 = 𝐴 → (({𝑥, 𝑦} = {𝑧, 𝐷} ↔ ((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧))) ↔ ({𝐴, 𝑦} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧)))))
98imbi2d 343 . . . 4 (𝑥 = 𝐴 → ((𝐷𝑌 → ({𝑥, 𝑦} = {𝑧, 𝐷} ↔ ((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧)))) ↔ (𝐷𝑌 → ({𝐴, 𝑦} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧))))))
10 preq2 4672 . . . . . . 7 (𝑦 = 𝐵 → {𝐴, 𝑦} = {𝐴, 𝐵})
1110eqeq1d 2825 . . . . . 6 (𝑦 = 𝐵 → ({𝐴, 𝑦} = {𝑧, 𝐷} ↔ {𝐴, 𝐵} = {𝑧, 𝐷}))
12 eqeq1 2827 . . . . . . . 8 (𝑦 = 𝐵 → (𝑦 = 𝐷𝐵 = 𝐷))
1312anbi2d 630 . . . . . . 7 (𝑦 = 𝐵 → ((𝐴 = 𝑧𝑦 = 𝐷) ↔ (𝐴 = 𝑧𝐵 = 𝐷)))
14 eqeq1 2827 . . . . . . . 8 (𝑦 = 𝐵 → (𝑦 = 𝑧𝐵 = 𝑧))
1514anbi2d 630 . . . . . . 7 (𝑦 = 𝐵 → ((𝐴 = 𝐷𝑦 = 𝑧) ↔ (𝐴 = 𝐷𝐵 = 𝑧)))
1613, 15orbi12d 915 . . . . . 6 (𝑦 = 𝐵 → (((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧)) ↔ ((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧))))
1711, 16bibi12d 348 . . . . 5 (𝑦 = 𝐵 → (({𝐴, 𝑦} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧))) ↔ ({𝐴, 𝐵} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧)))))
1817imbi2d 343 . . . 4 (𝑦 = 𝐵 → ((𝐷𝑌 → ({𝐴, 𝑦} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝑦 = 𝐷) ∨ (𝐴 = 𝐷𝑦 = 𝑧)))) ↔ (𝐷𝑌 → ({𝐴, 𝐵} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧))))))
19 preq1 4671 . . . . . . 7 (𝑧 = 𝐶 → {𝑧, 𝐷} = {𝐶, 𝐷})
2019eqeq2d 2834 . . . . . 6 (𝑧 = 𝐶 → ({𝐴, 𝐵} = {𝑧, 𝐷} ↔ {𝐴, 𝐵} = {𝐶, 𝐷}))
21 eqeq2 2835 . . . . . . . 8 (𝑧 = 𝐶 → (𝐴 = 𝑧𝐴 = 𝐶))
2221anbi1d 631 . . . . . . 7 (𝑧 = 𝐶 → ((𝐴 = 𝑧𝐵 = 𝐷) ↔ (𝐴 = 𝐶𝐵 = 𝐷)))
23 eqeq2 2835 . . . . . . . 8 (𝑧 = 𝐶 → (𝐵 = 𝑧𝐵 = 𝐶))
2423anbi2d 630 . . . . . . 7 (𝑧 = 𝐶 → ((𝐴 = 𝐷𝐵 = 𝑧) ↔ (𝐴 = 𝐷𝐵 = 𝐶)))
2522, 24orbi12d 915 . . . . . 6 (𝑧 = 𝐶 → (((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧)) ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
2620, 25bibi12d 348 . . . . 5 (𝑧 = 𝐶 → (({𝐴, 𝐵} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧))) ↔ ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
2726imbi2d 343 . . . 4 (𝑧 = 𝐶 → ((𝐷𝑌 → ({𝐴, 𝐵} = {𝑧, 𝐷} ↔ ((𝐴 = 𝑧𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝑧)))) ↔ (𝐷𝑌 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))))
28 preq2 4672 . . . . . . 7 (𝑤 = 𝐷 → {𝑧, 𝑤} = {𝑧, 𝐷})
2928eqeq2d 2834 . . . . . 6 (𝑤 = 𝐷 → ({𝑥, 𝑦} = {𝑧, 𝑤} ↔ {𝑥, 𝑦} = {𝑧, 𝐷}))
30 eqeq2 2835 . . . . . . . 8 (𝑤 = 𝐷 → (𝑦 = 𝑤𝑦 = 𝐷))
3130anbi2d 630 . . . . . . 7 (𝑤 = 𝐷 → ((𝑥 = 𝑧𝑦 = 𝑤) ↔ (𝑥 = 𝑧𝑦 = 𝐷)))
32 eqeq2 2835 . . . . . . . 8 (𝑤 = 𝐷 → (𝑥 = 𝑤𝑥 = 𝐷))
3332anbi1d 631 . . . . . . 7 (𝑤 = 𝐷 → ((𝑥 = 𝑤𝑦 = 𝑧) ↔ (𝑥 = 𝐷𝑦 = 𝑧)))
3431, 33orbi12d 915 . . . . . 6 (𝑤 = 𝐷 → (((𝑥 = 𝑧𝑦 = 𝑤) ∨ (𝑥 = 𝑤𝑦 = 𝑧)) ↔ ((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧))))
35 vex 3499 . . . . . . 7 𝑥 ∈ V
36 vex 3499 . . . . . . 7 𝑦 ∈ V
37 vex 3499 . . . . . . 7 𝑧 ∈ V
38 vex 3499 . . . . . . 7 𝑤 ∈ V
3935, 36, 37, 38preq12b 4783 . . . . . 6 ({𝑥, 𝑦} = {𝑧, 𝑤} ↔ ((𝑥 = 𝑧𝑦 = 𝑤) ∨ (𝑥 = 𝑤𝑦 = 𝑧)))
4029, 34, 39vtoclbg 3571 . . . . 5 (𝐷𝑌 → ({𝑥, 𝑦} = {𝑧, 𝐷} ↔ ((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧))))
4140a1i 11 . . . 4 ((𝑥𝑉𝑦𝑊𝑧𝑋) → (𝐷𝑌 → ({𝑥, 𝑦} = {𝑧, 𝐷} ↔ ((𝑥 = 𝑧𝑦 = 𝐷) ∨ (𝑥 = 𝐷𝑦 = 𝑧)))))
429, 18, 27, 41vtocl3ga 3580 . . 3 ((𝐴𝑉𝐵𝑊𝐶𝑋) → (𝐷𝑌 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
43423expa 1114 . 2 (((𝐴𝑉𝐵𝑊) ∧ 𝐶𝑋) → (𝐷𝑌 → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶)))))
4443impr 457 1 (((𝐴𝑉𝐵𝑊) ∧ (𝐶𝑋𝐷𝑌)) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶𝐵 = 𝐷) ∨ (𝐴 = 𝐷𝐵 = 𝐶))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wo 843  w3a 1083   = wceq 1537  wcel 2114  {cpr 4571
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-v 3498  df-un 3943  df-sn 4570  df-pr 4572
This theorem is referenced by:  prneimg  4787  pr1eqbg  4789  preqsnd  4791  preq12nebg  4795  opthprneg  4797  preleqALT  9082  pythagtriplem2  16156  pythagtrip  16173  upgrpredgv  26926  uhgr2edg  26992  usgredg2v  27011  2pthon3v  27724  opprb  43273  or2expropbi  43276  ich2exprop  43640  prsprel  43656  paireqne  43680  poprelb  43693
  Copyright terms: Public domain W3C validator