]> matita.cs.unibo.it Git - helm.git/blob - RefLemma.ma
9503e78c139b8b8d21492f1961d51b7705f22631
[helm.git] / RefLemma.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 (* This file was automatically generated: do not edit *********************)
16
17 set "baseuri" "cic:/matita/CoRN-Decl/ftc/RefLemma".
18
19 include "CoRN.ma".
20
21 (* $Id: RefLemma.v,v 1.7 2004/04/23 10:01:00 lcf Exp $ *)
22
23 include "ftc/RefSeparating.ma".
24
25 include "ftc/RefSeparated.ma".
26
27 include "ftc/RefSepRef.ma".
28
29 (* UNEXPORTED
30 Section Refinement_Lemma.
31 *)
32
33 (*#* *The Refinement Lemmas
34
35 Here we resume the results proved in four different files.  The aim is to prove the following result (last part of Theorem 2.9 of Bishop 1967):
36
37 %\noindent\textbf{%#<b>#Theorem#</b>#%}% Let [f] be a continuous function on a
38 compact interval [[a,b]] with modulus of continuity%\footnote{%# (#From our
39 point of view, the modulus of continuity is simply the proof that [f] is
40 continuous.#)#%}% [omega].
41 Let [P] be a partition of [[a,b]] and [eps [>] Zero] be such that
42 [mesh(P)  [<]  omega(eps)].
43 Then
44 %\[\left|S(f,P)-\int_a^bf(x)dx\right|\leq\varepsilon(b-a),\]%#|S(f,P)-&int;f(x)dx|&le;&epsilon;(b-a)#
45 where [S(f,P)] denotes any sum of the function [f] respecting the partition
46 [P] (as previously defined).
47
48 The proof of this theorem relies on the fact that for any two partitions [P]
49 and [R] of [[a,b]] it is possible to define a partition [Q] which is
50 ``almost'' a common refinement of [P] and [R]---that is, given [eps [>] Zero]
51 it is possible to define [Q] such that for every point [x] of either [P] or
52 [R] there is a point [y] of [Q] such that [|x[-]y|  [<]  eps].
53 This requires three separate constructions (done in three separate files)
54 which are then properly combined to give the final result.  We recommend the
55 reader to ignore this technical constructions.
56
57 First we prove that if [P] and [R] are both
58 separated (though not necessarily separated from each other) then we can
59 define a partition [P'] arbitrarily close to [P] (that is, such that given
60 [alpha [>] Zero] and [xi [>] Zero] [P'] satisfies both
61 [mesh(P')  [<]  mesh(P) [+] xi] and for every choice of points [x_i] respecting
62 [P] there is a choice of points [x'_i] respecting [P'] such that
63 [|S(f,P)-S(f,P')|  [<]  alpha]) that is separated from [R].
64
65 Then we prove that given any partition [P]
66 and assuming [a  [#]  b] we can define a partition [P'] arbitrarily close to
67 [P] (in the same sense as above) which is separated.
68
69 Finally we prove that every two separated
70 partitions [P] and [R] have a common refinement---as every two points in [P]
71 and [R] are apart, we can decide which one is smaller.  We use here the
72 technical results about ordering that we proved in the file [IntegralLemmas.v].
73
74 Using the results from these files, we prove our main lemma in several steps
75 (and versions).
76
77 %\begin{convention}% Throughout this section:
78  - [a,b:IR] and [I] denotes [[a,b]];
79  - [F] is a partial function continuous in [I].
80
81 %\end{convention}%
82 *)
83
84 inline "cic:/CoRN/ftc/RefLemma/a.var".
85
86 inline "cic:/CoRN/ftc/RefLemma/b.var".
87
88 inline "cic:/CoRN/ftc/RefLemma/Hab.var".
89
90 (* begin hide *)
91
92 inline "cic:/CoRN/ftc/RefLemma/I.con".
93
94 (* end hide *)
95
96 inline "cic:/CoRN/ftc/RefLemma/F.var".
97
98 inline "cic:/CoRN/ftc/RefLemma/contF.var".
99
100 inline "cic:/CoRN/ftc/RefLemma/incF.var".
101
102 (* begin hide *)
103
104 inline "cic:/CoRN/ftc/RefLemma/contF'.con".
105
106 (* end hide *)
107
108 (* UNEXPORTED
109 Section First_Refinement_Lemma.
110 *)
111
112 (*#*
113 This is the first part of the proof of Theorem 2.9.
114
115 %\begin{convention}%
116  - [P, Q] are partitions of [I] with, respectively, [n] and [m] points;
117  - [Q] is a refinement of [P];
118  - [e] is a positive real number;
119  - [d] is the modulus of continuity of [F] for [e];
120  - the mesh of [P] is less or equal to [d];
121  - [fP] and [fQ] are choices of points respecting the partitions [P] and [Q],
122 respectively.
123
124 %\end{convention}%
125 *)
126
127 inline "cic:/CoRN/ftc/RefLemma/e.var".
128
129 inline "cic:/CoRN/ftc/RefLemma/He.var".
130
131 (* begin hide *)
132
133 inline "cic:/CoRN/ftc/RefLemma/d.con".
134
135 (* end hide *)
136
137 inline "cic:/CoRN/ftc/RefLemma/m.var".
138
139 inline "cic:/CoRN/ftc/RefLemma/n.var".
140
141 inline "cic:/CoRN/ftc/RefLemma/P.var".
142
143 inline "cic:/CoRN/ftc/RefLemma/HMesh.var".
144
145 inline "cic:/CoRN/ftc/RefLemma/Q.var".
146
147 inline "cic:/CoRN/ftc/RefLemma/Href.var".
148
149 inline "cic:/CoRN/ftc/RefLemma/fP.var".
150
151 inline "cic:/CoRN/ftc/RefLemma/HfP.var".
152
153 inline "cic:/CoRN/ftc/RefLemma/HfP'.var".
154
155 inline "cic:/CoRN/ftc/RefLemma/fQ.var".
156
157 inline "cic:/CoRN/ftc/RefLemma/HfQ.var".
158
159 inline "cic:/CoRN/ftc/RefLemma/HfQ'.var".
160
161 (* begin hide *)
162
163 inline "cic:/CoRN/ftc/RefLemma/sub.con".
164
165 inline "cic:/CoRN/ftc/RefLemma/RL_sub_0.con".
166
167 inline "cic:/CoRN/ftc/RefLemma/RL_sub_n.con".
168
169 inline "cic:/CoRN/ftc/RefLemma/RL_sub_mon.con".
170
171 inline "cic:/CoRN/ftc/RefLemma/RL_sub_mon'.con".
172
173 inline "cic:/CoRN/ftc/RefLemma/RL_sub_hyp.con".
174
175 inline "cic:/CoRN/ftc/RefLemma/RL_sub_S.con".
176
177 inline "cic:/CoRN/ftc/RefLemma/H.con".
178
179 inline "cic:/CoRN/ftc/RefLemma/H'.con".
180
181 inline "cic:/CoRN/ftc/RefLemma/H0.con".
182
183 inline "cic:/CoRN/ftc/RefLemma/RL_sub_SS.con".
184
185 inline "cic:/CoRN/ftc/RefLemma/RL_h.con".
186
187 inline "cic:/CoRN/ftc/RefLemma/RL_g.con".
188
189 (* NOTATION
190 Notation g := RL_g.
191 *)
192
193 (* NOTATION
194 Notation h := RL_h.
195 *)
196
197 inline "cic:/CoRN/ftc/RefLemma/ref_calc1.con".
198
199 (* NOTATION
200 Notation just1 := (incF _ (Pts_part_lemma _ _ _ _ _ _ HfP _ _)).
201 *)
202
203 (* NOTATION
204 Notation just2 := (incF _ (Pts_part_lemma _ _ _ _ _ _ HfQ _ _)).
205 *)
206
207 inline "cic:/CoRN/ftc/RefLemma/ref_calc2.con".
208
209 inline "cic:/CoRN/ftc/RefLemma/ref_calc3.con".
210
211 inline "cic:/CoRN/ftc/RefLemma/ref_calc4.con".
212
213 inline "cic:/CoRN/ftc/RefLemma/ref_calc5.con".
214
215 inline "cic:/CoRN/ftc/RefLemma/ref_calc6.con".
216
217 inline "cic:/CoRN/ftc/RefLemma/ref_calc7.con".
218
219 inline "cic:/CoRN/ftc/RefLemma/ref_calc8.con".
220
221 (* end hide *)
222
223 inline "cic:/CoRN/ftc/RefLemma/first_refinement_lemma.con".
224
225 (* UNEXPORTED
226 End First_Refinement_Lemma.
227 *)
228
229 (* UNEXPORTED
230 Section Second_Refinement_Lemma.
231 *)
232
233 (*#*
234 This is inequality (2.6.7).
235
236 %\begin{convention}%
237  - [P, Q, R] are partitions of [I] with, respectively, [j, n] and [k] points;
238  - [Q] is a common refinement of [P] and [R];
239  - [e, e'] are positive real numbers;
240  - [d, d'] are the moduli of continuity of [F] for [e, e'];
241  - the Mesh of [P] is less or equal to [d];
242  - the Mesh of [R] is less or equal to [d'];
243  - [fP, fQ] and [fR] are choices of points respecting the partitions [P, Q]
244 and [R], respectively.
245
246 %\end{convention}%
247 *)
248
249 inline "cic:/CoRN/ftc/RefLemma/n.var".
250
251 inline "cic:/CoRN/ftc/RefLemma/j.var".
252
253 inline "cic:/CoRN/ftc/RefLemma/k.var".
254
255 inline "cic:/CoRN/ftc/RefLemma/P.var".
256
257 inline "cic:/CoRN/ftc/RefLemma/Q.var".
258
259 inline "cic:/CoRN/ftc/RefLemma/R.var".
260
261 inline "cic:/CoRN/ftc/RefLemma/HrefP.var".
262
263 inline "cic:/CoRN/ftc/RefLemma/HrefR.var".
264
265 inline "cic:/CoRN/ftc/RefLemma/e.var".
266
267 inline "cic:/CoRN/ftc/RefLemma/e'.var".
268
269 inline "cic:/CoRN/ftc/RefLemma/He.var".
270
271 inline "cic:/CoRN/ftc/RefLemma/He'.var".
272
273 (* begin hide *)
274
275 inline "cic:/CoRN/ftc/RefLemma/d.con".
276
277 inline "cic:/CoRN/ftc/RefLemma/d'.con".
278
279 (* end hide *)
280
281 inline "cic:/CoRN/ftc/RefLemma/HMeshP.var".
282
283 inline "cic:/CoRN/ftc/RefLemma/HMeshR.var".
284
285 inline "cic:/CoRN/ftc/RefLemma/fP.var".
286
287 inline "cic:/CoRN/ftc/RefLemma/HfP.var".
288
289 inline "cic:/CoRN/ftc/RefLemma/HfP'.var".
290
291 inline "cic:/CoRN/ftc/RefLemma/fR.var".
292
293 inline "cic:/CoRN/ftc/RefLemma/HfR.var".
294
295 inline "cic:/CoRN/ftc/RefLemma/HfR'.var".
296
297 inline "cic:/CoRN/ftc/RefLemma/second_refinement_lemma.con".
298
299 (* UNEXPORTED
300 End Second_Refinement_Lemma.
301 *)
302
303 (* UNEXPORTED
304 Section Third_Refinement_Lemma.
305 *)
306
307 (*#*
308 This is an approximation of inequality (2.6.7), but without assuming the existence of a common refinement of [P] and [R].
309
310 %\begin{convention}%
311  - [P, R] are partitions of [I] with, respectively, [n] and [m] points;
312  - [e, e'] are positive real numbers;
313  - [d, d'] are the moduli of continuity of [F] for [e, e'];
314  - the Mesh of [P] is less than [d];
315  - the Mesh of [R] is less than [d'];
316  - [fP] and [fR] are choices of points respecting the partitions [P] and [R],
317 respectively;
318  - [beta] is a positive real number.
319
320 %\end{convention}%
321 *)
322
323 inline "cic:/CoRN/ftc/RefLemma/n.var".
324
325 inline "cic:/CoRN/ftc/RefLemma/m.var".
326
327 inline "cic:/CoRN/ftc/RefLemma/P.var".
328
329 inline "cic:/CoRN/ftc/RefLemma/R.var".
330
331 inline "cic:/CoRN/ftc/RefLemma/e.var".
332
333 inline "cic:/CoRN/ftc/RefLemma/e'.var".
334
335 inline "cic:/CoRN/ftc/RefLemma/He.var".
336
337 inline "cic:/CoRN/ftc/RefLemma/He'.var".
338
339 (* begin hide *)
340
341 inline "cic:/CoRN/ftc/RefLemma/d.con".
342
343 inline "cic:/CoRN/ftc/RefLemma/d'.con".
344
345 (* end hide *)
346
347 inline "cic:/CoRN/ftc/RefLemma/HMeshP.var".
348
349 inline "cic:/CoRN/ftc/RefLemma/HMeshR.var".
350
351 inline "cic:/CoRN/ftc/RefLemma/fP.var".
352
353 inline "cic:/CoRN/ftc/RefLemma/HfP.var".
354
355 inline "cic:/CoRN/ftc/RefLemma/HfP'.var".
356
357 inline "cic:/CoRN/ftc/RefLemma/fR.var".
358
359 inline "cic:/CoRN/ftc/RefLemma/HfR.var".
360
361 inline "cic:/CoRN/ftc/RefLemma/HfR'.var".
362
363 inline "cic:/CoRN/ftc/RefLemma/Hab'.var".
364
365 inline "cic:/CoRN/ftc/RefLemma/beta.var".
366
367 inline "cic:/CoRN/ftc/RefLemma/Hbeta.var".
368
369 (* begin hide *)
370
371 inline "cic:/CoRN/ftc/RefLemma/alpha.con".
372
373 inline "cic:/CoRN/ftc/RefLemma/RL_alpha.con".
374
375 inline "cic:/CoRN/ftc/RefLemma/csi1.con".
376
377 inline "cic:/CoRN/ftc/RefLemma/RL_csi1.con".
378
379 inline "cic:/CoRN/ftc/RefLemma/delta1.con".
380
381 inline "cic:/CoRN/ftc/RefLemma/RL_delta1.con".
382
383 inline "cic:/CoRN/ftc/RefLemma/P'.con".
384
385 inline "cic:/CoRN/ftc/RefLemma/RL_P'_sep.con".
386
387 inline "cic:/CoRN/ftc/RefLemma/RL_P'_Mesh.con".
388
389 inline "cic:/CoRN/ftc/RefLemma/fP'.con".
390
391 inline "cic:/CoRN/ftc/RefLemma/RL_fP'_in_P'.con".
392
393 inline "cic:/CoRN/ftc/RefLemma/RL_P'_P_sum.con".
394
395 inline "cic:/CoRN/ftc/RefLemma/csi2.con".
396
397 inline "cic:/CoRN/ftc/RefLemma/RL_csi2.con".
398
399 inline "cic:/CoRN/ftc/RefLemma/delta2.con".
400
401 inline "cic:/CoRN/ftc/RefLemma/RL_delta2.con".
402
403 inline "cic:/CoRN/ftc/RefLemma/R'.con".
404
405 inline "cic:/CoRN/ftc/RefLemma/RL_R'_sep.con".
406
407 inline "cic:/CoRN/ftc/RefLemma/RL_R'_Mesh.con".
408
409 inline "cic:/CoRN/ftc/RefLemma/fR'.con".
410
411 inline "cic:/CoRN/ftc/RefLemma/RL_fR'_in_R'.con".
412
413 inline "cic:/CoRN/ftc/RefLemma/RL_R'_R_sum.con".
414
415 inline "cic:/CoRN/ftc/RefLemma/csi3.con".
416
417 inline "cic:/CoRN/ftc/RefLemma/RL_csi3.con".
418
419 inline "cic:/CoRN/ftc/RefLemma/Q.con".
420
421 inline "cic:/CoRN/ftc/RefLemma/RL_Q_Mesh.con".
422
423 inline "cic:/CoRN/ftc/RefLemma/RL_Q_sep.con".
424
425 inline "cic:/CoRN/ftc/RefLemma/fQ.con".
426
427 inline "cic:/CoRN/ftc/RefLemma/RL_fQ_in_Q.con".
428
429 inline "cic:/CoRN/ftc/RefLemma/RL_Q_P'_sum.con".
430
431 (* end hide *)
432
433 inline "cic:/CoRN/ftc/RefLemma/third_refinement_lemma.con".
434
435 (* UNEXPORTED
436 End Third_Refinement_Lemma.
437 *)
438
439 (* UNEXPORTED
440 Section Fourth_Refinement_Lemma.
441 *)
442
443 (* begin hide *)
444
445 inline "cic:/CoRN/ftc/RefLemma/Fa.con".
446
447 (* NOTATION
448 Notation just := (fun z => incF _ (Pts_part_lemma _ _ _ _ _ _ z _ _)).
449 *)
450
451 inline "cic:/CoRN/ftc/RefLemma/RL_sum_lemma_aux.con".
452
453 (* end hide *)
454
455 (*#*
456 Finally, this is inequality (2.6.7) exactly as stated (same conventions as
457 above)
458 *)
459
460 inline "cic:/CoRN/ftc/RefLemma/n.var".
461
462 inline "cic:/CoRN/ftc/RefLemma/m.var".
463
464 inline "cic:/CoRN/ftc/RefLemma/P.var".
465
466 inline "cic:/CoRN/ftc/RefLemma/R.var".
467
468 inline "cic:/CoRN/ftc/RefLemma/e.var".
469
470 inline "cic:/CoRN/ftc/RefLemma/e'.var".
471
472 inline "cic:/CoRN/ftc/RefLemma/He.var".
473
474 inline "cic:/CoRN/ftc/RefLemma/He'.var".
475
476 (* begin hide *)
477
478 inline "cic:/CoRN/ftc/RefLemma/d.con".
479
480 inline "cic:/CoRN/ftc/RefLemma/d'.con".
481
482 (* end hide *)
483
484 inline "cic:/CoRN/ftc/RefLemma/HMeshP.var".
485
486 inline "cic:/CoRN/ftc/RefLemma/HMeshR.var".
487
488 inline "cic:/CoRN/ftc/RefLemma/fP.var".
489
490 inline "cic:/CoRN/ftc/RefLemma/HfP.var".
491
492 inline "cic:/CoRN/ftc/RefLemma/HfP'.var".
493
494 inline "cic:/CoRN/ftc/RefLemma/fR.var".
495
496 inline "cic:/CoRN/ftc/RefLemma/HfR.var".
497
498 inline "cic:/CoRN/ftc/RefLemma/HfR'.var".
499
500 (* begin show *)
501
502 inline "cic:/CoRN/ftc/RefLemma/Hab'.var".
503
504 (* end show *)
505
506 inline "cic:/CoRN/ftc/RefLemma/fourth_refinement_lemma.con".
507
508 (* UNEXPORTED
509 End Fourth_Refinement_Lemma.
510 *)
511
512 (* UNEXPORTED
513 Section Main_Refinement_Lemma.
514 *)
515
516 (*#* We finish by presenting Theorem 9. *)
517
518 inline "cic:/CoRN/ftc/RefLemma/n.var".
519
520 inline "cic:/CoRN/ftc/RefLemma/m.var".
521
522 inline "cic:/CoRN/ftc/RefLemma/P.var".
523
524 inline "cic:/CoRN/ftc/RefLemma/R.var".
525
526 inline "cic:/CoRN/ftc/RefLemma/e.var".
527
528 inline "cic:/CoRN/ftc/RefLemma/e'.var".
529
530 inline "cic:/CoRN/ftc/RefLemma/He.var".
531
532 inline "cic:/CoRN/ftc/RefLemma/He'.var".
533
534 (* begin hide *)
535
536 inline "cic:/CoRN/ftc/RefLemma/d.con".
537
538 inline "cic:/CoRN/ftc/RefLemma/d'.con".
539
540 (* end hide *)
541
542 inline "cic:/CoRN/ftc/RefLemma/HMeshP.var".
543
544 inline "cic:/CoRN/ftc/RefLemma/HMeshR.var".
545
546 inline "cic:/CoRN/ftc/RefLemma/fP.var".
547
548 inline "cic:/CoRN/ftc/RefLemma/HfP.var".
549
550 inline "cic:/CoRN/ftc/RefLemma/HfP'.var".
551
552 inline "cic:/CoRN/ftc/RefLemma/fR.var".
553
554 inline "cic:/CoRN/ftc/RefLemma/HfR.var".
555
556 inline "cic:/CoRN/ftc/RefLemma/HfR'.var".
557
558 inline "cic:/CoRN/ftc/RefLemma/refinement_lemma.con".
559
560 (* UNEXPORTED
561 End Main_Refinement_Lemma.
562 *)
563
564 (* UNEXPORTED
565 End Refinement_Lemma.
566 *)
567