12 2008 Ab90 the Function F is Continuous on the Closed Interval

  • Journal List
  • Nature Public Health Emergency Collection
  • PMC7340941

Mathematical Software – ICMS 2020. 2020 Jun 6; 12097: 272–280.

A Formalization of Properties of Continuous Functions on Closed Intervals

Guest Editor (s): Anna Maria Bigatti,8 Jacques Carette,9 James H. Davenport,10 Michael Joswig,11 and Timo de Wolff12

8Dipartimento di Matematica, Università degli Studi di Genova, Genova, Genova Italy

9Computing and Software, McMaster University, Hamilton, ON Canada

10Department of Computer Science, University of Bath, Bath, UK

11Institut für Mathematik, MA 6-2, TU Berlin, Berlin, Germany

12Technische Universität Braunschweig, Braunschweig, Germany

Yaoshun Fu

Beijing Key Laboratory of Space-Ground Interconnection and Convergence School of Electronic Engineering, Beijing University of Posts and Telecommunications, Beijing, 100876 China

Wensheng Yu

Beijing Key Laboratory of Space-Ground Interconnection and Convergence School of Electronic Engineering, Beijing University of Posts and Telecommunications, Beijing, 100876 China

Abstract

Formal mathematics is getting increasing attention in mathematics and computer science. In particular, the formalization of calculus has important applications in engineering design and analysis. In this paper, we present a formal proof of some fundamental theorems of continuous functions on closed intervals based on the Coq proof assistant. In this formalization, we build a real number system referring to Landau's Foundations of Analysis. Then we complete the formalization of the basic definitions of interval, function, and limit and formally prove the theorems including completeness theorem, intermediate value theorem, uniform continuity theorem and others in Coq. The proof process is normalized, rigorous and reliable.

Keywords: Coq, Formalization, Limits, Continuous functions, Closed intervals

Introduction

Analysis is one of the greatest achievements in the history of mathematics. The achievement opens a new era of mathematical progress and plays an important role in development of physics, astronomy, signal processing and other disciplines. Analysis which evolved from calculus is a branch of mathematics that studies limits and related theories [12].

At the end of the 19th century, mathematicians deduced many properties of continuous functions on closed intervals, which undoubtedly promoted the development of analytical theory. There are some important properties of continuous functions on closed intervals including Weierstrass second theorem: Boundedness theorem, Weierstrass first theorem: Extreme value theorem, Bolzano-Cauchy second theorem: Intermediate value theorem, Cantor theorem: Uniform continuity theorem.

Bolzano's Function Theory gives the earliest proofs of the Boundedness theorem and the Extreme value theorem (but published some 100 years later) [15], and Weierstrass proved the Extreme value theorem in Berlin lecture. The Intermediate value theorem was first proved in 1817 by Bolzano, and then Cauchy [7] gave a proof in 1821. The definition of uniform continuity is proposed by Heine, and he published a proof of the Uniform continuity theorem.

With the further research of limits by mathematicians, the establishment of a rigorous and complete system of real numbers theory has become a key issue. In 1872, three major real numbers theories appeared in Germany: Dedekind cut theory, Cantor-Henie-Meray "basic sequence" theory, and Weierstrass "bounded monotone sequence" theory. Among them, the Dedekind cut is particularly recognized, and it is called the creation of human intelligence that does not rely on the intuitiveness of space and time. Then Peano established a natural number theory through a set of axioms, thereby solving the core problems of rational number theory and also the basic problems of real number theory.

In recent years, with the rapid development of computer science, especially the emergence of proof assistant Coq, Isabelle and HOL Light and so on [2, 4, 8, 10, 14, 17], formal proof of mathematical theorems has made great progress. In 2005, the international computer experts Gonthier and Werner provided the formal proof in Coq of the famous "four-color theorem" successfully [5]. After years of hard work, Gonthier again achieved the machine proof in Coq of the "odd order theorem" in 2012 [6]. Those progress make Coq more and more popular in academia. Wiedijk pointed out that relevant research teams around the world have completed or plan to formalize the proof of theorems such as Gödel's first incompleteness theorem, Jordan curve theorem, Prime theorem and Fermat last theorem of a hundred well-known mathematical theorems [17].

Based on "Real number theory" formal system, we formalize the properties of continuous functions on closed intervals. Moreover, we give formal proofs of these theorems, which include the Boundedness theorem, the Extreme value theorem, the Intermediate value theorem, the Uniform continuity theorem. It should be noted that the properties of continuous functions on closed intervals is an important theorem in analysis.

