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

Theorem ruclem3 12511
Description: Lemma for ruc 12521. The constructed interval  [ X ,  Y ] always excludes  M. (Contributed by Mario Carneiro, 28-May-2014.)
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 ) )
ruclem2.8  |-  ( ph  ->  A  <  B )
Assertion
Ref Expression
ruclem3  |-  ( ph  ->  ( M  <  X  \/  Y  <  M ) )
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 ruclem3
StepHypRef Expression
1 ruclem1.5 . . . . . . . . 9  |-  ( ph  ->  M  e.  RR )
2 ruclem1.3 . . . . . . . . . . 11  |-  ( ph  ->  A  e.  RR )
3 ruclem1.4 . . . . . . . . . . 11  |-  ( ph  ->  B  e.  RR )
42, 3readdcld 8862 . . . . . . . . . 10  |-  ( ph  ->  ( A  +  B
)  e.  RR )
54rehalfcld 9958 . . . . . . . . 9  |-  ( ph  ->  ( ( A  +  B )  /  2
)  e.  RR )
61, 5lenltd 8965 . . . . . . . 8  |-  ( ph  ->  ( M  <_  (
( A  +  B
)  /  2 )  <->  -.  ( ( A  +  B )  /  2
)  <  M )
)
7 ruclem2.8 . . . . . . . . . . 11  |-  ( ph  ->  A  <  B )
8 avglt2 9950 . . . . . . . . . . . 12  |-  ( ( A  e.  RR  /\  B  e.  RR )  ->  ( A  <  B  <->  ( ( A  +  B
)  /  2 )  <  B ) )
92, 3, 8syl2anc 642 . . . . . . . . . . 11  |-  ( ph  ->  ( A  <  B  <->  ( ( A  +  B
)  /  2 )  <  B ) )
107, 9mpbid 201 . . . . . . . . . 10  |-  ( ph  ->  ( ( A  +  B )  /  2
)  <  B )
11 avglt1 9949 . . . . . . . . . . 11  |-  ( ( ( ( A  +  B )  /  2
)  e.  RR  /\  B  e.  RR )  ->  ( ( ( A  +  B )  / 
2 )  <  B  <->  ( ( A  +  B
)  /  2 )  <  ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) ) )
125, 3, 11syl2anc 642 . . . . . . . . . 10  |-  ( ph  ->  ( ( ( A  +  B )  / 
2 )  <  B  <->  ( ( A  +  B
)  /  2 )  <  ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) ) )
1310, 12mpbid 201 . . . . . . . . 9  |-  ( ph  ->  ( ( A  +  B )  /  2
)  <  ( (
( ( A  +  B )  /  2
)  +  B )  /  2 ) )
145, 3readdcld 8862 . . . . . . . . . . 11  |-  ( ph  ->  ( ( ( A  +  B )  / 
2 )  +  B
)  e.  RR )
1514rehalfcld 9958 . . . . . . . . . 10  |-  ( ph  ->  ( ( ( ( A  +  B )  /  2 )  +  B )  /  2
)  e.  RR )
16 lelttr 8912 . . . . . . . . . 10  |-  ( ( M  e.  RR  /\  ( ( A  +  B )  /  2
)  e.  RR  /\  ( ( ( ( A  +  B )  /  2 )  +  B )  /  2
)  e.  RR )  ->  ( ( M  <_  ( ( A  +  B )  / 
2 )  /\  (
( A  +  B
)  /  2 )  <  ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) )  ->  M  <  ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) ) )
171, 5, 15, 16syl3anc 1182 . . . . . . . . 9  |-  ( ph  ->  ( ( M  <_ 
( ( A  +  B )  /  2
)  /\  ( ( A  +  B )  /  2 )  < 
( ( ( ( A  +  B )  /  2 )  +  B )  /  2
) )  ->  M  <  ( ( ( ( A  +  B )  /  2 )  +  B )  /  2
) ) )
1813, 17mpan2d 655 . . . . . . . 8  |-  ( ph  ->  ( M  <_  (
( A  +  B
)  /  2 )  ->  M  <  (
( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ) )
196, 18sylbird 226 . . . . . . 7  |-  ( ph  ->  ( -.  ( ( A  +  B )  /  2 )  < 
M  ->  M  <  ( ( ( ( A  +  B )  / 
2 )  +  B
)  /  2 ) ) )
2019imp 418 . . . . . 6  |-  ( (
ph  /\  -.  (
( A  +  B
)  /  2 )  <  M )  ->  M  <  ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) )
21 ruc.1 . . . . . . . . 9  |-  ( ph  ->  F : NN --> RR )
22 ruc.2 . . . . . . . . 9  |-  ( 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
) >. ) ) )
23 ruclem1.6 . . . . . . . . 9  |-  X  =  ( 1st `  ( <. A ,  B >. D M ) )
24 ruclem1.7 . . . . . . . . 9  |-  Y  =  ( 2nd `  ( <. A ,  B >. D M ) )
2521, 22, 2, 3, 1, 23, 24ruclem1 12509 . . . . . . . 8  |-  ( 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 ) ) )
2625simp2d 968 . . . . . . 7  |-  ( ph  ->  X  =  if ( ( ( A  +  B )  /  2
)  <  M ,  A ,  ( (
( ( A  +  B )  /  2
)  +  B )  /  2 ) ) )
27 iffalse 3572 . . . . . . 7  |-  ( -.  ( ( A  +  B )  /  2
)  <  M  ->  if ( ( ( A  +  B )  / 
2 )  <  M ,  A ,  ( ( ( ( A  +  B )  /  2
)  +  B )  /  2 ) )  =  ( ( ( ( A  +  B
)  /  2 )  +  B )  / 
2 ) )
2826, 27sylan9eq 2335 . . . . . 6  |-  ( (
ph  /\  -.  (
( A  +  B
)  /  2 )  <  M )  ->  X  =  ( (
( ( A  +  B )  /  2
)  +  B )  /  2 ) )
2920, 28breqtrrd 4049 . . . . 5  |-  ( (
ph  /\  -.  (
( A  +  B
)  /  2 )  <  M )  ->  M  <  X )
3029ex 423 . . . 4  |-  ( ph  ->  ( -.  ( ( A  +  B )  /  2 )  < 
M  ->  M  <  X ) )
3130con1d 116 . . 3  |-  ( ph  ->  ( -.  M  < 
X  ->  ( ( A  +  B )  /  2 )  < 
M ) )
3225simp3d 969 . . . . . 6  |-  ( ph  ->  Y  =  if ( ( ( A  +  B )  /  2
)  <  M , 
( ( A  +  B )  /  2
) ,  B ) )
33 iftrue 3571 . . . . . 6  |-  ( ( ( A  +  B
)  /  2 )  <  M  ->  if ( ( ( A  +  B )  / 
2 )  <  M ,  ( ( A  +  B )  / 
2 ) ,  B
)  =  ( ( A  +  B )  /  2 ) )
3432, 33sylan9eq 2335 . . . . 5  |-  ( (
ph  /\  ( ( A  +  B )  /  2 )  < 
M )  ->  Y  =  ( ( A  +  B )  / 
2 ) )
35 simpr 447 . . . . 5  |-  ( (
ph  /\  ( ( A  +  B )  /  2 )  < 
M )  ->  (
( A  +  B
)  /  2 )  <  M )
3634, 35eqbrtrd 4043 . . . 4  |-  ( (
ph  /\  ( ( A  +  B )  /  2 )  < 
M )  ->  Y  <  M )
3736ex 423 . . 3  |-  ( ph  ->  ( ( ( A  +  B )  / 
2 )  <  M  ->  Y  <  M ) )
3831, 37syld 40 . 2  |-  ( ph  ->  ( -.  M  < 
X  ->  Y  <  M ) )
3938orrd 367 1  |-  ( ph  ->  ( M  <  X  \/  Y  <  M ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 176    \/ wo 357    /\ wa 358    = wceq 1623    e. wcel 1684   [_csb 3081   ifcif 3565   <.cop 3643   class class class wbr 4023    X. cxp 4687   -->wf 5251   ` cfv 5255  (class class class)co 5858    e. cmpt2 5860   1stc1st 6120   2ndc2nd 6121   RRcr 8736    + caddc 8740    < clt 8867    <_ cle 8868    / cdiv 9423   NNcn 9746   2c2 9795
This theorem is referenced by:  ruclem12  12519
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  df-rmo 2551  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-br 4024  df-opab 4078  df-mpt 4079  df-id 4309  df-po 4314  df-so 4315  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-1st 6122  df-2nd 6123  df-riota 6304  df-er 6660  df-en 6864  df-dom 6865  df-sdom 6866  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-div 9424  df-2 9804
  Copyright terms: Public domain W3C validator