MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  dfid3 Unicode version

Theorem dfid3 4326
Description: A stronger version of df-id 4325 that doesn't require  x and  y to be distinct. Ordinarily, we wouldn't use this as a definition, since non-distinct dummy variables would make soundness verification more difficult (as the proof here shows). The proof can be instructive in showing how distinct variable requirements may be eliminated, a task that is not necessarily obvious. (Contributed by NM, 5-Feb-2008.) (Revised by Mario Carneiro, 18-Nov-2016.)
Assertion
Ref Expression
dfid3  |-  _I  =  { <. x ,  y
>.  |  x  =  y }

Proof of Theorem dfid3
Dummy variables  z  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-id 4325 . 2  |-  _I  =  { <. x ,  z
>.  |  x  =  z }
2 ancom 437 . . . . . . . . . . 11  |-  ( ( w  =  <. x ,  z >.  /\  x  =  z )  <->  ( x  =  z  /\  w  =  <. x ,  z
>. ) )
3 equcom 1665 . . . . . . . . . . . 12  |-  ( x  =  z  <->  z  =  x )
43anbi1i 676 . . . . . . . . . . 11  |-  ( ( x  =  z  /\  w  =  <. x ,  z >. )  <->  ( z  =  x  /\  w  =  <. x ,  z
>. ) )
52, 4bitri 240 . . . . . . . . . 10  |-  ( ( w  =  <. x ,  z >.  /\  x  =  z )  <->  ( z  =  x  /\  w  =  <. x ,  z
>. ) )
65exbii 1572 . . . . . . . . 9  |-  ( E. z ( w  = 
<. x ,  z >.  /\  x  =  z
)  <->  E. z ( z  =  x  /\  w  =  <. x ,  z
>. ) )
7 vex 2804 . . . . . . . . . 10  |-  x  e. 
_V
8 opeq2 3813 . . . . . . . . . . 11  |-  ( z  =  x  ->  <. x ,  z >.  =  <. x ,  x >. )
98eqeq2d 2307 . . . . . . . . . 10  |-  ( z  =  x  ->  (
w  =  <. x ,  z >.  <->  w  =  <. x ,  x >. ) )
107, 9ceqsexv 2836 . . . . . . . . 9  |-  ( E. z ( z  =  x  /\  w  = 
<. x ,  z >.
)  <->  w  =  <. x ,  x >. )
11 equid 1662 . . . . . . . . . 10  |-  x  =  x
1211biantru 491 . . . . . . . . 9  |-  ( w  =  <. x ,  x >.  <-> 
( w  =  <. x ,  x >.  /\  x  =  x ) )
136, 10, 123bitri 262 . . . . . . . 8  |-  ( E. z ( w  = 
<. x ,  z >.  /\  x  =  z
)  <->  ( w  = 
<. x ,  x >.  /\  x  =  x ) )
1413exbii 1572 . . . . . . 7  |-  ( E. x E. z ( w  =  <. x ,  z >.  /\  x  =  z )  <->  E. x
( w  =  <. x ,  x >.  /\  x  =  x ) )
15 nfe1 1718 . . . . . . . 8  |-  F/ x E. x ( w  = 
<. x ,  x >.  /\  x  =  x )
161519.9 1795 . . . . . . 7  |-  ( E. x E. x ( w  =  <. x ,  x >.  /\  x  =  x )  <->  E. x
( w  =  <. x ,  x >.  /\  x  =  x ) )
1714, 16bitr4i 243 . . . . . 6  |-  ( E. x E. z ( w  =  <. x ,  z >.  /\  x  =  z )  <->  E. x E. x ( w  = 
<. x ,  x >.  /\  x  =  x ) )
18 opeq2 3813 . . . . . . . . . . 11  |-  ( x  =  y  ->  <. x ,  x >.  =  <. x ,  y >. )
1918eqeq2d 2307 . . . . . . . . . 10  |-  ( x  =  y  ->  (
w  =  <. x ,  x >.  <->  w  =  <. x ,  y >. )
)
20 equequ2 1669 . . . . . . . . . 10  |-  ( x  =  y  ->  (
x  =  x  <->  x  =  y ) )
2119, 20anbi12d 691 . . . . . . . . 9  |-  ( x  =  y  ->  (
( w  =  <. x ,  x >.  /\  x  =  x )  <->  ( w  =  <. x ,  y
>.  /\  x  =  y ) ) )
2221sps 1751 . . . . . . . 8  |-  ( A. x  x  =  y  ->  ( ( w  = 
<. x ,  x >.  /\  x  =  x )  <-> 
( w  =  <. x ,  y >.  /\  x  =  y ) ) )
2322drex1 1920 . . . . . . 7  |-  ( A. x  x  =  y  ->  ( E. x ( w  =  <. x ,  x >.  /\  x  =  x )  <->  E. y
( w  =  <. x ,  y >.  /\  x  =  y ) ) )
2423drex2 1921 . . . . . 6  |-  ( A. x  x  =  y  ->  ( E. x E. x ( w  = 
<. x ,  x >.  /\  x  =  x )  <->  E. x E. y ( w  =  <. x ,  y >.  /\  x  =  y ) ) )
2517, 24syl5bb 248 . . . . 5  |-  ( A. x  x  =  y  ->  ( E. x E. z ( w  = 
<. x ,  z >.  /\  x  =  z
)  <->  E. x E. y
( w  =  <. x ,  y >.  /\  x  =  y ) ) )
26 nfnae 1909 . . . . . 6  |-  F/ x  -.  A. x  x  =  y
27 nfnae 1909 . . . . . . 7  |-  F/ y  -.  A. x  x  =  y
28 nfcvd 2433 . . . . . . . . 9  |-  ( -. 
A. x  x  =  y  ->  F/_ y w )
29 nfcvf2 2455 . . . . . . . . . 10  |-  ( -. 
A. x  x  =  y  ->  F/_ y x )
30 nfcvd 2433 . . . . . . . . . 10  |-  ( -. 
A. x  x  =  y  ->  F/_ y z )
3129, 30nfopd 3829 . . . . . . . . 9  |-  ( -. 
A. x  x  =  y  ->  F/_ y <.
x ,  z >.
)
3228, 31nfeqd 2446 . . . . . . . 8  |-  ( -. 
A. x  x  =  y  ->  F/ y  w  =  <. x ,  z >. )
3329, 30nfeqd 2446 . . . . . . . 8  |-  ( -. 
A. x  x  =  y  ->  F/ y  x  =  z )
3432, 33nfand 1775 . . . . . . 7  |-  ( -. 
A. x  x  =  y  ->  F/ y
( w  =  <. x ,  z >.  /\  x  =  z ) )
35 opeq2 3813 . . . . . . . . . 10  |-  ( z  =  y  ->  <. x ,  z >.  =  <. x ,  y >. )
3635eqeq2d 2307 . . . . . . . . 9  |-  ( z  =  y  ->  (
w  =  <. x ,  z >.  <->  w  =  <. x ,  y >.
) )
37 equequ2 1669 . . . . . . . . 9  |-  ( z  =  y  ->  (
x  =  z  <->  x  =  y ) )
3836, 37anbi12d 691 . . . . . . . 8  |-  ( z  =  y  ->  (
( w  =  <. x ,  z >.  /\  x  =  z )  <->  ( w  =  <. x ,  y
>.  /\  x  =  y ) ) )
3938a1i 10 . . . . . . 7  |-  ( -. 
A. x  x  =  y  ->  ( z  =  y  ->  ( ( w  =  <. x ,  z >.  /\  x  =  z )  <->  ( w  =  <. x ,  y
>.  /\  x  =  y ) ) ) )
4027, 34, 39cbvexd 1962 . . . . . 6  |-  ( -. 
A. x  x  =  y  ->  ( E. z ( w  = 
<. x ,  z >.  /\  x  =  z
)  <->  E. y ( w  =  <. x ,  y
>.  /\  x  =  y ) ) )
4126, 40exbid 1765 . . . . 5  |-  ( -. 
A. x  x  =  y  ->  ( E. x E. z ( w  =  <. x ,  z
>.  /\  x  =  z )  <->  E. x E. y
( w  =  <. x ,  y >.  /\  x  =  y ) ) )
4225, 41pm2.61i 156 . . . 4  |-  ( E. x E. z ( w  =  <. x ,  z >.  /\  x  =  z )  <->  E. x E. y ( w  = 
<. x ,  y >.  /\  x  =  y
) )
4342abbii 2408 . . 3  |-  { w  |  E. x E. z
( w  =  <. x ,  z >.  /\  x  =  z ) }  =  { w  |  E. x E. y
( w  =  <. x ,  y >.  /\  x  =  y ) }
44 df-opab 4094 . . 3  |-  { <. x ,  z >.  |  x  =  z }  =  { w  |  E. x E. z ( w  =  <. x ,  z
>.  /\  x  =  z ) }
45 df-opab 4094 . . 3  |-  { <. x ,  y >.  |  x  =  y }  =  { w  |  E. x E. y ( w  =  <. x ,  y
>.  /\  x  =  y ) }
4643, 44, 453eqtr4i 2326 . 2  |-  { <. x ,  z >.  |  x  =  z }  =  { <. x ,  y
>.  |  x  =  y }
471, 46eqtri 2316 1  |-  _I  =  { <. x ,  y
>.  |  x  =  y }
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 176    /\ wa 358   A.wal 1530   E.wex 1531    = wceq 1632   {cab 2282   <.cop 3656   {copab 4092    _I cid 4320
This theorem is referenced by:  dfid2  4327  reli  4829  opabresid  5019  ider  6710  cnmptid  17371
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-rab 2565  df-v 2803  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-nul 3469  df-if 3579  df-sn 3659  df-pr 3660  df-op 3662  df-opab 4094  df-id 4325
  Copyright terms: Public domain W3C validator