The structure of this article is as follows: In Sect. 2, we introduce the "real number theory" machine proof system. In Sect. 3, we present the formal definition of the function limit and related properties. In Sect. 4, we discuss the machine proof of the properties of continuous functions on closed intervals in detail, which are derived by supremum theorem. In Sect. 5, we draw conclusions and discuss some potential further work.

Real Number Theory System

Before formally proving the properties of continuous functions on closed intervals, we first need to build a formal system of real number theory. van Benthem Jutting [1] completed the formalization in Automath of Landau's "Foundations of Analysis", which was a significant early progress in formal mathematics. Harrison [9] presents formalized real numbers and differential calculus on his HOL Light system. The definition of real numbers in Coq standard library uses the axiomatic way, and based on this, excellent real analysis library Coquelicot [3] has been established. This library accomplishes many achievements, but its definition of real number is non-constructive. Hornung [11] completed the first four chapters of the "Foundations of Analysis" in Coq, which is closed related to our work, however our system is closer to the expression of Landau and more readable. We also completed the complex number part and proved equivalence between eight completeness theorems of real number.

There are several ways to define natural numbers in Coq. Based on Morse-Kelley axiomatic set theory, it is designed to give quickly and naturally a foundation for mathematics, and meanwhile deduce the Peano axioms as theorems [16, 18]. If we start from the more higher type rather than set theory, we can formalize straight Peano axioms as follows:

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figa_HTML.jpg

Based on this, we can use "Parameter" and "Axiom" to define natural number related functions such as addition and multiplication. This way is intuitive but not elegant. The natural numbers defined by "Inductive" can recursively define natural number related functions.

Landau's "Foundations of Analysis" [13] is based on naive set theory and some basic logic. Starting from the Peano axioms, natural numbers (positive integers), fractions (positive), rational numbers/integer (positive) are defined in order. The real number, defined by Dedekind cut, defines complex numbers through real numbers for constructing systematically the whole number system theory. We have completed the Coq formalization of the system, and the complete source is available online:

https://github.com/coderfys/analysis/

In this system, we can prove Dedekind fundamental theorem, and derive Supremum theorem. The proof details are not described, and the formalization is as follows.

Dedekind Fundamental Theorem

Divide all real numbers into two classes, so that the first class and second class are not empty, and each number in the first class is less than each number in the second class. Then there is a unique real number E, so that any number less than E belongs to the first class, and any number greater than E belongs to the second class.

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figb_HTML.jpg

Supremum Theorem

If a non-empty real number set has a upper bound, then there must be a least bound (the Supremum as an example).

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figc_HTML.jpg

Basic Definitions and Properties

The formal definition of functions in this system is as follows:

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figd_HTML.jpg

Related definitions of function continuity:

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Fige_HTML.jpg

The function f(x) is continuous at one point implying that

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figf_HTML.jpg

The function f(x) is continuous (left, right) at a point, then the function f(x) is locally bounded at this point (take right continuous for example):

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figg_HTML.jpg

In this real number system, division function requires three parameters, and the third of which is the proof that the second is not 0. Therefore, the "NoO_N" above means " equation M1 ".

The function f(x) is continuous on [a,b], then equation M2 is continuous on [a,b]. The function f(x) is continuous on [a,b] and is not everywhere 0, then equation M3 is continuous on (take equation M4 as an example).

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figh_HTML.jpg

Properties of Continuous Functions on Closed Intervals

Continuous functions have four fundamental properties on closed intervals: Boundedness theorem (Weierstrass second theorem), Extreme value theorem (Weierstrass first theorem), Intermediate value theorem (Bolzano-Cauchy second theorem), Uniform continuity theorem (Cantor theorem). These theorems are the basis of mathematical analysis and the direct expression of real number theory in functions. Our formalizations rely on a logical axiom law of excluded middle.

Theorem 1

Boundedness theorem: A continuous function on a closed interval must be bounded on that interval.

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figi_HTML.jpg

First, we prove a lemma L1: if f(x) is continuous on [a,b], then some neighborhood of z is bounded for any equation M5 . The notation " equation M6 " below represents equation M7 in mathematics.

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figj_HTML.jpg

Upper bound: Construct a real number set equation M8 has an upper bound on equation M9 . The formal definition is as follows:

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figk_HTML.jpg

