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

Theorem ralcom2 3104
Description: Commutation of restricted universal quantifiers. Note that  x and  y need not be disjoint (this makes the proof longer). If  x and  y are disjoint, then one may use ralcom 3098. (Contributed by NM, 24-Nov-1994.) (Proof shortened by Mario Carneiro, 17-Oct-2016.)
Assertion
Ref Expression
ralcom2  |-  ( A. x  e.  A  A. y  e.  A  ph  ->  A. y  e.  A  A. x  e.  A  ph )
Distinct variable groups:    y, A    x, A
Allowed substitution hints:    ph( x, y)

Proof of Theorem ralcom2
StepHypRef Expression
1 eleq1 2689 . . . . . . 7  |-  ( x  =  y  ->  (
x  e.  A  <->  y  e.  A ) )
21sps 2055 . . . . . 6  |-  ( A. x  x  =  y  ->  ( x  e.  A  <->  y  e.  A ) )
32imbi1d 331 . . . . . . . . 9  |-  ( A. x  x  =  y  ->  ( ( x  e.  A  ->  ph )  <->  ( y  e.  A  ->  ph )
) )
43dral1 2325 . . . . . . . 8  |-  ( A. x  x  =  y  ->  ( A. x ( x  e.  A  ->  ph )  <->  A. y ( y  e.  A  ->  ph )
) )
54bicomd 213 . . . . . . 7  |-  ( A. x  x  =  y  ->  ( A. y ( y  e.  A  ->  ph )  <->  A. x ( x  e.  A  ->  ph )
) )
6 df-ral 2917 . . . . . . 7  |-  ( A. y  e.  A  ph  <->  A. y
( y  e.  A  ->  ph ) )
7 df-ral 2917 . . . . . . 7  |-  ( A. x  e.  A  ph  <->  A. x
( x  e.  A  ->  ph ) )
85, 6, 73bitr4g 303 . . . . . 6  |-  ( A. x  x  =  y  ->  ( A. y  e.  A  ph  <->  A. x  e.  A  ph ) )
92, 8imbi12d 334 . . . . 5  |-  ( A. x  x  =  y  ->  ( ( x  e.  A  ->  A. y  e.  A  ph )  <->  ( y  e.  A  ->  A. x  e.  A  ph ) ) )
109dral1 2325 . . . 4  |-  ( A. x  x  =  y  ->  ( A. x ( x  e.  A  ->  A. y  e.  A  ph )  <->  A. y ( y  e.  A  ->  A. x  e.  A  ph ) ) )
11 df-ral 2917 . . . 4  |-  ( A. x  e.  A  A. y  e.  A  ph  <->  A. x
( x  e.  A  ->  A. y  e.  A  ph ) )
12 df-ral 2917 . . . 4  |-  ( A. y  e.  A  A. x  e.  A  ph  <->  A. y
( y  e.  A  ->  A. x  e.  A  ph ) )
1310, 11, 123bitr4g 303 . . 3  |-  ( A. x  x  =  y  ->  ( A. x  e.  A  A. y  e.  A  ph  <->  A. y  e.  A  A. x  e.  A  ph ) )
1413biimpd 219 . 2  |-  ( A. x  x  =  y  ->  ( A. x  e.  A  A. y  e.  A  ph  ->  A. y  e.  A  A. x  e.  A  ph ) )
15 nfnae 2318 . . . . 5  |-  F/ y  -.  A. x  x  =  y
16 nfra2 2946 . . . . 5  |-  F/ y A. x  e.  A  A. y  e.  A  ph
1715, 16nfan 1828 . . . 4  |-  F/ y ( -.  A. x  x  =  y  /\  A. x  e.  A  A. y  e.  A  ph )
18 nfnae 2318 . . . . . . . 8  |-  F/ x  -.  A. x  x  =  y
19 nfra1 2941 . . . . . . . 8  |-  F/ x A. x  e.  A  A. y  e.  A  ph
2018, 19nfan 1828 . . . . . . 7  |-  F/ x
( -.  A. x  x  =  y  /\  A. x  e.  A  A. y  e.  A  ph )
21 nfcvf 2788 . . . . . . . . 9  |-  ( -. 
A. x  x  =  y  ->  F/_ x y )
2221adantr 481 . . . . . . . 8  |-  ( ( -.  A. x  x  =  y  /\  A. x  e.  A  A. y  e.  A  ph )  -> 
F/_ x y )
23 nfcvd 2765 . . . . . . . 8  |-  ( ( -.  A. x  x  =  y  /\  A. x  e.  A  A. y  e.  A  ph )  -> 
F/_ x A )
2422, 23nfeld 2773 . . . . . . 7  |-  ( ( -.  A. x  x  =  y  /\  A. x  e.  A  A. y  e.  A  ph )  ->  F/ x  y  e.  A )
2520, 24nfan1 2068 . . . . . 6  |-  F/ x
( ( -.  A. x  x  =  y  /\  A. x  e.  A  A. y  e.  A  ph )  /\  y  e.  A )
26 rsp2 2936 . . . . . . . . 9  |-  ( A. x  e.  A  A. y  e.  A  ph  ->  ( ( x  e.  A  /\  y  e.  A
)  ->  ph ) )
2726ancomsd 470 . . . . . . . 8  |-  ( A. x  e.  A  A. y  e.  A  ph  ->  ( ( y  e.  A  /\  x  e.  A
)  ->  ph ) )
2827expdimp 453 . . . . . . 7  |-  ( ( A. x  e.  A  A. y  e.  A  ph 
/\  y  e.  A
)  ->  ( x  e.  A  ->  ph )
)
2928adantll 750 . . . . . 6  |-  ( ( ( -.  A. x  x  =  y  /\  A. x  e.  A  A. y  e.  A  ph )  /\  y  e.  A
)  ->  ( x  e.  A  ->  ph )
)
3025, 29ralrimi 2957 . . . . 5  |-  ( ( ( -.  A. x  x  =  y  /\  A. x  e.  A  A. y  e.  A  ph )  /\  y  e.  A
)  ->  A. x  e.  A  ph )
3130ex 450 . . . 4  |-  ( ( -.  A. x  x  =  y  /\  A. x  e.  A  A. y  e.  A  ph )  ->  ( y  e.  A  ->  A. x  e.  A  ph ) )
3217, 31ralrimi 2957 . . 3  |-  ( ( -.  A. x  x  =  y  /\  A. x  e.  A  A. y  e.  A  ph )  ->  A. y  e.  A  A. x  e.  A  ph )
3332ex 450 . 2  |-  ( -. 
A. x  x  =  y  ->  ( A. x  e.  A  A. y  e.  A  ph  ->  A. y  e.  A  A. x  e.  A  ph )
)
3414, 33pm2.61i 176 1  |-  ( A. x  e.  A  A. y  e.  A  ph  ->  A. y  e.  A  A. x  e.  A  ph )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 196    /\ wa 384   A.wal 1481    e. wcel 1990   F/_wnfc 2751   A.wral 2912
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ral 2917
This theorem is referenced by:  tz7.48lem  7536  imo72b2  38475  tratrb  38746  tratrbVD  39097
  Copyright terms: Public domain W3C validator