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

Theorem equveli 1928
Description: A variable elimination law for equality with no distinct variable requirements. (Compare equvini 1927.) (Contributed by NM, 1-Mar-2013.) (Proof shortened by Mario Carneiro, 17-Oct-2016.)
Assertion
Ref Expression
equveli  |-  ( A. z ( z  =  x  <->  z  =  y )  ->  x  =  y )

Proof of Theorem equveli
StepHypRef Expression
1 albiim 1598 . 2  |-  ( A. z ( z  =  x  <->  z  =  y )  <->  ( A. z
( z  =  x  ->  z  =  y )  /\  A. z
( z  =  y  ->  z  =  x ) ) )
2 equequ1 1648 . . . . . . . 8  |-  ( z  =  y  ->  (
z  =  y  <->  y  =  y ) )
3 equequ1 1648 . . . . . . . 8  |-  ( z  =  y  ->  (
z  =  x  <->  y  =  x ) )
42, 3imbi12d 311 . . . . . . 7  |-  ( z  =  y  ->  (
( z  =  y  ->  z  =  x )  <->  ( y  =  y  ->  y  =  x ) ) )
54sps 1739 . . . . . 6  |-  ( A. z  z  =  y  ->  ( ( z  =  y  ->  z  =  x )  <->  ( y  =  y  ->  y  =  x ) ) )
65dral1 1905 . . . . 5  |-  ( A. z  z  =  y  ->  ( A. z ( z  =  y  -> 
z  =  x )  <->  A. y ( y  =  y  ->  y  =  x ) ) )
7 equid 1644 . . . . . . 7  |-  y  =  y
8 sp 1716 . . . . . . 7  |-  ( A. y ( y  =  y  ->  y  =  x )  ->  (
y  =  y  -> 
y  =  x ) )
97, 8mpi 16 . . . . . 6  |-  ( A. y ( y  =  y  ->  y  =  x )  ->  y  =  x )
10 equcomi 1646 . . . . . 6  |-  ( y  =  x  ->  x  =  y )
119, 10syl 15 . . . . 5  |-  ( A. y ( y  =  y  ->  y  =  x )  ->  x  =  y )
126, 11syl6bi 219 . . . 4  |-  ( A. z  z  =  y  ->  ( A. z ( z  =  y  -> 
z  =  x )  ->  x  =  y ) )
1312adantld 453 . . 3  |-  ( A. z  z  =  y  ->  ( ( A. z
( z  =  x  ->  z  =  y )  /\  A. z
( z  =  y  ->  z  =  x ) )  ->  x  =  y ) )
14 equequ1 1648 . . . . . . . . . 10  |-  ( z  =  x  ->  (
z  =  x  <->  x  =  x ) )
15 equequ1 1648 . . . . . . . . . 10  |-  ( z  =  x  ->  (
z  =  y  <->  x  =  y ) )
1614, 15imbi12d 311 . . . . . . . . 9  |-  ( z  =  x  ->  (
( z  =  x  ->  z  =  y )  <->  ( x  =  x  ->  x  =  y ) ) )
1716sps 1739 . . . . . . . 8  |-  ( A. z  z  =  x  ->  ( ( z  =  x  ->  z  =  y )  <->  ( x  =  x  ->  x  =  y ) ) )
1817dral2 1906 . . . . . . 7  |-  ( A. z  z  =  x  ->  ( A. z ( z  =  x  -> 
z  =  y )  <->  A. z ( x  =  x  ->  x  =  y ) ) )
19 equid 1644 . . . . . . . . . 10  |-  x  =  x
2019a1bi 327 . . . . . . . . 9  |-  ( x  =  y  <->  ( x  =  x  ->  x  =  y ) )
2120biimpri 197 . . . . . . . 8  |-  ( ( x  =  x  ->  x  =  y )  ->  x  =  y )
2221sps 1739 . . . . . . 7  |-  ( A. z ( x  =  x  ->  x  =  y )  ->  x  =  y )
2318, 22syl6bi 219 . . . . . 6  |-  ( A. z  z  =  x  ->  ( A. z ( z  =  x  -> 
z  =  y )  ->  x  =  y ) )
2423a1d 22 . . . . 5  |-  ( A. z  z  =  x  ->  ( -.  A. z 
z  =  y  -> 
( A. z ( z  =  x  -> 
z  =  y )  ->  x  =  y ) ) )
25 nfeqf 1898 . . . . . . 7  |-  ( ( -.  A. z  z  =  x  /\  -.  A. z  z  =  y )  ->  F/ z  x  =  y )
26 equtr 1652 . . . . . . . . . 10  |-  ( z  =  x  ->  (
x  =  x  -> 
z  =  x ) )
27 ax-8 1643 . . . . . . . . . 10  |-  ( z  =  x  ->  (
z  =  y  ->  x  =  y )
)
2826, 27imim12d 68 . . . . . . . . 9  |-  ( z  =  x  ->  (
( z  =  x  ->  z  =  y )  ->  ( x  =  x  ->  x  =  y ) ) )
2919, 28mpii 39 . . . . . . . 8  |-  ( z  =  x  ->  (
( z  =  x  ->  z  =  y )  ->  x  =  y ) )
3029ax-gen 1533 . . . . . . 7  |-  A. z
( z  =  x  ->  ( ( z  =  x  ->  z  =  y )  ->  x  =  y )
)
31 spimt 1914 . . . . . . 7  |-  ( ( F/ z  x  =  y  /\  A. z
( z  =  x  ->  ( ( z  =  x  ->  z  =  y )  ->  x  =  y )
) )  ->  ( A. z ( z  =  x  ->  z  =  y )  ->  x  =  y ) )
3225, 30, 31sylancl 643 . . . . . 6  |-  ( ( -.  A. z  z  =  x  /\  -.  A. z  z  =  y )  ->  ( A. z ( z  =  x  ->  z  =  y )  ->  x  =  y ) )
3332ex 423 . . . . 5  |-  ( -. 
A. z  z  =  x  ->  ( -.  A. z  z  =  y  ->  ( A. z
( z  =  x  ->  z  =  y )  ->  x  =  y ) ) )
3424, 33pm2.61i 156 . . . 4  |-  ( -. 
A. z  z  =  y  ->  ( A. z ( z  =  x  ->  z  =  y )  ->  x  =  y ) )
3534adantrd 454 . . 3  |-  ( -. 
A. z  z  =  y  ->  ( ( A. z ( z  =  x  ->  z  =  y )  /\  A. z ( z  =  y  ->  z  =  x ) )  ->  x  =  y )
)
3613, 35pm2.61i 156 . 2  |-  ( ( A. z ( z  =  x  ->  z  =  y )  /\  A. z ( z  =  y  ->  z  =  x ) )  ->  x  =  y )
371, 36sylbi 187 1  |-  ( A. z ( z  =  x  <->  z  =  y )  ->  x  =  y )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 176    /\ wa 358   A.wal 1527   F/wnf 1531
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866
This theorem depends on definitions:  df-bi 177  df-an 360  df-tru 1310  df-ex 1529  df-nf 1532
  Copyright terms: Public domain W3C validator