Inda Kreso1. 1. Sarajevo School of Science and Technology, Sarajevo, Bosnia and Herzegovina.
Abstract
INTRODUCTION: Quantifier Elimination gives us perfect insight into the most basic world of the computer, its origin, its primer functions and it basic operations. Carefully designed and programmed Algorithm for Quantifier Elimination makes the quantifier elimination from the quantified formulas much easier and much more comprehensive. AIM: This paper explains how Quantifier Elimination algorithm can be used in the field of Biology, or to be more specific, in the field of Epidemiology. MATERIAL AND METHODS: Exemplary formulas needed for the algorithm are all the formulas from the Mathematical Logic field. JavaScript programming language was used in order to program fast and effective algorithm for Quantifier Elimination. RESULTS: Solving the certain problems from the field of Epidemiology using the Quantifier Elimination method, proved to be very successful in the past, because it made possible for the results to be extracted very fast. Doing the exact thing using the newer generation algorithm might be even more effective. CONCLUSION: The most basic concepts of Mathematical Logic can be implemented in order to solve the one of the most important questions in Epidemiology.
INTRODUCTION: Quantifier Elimination gives us perfect insight into the most basic world of the computer, its origin, its primer functions and it basic operations. Carefully designed and programmed Algorithm for Quantifier Elimination makes the quantifier elimination from the quantified formulas much easier and much more comprehensive. AIM: This paper explains how Quantifier Elimination algorithm can be used in the field of Biology, or to be more specific, in the field of Epidemiology. MATERIAL AND METHODS: Exemplary formulas needed for the algorithm are all the formulas from the Mathematical Logic field. JavaScript programming language was used in order to program fast and effective algorithm for Quantifier Elimination. RESULTS: Solving the certain problems from the field of Epidemiology using the Quantifier Elimination method, proved to be very successful in the past, because it made possible for the results to be extracted very fast. Doing the exact thing using the newer generation algorithm might be even more effective. CONCLUSION: The most basic concepts of Mathematical Logic can be implemented in order to solve the one of the most important questions in Epidemiology.
The discipline of Mathematical Logic was invented in the first half of the 20th century by a huge number of amazing mathematicians such as Frege, Hilbert, Gödel, Turing, Tarski, Malce and many others (1). The development of this mathematical field is without a doubt one of the highest achievements and successes of science in the 20th century because it presented logical reasoning and computability to high-developed analysis, and eventually led to the creation of computers (2-8).To be more specific, Mathematical Logic is used for the formalization of the semantics of various programming languages and for verifying the correctness of the programs. Quantifier Elimination is one of the most interesting topics that Mathematical Logic explores (2).Even though Quantifier Elimination is a method that comes from the world of the computers, its biggest application is actually in the world of Epidemiology. In the world of Epidemiology, one of the most important information is about the dynamics of certain disease (3). Quantifier Elimination method together with the JavaScript algorithm can provide these information very quickly.
MATERIAL AND METHODS
The main difficulty encountered in the process of programming the Quantifier Elimination algorithm was actually the limitation of the JavaScript programming language. Since the JavaScript is web-oriented programming language, it does not support some of the functions that can be easily found in the Mathlab or Mathematica programming languages. Unfortunately, some of the functions that are implemented in the Mathematica programming language are not implemented in JavaScript programming language, and that is why very challenging to program this algorithm in JavaScript programming language.The functions that were not implemented in the JavaScript language are written step by step in order to do the exact same thing as the ones that are already implemented in Mathematica programming language. In order to implement all the function needed, the extensive math library math.js was used.The JavaScript version of the algorithm has some constraints. These constraints are the results of the differences in these two programming languages: JavaScript and Mathematica. The JavaScript version of the algorithm works on the predefined range of numbers form -100 to 100. This is range that was set at the beginning and it can be changed to be bigger, but it cannot be infinite as it is the case with the Mathematica version of the algorithm. Since the algorithm is based on the Boolean functions, the final result is TRUE or FALSE. In general, quantifier elimination method tends to decide when a sentence from the theory is true, and then to computer the quantifier free formula (new formula without the quantifiers that is equivalent with the one with the quantifiers). The complete code of the JavaScript algorithm can be found in the Appendix.
RESULTS
According to Maric et al. (4) the change of quantitative behavior of parameterized system differential equations that are encountered in the epidemiology, are represented by the rational functions of the parameters. Form the computational point of view, there was a difficulty with solving the following question: if one rational function equal to 1, does that mean that the other rational function is less than zero for all parameters (4). The traditional algebra was not able to solve this question, but if this question is defined as a first order formula, then it can be solved using the quantifier elimination method (5).The basic problem in the field of epidemiology is to gather the biggest amount of information regarding the dynamics of the certain disease (6). The most important parameter in the epidemiology is the basic reproduction number that is represented by: This number represents average number of secondary infections generated by one case, and automatically the expression that describes the dynamics of the disease is given: if the average number of secondary infections is smaller than 1 (), then the disease will most certainly die out, and in the other case, when the average number of secondary infections is bigger than 1 (), then the epidemic will be expected. The main problem according to (7) is to represent a formula for the total population that depends on. In order to that, there has to be a epidemic model of a certain disease. The population is usually divided into three groups: susceptible infected and treated infected All the parameters that influence all of three groups can be represented by the non-linear differential equations. After the range of mathematical operations, this first formula can be formulated as a quantified formula, as it was suggested at the beginning of this section. According to Chauvin C. et al. (4) Quantifier Elimination method is used in order to solve this problem, and it proves to be really quickly, but with the JavaScript algorithm is tends to be even more faster than with the previous method.The epidemic model that was descried earlier can be expressed using the non-linear differential equations of the form:Legend: X_i-susceptibles , Y_(i )– infected, V_i -treated infected μ-natural mortality rate, γ_1 and γ_2- the portion of the whole population going into the high and low part of the population, ρ_1 λ-force of infection, δ-disease induced mortality rate, N_0-stable, population in absence of infection, τ-rate of getting treatedThe complete mathematical calculations can be found in the article under the name: “An application of Quantifier Elimination to Mathematical Biology” by Corinne Chauvin, Myriam Mueller and Andreas Weber (4). The complete mathematical calculations will not be included in this paper, because the focus is not mainly on mathematical point of view, rather on the computer science point of view. The quantified formula of the result of solving the non-linear system of differential equations is the following one:After the formula without quantifiers is obtained, the JavaScript algorithm can be implemented directly on the formula in order to get the needed result.
DISCUSSION
In the filed of a Predicate logic there exist two quantifiers: universal and existential (6). A universal quantification is a type of the quantifier that is interpreted as “given any” or “for all”. It means that every member of the domain can satisfy a propositional function. Furthermore, it also means that a predicate within the scope of a universal quantifier is true for every value of a predicate variable (7).It is denoted by, which is combined with a predicate variable in order to form a universal quantifier:.Example:The following example is the example for the usage of the universal quantifier. Suppose that is given: For all natural numbers n, 2 · n = n + n. This first part: for all natural numbers is actually universal quantifier.2 · 0 = 0 + 0 and 2 · 1 = 1 + 1 and 2 · 2 = 2 + 2 …|It can be seen that for every number the rule is the same (11).The second quantifier is called an existential quantifier (9, 10). In predicate logic, an existential quantification is a type of quantifier, a logical constant that is interpreted as “there exists,” “there is at least one”. It means that at least one member of the domain can satisfy a propositional function. It proposes that a predicate within the scope of an existential quantifier is true for at least one value of a variable (11, 12). It is denoted by the symbol , which is combined with a predicate variable in order to form an existential quantifier: Quantifier elimination is an idea of simplification that is widely used in many fields such as: mathematical logic, theoretical computer science and many more (9). Quantifier elimination is the main technique that is used to eliminate quantifiers from the formulas (10). Formulas can be classified by the amount of the quantifiers they have, and the formulas that have less quantifiers are considered to be simpler ones. Suppose it is given language L and a set A of the formulas in L. Set A allows quantifier elimination in the formula F of the language L if there exists a formula without quantifies such that (2). In other words quantifier elimination can be performed if for every formula there exists another formula that has no quantifiers and it is equivalent to the formula with quantifier (2).
CONCLUSION
Since the Quantifier Elimination algorithm has proven to be one of the basic tools that can be used in the field of Mathematical Logic, it is not surprising that this same tool found its broad application in the other sciences such as Computer Science and Biology. This paper presents the great overview how basic concepts of Mathematical Logic can be turned into a highly comprehensive and web-oriented algorithm programmed in one of the world’s most popular programming language JavaScript, and then be used in order to solve the one of the most important problems in Epidemiology (9).