A Non-Standard Temporal Deductive Database System

A Non-Standard Temporal Deductive Database System

View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector J. Symbolic Computation (1996) 22, 649–664 A Non-standard Temporal Deductive Database System JEAN-RAYMOND GAGNE† AND JOHN PLAICE† Departement d’informatique, Universite Laval, Ste-Foy (Quebec) Canada G1K 7P4 (Received 31 October 1995) A new temporal deductive database system supporting a non-standard model of time is introduced. It consists of Non-standard Temporal Datalog (nstl) and Non-standard Temporal Relational Algebra (nstra). The time line consists of non-standard reals that are of the form r, z , where r R and z Z , using the natural order. Each real r determines a macro-instant,h i and∈ each pair ∈r, z denes a micro-instant. The set of macro-instants forms a dense order, therebyh allowingi dierent relations to be valid at dierent moments, with independent rates of evolution. The micro-instants ensure that all intervals are closed, thereby simplifying the semantics. At the same time, it becomes possible to dene a discrete memory operator. The nstl language is an extension of Datalog in which the fact base is augmented with interval timestamps and in which rules are an extension of generalized Horn clauses that allow a memory operator “;” and allow timestamped atoms in the body. The nstra language is a pointwise extension of the relational algebra over the time line. To do this, three temporal operators are added to the relational algebra. c 1996 Academic Press Limited 1. Introduction One of the key problems in temporal database design has to do with the choice of domains for time. This problem, commonly referred to as the granularity of time, denes the kind of temporal information that can be stored in a database and the kinds of operations that can be applied to this information. Wiederhold. et al. (1991) showed that a temporal database can easily contain data based on dierent granularities (e.g., days, hours, picoseconds, etc.). As a result, they conclude that these dierent granularities can only be resolved by using a nest granu- larity, probably the real number line. Since the real numbers form a dense set, one can always dene a ner granularity if such is needed. However, databases are not just used for storing information, rather computations are eected on data therein. The order in which these computations takes place can be signicant, which means that the time line must be able to take them into account. A question therefore arises: What is the granularity for computation? If we take some † E-mail: [email protected], [email protected] 0747–7171/96/110649 + 16 $25.00/0 c 1996 Academic Press Limited 650 J.-R. Gagne and J. Plaice positive real-numbered value, then our model is no longer capable of dealing with arbi- trary granularity. So it would appear that the other possibility is zero. However, it then becomes dicult to distinguish dierent states within the same computation. The solution to this problem comes from non-standard analysis, invented by Newton and Leibniz in the seventeenth century and formalized by Robinson. (1974). What we need are positive innitesimal values that are strictly smaller than any positive real number, while still strictly greater than 0. This paper presents a non-standard temporal database system, in which the time line consists of non-standard reals (Nelson,. 1977; McLaughlin. and Miller, 1992; Robinson,. 1974),. which are, in this case, pairs r, z , where r R and z Z. This approach is compatible withh thati taken in∈ synchronous∈ languages, such as Es- terel (Boussinot. and De Simone, 1991), lustre (Halbwachs. et al., 1991) and signal (Le. Borgne et al., 1991), used for the programming of reactive systems. These languages assume that reactions to input events are instantaneous. Nevertheless, the ordering of computations within a single instant is of utmost importance. Similarly, work in hybrid systems, which combine continously changing variables with variables that change at discrete instants, makes similar suppositions. In fact, the non- standard approach that we rst took in the preliminary version of this paper (Gagn. eand Plaice,. 1995) has been independently developed by Iwasaki. et al. (1995) for the analysis of hybrid systems. Choosing our non-standard time line has many advantages. First, we get a dense set of macro-instants, which allows for the use of any granularity of time. Second, within each macro-instant, we have available a discrete set of micro-instants. In a certain sense, we have “discretized” the reals explicitly: the result is that all intervals are both open and closed, so we can refer to the “previous instant” and the “following instant”, without any ambiguity. Any other approach, using some positive real value as an approximation of innitesimal values, would truly create a discrete set, losing the dense property of the reals. The remaining question is how to combine or synchronize data based on unsynchro- nized granularities. It turns out that this problem has already been studied in the domain of synchronous languages. In particular, the authors are developing a language called Blizzard, using non-standard analysis, to furnish the semantics of reactive systems. Blizzard is a dataow language, where operators apply to operands in a pointwise manner, along with an additional memory operator, called before. These operators are used below to extend the temporal algebra into the nstra. To develop a deductive database system, we use Orgun and Wadge’s technique of combining an extension of Datalog (Orgun. and Wadge, 1992), nstl, with an extension of the temporal algebra, nstra. The basic extension in both formalisms is the addition of a memory operator, before in nstra and “;”innstl. It should be understood that none of the Blizzard operators can refer to the future, nor can they change the past. So, this approach is well suited to simulating real time, even though we are working with valid time databases. This paper presents nstl and nstra, along with their interaction. Section 2 describes the underlying time domain and Section 3 species the syntax of nstl formulae, Horn rules and programs. Their semantics are given in Section 4, using an appropriate adap- tation of the perfect-model approach (Przymusinski,. 1988). Section 5 shows that nstl programs are computable, by dening a revised version of the TP operator, used to com- pute a non-standard temporal Herbrand model of an nstl program. This model is proven A Non-standard Temporal Deductive Database System 651 in Section 6 to be the least one. Section 7 presents the Blizzard language, which is used in Section 8 to extend the relational algebra to nstra. The interaction between nstra and nstl is also given in this section. Finally, we present our conclusions. 2. Time Domain We begin by formalizing the concepts of macro-instant and micro-instant, along with the relationship between the two. These concepts, along with the others that are formal- ized below, are all summarized by Figure 1. Z Macro-instant 6 Micro-instant © p p p p p p p p p p p ©p p p pRelevant instant p p p p p p p p p p p p p p p p p p p p p p p p p p ©p p p p Now Start p p p p p p p p p p p p p p p @p p p p p p p p p p bp p p p ©p p @Rp p p p p p p bp p p p p p p - p p p p p p bp p p p p p p bp p R p qp p bp p p p p p p p p p p p p p p p p p p p p p p p bp p p Figurep p p p p 1.p pTimep p p p domain.p p p p Definition 2.1. The time domain is the set T = R Z, endowed with the natural lexicographic order. Each real r determines a macro-instant and each pair t = r, z , h i where r R and z Z, denes a micro-instant. The two components of r, z are accessed through∈ projection∈ functions and , such that r = r, z (the realh i part) R Z Rh i and z = Z r, z (the integer part).Amacro-instant r consists of all micro-instants whose real parth isi r. A time domain is only useful if an order can be imposed on that domain. The order we use is the natural lexicographical order. Definition 2.2. Let t0 = r0,z0 and t1 = r1,z1 be two micro-instants in T. Then h i h i t0 t1 if and only if r0 <r1 or r0 = r1 and z0 z1. Once we have an order, the denition for intervals follows automatically. Definition 2.3. Let t0 and t1 be micro-instants in T. Then [t0,t1] denes an interval over T: For all t T such that t0 t t1, we have t [t0,t1]. Any micro-instant t may also be written [t,∈ t]. An arbitrary interval is normally∈ written as . We are not interested in modeling all of eternity. Rather, in any given base, we are interested in a particular subset of the time line. Rather than using some special value 0, which gives the impression that at some point time was invented, we allow the use of arbitrarily dened starting and ending points. 652 J.-R. Gagne and J. Plaice Definition 2.4. The names start and now refer, respectively, to the rst and last micro- instants that are relevant to an application.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    16 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us