HomeHome Metamath Proof Explorer < Previous   Next >
Related theorems
Unicode version

Theorem ruclem21 7481
Description: Lemma for ruc 7500. The value of our constructed function H when the value of the input function F does not lie between the previous values of G and H. This assignment to H just shrinks the interval between G and H by some arbitrary amount.
Hypotheses
Ref Expression
ruclem.0 |- F:NN-->RR
ruclem.1 |- C = ({<.1, <.((F` 1) + 1), ((F` 1) + 2)>.>.} u. (F |` (NN \ {1})))
ruclem.2 |- D = {<.<.x, y>., z>. | ((x e. (RR X. RR) /\ y e. RR) /\ z = if(((1st`
x) < y /\ y < (2nd` x)), <.(((2 x. y) + (2nd` x)) / 3), ((y + (2 x. (2nd` x))) / 3)>., <.(((2 x. (1st` x)) + (2nd`
x)) / 3), (((1st`
x) + (2 x. (2nd` x))) / 3)>.))}
ruclem.3 |- G = (1st o. (D seq1 C))
ruclem.4 |- H = (2nd o. (D seq1 C))
ruclem18.a |- A e. NN
Assertion
Ref Expression
ruclem21 |- (-. ((G` A) < (F` (A + 1)) /\ (F` (A + 1)) < (H` A)) -> (H` (A + 1)) = (((G` A) + (2 x. (H` A))) / 3))
Distinct variable groups:   x,y,z   z,F

Proof of Theorem ruclem21
StepHypRef Expression
1 iffalse 2363 . . . 4 |- (-. ((G` A) < (F` (A + 1)) /\ (F` (A + 1)) < (H` A)) -> if(((G` A) < (F` (A + 1)) /\ (F` (A + 1)) < (H` A)), <.(((2 x. (F` (A + 1))) + (H` A)) / 3), (((F` (A + 1)) + (2 x. (H` A))) / 3)>., <.(((2 x. (G` A)) + (H` A)) / 3), (((G` A) + (2 x. (H` A))) / 3)>.) = <.(((2 x. (G` A)) + (H` A)) / 3), (((G` A) + (2 x. (H` A))) / 3)>.)
2 ruclem.0 . . . . 5 |- F:NN-->RR
3 ruclem.1 . . . . 5 |- C = ({<.1, <.((F` 1) + 1), ((F` 1) + 2)>.>.} u. (F |` (NN \ {1})))
4 ruclem.2 . . . . 5 |- D = {<.<.x, y>., z>. | ((x e. (RR X. RR) /\ y e. RR) /\ z = if(((1st`
x) < y /\ y < (2nd` x)), <.(((2 x. y) + (2nd` x)) / 3), ((y + (2 x. (2nd` x))) / 3)>., <.(((2 x. (1st` x)) + (2nd`
x)) / 3), (((1st`
x) + (2 x. (2nd` x))) / 3)>.))}
5 ruclem.3 . . . . 5 |- G = (1st o. (D seq1 C))
6 ruclem.4 . . . . 5 |- H = (2nd o. (D seq1 C))
7 ruclem18.a . . . . 5 |- A e. NN
82, 3, 4, 5, 6, 7ruclem15 7475 . . . 4 |- ((D seq1 C)` (A + 1)) = if(((G` A) < (F` (A + 1)) /\ (F` (A + 1)) < (H` A)), <.(((2 x. (F` (A + 1))) + (H` A)) / 3), (((F` (A + 1)) + (2 x. (H` A))) / 3)>., <.(((2 x. (G` A)) + (H` A)) / 3), (((G` A) + (2 x. (H` A))) / 3)>.)
91, 8syl5eq 1516 . . 3 |- (-. ((G` A) < (F` (A + 1)) /\ (F` (A + 1)) < (H` A)) -> ((D seq1 C)` (A + 1)) = <.(((2 x. (G` A)) + (H` A)) / 3), (((G` A) + (2 x. (H` A))) / 3)>.)
109fveq2d 3719 . 2 |- (-. ((G` A) < (F` (A + 1)) /\ (F` (A + 1)) < (H` A)) -> (2nd` ((D seq1 C)` (A + 1))) = (2nd` <.(((2 x. (G` A)) + (H` A)) / 3), (((G` A) + (2 x. (H` A))) / 3)>.))
11 peano2nn 5891 . . . 4 |- (A e. NN -> (A + 1) e. NN)
127, 11ax-mp 7 . . 3 |- (A + 1) e. NN
134ruclem9 7469 . . 3 |- D e. V
142, 3ruclem5 7465 . . 3 |- C e. V
1512, 13, 14, 6ruclem11 7471 . 2 |- (2nd` ((D seq1 C)` (A + 1))) = (H` (A + 1))
16 oprex 3974 . . 3 |- (((2 x. (G` A)) + (H` A)) / 3) e. V
17 oprex 3974 . . 3 |- (((G` A) + (2 x. (H` A))) / 3) e. V
1816, 17op2nd 4076 . 2 |- (2nd` <.(((2 x. (G` A)) + (H` A)) / 3), (((G` A) + (2 x. (H` A))) / 3)>.) = (((G` A) + (2 x. (H` A))) / 3)
1910, 15, 183eqtr3g 1527 1 |- (-. ((G` A) < (F` (A + 1)) /\ (F` (A + 1)) < (H` A)) -> (H` (A + 1)) = (((G` A) + (2 x. (H` A))) / 3))
Colors of variables: wff set class
Syntax hints:  -. wn 2   -> wi 3   /\ wa 223   = wceq 954   e. wcel 956   \ cdif 2040   u. cun 2041  ifcif 2357  {csn 2405  <.cop 2407   class class class wbr 2614   X. cxp 3163   |` cres 3167   o. ccom 3169  -->wf 3173  ` cfv 3177  (class class class)co 3954  {copab2 3955  1stc1st 4067  2ndc2nd 4068  RRcr 5213  1c1 5215   + caddc 5217   x. cmul 5219   / cdiv 5274  NNcn 5276   < clt 5466  2c2 5916  3c3 5917   seq1 cseq1 6252
This theorem is referenced by:  ruclem24 7484  ruclem27 7487
This theorem was proved from axioms:  ax-1 4  ax-2 5  ax-3 6  ax-mp 7  ax-7 960  ax-gen 961  ax-8 962  ax-9 963  ax-10 964  ax-11 965  ax-12 966  ax-13 967  ax-14 968  ax-17 969  ax-4 971  ax-5o 973  ax-6o 976  ax-9o 1121  ax-10o 1138  ax-16 1208  ax-11o 1216  ax-ext 1457  ax-rep 2688  ax-sep 2698  ax-nul 2705  ax-pow 2737  ax-pr 2774  ax-un 2861  ax-inf2 4605
This theorem depends on definitions:  df-bi 147  df-or 224  df-an 225  df-3or 775  df-3an 776  df-ex 979  df-sb 1170  df-eu 1380  df-mo 1381  df-clab 1462  df-cleq 1467  df-clel 1470  df-ne 1584  df-nel 1585  df-ral 1646  df-rex 1647  df-reu 1648  df-rab 1649  df-v 1808  df-sbc 1938  df-csb 1998  df-dif 2045  df-un 2046  df-in 2047  df-ss 2049  df-pss 2051  df-nul 2277  df-if 2358  df-pw 2398  df-sn 2408  df-pr 2409  df-tp 2411  df-op 2412  df-uni 2499  df-int 2529  df-iun 2563  df-br 2615  df-opab 2662  df-tr 2676  df-eprel 2827  df-id 2830  df-po 2835  df-so 2845  df-fr 2912  df-we 2929  df-ord 2946  df-on 2947  df-lim 2948  df-suc 2949  df-om 3127  df-xp 3179  df-rel 3180  df-cnv 3181  df-co 3182  df-dm 3183  df-rn 3184  df-res 3185  df-ima 3186  df-fun 3187  df-fn 3188  df-f 3189  df-f1 3190  df-fo 3191  df-f1o 3192  df-fv 3193  df-rdg 3923  df-opr 3956  df-oprab 3957  df-1st 4069  df-2nd 4070  df-1o 4123  df-oadd 4125  df-omul 4126  df-er 4251  df-ec 4253  df-qs 4256  df-en 4357  df-dom 4358  df-sdom 4359  df-ni 4980  df-pli 4981  df-mi 4982  df-lti 4983  df-plpq 5015  df-mpq 5016  df-enq 5017  df-nq 5018  df-plq 5019  df-mq 5020  df-rq 5021  df-ltq 5022  df-1q 5023  df-np 5066  df-1p 5067  df-plp 5068  df-mp 5069  df-ltp 5070  df-plpr 5144  df-mpr 5145  df-enr 5146  df-nr 5147  df-plr 5148  df-mr 5149  df-ltr 5150  df-0r 5151  df-1r 5152  df-m1r 5153  df-c 5220  df-0 5221  df-1 5222  df-i 5223  df-r 5224  df-plus 5225  df-mul 5226  df-lt 5227  df-sub 5336  df-neg 5338  df-pnf 5467  df-mnf 5468  df-xr 5469  df-ltxr 5470  df-le 5471  df-div 5680  df-n 5881  df-2 5925  df-3 5926  df-n0 6055  df-z 6091  df-seq1 6253
Copyright terms: Public domain