Nondeterminism in algebraic specifications and algebraic programs (Q5287526)

From MaRDI portal

!

This is the item page for this Wikibase entity, intended for internal use and editing purposes. Please use the normal view instead:

scientific article; zbMATH DE number 234027
Language Label Description Also known as
default for all languages
No label defined
    English
    Nondeterminism in algebraic specifications and algebraic programs
    scientific article; zbMATH DE number 234027

      Statements

      0 references
      9 July 1993
      0 references
      nondeterministic algebraic specification
      0 references
      models
      0 references
      logic programming
      0 references
      partiality
      0 references
      multi-algebra
      0 references
      Nondeterminism in algebraic specifications and algebraic programs (English)
      0 references
      Algebraic specifications are widely used to describe functions by (conditionally) equations. If the associated rewrite relation is both confluent and terminating, then the specification also defines an algorithm for computing the functions in the canonical term algebra and the denotational and the operational semantics of the specification coincide. The author tries to carry over the well-known techniques in this area to nondeterministic specifications. In order to model nondeterminism, the notion of a multi-algebra is used. Given a signature \(\text{sig}=(S,F)\), a sig-multi-algebra differs from a sig-algebra in that the function in a multi-algebra are set-valued. A nondeterministic specification over sig is a set \(R\) of inclusion rules \(s \to t\), where \(s\) and \(t\) are terms. A sig-multi-algebra \({\mathcal A}\) is a model of the specification if for each rule \(s \to t\) in \(R\) and any variable \({\mathcal A}\)-assignment \(\varphi\) the set \(S^{{\mathcal A},\varphi}\) of elements denoted by \(s\) is a super-set of \(t^{{\mathcal A},\varphi}\). This defines loose denotational semantics. The operational semantics for nondeterministic specifications is defined (in a first attempt) by the usual inference rules for unconditional specifications. It is then studied under which restrictions both semantics coincide. It turns out that one needs very hard restrictions. This is due to the fact that for rewriting ``run time choice'' and ``call time choice'' for parameter passing differ, in other words, for a substitution \(\sigma\) there is no control over the different elements in the set denoted by the term \(\sigma(x)\). In order to cope with this problem, the notions of a deterministic term and a DET-complete and a DET-additive specification are introduced. This allows one to prove some results on the soundness and the completeness of the (adjusted) inference system. In order to get a feeling of what can be specified in the framework presented in the book we define a function elem which returns for a given list \(l\) the set of the elements in \(l\): \[ \text{elem}(x.l) \to x \quad \text{elem} (x.l) \to \text{elem} (l). \] Such kind of problems frequently occur in practice. For example, they occur when elements of functional and logical programming are combined. It is shown in the book that the developed framework applies whenever \(R\) is a nondeterministic functional program on free constructors and \(R\) is formed according to the so-called constructor discipline. In this case the narrowing procedure for solving equations modulo \(R\) is (for a restricted class of goals) complete even if \(R\) is not required to be confluent. This fact can be used to prove some results on Horn clause programs and SLD-resolution. The book also contains a chapter on partiality of specified functions (á la \textit{M. Wirsing}, \textit{P. Pepper}, \textit{H. Partsch}, \textit{W. Dosch} and \textit{M. Broy} [Acta Inf. 20, 1-33 (1983; Zbl 0513.68015)]) and on communicating processes (á la \textit{M. Broy} [Inf. Control 61, 202- 246 (1984; Zbl 0591.68030)]).
      0 references

      Identifiers

      0 references
      0 references
      0 references
      0 references
      0 references
      0 references