ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  th3qlem2 Unicode version

Theorem th3qlem2 6604
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 2165 . . . . 5  |-  ( S  X.  S )  =  ( S  X.  S
)
3 breq1 3985 . . . . . . . 8  |-  ( <.
w ,  v >.  =  s  ->  ( <.
w ,  v >.  .~  <. u ,  t
>. 
<->  s  .~  <. u ,  t >. )
)
43anbi1d 461 . . . . . . 7  |-  ( <.
w ,  v >.  =  s  ->  ( (
<. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  y
)  <->  ( s  .~  <.
u ,  t >.  /\  x  .~  y
) ) )
5 oveq1 5849 . . . . . . . 8  |-  ( <.
w ,  v >.  =  s  ->  ( <.
w ,  v >.  .+  x )  =  ( s  .+  x ) )
65breq1d 3992 . . . . . . 7  |-  ( <.
w ,  v >.  =  s  ->  ( (
<. w ,  v >.  .+  x )  .~  ( <. u ,  t >.  .+  y )  <->  ( s  .+  x )  .~  ( <. u ,  t >.  .+  y ) ) )
74, 6imbi12d 233 . . . . . 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 229 . . . . 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 3986 . . . . . . . 8  |-  ( <.
u ,  t >.  =  f  ->  ( s  .~  <. u ,  t
>. 
<->  s  .~  f ) )
109anbi1d 461 . . . . . . 7  |-  ( <.
u ,  t >.  =  f  ->  ( ( s  .~  <. u ,  t >.  /\  x  .~  y )  <->  ( s  .~  f  /\  x  .~  y ) ) )
11 oveq1 5849 . . . . . . . 8  |-  ( <.
u ,  t >.  =  f  ->  ( <.
u ,  t >.  .+  y )  =  ( f  .+  y ) )
1211breq2d 3994 . . . . . . 7  |-  ( <.
u ,  t >.  =  f  ->  ( ( s  .+  x )  .~  ( <. u ,  t >.  .+  y
)  <->  ( s  .+  x )  .~  (
f  .+  y )
) )
1310, 12imbi12d 233 . . . . . 6  |-  ( <.
u ,  t >.  =  f  ->  ( ( ( s  .~  <. u ,  t >.  /\  x  .~  y )  ->  (
s  .+  x )  .~  ( <. u ,  t
>.  .+  y ) )  <-> 
( ( s  .~  f  /\  x  .~  y
)  ->  ( s  .+  x )  .~  (
f  .+  y )
) ) )
1413imbi2d 229 . . . . 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 3985 . . . . . . . . . 10  |-  ( <.
s ,  f >.  =  x  ->  ( <.
s ,  f >.  .~  <. g ,  h >.  <-> 
x  .~  <. g ,  h >. ) )
1615anbi2d 460 . . . . . . . . 9  |-  ( <.
s ,  f >.  =  x  ->  ( (
<. w ,  v >.  .~  <. u ,  t
>.  /\  <. s ,  f
>.  .~  <. g ,  h >. )  <->  ( <. w ,  v >.  .~  <. u ,  t >.  /\  x  .~  <. g ,  h >. ) ) )
17 oveq2 5850 . . . . . . . . . 10  |-  ( <.
s ,  f >.  =  x  ->  ( <.
w ,  v >.  .+  <. s ,  f
>. )  =  ( <. w ,  v >.  .+  x ) )
1817breq1d 3992 . . . . . . . . 9  |-  ( <.
s ,  f >.  =  x  ->  ( (
<. w ,  v >.  .+  <. s ,  f
>. )  .~  ( <. u ,  t >.  .+  <. g ,  h >. )  <->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  <. g ,  h >. )
) )
1916, 18imbi12d 233 . . . . . . . 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 229 . . . . . . 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 3986 . . . . . . . . . 10  |-  ( <.
g ,  h >.  =  y  ->  ( x  .~  <. g ,  h >.  <-> 
x  .~  y )
)
2221anbi2d 460 . . . . . . . . 9  |-  ( <.
g ,  h >.  =  y  ->  ( ( <. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  <. g ,  h >. )  <->  (
<. w ,  v >.  .~  <. u ,  t
>.  /\  x  .~  y
) ) )
23 oveq2 5850 . . . . . . . . . 10  |-  ( <.
g ,  h >.  =  y  ->  ( <. u ,  t >.  .+  <. g ,  h >. )  =  ( <. u ,  t >.  .+  y
) )
2423breq2d 3994 . . . . . . . . 9  |-  ( <.
g ,  h >.  =  y  ->  ( ( <. w ,  v >.  .+  x )  .~  ( <. u ,  t >.  .+  <. g ,  h >. )  <->  ( <. w ,  v >.  .+  x
)  .~  ( <. u ,  t >.  .+  y
) ) )
2522, 24imbi12d 233 . . . . . . . 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 229 . . . . . . 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 115 . . . . . . 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 4681 . . . . . 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 30 . . . . 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 4681 . . . 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 123 . . 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 6603 . 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 vex 2729 . . . . . . 7  |-  w  e. 
_V
35 vex 2729 . . . . . . 7  |-  v  e. 
_V
3634, 35opex 4207 . . . . . 6  |-  <. w ,  v >.  e.  _V
37 vex 2729 . . . . . . 7  |-  u  e. 
_V
38 vex 2729 . . . . . . 7  |-  t  e. 
_V
3937, 38opex 4207 . . . . . 6  |-  <. u ,  t >.  e.  _V
40 eceq1 6536 . . . . . . . . 9  |-  ( s  =  <. w ,  v
>.  ->  [ s ]  .~  =  [ <. w ,  v >. ]  .~  )
4140eqeq2d 2177 . . . . . . . 8  |-  ( s  =  <. w ,  v
>.  ->  ( A  =  [ s ]  .~  <->  A  =  [ <. w ,  v >. ]  .~  ) )
42 eceq1 6536 . . . . . . . . 9  |-  ( x  =  <. u ,  t
>.  ->  [ x ]  .~  =  [ <. u ,  t >. ]  .~  )
4342eqeq2d 2177 . . . . . . . 8  |-  ( x  =  <. u ,  t
>.  ->  ( B  =  [ x ]  .~  <->  B  =  [ <. u ,  t >. ]  .~  ) )
4441, 43bi2anan9 596 . . . . . . 7  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  ( ( A  =  [ s ]  .~  /\  B  =  [ x ]  .~  ) 
<->  ( A  =  [ <. w ,  v >. ]  .~  /\  B  =  [ <. u ,  t
>. ]  .~  ) ) )
45 oveq12 5851 . . . . . . . . 9  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  ( s 
.+  x )  =  ( <. w ,  v
>.  .+  <. u ,  t
>. ) )
4645eceq1d 6537 . . . . . . . 8  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  [ ( s  .+  x ) ]  .~  =  [
( <. w ,  v
>.  .+  <. u ,  t
>. ) ]  .~  )
4746eqeq2d 2177 . . . . . . 7  |-  ( ( s  =  <. w ,  v >.  /\  x  =  <. u ,  t
>. )  ->  ( z  =  [ ( s 
.+  x ) ]  .~  <->  z  =  [
( <. w ,  v
>.  .+  <. u ,  t
>. ) ]  .~  )
)
4844, 47anbi12d 465 . . . . . 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
>. ) ]  .~  )
) )
4936, 39, 48spc2ev 2822 . . . . 5  |-  ( ( ( A  =  [ <. w ,  v >. ]  .~  /\  B  =  [ <. u ,  t
>. ]  .~  )  /\  z  =  [ ( <. w ,  v >.  .+  <. u ,  t
>. ) ]  .~  )  ->  E. s E. x
( ( A  =  [ s ]  .~  /\  B  =  [ x ]  .~  )  /\  z  =  [ ( s  .+  x ) ]  .~  ) )
5049exlimivv 1884 . . . 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 ) ]  .~  ) )
5150exlimivv 1884 . . 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 ) ]  .~  ) )
5251moimi 2079 . 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
>. ) ]  .~  )
)
5333, 52syl 14 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 103    = wceq 1343   E.wex 1480   E*wmo 2015    e. wcel 2136   _Vcvv 2726   <.cop 3579   class class class wbr 3982    X. cxp 4602  (class class class)co 5842    Er wer 6498   [cec 6499   /.cqs 6500
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-14 2139  ax-ext 2147  ax-sep 4100  ax-pow 4153  ax-pr 4187
This theorem depends on definitions:  df-bi 116  df-3an 970  df-tru 1346  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ral 2449  df-rex 2450  df-v 2728  df-sbc 2952  df-un 3120  df-in 3122  df-ss 3129  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-br 3983  df-opab 4044  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fv 5196  df-ov 5845  df-er 6501  df-ec 6503  df-qs 6507
This theorem is referenced by:  th3qcor  6605  th3q  6606
  Copyright terms: Public domain W3C validator