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

Theorem th3qlem2 6974
Description: Lemma for Exercise 44 version of Theorem 3Q of [Enderton] p. 60, extended to operations on ordered pairs. The fourth hypothesis is the compatibility assumption. (Contributed by NM, 4-Aug-1995.) (Revised by Mario Carneiro, 12-Aug-2015.)
Hypotheses
Ref Expression
th3q.1  |-  .~  e.  _V
th3q.2  |-  .~  Er  ( S  X.  S
)
th3q.4  |-  ( ( ( ( w  e.  S  /\  v  e.  S )  /\  (
u  e.  S  /\  t  e.  S )
)  /\  ( (
s  e.  S  /\  f  e.  S )  /\  ( g  e.  S  /\  h  e.  S
) ) )  -> 
( ( <. w ,  v >.  .~  <. u ,  t >.  /\  <. s ,  f >.  .~  <. g ,  h >. )  ->  ( <. w ,  v
>.  .+  <. s ,  f
>. )  .~  ( <. u ,  t >.  .+  <. g ,  h >. ) ) )
Assertion
Ref Expression
th3qlem2  |-  ( ( A  e.  ( ( S  X.  S ) /.  .~  )  /\  B  e.  ( ( S  X.  S ) /.  .~  ) )  ->  E* z E. w E. v E. u E. t ( ( A  =  [ <. w ,  v >. ]  .~  /\  B  =  [ <. u ,  t
>. ]  .~  )  /\  z  =  [ ( <. w ,  v >.  .+  <. u ,  t
>. ) ]  .~  )
)
Distinct variable groups:    z, w, v, u, t, s, f, g, h,  .~    z, S, w, v, u, t, s, f, g, h   
z, A, w, v, u, t, s, f   
z, B, w, v, u, t, s, f   
z,  .+ , w, v, u, t, s, f, g, h
Allowed substitution hints:    A( g, h)    B( g, h)

Proof of Theorem th3qlem2
Dummy variables  x  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 th3q.2 . . 3  |-  .~  Er  ( S  X.  S
)
2 eqid 2408 . . . . 5  |-  ( S  X.  S )  =  ( S  X.  S
)
3 breq1 4179 . . . . . . . 8  |-  ( <.
w ,  v >.  =  s  ->  ( <.
w ,  v >.  .~  <. u ,  t
>. 
<->  s  .~  <. u ,  t >. )
)
43anbi1d 686 . . . . . . 7  |-  ( <.
w ,  v >.  =  s  ->  ( (
<. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  y
)  <->  ( s  .~  <.
u ,  t >.  /\  x  .~  y
) ) )
5 oveq1 6051 . . . . . . . 8  |-  ( <.
w ,  v >.  =  s  ->  ( <.
w ,  v >.  .+  x )  =  ( s  .+  x ) )
65breq1d 4186 . . . . . . 7  |-  ( <.
w ,  v >.  =  s  ->  ( (
<. w ,  v >.  .+  x )  .~  ( <. u ,  t >.  .+  y )  <->  ( s  .+  x )  .~  ( <. u ,  t >.  .+  y ) ) )
74, 6imbi12d 312 . . . . . 6  |-  ( <.
w ,  v >.  =  s  ->  ( ( ( <. w ,  v
>.  .~  <. u ,  t
>.  /\  x  .~  y
)  ->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  y
) )  <->  ( (
s  .~  <. u ,  t >.  /\  x  .~  y )  ->  (
s  .+  x )  .~  ( <. u ,  t
>.  .+  y ) ) ) )
87imbi2d 308 . . . . 5  |-  ( <.
w ,  v >.  =  s  ->  ( ( ( x  e.  ( S  X.  S )  /\  y  e.  ( S  X.  S ) )  ->  ( ( <. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  y
)  ->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  y
) ) )  <->  ( (
x  e.  ( S  X.  S )  /\  y  e.  ( S  X.  S ) )  -> 
( ( s  .~  <.
u ,  t >.  /\  x  .~  y
)  ->  ( s  .+  x )  .~  ( <. u ,  t >.  .+  y ) ) ) ) )
9 breq2 4180 . . . . . . . 8  |-  ( <.
u ,  t >.  =  f  ->  ( s  .~  <. u ,  t
>. 
<->  s  .~  f ) )
109anbi1d 686 . . . . . . 7  |-  ( <.
u ,  t >.  =  f  ->  ( ( s  .~  <. u ,  t >.  /\  x  .~  y )  <->  ( s  .~  f  /\  x  .~  y ) ) )
11 oveq1 6051 . . . . . . . 8  |-  ( <.
u ,  t >.  =  f  ->  ( <.
u ,  t >.  .+  y )  =  ( f  .+  y ) )
1211breq2d 4188 . . . . . . 7  |-  ( <.
u ,  t >.  =  f  ->  ( ( s  .+  x )  .~  ( <. u ,  t >.  .+  y
)  <->  ( s  .+  x )  .~  (
f  .+  y )
) )
1310, 12imbi12d 312 . . . . . 6  |-  ( <.
u ,  t >.  =  f  ->  ( ( ( s  .~  <. u ,  t >.  /\  x  .~  y )  ->  (
s  .+  x )  .~  ( <. u ,  t
>.  .+  y ) )  <-> 
( ( s  .~  f  /\  x  .~  y
)  ->  ( s  .+  x )  .~  (
f  .+  y )
) ) )
1413imbi2d 308 . . . . 5  |-  ( <.
u ,  t >.  =  f  ->  ( ( ( x  e.  ( S  X.  S )  /\  y  e.  ( S  X.  S ) )  ->  ( (
s  .~  <. u ,  t >.  /\  x  .~  y )  ->  (
s  .+  x )  .~  ( <. u ,  t
>.  .+  y ) ) )  <->  ( ( x  e.  ( S  X.  S )  /\  y  e.  ( S  X.  S
) )  ->  (
( s  .~  f  /\  x  .~  y
)  ->  ( s  .+  x )  .~  (
f  .+  y )
) ) ) )
15 breq1 4179 . . . . . . . . . 10  |-  ( <.
s ,  f >.  =  x  ->  ( <.
s ,  f >.  .~  <. g ,  h >.  <-> 
x  .~  <. g ,  h >. ) )
1615anbi2d 685 . . . . . . . . 9  |-  ( <.
s ,  f >.  =  x  ->  ( (
<. w ,  v >.  .~  <. u ,  t
>.  /\  <. s ,  f
>.  .~  <. g ,  h >. )  <->  ( <. w ,  v >.  .~  <. u ,  t >.  /\  x  .~  <. g ,  h >. ) ) )
17 oveq2 6052 . . . . . . . . . 10  |-  ( <.
s ,  f >.  =  x  ->  ( <.
w ,  v >.  .+  <. s ,  f
>. )  =  ( <. w ,  v >.  .+  x ) )
1817breq1d 4186 . . . . . . . . 9  |-  ( <.
s ,  f >.  =  x  ->  ( (
<. w ,  v >.  .+  <. s ,  f
>. )  .~  ( <. u ,  t >.  .+  <. g ,  h >. )  <->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  <. g ,  h >. )
) )
1916, 18imbi12d 312 . . . . . . . 8  |-  ( <.
s ,  f >.  =  x  ->  ( ( ( <. w ,  v
>.  .~  <. u ,  t
>.  /\  <. s ,  f
>.  .~  <. g ,  h >. )  ->  ( <. w ,  v >.  .+  <. s ,  f >. )  .~  ( <. u ,  t
>.  .+  <. g ,  h >. ) )  <->  ( ( <. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  <. g ,  h >. )  ->  ( <. w ,  v
>.  .+  x )  .~  ( <. u ,  t
>.  .+  <. g ,  h >. ) ) ) )
2019imbi2d 308 . . . . . . 7  |-  ( <.
s ,  f >.  =  x  ->  ( ( ( ( w  e.  S  /\  v  e.  S )  /\  (
u  e.  S  /\  t  e.  S )
)  ->  ( ( <. w ,  v >.  .~  <. u ,  t
>.  /\  <. s ,  f
>.  .~  <. g ,  h >. )  ->  ( <. w ,  v >.  .+  <. s ,  f >. )  .~  ( <. u ,  t
>.  .+  <. g ,  h >. ) ) )  <->  ( (
( w  e.  S  /\  v  e.  S
)  /\  ( u  e.  S  /\  t  e.  S ) )  -> 
( ( <. w ,  v >.  .~  <. u ,  t >.  /\  x  .~  <. g ,  h >. )  ->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  <. g ,  h >. )
) ) ) )
21 breq2 4180 . . . . . . . . . 10  |-  ( <.
g ,  h >.  =  y  ->  ( x  .~  <. g ,  h >.  <-> 
x  .~  y )
)
2221anbi2d 685 . . . . . . . . 9  |-  ( <.
g ,  h >.  =  y  ->  ( ( <. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  <. g ,  h >. )  <->  (
<. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  y
) ) )
23 oveq2 6052 . . . . . . . . . 10  |-  ( <.
g ,  h >.  =  y  ->  ( <. u ,  t >.  .+  <. g ,  h >. )  =  ( <. u ,  t >.  .+  y
) )
2423breq2d 4188 . . . . . . . . 9  |-  ( <.
g ,  h >.  =  y  ->  ( ( <. w ,  v >.  .+  x )  .~  ( <. u ,  t >.  .+  <. g ,  h >. )  <->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  y
) ) )
2522, 24imbi12d 312 . . . . . . . 8  |-  ( <.
g ,  h >.  =  y  ->  ( (
( <. w ,  v
>.  .~  <. u ,  t
>.  /\  x  .~  <. g ,  h >. )  ->  ( <. w ,  v
>.  .+  x )  .~  ( <. u ,  t
>.  .+  <. g ,  h >. ) )  <->  ( ( <. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  y
)  ->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  y
) ) ) )
2625imbi2d 308 . . . . . . 7  |-  ( <.
g ,  h >.  =  y  ->  ( (
( ( w  e.  S  /\  v  e.  S )  /\  (
u  e.  S  /\  t  e.  S )
)  ->  ( ( <. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  <. g ,  h >. )  ->  ( <. w ,  v
>.  .+  x )  .~  ( <. u ,  t
>.  .+  <. g ,  h >. ) ) )  <->  ( (
( w  e.  S  /\  v  e.  S
)  /\  ( u  e.  S  /\  t  e.  S ) )  -> 
( ( <. w ,  v >.  .~  <. u ,  t >.  /\  x  .~  y )  ->  ( <. w ,  v >.  .+  x )  .~  ( <. u ,  t >.  .+  y ) ) ) ) )
27 th3q.4 . . . . . . . 8  |-  ( ( ( ( w  e.  S  /\  v  e.  S )  /\  (
u  e.  S  /\  t  e.  S )
)  /\  ( (
s  e.  S  /\  f  e.  S )  /\  ( g  e.  S  /\  h  e.  S
) ) )  -> 
( ( <. w ,  v >.  .~  <. u ,  t >.  /\  <. s ,  f >.  .~  <. g ,  h >. )  ->  ( <. w ,  v
>.  .+  <. s ,  f
>. )  .~  ( <. u ,  t >.  .+  <. g ,  h >. ) ) )
2827expcom 425 . . . . . . 7  |-  ( ( ( s  e.  S  /\  f  e.  S
)  /\  ( g  e.  S  /\  h  e.  S ) )  -> 
( ( ( w  e.  S  /\  v  e.  S )  /\  (
u  e.  S  /\  t  e.  S )
)  ->  ( ( <. w ,  v >.  .~  <. u ,  t
>.  /\  <. s ,  f
>.  .~  <. g ,  h >. )  ->  ( <. w ,  v >.  .+  <. s ,  f >. )  .~  ( <. u ,  t
>.  .+  <. g ,  h >. ) ) ) )
292, 20, 26, 282optocl 4916 . . . . . 6  |-  ( ( x  e.  ( S  X.  S )  /\  y  e.  ( S  X.  S ) )  -> 
( ( ( w  e.  S  /\  v  e.  S )  /\  (
u  e.  S  /\  t  e.  S )
)  ->  ( ( <. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  y
)  ->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  y
) ) ) )
3029com12 29 . . . . 5  |-  ( ( ( w  e.  S  /\  v  e.  S
)  /\  ( u  e.  S  /\  t  e.  S ) )  -> 
( ( x  e.  ( S  X.  S
)  /\  y  e.  ( S  X.  S
) )  ->  (
( <. w ,  v
>.  .~  <. u ,  t
>.  /\  x  .~  y
)  ->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  y
) ) ) )
312, 8, 14, 302optocl 4916 . . . 4  |-  ( ( s  e.  ( S  X.  S )  /\  f  e.  ( S  X.  S ) )  -> 
( ( x  e.  ( S  X.  S
)  /\  y  e.  ( S  X.  S
) )  ->  (
( s  .~  f  /\  x  .~  y
)  ->  ( s  .+  x )  .~  (
f  .+  y )
) ) )
3231imp 419 . . 3  |-  ( ( ( s  e.  ( S  X.  S )  /\  f  e.  ( S  X.  S ) )  /\  ( x  e.  ( S  X.  S )  /\  y  e.  ( S  X.  S
) ) )  -> 
( ( s  .~  f  /\  x  .~  y
)  ->  ( s  .+  x )  .~  (
f  .+  y )
) )
331, 32th3qlem1 6973 . 2  |-  ( ( A  e.  ( ( S  X.  S ) /.  .~  )  /\  B  e.  ( ( S  X.  S ) /.  .~  ) )  ->  E* z E. s E. x
( ( A  =  [ s ]  .~  /\  B  =  [ x ]  .~  )  /\  z  =  [ ( s  .+  x ) ]  .~  ) )
34 opex 4391 . . . . . 6  |-  <. w ,  v >.  e.  _V
35 opex 4391 . . . . . 6  |-  <. u ,  t >.  e.  _V
36 eceq1 6904 . . . . . . . . 9  |-  ( s  =  <. w ,  v
>.  ->  [ s ]  .~  =  [ <. w ,  v >. ]  .~  )
3736eqeq2d 2419 . . . . . . . 8  |-  ( s  =  <. w ,  v
>.  ->  ( A  =  [ s ]  .~  <->  A  =  [ <. w ,  v >. ]  .~  ) )
38 eceq1 6904 . . . . . . . . 9  |-  ( x  =  <. u ,  t
>.  ->  [ x ]  .~  =  [ <. u ,  t >. ]  .~  )
3938eqeq2d 2419 . . . . . . . 8  |-  ( x  =  <. u ,  t
>.  ->  ( B  =  [ x ]  .~  <->  B  =  [ <. u ,  t >. ]  .~  ) )
4037, 39bi2anan9 844 . . . . . . 7  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  ( ( A  =  [ s ]  .~  /\  B  =  [ x ]  .~  ) 
<->  ( A  =  [ <. w ,  v >. ]  .~  /\  B  =  [ <. u ,  t
>. ]  .~  ) ) )
41 oveq12 6053 . . . . . . . . 9  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  ( s 
.+  x )  =  ( <. w ,  v
>.  .+  <. u ,  t
>. ) )
42 eceq1 6904 . . . . . . . . 9  |-  ( ( s  .+  x )  =  ( <. w ,  v >.  .+  <. u ,  t >. )  ->  [ ( s  .+  x ) ]  .~  =  [ ( <. w ,  v >.  .+  <. u ,  t >. ) ]  .~  )
4341, 42syl 16 . . . . . . . 8  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  [ ( s  .+  x ) ]  .~  =  [
( <. w ,  v
>.  .+  <. u ,  t
>. ) ]  .~  )
4443eqeq2d 2419 . . . . . . 7  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  ( z  =  [ ( s 
.+  x ) ]  .~  <->  z  =  [
( <. w ,  v
>.  .+  <. u ,  t
>. ) ]  .~  )
)
4540, 44anbi12d 692 . . . . . 6  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  ( ( ( A  =  [
s ]  .~  /\  B  =  [ x ]  .~  )  /\  z  =  [ ( s  .+  x ) ]  .~  ) 
<->  ( ( A  =  [ <. w ,  v
>. ]  .~  /\  B  =  [ <. u ,  t
>. ]  .~  )  /\  z  =  [ ( <. w ,  v >.  .+  <. u ,  t
>. ) ]  .~  )
) )
4634, 35, 45spc2ev 3008 . . . . 5  |-  ( ( ( A  =  [ <. w ,  v >. ]  .~  /\  B  =  [ <. u ,  t
>. ]  .~  )  /\  z  =  [ ( <. w ,  v >.  .+  <. u ,  t
>. ) ]  .~  )  ->  E. s E. x
( ( A  =  [ s ]  .~  /\  B  =  [ x ]  .~  )  /\  z  =  [ ( s  .+  x ) ]  .~  ) )
4746exlimivv 1642 . . . 4  |-  ( E. u E. t ( ( A  =  [ <. w ,  v >. ]  .~  /\  B  =  [ <. u ,  t
>. ]  .~  )  /\  z  =  [ ( <. w ,  v >.  .+  <. u ,  t
>. ) ]  .~  )  ->  E. s E. x
( ( A  =  [ s ]  .~  /\  B  =  [ x ]  .~  )  /\  z  =  [ ( s  .+  x ) ]  .~  ) )
4847exlimivv 1642 . . 3  |-  ( E. w E. v E. u E. t ( ( A  =  [ <. w ,  v >. ]  .~  /\  B  =  [ <. u ,  t
>. ]  .~  )  /\  z  =  [ ( <. w ,  v >.  .+  <. u ,  t
>. ) ]  .~  )  ->  E. s E. x
( ( A  =  [ s ]  .~  /\  B  =  [ x ]  .~  )  /\  z  =  [ ( s  .+  x ) ]  .~  ) )
4948moimi 2305 . 2  |-  ( E* z E. s E. x ( ( A  =  [ s ]  .~  /\  B  =  [ x ]  .~  )  /\  z  =  [
( s  .+  x
) ]  .~  )  ->  E* z E. w E. v E. u E. t ( ( A  =  [ <. w ,  v >. ]  .~  /\  B  =  [ <. u ,  t >. ]  .~  )  /\  z  =  [
( <. w ,  v
>.  .+  <. u ,  t
>. ) ]  .~  )
)
5033, 49syl 16 1  |-  ( ( A  e.  ( ( S  X.  S ) /.  .~  )  /\  B  e.  ( ( S  X.  S ) /.  .~  ) )  ->  E* z E. w E. v E. u E. t ( ( A  =  [ <. w ,  v >. ]  .~  /\  B  =  [ <. u ,  t
>. ]  .~  )  /\  z  =  [ ( <. w ,  v >.  .+  <. u ,  t
>. ) ]  .~  )
)
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359   E.wex 1547    = wceq 1649    e. wcel 1721   E*wmo 2259   _Vcvv 2920   <.cop 3781   class class class wbr 4176    X. cxp 4839  (class class class)co 6044    Er wer 6865   [cec 6866   /.cqs 6867
This theorem is referenced by:  th3qcor  6975  th3q  6976
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 1662  ax-8 1683  ax-14 1725  ax-6 1740  ax-7 1745  ax-11 1757  ax-12 1946  ax-ext 2389  ax-sep 4294  ax-nul 4302  ax-pr 4367
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2262  df-mo 2263  df-clab 2395  df-cleq 2401  df-clel 2404  df-nfc 2533  df-ne 2573  df-ral 2675  df-rex 2676  df-rab 2679  df-v 2922  df-sbc 3126  df-dif 3287  df-un 3289  df-in 3291  df-ss 3298  df-nul 3593  df-if 3704  df-sn 3784  df-pr 3785  df-op 3787  df-uni 3980  df-br 4177  df-opab 4231  df-xp 4847  df-rel 4848  df-cnv 4849  df-co 4850  df-dm 4851  df-rn 4852  df-res 4853  df-ima 4854  df-iota 5381  df-fv 5425  df-ov 6047  df-er 6868  df-ec 6870  df-qs 6874
  Copyright terms: Public domain W3C validator