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

Theorem equveli 2014
Description: A variable elimination law for equality with no distinct variable requirements. (Compare equvini 2013.) (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 1618 . 2  |-  ( A. z ( z  =  x  <->  z  =  y )  <->  ( A. z
( z  =  x  ->  z  =  y )  /\  A. z
( z  =  y  ->  z  =  x ) ) )
2 equequ1 1691 . . . . . . . 8  |-  ( z  =  y  ->  (
z  =  y  <->  y  =  y ) )
3 equequ1 1691 . . . . . . . 8  |-  ( z  =  y  ->  (
z  =  x  <->  y  =  x ) )
42, 3imbi12d 312 . . . . . . 7  |-  ( z  =  y  ->  (
( z  =  y  ->  z  =  x )  <->  ( y  =  y  ->  y  =  x ) ) )
54sps 1762 . . . . . 6  |-  ( A. z  z  =  y  ->  ( ( z  =  y  ->  z  =  x )  <->  ( y  =  y  ->  y  =  x ) ) )
65dral1 1991 . . . . 5  |-  ( A. z  z  =  y  ->  ( A. z ( z  =  y  -> 
z  =  x )  <->  A. y ( y  =  y  ->  y  =  x ) ) )
7 equid 1683 . . . . . . 7  |-  y  =  y
8 sp 1755 . . . . . . 7  |-  ( A. y ( y  =  y  ->  y  =  x )  ->  (
y  =  y  -> 
y  =  x ) )
97, 8mpi 17 . . . . . 6  |-  ( A. y ( y  =  y  ->  y  =  x )  ->  y  =  x )
10 equcomi 1686 . . . . . 6  |-  ( y  =  x  ->  x  =  y )
119, 10syl 16 . . . . 5  |-  ( A. y ( y  =  y  ->  y  =  x )  ->  x  =  y )
126, 11syl6bi 220 . . . 4  |-  ( A. z  z  =  y  ->  ( A. z ( z  =  y  -> 
z  =  x )  ->  x  =  y ) )
1312adantld 454 . . 3  |-  ( A. z  z  =  y  ->  ( ( A. z
( z  =  x  ->  z  =  y )  /\  A. z
( z  =  y  ->  z  =  x ) )  ->  x  =  y ) )
14 equequ1 1691 . . . . . . . . . 10  |-  ( z  =  x  ->  (
z  =  x  <->  x  =  x ) )
15 equequ1 1691 . . . . . . . . . 10  |-  ( z  =  x  ->  (
z  =  y  <->  x  =  y ) )
1614, 15imbi12d 312 . . . . . . . . 9  |-  ( z  =  x  ->  (
( z  =  x  ->  z  =  y )  <->  ( x  =  x  ->  x  =  y ) ) )
1716sps 1762 . . . . . . . 8  |-  ( A. z  z  =  x  ->  ( ( z  =  x  ->  z  =  y )  <->  ( x  =  x  ->  x  =  y ) ) )
1817dral2 1992 . . . . . . 7  |-  ( A. z  z  =  x  ->  ( A. z ( z  =  x  -> 
z  =  y )  <->  A. z ( x  =  x  ->  x  =  y ) ) )
19 equid 1683 . . . . . . . . . 10  |-  x  =  x
2019a1bi 328 . . . . . . . . 9  |-  ( x  =  y  <->  ( x  =  x  ->  x  =  y ) )
2120biimpri 198 . . . . . . . 8  |-  ( ( x  =  x  ->  x  =  y )  ->  x  =  y )
2221sps 1762 . . . . . . 7  |-  ( A. z ( x  =  x  ->  x  =  y )  ->  x  =  y )
2318, 22syl6bi 220 . . . . . 6  |-  ( A. z  z  =  x  ->  ( A. z ( z  =  x  -> 
z  =  y )  ->  x  =  y ) )
2423a1d 23 . . . . 5  |-  ( A. z  z  =  x  ->  ( -.  A. z 
z  =  y  -> 
( A. z ( z  =  x  -> 
z  =  y )  ->  x  =  y ) ) )
25 nfeqf 1989 . . . . . . 7  |-  ( ( -.  A. z  z  =  x  /\  -.  A. z  z  =  y )  ->  F/ z  x  =  y )
26 equtr 1689 . . . . . . . . . 10  |-  ( z  =  x  ->  (
x  =  x  -> 
z  =  x ) )
27 ax-8 1682 . . . . . . . . . 10  |-  ( z  =  x  ->  (
z  =  y  ->  x  =  y )
)
2826, 27imim12d 70 . . . . . . . . 9  |-  ( z  =  x  ->  (
( z  =  x  ->  z  =  y )  ->  ( x  =  x  ->  x  =  y ) ) )
2919, 28mpii 41 . . . . . . . 8  |-  ( z  =  x  ->  (
( z  =  x  ->  z  =  y )  ->  x  =  y ) )
3029ax-gen 1552 . . . . . . 7  |-  A. z
( z  =  x  ->  ( ( z  =  x  ->  z  =  y )  ->  x  =  y )
)
31 spimt 2000 . . . . . . 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 644 . . . . . 6  |-  ( ( -.  A. z  z  =  x  /\  -.  A. z  z  =  y )  ->  ( A. z ( z  =  x  ->  z  =  y )  ->  x  =  y ) )
3332ex 424 . . . . 5  |-  ( -. 
A. z  z  =  x  ->  ( -.  A. z  z  =  y  ->  ( A. z
( z  =  x  ->  z  =  y )  ->  x  =  y ) ) )
3424, 33pm2.61i 158 . . . 4  |-  ( -. 
A. z  z  =  y  ->  ( A. z ( z  =  x  ->  z  =  y )  ->  x  =  y ) )
3534adantrd 455 . . 3  |-  ( -. 
A. z  z  =  y  ->  ( ( A. z ( z  =  x  ->  z  =  y )  /\  A. z ( z  =  y  ->  z  =  x ) )  ->  x  =  y )
)
3613, 35pm2.61i 158 . 2  |-  ( ( A. z ( z  =  x  ->  z  =  y )  /\  A. z ( z  =  y  ->  z  =  x ) )  ->  x  =  y )
371, 36sylbi 188 1  |-  ( A. z ( z  =  x  <->  z  =  y )  ->  x  =  y )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 177    /\ wa 359   A.wal 1546   F/wnf 1550
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1661  ax-8 1682  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939
This theorem depends on definitions:  df-bi 178  df-an 361  df-tru 1325  df-ex 1548  df-nf 1551
  Copyright terms: Public domain W3C validator