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

Theorem ruclem1 12758
Description: Lemma for ruc 12770 (the reals are uncountable). Substitutions for the function  D. (Contributed by Mario Carneiro, 28-May-2014.) (Revised by Fan Zheng, 6-Jun-2016.)
Hypotheses
Ref Expression
ruc.1  |-  ( ph  ->  F : NN --> RR )
ruc.2  |-  ( ph  ->  D  =  ( x  e.  ( RR  X.  RR ) ,  y  e.  RR  |->  [_ ( ( ( 1st `  x )  +  ( 2nd `  x
) )  /  2
)  /  m ]_ if ( m  <  y ,  <. ( 1st `  x
) ,  m >. , 
<. ( ( m  +  ( 2nd `  x ) )  /  2 ) ,  ( 2nd `  x
) >. ) ) )
ruclem1.3  |-  ( ph  ->  A  e.  RR )
ruclem1.4  |-  ( ph  ->  B  e.  RR )
ruclem1.5  |-  ( ph  ->  M  e.  RR )
ruclem1.6  |-  X  =  ( 1st `  ( <. A ,  B >. D M ) )
ruclem1.7  |-  Y  =  ( 2nd `  ( <. A ,  B >. D M ) )
Assertion
Ref Expression
ruclem1  |-  ( ph  ->  ( ( <. A ,  B >. D M )  e.  ( RR  X.  RR )  /\  X  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  A , 
( ( ( ( A  +  B )  /  2 )  +  B )  /  2
) )  /\  Y  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  ( ( A  +  B )  /  2 ) ,  B ) ) )
Distinct variable groups:    x, m, y, A    B, m, x, y    m, F, x, y    m, M, x, y
Allowed substitution hints:    ph( x, y, m)    D( x, y, m)    X( x, y, m)    Y( x, y, m)

Proof of Theorem ruclem1
StepHypRef Expression
1 ruc.2 . . . . . 6  |-  ( ph  ->  D  =  ( x  e.  ( RR  X.  RR ) ,  y  e.  RR  |->  [_ ( ( ( 1st `  x )  +  ( 2nd `  x
) )  /  2
)  /  m ]_ if ( m  <  y ,  <. ( 1st `  x
) ,  m >. , 
<. ( ( m  +  ( 2nd `  x ) )  /  2 ) ,  ( 2nd `  x
) >. ) ) )
21oveqd 6038 . . . . 5  |-  ( ph  ->  ( <. A ,  B >. D M )  =  ( <. A ,  B >. ( x  e.  ( RR  X.  RR ) ,  y  e.  RR  |->  [_ ( ( ( 1st `  x )  +  ( 2nd `  x ) )  /  2 )  /  m ]_ if ( m  <  y , 
<. ( 1st `  x
) ,  m >. , 
<. ( ( m  +  ( 2nd `  x ) )  /  2 ) ,  ( 2nd `  x
) >. ) ) M ) )
3 ruclem1.3 . . . . . . 7  |-  ( ph  ->  A  e.  RR )
4 ruclem1.4 . . . . . . 7  |-  ( ph  ->  B  e.  RR )
5 opelxpi 4851 . . . . . . 7  |-  ( ( A  e.  RR  /\  B  e.  RR )  -> 
<. A ,  B >.  e.  ( RR  X.  RR ) )
63, 4, 5syl2anc 643 . . . . . 6  |-  ( ph  -> 
<. A ,  B >.  e.  ( RR  X.  RR ) )
7 ruclem1.5 . . . . . 6  |-  ( ph  ->  M  e.  RR )
8 simpr 448 . . . . . . . . . . 11  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  y  =  M )
98breq2d 4166 . . . . . . . . . 10  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  (
m  <  y  <->  m  <  M ) )
10 simpl 444 . . . . . . . . . . . 12  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  x  =  <. A ,  B >. )
1110fveq2d 5673 . . . . . . . . . . 11  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  ( 1st `  x )  =  ( 1st `  <. A ,  B >. )
)
1211opeq1d 3933 . . . . . . . . . 10  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  <. ( 1st `  x ) ,  m >.  =  <. ( 1st `  <. A ,  B >. ) ,  m >. )
1310fveq2d 5673 . . . . . . . . . . . . 13  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  ( 2nd `  x )  =  ( 2nd `  <. A ,  B >. )
)
1413oveq2d 6037 . . . . . . . . . . . 12  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  (
m  +  ( 2nd `  x ) )  =  ( m  +  ( 2nd `  <. A ,  B >. ) ) )
1514oveq1d 6036 . . . . . . . . . . 11  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  (
( m  +  ( 2nd `  x ) )  /  2 )  =  ( ( m  +  ( 2nd `  <. A ,  B >. )
)  /  2 ) )
1615, 13opeq12d 3935 . . . . . . . . . 10  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  <. (
( m  +  ( 2nd `  x ) )  /  2 ) ,  ( 2nd `  x
) >.  =  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
179, 12, 16ifbieq12d 3705 . . . . . . . . 9  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  if ( m  <  y , 
<. ( 1st `  x
) ,  m >. , 
<. ( ( m  +  ( 2nd `  x ) )  /  2 ) ,  ( 2nd `  x
) >. )  =  if ( m  <  M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. ,  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
)
1817csbeq2dv 3220 . . . . . . . 8  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  [_ (
( ( 1st `  x
)  +  ( 2nd `  x ) )  / 
2 )  /  m ]_ if ( m  < 
y ,  <. ( 1st `  x ) ,  m >. ,  <. (
( m  +  ( 2nd `  x ) )  /  2 ) ,  ( 2nd `  x
) >. )  =  [_ ( ( ( 1st `  x )  +  ( 2nd `  x ) )  /  2 )  /  m ]_ if ( m  <  M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. ,  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
)
1911, 13oveq12d 6039 . . . . . . . . . 10  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  (
( 1st `  x
)  +  ( 2nd `  x ) )  =  ( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. )
) )
2019oveq1d 6036 . . . . . . . . 9  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  (
( ( 1st `  x
)  +  ( 2nd `  x ) )  / 
2 )  =  ( ( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. )
)  /  2 ) )
2120csbeq1d 3201 . . . . . . . 8  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  [_ (
( ( 1st `  x
)  +  ( 2nd `  x ) )  / 
2 )  /  m ]_ if ( m  < 
M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. , 
<. ( ( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )  =  [_ ( ( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. ) )  / 
2 )  /  m ]_ if ( m  < 
M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. , 
<. ( ( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
)
2218, 21eqtrd 2420 . . . . . . 7  |-  ( ( x  =  <. A ,  B >.  /\  y  =  M )  ->  [_ (
( ( 1st `  x
)  +  ( 2nd `  x ) )  / 
2 )  /  m ]_ if ( m  < 
y ,  <. ( 1st `  x ) ,  m >. ,  <. (
( m  +  ( 2nd `  x ) )  /  2 ) ,  ( 2nd `  x
) >. )  =  [_ ( ( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. ) )  /  2
)  /  m ]_ if ( m  <  M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. ,  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
)
23 eqid 2388 . . . . . . 7  |-  ( x  e.  ( RR  X.  RR ) ,  y  e.  RR  |->  [_ ( ( ( 1st `  x )  +  ( 2nd `  x
) )  /  2
)  /  m ]_ if ( m  <  y ,  <. ( 1st `  x
) ,  m >. , 
<. ( ( m  +  ( 2nd `  x ) )  /  2 ) ,  ( 2nd `  x
) >. ) )  =  ( x  e.  ( RR  X.  RR ) ,  y  e.  RR  |->  [_ ( ( ( 1st `  x )  +  ( 2nd `  x ) )  /  2 )  /  m ]_ if ( m  <  y , 
<. ( 1st `  x
) ,  m >. , 
<. ( ( m  +  ( 2nd `  x ) )  /  2 ) ,  ( 2nd `  x
) >. ) )
24 ovex 6046 . . . . . . . 8  |-  ( ( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. )
)  /  2 )  e.  _V
25 opex 4369 . . . . . . . . 9  |-  <. ( 1st `  <. A ,  B >. ) ,  m >.  e. 
_V
26 opex 4369 . . . . . . . . 9  |-  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >.  e.  _V
2725, 26ifex 3741 . . . . . . . 8  |-  if ( m  <  M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. ,  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )  e.  _V
2824, 27csbex 3206 . . . . . . 7  |-  [_ (
( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. )
)  /  2 )  /  m ]_ if ( m  <  M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. ,  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )  e.  _V
2922, 23, 28ovmpt2a 6144 . . . . . 6  |-  ( (
<. A ,  B >.  e.  ( RR  X.  RR )  /\  M  e.  RR )  ->  ( <. A ,  B >. ( x  e.  ( RR  X.  RR ) ,  y  e.  RR  |->  [_ ( ( ( 1st `  x )  +  ( 2nd `  x
) )  /  2
)  /  m ]_ if ( m  <  y ,  <. ( 1st `  x
) ,  m >. , 
<. ( ( m  +  ( 2nd `  x ) )  /  2 ) ,  ( 2nd `  x
) >. ) ) M )  =  [_ (
( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. )
)  /  2 )  /  m ]_ if ( m  <  M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. ,  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
)
306, 7, 29syl2anc 643 . . . . 5  |-  ( ph  ->  ( <. A ,  B >. ( x  e.  ( RR  X.  RR ) ,  y  e.  RR  |->  [_ ( ( ( 1st `  x )  +  ( 2nd `  x ) )  /  2 )  /  m ]_ if ( m  <  y , 
<. ( 1st `  x
) ,  m >. , 
<. ( ( m  +  ( 2nd `  x ) )  /  2 ) ,  ( 2nd `  x
) >. ) ) M )  =  [_ (
( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. )
)  /  2 )  /  m ]_ if ( m  <  M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. ,  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
)
312, 30eqtrd 2420 . . . 4  |-  ( ph  ->  ( <. A ,  B >. D M )  = 
[_ ( ( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. ) )  / 
2 )  /  m ]_ if ( m  < 
M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. , 
<. ( ( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
)
32 op1stg 6299 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  B  e.  RR )  ->  ( 1st `  <. A ,  B >. )  =  A )
333, 4, 32syl2anc 643 . . . . . . . 8  |-  ( ph  ->  ( 1st `  <. A ,  B >. )  =  A )
34 op2ndg 6300 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  B  e.  RR )  ->  ( 2nd `  <. A ,  B >. )  =  B )
353, 4, 34syl2anc 643 . . . . . . . 8  |-  ( ph  ->  ( 2nd `  <. A ,  B >. )  =  B )
3633, 35oveq12d 6039 . . . . . . 7  |-  ( ph  ->  ( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. )
)  =  ( A  +  B ) )
3736oveq1d 6036 . . . . . 6  |-  ( ph  ->  ( ( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. ) )  /  2
)  =  ( ( A  +  B )  /  2 ) )
3837csbeq1d 3201 . . . . 5  |-  ( ph  ->  [_ ( ( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. ) )  / 
2 )  /  m ]_ if ( m  < 
M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. , 
<. ( ( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )  =  [_ ( ( A  +  B )  / 
2 )  /  m ]_ if ( m  < 
M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. , 
<. ( ( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
)
39 ovex 6046 . . . . . . 7  |-  ( ( A  +  B )  /  2 )  e. 
_V
40 nfcv 2524 . . . . . . 7  |-  F/_ m if ( ( ( A  +  B )  / 
2 )  <  M ,  <. ( 1st `  <. A ,  B >. ) ,  ( ( A  +  B )  / 
2 ) >. ,  <. ( ( ( ( A  +  B )  / 
2 )  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
41 breq1 4157 . . . . . . . 8  |-  ( m  =  ( ( A  +  B )  / 
2 )  ->  (
m  <  M  <->  ( ( A  +  B )  /  2 )  < 
M ) )
42 opeq2 3928 . . . . . . . 8  |-  ( m  =  ( ( A  +  B )  / 
2 )  ->  <. ( 1st `  <. A ,  B >. ) ,  m >.  = 
<. ( 1st `  <. A ,  B >. ) ,  ( ( A  +  B )  / 
2 ) >. )
43 oveq1 6028 . . . . . . . . . 10  |-  ( m  =  ( ( A  +  B )  / 
2 )  ->  (
m  +  ( 2nd `  <. A ,  B >. ) )  =  ( ( ( A  +  B )  /  2
)  +  ( 2nd `  <. A ,  B >. ) ) )
4443oveq1d 6036 . . . . . . . . 9  |-  ( m  =  ( ( A  +  B )  / 
2 )  ->  (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 )  =  ( ( ( ( A  +  B )  / 
2 )  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) )
4544opeq1d 3933 . . . . . . . 8  |-  ( m  =  ( ( A  +  B )  / 
2 )  ->  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >.  =  <. ( ( ( ( A  +  B )  / 
2 )  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
4641, 42, 45ifbieq12d 3705 . . . . . . 7  |-  ( m  =  ( ( A  +  B )  / 
2 )  ->  if ( m  <  M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. ,  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  <. ( 1st `  <. A ,  B >. ) ,  ( ( A  +  B )  /  2 ) >. ,  <. ( ( ( ( A  +  B
)  /  2 )  +  ( 2nd `  <. A ,  B >. )
)  /  2 ) ,  ( 2nd `  <. A ,  B >. ) >. ) )
4739, 40, 46csbief 3236 . . . . . 6  |-  [_ (
( A  +  B
)  /  2 )  /  m ]_ if ( m  <  M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. ,  <. (
( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  <. ( 1st `  <. A ,  B >. ) ,  ( ( A  +  B )  /  2 ) >. ,  <. ( ( ( ( A  +  B
)  /  2 )  +  ( 2nd `  <. A ,  B >. )
)  /  2 ) ,  ( 2nd `  <. A ,  B >. ) >. )
4833opeq1d 3933 . . . . . . 7  |-  ( ph  -> 
<. ( 1st `  <. A ,  B >. ) ,  ( ( A  +  B )  / 
2 ) >.  =  <. A ,  ( ( A  +  B )  / 
2 ) >. )
4935oveq2d 6037 . . . . . . . . 9  |-  ( ph  ->  ( ( ( A  +  B )  / 
2 )  +  ( 2nd `  <. A ,  B >. ) )  =  ( ( ( A  +  B )  / 
2 )  +  B
) )
5049oveq1d 6036 . . . . . . . 8  |-  ( ph  ->  ( ( ( ( A  +  B )  /  2 )  +  ( 2nd `  <. A ,  B >. )
)  /  2 )  =  ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) )
5150, 35opeq12d 3935 . . . . . . 7  |-  ( ph  -> 
<. ( ( ( ( A  +  B )  /  2 )  +  ( 2nd `  <. A ,  B >. )
)  /  2 ) ,  ( 2nd `  <. A ,  B >. ) >.  =  <. ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) ,  B >. )
5248, 51ifeq12d 3699 . . . . . 6  |-  ( ph  ->  if ( ( ( A  +  B )  /  2 )  < 
M ,  <. ( 1st `  <. A ,  B >. ) ,  ( ( A  +  B )  /  2 ) >. ,  <. ( ( ( ( A  +  B
)  /  2 )  +  ( 2nd `  <. A ,  B >. )
)  /  2 ) ,  ( 2nd `  <. A ,  B >. ) >. )  =  if ( ( ( A  +  B )  /  2
)  <  M ,  <. A ,  ( ( A  +  B )  /  2 ) >. ,  <. ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) ,  B >. ) )
5347, 52syl5eq 2432 . . . . 5  |-  ( ph  ->  [_ ( ( A  +  B )  / 
2 )  /  m ]_ if ( m  < 
M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. , 
<. ( ( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  <. A , 
( ( A  +  B )  /  2
) >. ,  <. (
( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )
)
5438, 53eqtrd 2420 . . . 4  |-  ( ph  ->  [_ ( ( ( 1st `  <. A ,  B >. )  +  ( 2nd `  <. A ,  B >. ) )  / 
2 )  /  m ]_ if ( m  < 
M ,  <. ( 1st `  <. A ,  B >. ) ,  m >. , 
<. ( ( m  +  ( 2nd `  <. A ,  B >. ) )  / 
2 ) ,  ( 2nd `  <. A ,  B >. ) >. )  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  <. A , 
( ( A  +  B )  /  2
) >. ,  <. (
( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )
)
5531, 54eqtrd 2420 . . 3  |-  ( ph  ->  ( <. A ,  B >. D M )  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  <. A , 
( ( A  +  B )  /  2
) >. ,  <. (
( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )
)
563, 4readdcld 9049 . . . . . 6  |-  ( ph  ->  ( A  +  B
)  e.  RR )
5756rehalfcld 10147 . . . . 5  |-  ( ph  ->  ( ( A  +  B )  /  2
)  e.  RR )
58 opelxpi 4851 . . . . 5  |-  ( ( A  e.  RR  /\  ( ( A  +  B )  /  2
)  e.  RR )  ->  <. A ,  ( ( A  +  B
)  /  2 )
>.  e.  ( RR  X.  RR ) )
593, 57, 58syl2anc 643 . . . 4  |-  ( ph  -> 
<. A ,  ( ( A  +  B )  /  2 ) >.  e.  ( RR  X.  RR ) )
6057, 4readdcld 9049 . . . . . 6  |-  ( ph  ->  ( ( ( A  +  B )  / 
2 )  +  B
)  e.  RR )
6160rehalfcld 10147 . . . . 5  |-  ( ph  ->  ( ( ( ( A  +  B )  /  2 )  +  B )  /  2
)  e.  RR )
62 opelxpi 4851 . . . . 5  |-  ( ( ( ( ( ( A  +  B )  /  2 )  +  B )  /  2
)  e.  RR  /\  B  e.  RR )  -> 
<. ( ( ( ( A  +  B )  /  2 )  +  B )  /  2
) ,  B >.  e.  ( RR  X.  RR ) )
6361, 4, 62syl2anc 643 . . . 4  |-  ( ph  -> 
<. ( ( ( ( A  +  B )  /  2 )  +  B )  /  2
) ,  B >.  e.  ( RR  X.  RR ) )
64 ifcl 3719 . . . 4  |-  ( (
<. A ,  ( ( A  +  B )  /  2 ) >.  e.  ( RR  X.  RR )  /\  <. ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) ,  B >.  e.  ( RR  X.  RR ) )  ->  if ( ( ( A  +  B )  / 
2 )  <  M ,  <. A ,  ( ( A  +  B
)  /  2 )
>. ,  <. ( ( ( ( A  +  B )  /  2
)  +  B )  /  2 ) ,  B >. )  e.  ( RR  X.  RR ) )
6559, 63, 64syl2anc 643 . . 3  |-  ( ph  ->  if ( ( ( A  +  B )  /  2 )  < 
M ,  <. A , 
( ( A  +  B )  /  2
) >. ,  <. (
( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )  e.  ( RR  X.  RR ) )
6655, 65eqeltrd 2462 . 2  |-  ( ph  ->  ( <. A ,  B >. D M )  e.  ( RR  X.  RR ) )
67 ruclem1.6 . . 3  |-  X  =  ( 1st `  ( <. A ,  B >. D M ) )
6855fveq2d 5673 . . . 4  |-  ( ph  ->  ( 1st `  ( <. A ,  B >. D M ) )  =  ( 1st `  if ( ( ( A  +  B )  / 
2 )  <  M ,  <. A ,  ( ( A  +  B
)  /  2 )
>. ,  <. ( ( ( ( A  +  B )  /  2
)  +  B )  /  2 ) ,  B >. ) ) )
69 fvif 5684 . . . . 5  |-  ( 1st `  if ( ( ( A  +  B )  /  2 )  < 
M ,  <. A , 
( ( A  +  B )  /  2
) >. ,  <. (
( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )
)  =  if ( ( ( A  +  B )  /  2
)  <  M , 
( 1st `  <. A ,  ( ( A  +  B )  / 
2 ) >. ) ,  ( 1st `  <. ( ( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )
)
70 op1stg 6299 . . . . . . 7  |-  ( ( A  e.  RR  /\  ( ( A  +  B )  /  2
)  e.  _V )  ->  ( 1st `  <. A ,  ( ( A  +  B )  / 
2 ) >. )  =  A )
713, 39, 70sylancl 644 . . . . . 6  |-  ( ph  ->  ( 1st `  <. A ,  ( ( A  +  B )  / 
2 ) >. )  =  A )
72 ovex 6046 . . . . . . 7  |-  ( ( ( ( A  +  B )  /  2
)  +  B )  /  2 )  e. 
_V
73 op1stg 6299 . . . . . . 7  |-  ( ( ( ( ( ( A  +  B )  /  2 )  +  B )  /  2
)  e.  _V  /\  B  e.  RR )  ->  ( 1st `  <. ( ( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )  =  ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) )
7472, 4, 73sylancr 645 . . . . . 6  |-  ( ph  ->  ( 1st `  <. ( ( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )  =  ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) )
7571, 74ifeq12d 3699 . . . . 5  |-  ( ph  ->  if ( ( ( A  +  B )  /  2 )  < 
M ,  ( 1st `  <. A ,  ( ( A  +  B
)  /  2 )
>. ) ,  ( 1st `  <. ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) ,  B >. ) )  =  if ( ( ( A  +  B )  / 
2 )  <  M ,  A ,  ( ( ( ( A  +  B )  /  2
)  +  B )  /  2 ) ) )
7669, 75syl5eq 2432 . . . 4  |-  ( ph  ->  ( 1st `  if ( ( ( A  +  B )  / 
2 )  <  M ,  <. A ,  ( ( A  +  B
)  /  2 )
>. ,  <. ( ( ( ( A  +  B )  /  2
)  +  B )  /  2 ) ,  B >. ) )  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  A , 
( ( ( ( A  +  B )  /  2 )  +  B )  /  2
) ) )
7768, 76eqtrd 2420 . . 3  |-  ( ph  ->  ( 1st `  ( <. A ,  B >. D M ) )  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  A , 
( ( ( ( A  +  B )  /  2 )  +  B )  /  2
) ) )
7867, 77syl5eq 2432 . 2  |-  ( ph  ->  X  =  if ( ( ( A  +  B )  /  2
)  <  M ,  A ,  ( (
( ( A  +  B )  /  2
)  +  B )  /  2 ) ) )
79 ruclem1.7 . . 3  |-  Y  =  ( 2nd `  ( <. A ,  B >. D M ) )
8055fveq2d 5673 . . . 4  |-  ( ph  ->  ( 2nd `  ( <. A ,  B >. D M ) )  =  ( 2nd `  if ( ( ( A  +  B )  / 
2 )  <  M ,  <. A ,  ( ( A  +  B
)  /  2 )
>. ,  <. ( ( ( ( A  +  B )  /  2
)  +  B )  /  2 ) ,  B >. ) ) )
81 fvif 5684 . . . . 5  |-  ( 2nd `  if ( ( ( A  +  B )  /  2 )  < 
M ,  <. A , 
( ( A  +  B )  /  2
) >. ,  <. (
( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )
)  =  if ( ( ( A  +  B )  /  2
)  <  M , 
( 2nd `  <. A ,  ( ( A  +  B )  / 
2 ) >. ) ,  ( 2nd `  <. ( ( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )
)
82 op2ndg 6300 . . . . . . 7  |-  ( ( A  e.  RR  /\  ( ( A  +  B )  /  2
)  e.  _V )  ->  ( 2nd `  <. A ,  ( ( A  +  B )  / 
2 ) >. )  =  ( ( A  +  B )  / 
2 ) )
833, 39, 82sylancl 644 . . . . . 6  |-  ( ph  ->  ( 2nd `  <. A ,  ( ( A  +  B )  / 
2 ) >. )  =  ( ( A  +  B )  / 
2 ) )
84 op2ndg 6300 . . . . . . 7  |-  ( ( ( ( ( ( A  +  B )  /  2 )  +  B )  /  2
)  e.  _V  /\  B  e.  RR )  ->  ( 2nd `  <. ( ( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )  =  B )
8572, 4, 84sylancr 645 . . . . . 6  |-  ( ph  ->  ( 2nd `  <. ( ( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ,  B >. )  =  B )
8683, 85ifeq12d 3699 . . . . 5  |-  ( ph  ->  if ( ( ( A  +  B )  /  2 )  < 
M ,  ( 2nd `  <. A ,  ( ( A  +  B
)  /  2 )
>. ) ,  ( 2nd `  <. ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) ,  B >. ) )  =  if ( ( ( A  +  B )  / 
2 )  <  M ,  ( ( A  +  B )  / 
2 ) ,  B
) )
8781, 86syl5eq 2432 . . . 4  |-  ( ph  ->  ( 2nd `  if ( ( ( A  +  B )  / 
2 )  <  M ,  <. A ,  ( ( A  +  B
)  /  2 )
>. ,  <. ( ( ( ( A  +  B )  /  2
)  +  B )  /  2 ) ,  B >. ) )  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  ( ( A  +  B )  /  2 ) ,  B ) )
8880, 87eqtrd 2420 . . 3  |-  ( ph  ->  ( 2nd `  ( <. A ,  B >. D M ) )  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  ( ( A  +  B )  /  2 ) ,  B ) )
8979, 88syl5eq 2432 . 2  |-  ( ph  ->  Y  =  if ( ( ( A  +  B )  /  2
)  <  M , 
( ( A  +  B )  /  2
) ,  B ) )
9066, 78, 893jca 1134 1  |-  ( ph  ->  ( ( <. A ,  B >. D M )  e.  ( RR  X.  RR )  /\  X  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  A , 
( ( ( ( A  +  B )  /  2 )  +  B )  /  2
) )  /\  Y  =  if ( ( ( A  +  B )  /  2 )  < 
M ,  ( ( A  +  B )  /  2 ) ,  B ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    /\ w3a 936    = wceq 1649    e. wcel 1717   _Vcvv 2900   [_csb 3195   ifcif 3683   <.cop 3761   class class class wbr 4154    X. cxp 4817   -->wf 5391   ` cfv 5395  (class class class)co 6021    e. cmpt2 6023   1stc1st 6287   2ndc2nd 6288   RRcr 8923    + caddc 8927    < clt 9054    / cdiv 9610   NNcn 9933   2c2 9982
This theorem is referenced by:  ruclem2  12759  ruclem3  12760  ruclem6  12762
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-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2369  ax-sep 4272  ax-nul 4280  ax-pow 4319  ax-pr 4345  ax-un 4642  ax-resscn 8981  ax-1cn 8982  ax-icn 8983  ax-addcl 8984  ax-addrcl 8985  ax-mulcl 8986  ax-mulrcl 8987  ax-mulcom 8988  ax-addass 8989  ax-mulass 8990  ax-distr 8991  ax-i2m1 8992  ax-1ne0 8993  ax-1rid 8994  ax-rnegex 8995  ax-rrecex 8996  ax-cnre 8997  ax-pre-lttri 8998  ax-pre-lttrn 8999  ax-pre-ltadd 9000  ax-pre-mulgt0 9001
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2243  df-mo 2244  df-clab 2375  df-cleq 2381  df-clel 2384  df-nfc 2513  df-ne 2553  df-nel 2554  df-ral 2655  df-rex 2656  df-reu 2657  df-rmo 2658  df-rab 2659  df-v 2902  df-sbc 3106  df-csb 3196  df-dif 3267  df-un 3269  df-in 3271  df-ss 3278  df-nul 3573  df-if 3684  df-pw 3745  df-sn 3764  df-pr 3765  df-op 3767  df-uni 3959  df-br 4155  df-opab 4209  df-mpt 4210  df-id 4440  df-po 4445  df-so 4446  df-xp 4825  df-rel 4826  df-cnv 4827  df-co 4828  df-dm 4829  df-rn 4830  df-res 4831  df-ima 4832  df-iota 5359  df-fun 5397  df-fn 5398  df-f 5399  df-f1 5400  df-fo 5401  df-f1o 5402  df-fv 5403  df-ov 6024  df-oprab 6025  df-mpt2 6026  df-1st 6289  df-2nd 6290  df-riota 6486  df-er 6842  df-en 7047  df-dom 7048  df-sdom 7049  df-pnf 9056  df-mnf 9057  df-xr 9058  df-ltxr 9059  df-le 9060  df-sub 9226  df-neg 9227  df-div 9611  df-2 9991
  Copyright terms: Public domain W3C validator