As f(x) is right continuous at the point a, there exists equation M10 , and f(x) has an upper bound on equation M11 , when equation M12 proves the proposition. When equation M13 , R is not empty. On the other hand, b is an upper bound of R obviously, so R has supremum equation M14 , and equation M15 .

Case 1( equation M16 ): According to Lemma L1, there exists equation M17 , and f(x) has an upper bound on equation M18 . The proposition is proved when equation M19 . When equation M20 , there is equation M21 , which contradicts equation M22 is the supremum of R.

Case 2( equation M23 ): The proposition is proved because of equation M24 .

Lower bound: According to the lemma Pr_fun1, it can be deduced that equation M25 is continuous on [a,b]. From Theorem T1, we know that equation M26 has the upper bound "up", then "-up" is the lower bound of f(x) on [a,b].

Theorem 2

Extreme value theorem: The continuous function on the closed interval must achieve the maximum and minimum values in this interval.

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figl_HTML.jpg

Maximum value: Construct a real number set equation M27 . The formal definition is as follows:

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figm_HTML.jpg

Obviously, R is not empty and we can deduce R has an upper bound by T1, hence R has a supremum M. If there exists equation M28 and equation M29 , the proposition is proved. Otherwise, equation M30 for any equation M31 . Construct a new function equation M32 . Since equation M33 for any equation M34 [a, b], so g(x) is continuous on [a,b] by Pr_fun2. From T1, g(x) has an supremum K on [a,b], and equation M35 . After derivation, equation M36 is the upper bound of f(x) on [a,b], which contradicts M is the supremum of R.

Minimum value: According to the lemma Pr_fun1, it can be deduced that equation M37 is continuous on [a,b]. From Theorem T2, we know that equation M38 has a maximum value "max", then "-max" is the minimum value of f(x) on [a,b].

Theorem 3

Intermediate value theorem: If equation M39 , then for any real number C between f(a), f(b), at least one point c on (a,b) satisfies f (c) = C.

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Fign_HTML.jpg

First, we prove a lemma L3: if f(x) is left continuous at point b, equation M40 and equation M41 , then there is z between a,b, satisfies equation M42 .

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figo_HTML.jpg

equation M43 : Construct a real number set equation M44 for any x in equation M45 . The formal definition is as follows:

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figp_HTML.jpg

equation M46 : f(x) is right continuous at point a, then there exists equation M47 , and equation M48 in equation M49 , which can be deduced equation M50 . equation M51 when equation M52 and equation M53 when equation M54 . In summary, R is not empty and b is an upper bound of R, so R has a supremum equation M55 , and equation M56 . When equation M57 , it can deduce contradiction according to Pr_supremum and L3. Therefore equation M58 .

Case 1( equation M59 ): Because f(x) is continuous at point equation M60 , by Pr_FunDot there is equation M61 , and equation M62 for any equation M63 , which can be deduced equation M64 . Further, we can conclude that equation M65 which contradicts equation M66 is the supremum of R.

Case 2( equation M67 ): f(x) is continuous at point equation M68 , hence f(x) is left continuous at point equation M69 . By L3 there must exist equation M70 and equation M71 , so z is the upper bound of R, which contradicts equation M72 is the supremum of R.

equation M73 : Refer to T1', T2' proof.

Theorem 4

Uniform continuity theorem: A function is continuous on a closed interval then the function is uniformly continuous on that interval.

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figq_HTML.jpg

Let f(x) be continuous on [a,b], fix any equation M74 . we construct a real number set equation M75 and equation M76 when equation M77 and equation M78 . The formal definition is as follows:

An external file that holds a picture, illustration, etc.  Object name is 495991_1_En_27_Figr_HTML.jpg

Because f(x) is right continuous at point a, there must exists equation M79 , and equation M80 for any equation M81 . Let equation M82 , we prove that equation M83 . Obviously, b is an upper bound of R, So R has a supremum equation M84 and equation M85 . As f(x) is continuous at point equation M86 , there exists equation M87 , and equation M88 for any equation M89 . Further, we can deduce equation M90 for any equation M91 . Therefore, equation M92 for any equation M93 and equation M94 .

Case 1( equation M95 ): When equation M96 , the proposition is proved due to the arbitrariness of equation M97 . When equation M98 , we further prove equation M99 , which contradicts equation M100 is the supremum of R.

Case 2( equation M101 ): equation M102 , the proposition is proved by the arbitrariness of equation M103 .

