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

Theorem th3qlem2 6698
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
StepHypRef Expression
1 th3q.2 . . 3  |-  .~  Er  ( S  X.  S
)
2 eqid 2256 . . . . 5  |-  ( S  X.  S )  =  ( S  X.  S
)
3 breq1 3966 . . . . . . . 8  |-  ( <.
w ,  v >.  =  s  ->  ( <.
w ,  v >.  .~  <. u ,  t
>. 
<->  s  .~  <. u ,  t >. )
)
43anbi1d 688 . . . . . . 7  |-  ( <.
w ,  v >.  =  s  ->  ( (
<. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  y
)  <->  ( s  .~  <.
u ,  t >.  /\  x  .~  y
) ) )
5 oveq1 5764 . . . . . . . 8  |-  ( <.
w ,  v >.  =  s  ->  ( <.
w ,  v >.  .+  x )  =  ( s  .+  x ) )
65breq1d 3973 . . . . . . 7  |-  ( <.
w ,  v >.  =  s  ->  ( (
<. w ,  v >.  .+  x )  .~  ( <. u ,  t >.  .+  y )  <->  ( s  .+  x )  .~  ( <. u ,  t >.  .+  y ) ) )
74, 6imbi12d 313 . . . . . 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 309 . . . . 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 3967 . . . . . . . 8  |-  ( <.
u ,  t >.  =  f  ->  ( s  .~  <. u ,  t
>. 
<->  s  .~  f ) )
109anbi1d 688 . . . . . . 7  |-  ( <.
u ,  t >.  =  f  ->  ( ( s  .~  <. u ,  t >.  /\  x  .~  y )  <->  ( s  .~  f  /\  x  .~  y ) ) )
11 oveq1 5764 . . . . . . . 8  |-  ( <.
u ,  t >.  =  f  ->  ( <.
u ,  t >.  .+  y )  =  ( f  .+  y ) )
1211breq2d 3975 . . . . . . 7  |-  ( <.
u ,  t >.  =  f  ->  ( ( s  .+  x )  .~  ( <. u ,  t >.  .+  y
)  <->  ( s  .+  x )  .~  (
f  .+  y )
) )
1310, 12imbi12d 313 . . . . . 6  |-  ( <.
u ,  t >.  =  f  ->  ( ( ( s  .~  <. u ,  t >.  /\  x  .~  y )  ->  (
s  .+  x )  .~  ( <. u ,  t
>.  .+  y ) )  <-> 
( ( s  .~  f  /\  x  .~  y
)  ->  ( s  .+  x )  .~  (
f  .+  y )
) ) )
1413imbi2d 309 . . . . 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 3966 . . . . . . . . . 10  |-  ( <.
s ,  f >.  =  x  ->  ( <.
s ,  f >.  .~  <. g ,  h >.  <-> 
x  .~  <. g ,  h >. ) )
1615anbi2d 687 . . . . . . . . 9  |-  ( <.
s ,  f >.  =  x  ->  ( (
<. w ,  v >.  .~  <. u ,  t
>.  /\  <. s ,  f
>.  .~  <. g ,  h >. )  <->  ( <. w ,  v >.  .~  <. u ,  t >.  /\  x  .~  <. g ,  h >. ) ) )
17 oveq2 5765 . . . . . . . . . 10  |-  ( <.
s ,  f >.  =  x  ->  ( <.
w ,  v >.  .+  <. s ,  f
>. )  =  ( <. w ,  v >.  .+  x ) )
1817breq1d 3973 . . . . . . . . 9  |-  ( <.
s ,  f >.  =  x  ->  ( (
<. w ,  v >.  .+  <. s ,  f
>. )  .~  ( <. u ,  t >.  .+  <. g ,  h >. )  <->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  <. g ,  h >. )
) )
1916, 18imbi12d 313 . . . . . . . 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 309 . . . . . . 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 3967 . . . . . . . . . 10  |-  ( <.
g ,  h >.  =  y  ->  ( x  .~  <. g ,  h >.  <-> 
x  .~  y )
)
2221anbi2d 687 . . . . . . . . 9  |-  ( <.
g ,  h >.  =  y  ->  ( ( <. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  <. g ,  h >. )  <->  (
<. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  y
) ) )
23 oveq2 5765 . . . . . . . . . 10  |-  ( <.
g ,  h >.  =  y  ->  ( <. u ,  t >.  .+  <. g ,  h >. )  =  ( <. u ,  t >.  .+  y
) )
2423breq2d 3975 . . . . . . . . 9  |-  ( <.
g ,  h >.  =  y  ->  ( ( <. w ,  v >.  .+  x )  .~  ( <. u ,  t >.  .+  <. g ,  h >. )  <->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  y
) ) )
2522, 24imbi12d 313 . . . . . . . 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 309 . . . . . . 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 426 . . . . . . 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 4718 . . . . . 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 4718 . . . 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 420 . . 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 6697 . 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 4174 . . . . . 6  |-  <. w ,  v >.  e.  _V
35 opex 4174 . . . . . 6  |-  <. u ,  t >.  e.  _V
36 eceq1 6629 . . . . . . . . 9  |-  ( s  =  <. w ,  v
>.  ->  [ s ]  .~  =  [ <. w ,  v >. ]  .~  )
3736eqeq2d 2267 . . . . . . . 8  |-  ( s  =  <. w ,  v
>.  ->  ( A  =  [ s ]  .~  <->  A  =  [ <. w ,  v >. ]  .~  ) )
38 eceq1 6629 . . . . . . . . 9  |-  ( x  =  <. u ,  t
>.  ->  [ x ]  .~  =  [ <. u ,  t >. ]  .~  )
3938eqeq2d 2267 . . . . . . . 8  |-  ( x  =  <. u ,  t
>.  ->  ( B  =  [ x ]  .~  <->  B  =  [ <. u ,  t >. ]  .~  ) )
4037, 39bi2anan9 848 . . . . . . 7  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  ( ( A  =  [ s ]  .~  /\  B  =  [ x ]  .~  ) 
<->  ( A  =  [ <. w ,  v >. ]  .~  /\  B  =  [ <. u ,  t
>. ]  .~  ) ) )
41 oveq12 5766 . . . . . . . . 9  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  ( s 
.+  x )  =  ( <. w ,  v
>.  .+  <. u ,  t
>. ) )
42 eceq1 6629 . . . . . . . . 9  |-  ( ( s  .+  x )  =  ( <. w ,  v >.  .+  <. u ,  t >. )  ->  [ ( s  .+  x ) ]  .~  =  [ ( <. w ,  v >.  .+  <. u ,  t >. ) ]  .~  )
4341, 42syl 17 . . . . . . . 8  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  [ ( s  .+  x ) ]  .~  =  [
( <. w ,  v
>.  .+  <. u ,  t
>. ) ]  .~  )
4443eqeq2d 2267 . . . . . . 7  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  ( z  =  [ ( s 
.+  x ) ]  .~  <->  z  =  [
( <. w ,  v
>.  .+  <. u ,  t
>. ) ]  .~  )
)
4540, 44anbi12d 694 . . . . . 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, 45cla42ev 2827 . . . . 5  |-  ( ( ( A  =  [ <. w ,  v >. ]  .~  /\  B  =  [ <. u ,  t
>. ]  .~  )  /\  z  =  [ ( <. w ,  v >.  .+  <. u ,  t
>. ) ]  .~  )  ->  E. s E. x
( ( A  =  [ s ]  .~  /\  B  =  [ x ]  .~  )  /\  z  =  [ ( s  .+  x ) ]  .~  ) )
4746exlimivv 2026 . . . 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 2026 . . 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 ) ]  .~  ) )
4948immoi 2163 . 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 17 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 6    /\ wa 360   E.wex 1537    = wceq 1619    e. wcel 1621   E*wmo 2118   _Vcvv 2740   <.cop 3584   class class class wbr 3963    X. cxp 4624  (class class class)co 5757    Er wer 6590   [cec 6591   /.cqs 6592
This theorem is referenced by:  th3qcor  6699  th3q  6700
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-5 1533  ax-6 1534  ax-7 1535  ax-gen 1536  ax-8 1623  ax-11 1624  ax-14 1626  ax-17 1628  ax-12o 1664  ax-10 1678  ax-9 1684  ax-4 1692  ax-16 1927  ax-ext 2237  ax-sep 4081  ax-nul 4089  ax-pr 4152
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3an 941  df-tru 1315  df-ex 1538  df-nf 1540  df-sb 1884  df-eu 2121  df-mo 2122  df-clab 2243  df-cleq 2249  df-clel 2252  df-nfc 2381  df-ne 2421  df-ral 2520  df-rex 2521  df-rab 2523  df-v 2742  df-sbc 2936  df-dif 3097  df-un 3099  df-in 3101  df-ss 3108  df-nul 3398  df-if 3507  df-sn 3587  df-pr 3588  df-op 3590  df-uni 3769  df-br 3964  df-opab 4018  df-xp 4640  df-rel 4641  df-cnv 4642  df-co 4643  df-dm 4644  df-rn 4645  df-res 4646  df-ima 4647  df-fv 4654  df-ov 5760  df-er 6593  df-ec 6595  df-qs 6599
  Copyright terms: Public domain W3C validator