ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  preq12bg Unicode version

Theorem preq12bg 3752
Description: Closed form of preq12b 3749. (Contributed by Scott Fenton, 28-Mar-2014.)
Assertion
Ref Expression
preq12bg  |-  ( ( ( A  e.  V  /\  B  e.  W
)  /\  ( C  e.  X  /\  D  e.  Y ) )  -> 
( { A ,  B }  =  { C ,  D }  <->  ( ( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C ) ) ) )

Proof of Theorem preq12bg
Dummy variables  x  y  z  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 preq1 3652 . . . . . . 7  |-  ( x  =  A  ->  { x ,  y }  =  { A ,  y } )
21eqeq1d 2174 . . . . . 6  |-  ( x  =  A  ->  ( { x ,  y }  =  { z ,  D }  <->  { A ,  y }  =  { z ,  D } ) )
3 eqeq1 2172 . . . . . . . 8  |-  ( x  =  A  ->  (
x  =  z  <->  A  =  z ) )
43anbi1d 461 . . . . . . 7  |-  ( x  =  A  ->  (
( x  =  z  /\  y  =  D )  <->  ( A  =  z  /\  y  =  D ) ) )
5 eqeq1 2172 . . . . . . . 8  |-  ( x  =  A  ->  (
x  =  D  <->  A  =  D ) )
65anbi1d 461 . . . . . . 7  |-  ( x  =  A  ->  (
( x  =  D  /\  y  =  z )  <->  ( A  =  D  /\  y  =  z ) ) )
74, 6orbi12d 783 . . . . . 6  |-  ( x  =  A  ->  (
( ( x  =  z  /\  y  =  D )  \/  (
x  =  D  /\  y  =  z )
)  <->  ( ( A  =  z  /\  y  =  D )  \/  ( A  =  D  /\  y  =  z )
) ) )
82, 7bibi12d 234 . . . . 5  |-  ( x  =  A  ->  (
( { x ,  y }  =  {
z ,  D }  <->  ( ( x  =  z  /\  y  =  D )  \/  ( x  =  D  /\  y  =  z ) ) )  <->  ( { A ,  y }  =  { z ,  D } 
<->  ( ( A  =  z  /\  y  =  D )  \/  ( A  =  D  /\  y  =  z )
) ) ) )
98imbi2d 229 . . . 4  |-  ( x  =  A  ->  (
( D  e.  Y  ->  ( { x ,  y }  =  {
z ,  D }  <->  ( ( x  =  z  /\  y  =  D )  \/  ( x  =  D  /\  y  =  z ) ) ) )  <->  ( D  e.  Y  ->  ( { A ,  y }  =  { z ,  D }  <->  ( ( A  =  z  /\  y  =  D )  \/  ( A  =  D  /\  y  =  z ) ) ) ) ) )
10 preq2 3653 . . . . . . 7  |-  ( y  =  B  ->  { A ,  y }  =  { A ,  B }
)
1110eqeq1d 2174 . . . . . 6  |-  ( y  =  B  ->  ( { A ,  y }  =  { z ,  D }  <->  { A ,  B }  =  {
z ,  D }
) )
12 eqeq1 2172 . . . . . . . 8  |-  ( y  =  B  ->  (
y  =  D  <->  B  =  D ) )
1312anbi2d 460 . . . . . . 7  |-  ( y  =  B  ->  (
( A  =  z  /\  y  =  D )  <->  ( A  =  z  /\  B  =  D ) ) )
14 eqeq1 2172 . . . . . . . 8  |-  ( y  =  B  ->  (
y  =  z  <->  B  =  z ) )
1514anbi2d 460 . . . . . . 7  |-  ( y  =  B  ->  (
( A  =  D  /\  y  =  z )  <->  ( A  =  D  /\  B  =  z ) ) )
1613, 15orbi12d 783 . . . . . 6  |-  ( y  =  B  ->  (
( ( A  =  z  /\  y  =  D )  \/  ( A  =  D  /\  y  =  z )
)  <->  ( ( A  =  z  /\  B  =  D )  \/  ( A  =  D  /\  B  =  z )
) ) )
1711, 16bibi12d 234 . . . . 5  |-  ( y  =  B  ->  (
( { A , 
y }  =  {
z ,  D }  <->  ( ( A  =  z  /\  y  =  D )  \/  ( A  =  D  /\  y  =  z ) ) )  <->  ( { A ,  B }  =  {
z ,  D }  <->  ( ( A  =  z  /\  B  =  D )  \/  ( A  =  D  /\  B  =  z ) ) ) ) )
1817imbi2d 229 . . . 4  |-  ( y  =  B  ->  (
( D  e.  Y  ->  ( { A , 
y }  =  {
z ,  D }  <->  ( ( A  =  z  /\  y  =  D )  \/  ( A  =  D  /\  y  =  z ) ) ) )  <->  ( D  e.  Y  ->  ( { A ,  B }  =  { z ,  D } 
<->  ( ( A  =  z  /\  B  =  D )  \/  ( A  =  D  /\  B  =  z )
) ) ) ) )
19 preq1 3652 . . . . . . 7  |-  ( z  =  C  ->  { z ,  D }  =  { C ,  D }
)
2019eqeq2d 2177 . . . . . 6  |-  ( z  =  C  ->  ( { A ,  B }  =  { z ,  D } 
<->  { A ,  B }  =  { C ,  D } ) )
21 eqeq2 2175 . . . . . . . 8  |-  ( z  =  C  ->  ( A  =  z  <->  A  =  C ) )
2221anbi1d 461 . . . . . . 7  |-  ( z  =  C  ->  (
( A  =  z  /\  B  =  D )  <->  ( A  =  C  /\  B  =  D ) ) )
23 eqeq2 2175 . . . . . . . 8  |-  ( z  =  C  ->  ( B  =  z  <->  B  =  C ) )
2423anbi2d 460 . . . . . . 7  |-  ( z  =  C  ->  (
( A  =  D  /\  B  =  z )  <->  ( A  =  D  /\  B  =  C ) ) )
2522, 24orbi12d 783 . . . . . 6  |-  ( z  =  C  ->  (
( ( A  =  z  /\  B  =  D )  \/  ( A  =  D  /\  B  =  z )
)  <->  ( ( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C )
) ) )
2620, 25bibi12d 234 . . . . 5  |-  ( z  =  C  ->  (
( { A ,  B }  =  {
z ,  D }  <->  ( ( A  =  z  /\  B  =  D )  \/  ( A  =  D  /\  B  =  z ) ) )  <->  ( { A ,  B }  =  { C ,  D }  <->  ( ( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C ) ) ) ) )
2726imbi2d 229 . . . 4  |-  ( z  =  C  ->  (
( D  e.  Y  ->  ( { A ,  B }  =  {
z ,  D }  <->  ( ( A  =  z  /\  B  =  D )  \/  ( A  =  D  /\  B  =  z ) ) ) )  <->  ( D  e.  Y  ->  ( { A ,  B }  =  { C ,  D } 
<->  ( ( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C )
) ) ) ) )
28 preq2 3653 . . . . . . 7  |-  ( w  =  D  ->  { z ,  w }  =  { z ,  D } )
2928eqeq2d 2177 . . . . . 6  |-  ( w  =  D  ->  ( { x ,  y }  =  { z ,  w }  <->  { x ,  y }  =  { z ,  D } ) )
30 eqeq2 2175 . . . . . . . 8  |-  ( w  =  D  ->  (
y  =  w  <->  y  =  D ) )
3130anbi2d 460 . . . . . . 7  |-  ( w  =  D  ->  (
( x  =  z  /\  y  =  w )  <->  ( x  =  z  /\  y  =  D ) ) )
32 eqeq2 2175 . . . . . . . 8  |-  ( w  =  D  ->  (
x  =  w  <->  x  =  D ) )
3332anbi1d 461 . . . . . . 7  |-  ( w  =  D  ->  (
( x  =  w  /\  y  =  z )  <->  ( x  =  D  /\  y  =  z ) ) )
3431, 33orbi12d 783 . . . . . 6  |-  ( w  =  D  ->  (
( ( x  =  z  /\  y  =  w )  \/  (
x  =  w  /\  y  =  z )
)  <->  ( ( x  =  z  /\  y  =  D )  \/  (
x  =  D  /\  y  =  z )
) ) )
35 vex 2728 . . . . . . 7  |-  x  e. 
_V
36 vex 2728 . . . . . . 7  |-  y  e. 
_V
37 vex 2728 . . . . . . 7  |-  z  e. 
_V
38 vex 2728 . . . . . . 7  |-  w  e. 
_V
3935, 36, 37, 38preq12b 3749 . . . . . 6  |-  ( { x ,  y }  =  { z ,  w }  <->  ( (
x  =  z  /\  y  =  w )  \/  ( x  =  w  /\  y  =  z ) ) )
4029, 34, 39vtoclbg 2786 . . . . 5  |-  ( D  e.  Y  ->  ( { x ,  y }  =  { z ,  D }  <->  ( (
x  =  z  /\  y  =  D )  \/  ( x  =  D  /\  y  =  z ) ) ) )
4140a1i 9 . . . 4  |-  ( ( x  e.  V  /\  y  e.  W  /\  z  e.  X )  ->  ( D  e.  Y  ->  ( { x ,  y }  =  {
z ,  D }  <->  ( ( x  =  z  /\  y  =  D )  \/  ( x  =  D  /\  y  =  z ) ) ) ) )
429, 18, 27, 41vtocl3ga 2795 . . 3  |-  ( ( A  e.  V  /\  B  e.  W  /\  C  e.  X )  ->  ( D  e.  Y  ->  ( { A ,  B }  =  { C ,  D }  <->  ( ( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C ) ) ) ) )
43423expa 1193 . 2  |-  ( ( ( A  e.  V  /\  B  e.  W
)  /\  C  e.  X )  ->  ( D  e.  Y  ->  ( { A ,  B }  =  { C ,  D }  <->  ( ( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C ) ) ) ) )
4443impr 377 1  |-  ( ( ( A  e.  V  /\  B  e.  W
)  /\  ( C  e.  X  /\  D  e.  Y ) )  -> 
( { A ,  B }  =  { C ,  D }  <->  ( ( A  =  C  /\  B  =  D )  \/  ( A  =  D  /\  B  =  C ) ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    \/ wo 698    /\ w3a 968    = wceq 1343    e. wcel 2136   {cpr 3576
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-ext 2147
This theorem depends on definitions:  df-bi 116  df-3an 970  df-tru 1346  df-nf 1449  df-sb 1751  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2296  df-v 2727  df-un 3119  df-sn 3581  df-pr 3582
This theorem is referenced by:  prneimg  3753  pythagtriplem2  12194  pythagtrip  12211
  Copyright terms: Public domain W3C validator