Conclusion

This paper formalizes limits, continuous functions and related theorems. These theorems include Boundedness theorem, Extreme value theorem, Intermediate value theorem, and Uniform continuity theorem. We have completed their formal proofs based on the real number theory system developed by ourselves. In the future, we will formalize more theorems of continuous functions and make meaningful attempts for formal work in the fields of real analysis and complex analysis. We are grateful to the anonymous reviewers, whose comments much helped to improve the presentation of the research in this article.

Footnotes

This research is supported by National Natural Science Foundation (NNSF) of China under Grant 61936008, 61571064.

Contributor Information

Anna Maria Bigatti, ti.eginu.amid@ittagib.

Jacques Carette, ac.retsamcm@etterac.

James H. Davenport, ku.ca.htab@tropnevad.h.j.

Michael Joswig, ed.nilreb-ut.htam@giwsoj.

Timo de Wolff, ed.giewhcsnuarb-ut@fflow-ed.t.

Yaoshun Fu, nc.ude.tpub@syuf.

Wensheng Yu, nc.ude.tpub@uysw.

References

1. van Benthem Jutting LS. Checking Landau's "Grundlagen" in the AUTOMATH System. Amsterdam: North-Holland; 1994. [Google Scholar]

2. Bertot Y, Castéran P. Interactive Theorem Proving and Program Development: Coq'Art: The Calculus of Inductive Constructions. Heidelberg: Spring-Verlag; 2004. [Google Scholar]

3. Boldo S, Lelay C, Melquiond G. Coquelicot: a user-friendly library of real analysis for Coq. Math. Comput. Sci. 2015;9(1):41–62. doi: 10.1007/s11786-014-0181-1. [CrossRef] [Google Scholar]

4. Chlipala A. Certified Programming with Dependent Types: A Pragmatic Introduction to the Coq Proof Assistant. Cambridge: MIT Press; 2013. [Google Scholar]

5. Gonthier G. Formal proof-the four-color theorem. Notices AMS. 2008;55(11):1382–1393. [Google Scholar]

6. Gonthier G, et al. A machine-checked proof of the odd order theorem. In: Blazy S, Paulin-Mohring C, Pichardie D, et al., editors. Interactive Theorem Proving; Heidelberg: Springer; 2013. pp. 163–179. [Google Scholar]

7. Grabiner JV. Who gave you the epsilon? Cauchy and the origins of rigorous calculus. Am. Math. Mon. 1983;90(3):185–194. doi: 10.1080/00029890.1983.11971185. [CrossRef] [Google Scholar]

8. Hales TC. Formal proof. Notices AMS. 2008;55(11):1370–1380. [Google Scholar]

9. Harrison J. Theorem Proving with the Real Numbers. Heidelberg: Springer; 1994. [Google Scholar]

10. Harrison J. Formal proof—theory and practice. Notices AMS. 2008;55(11):1395–1406. [Google Scholar]

11. Hornung, C.: Constructing Number Systems in Coq. Saarland University, Saarbrücken (2011)

12. Katz VJ. A History of Mathematics. Boston: Pearson/Addison-Wesley; 2004. [Google Scholar]

13. Landau E. Foundations of Analysis: The Arithmetic of Whole, Rational, Irrational, and Complex Numbers. New York: Chelsea Publishing Company; 1966. [Google Scholar]

14. Nipkow T, Wenzel M, Paulson LC, editors. Isabelle/HOL; Heidelberg: Springer; 2002. [Google Scholar]

15. Rusnock P, Kerr-Lawson A. Bolzano and uniform continuity. Historia Mathematica. 2005;32(3):303–311. doi: 10.1016/j.hm.2004.11.003. [CrossRef] [Google Scholar]

16. Sun T, Yu W. A formal system of axiomatic set theory in Coq. IEEE Access. 2020;8:21510–21523. doi: 10.1109/ACCESS.2020.2969486. [CrossRef] [Google Scholar]

17. Wiedijk F. Formal proof-getting started. Notices AMS. 2008;55(11):1408–1414. [Google Scholar]

18. Yu W, Sun T, Fu Y. Machine Proof System of Axiomatic Set Theory. Beijing: Science Press; 2020. [Google Scholar]

dawsonwasonerecied.blogspot.com

Source: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7340941/

0 Response to "12 2008 Ab90 the Function F is Continuous on the Closed Interval"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel