Abstract
Introducing nondeterministic operators in a conventional deterministic language gives rise to various semantic difficulties. One of the problems is that there has been no semantic domain that is wholly satisfactory for denoting nondeterministic programs.
In this paper, we propose an approach based on relational algebra. We divide the semantics of a nondeterministic program into two parts. The first part concerns the angelic aspect of programs and the second part concerns the demonic aspect of programs. Because each semantic function used in these parts is monotonic with respect to an ordering on relations, the existence of the fixed points of recursively defined nondeterministic programs is ensured.
Similar content being viewed by others
References
Backhouse, R. and Hoogendijk, P., “Elements of Relational Theory of Datatypes,”Lecture Notes in Computer Science, 755, 1993.
Backhouse, R. and Jaap van der Woude, “Demonic Operators and Monotype Factors,”Mathematical Structures in Computer Science, 3, 4, pp. 417–433, 1993.
Berghammer, R. and Zierer, H., “Relational Algebraic Semantics of Deterministic and Nondeterministic Programs,”Theoretical Computer Science, 43, pp. 123–147, 1986.
Broy, M., “A Theory for Nondeterminism, Parallelism, Communication and Concurrency,”Theoretical Computer Science, 45, pp. 1–61, 1986.
Broy, M. and Nelson, G., “Adding Fair Choice to Dijkstra’s Calculus,”Trans. Program. Lang. and Syst. ACM, 16, 3, pp. 924–938, 1994.
Dijkstra, E.W. and Scholten, C.S.,Predicate Calculus and Program Semantics, Springer-Verlag, Berlin, 1990.
Henk Doornbos, “A Relational Model of Programs without the Restriction to Egli-Milner-Monotone Constructs,” inProgramming Concepts, Methods and Calculi (E.-R. Olderog), North-Holland, pp. 363–384, 1994.
Hesselink, Wim H., “Angelic Termination in Dijkstra’s Calculus,”Lecture Notes in Computer Science, 947, 1995.
Hoare, C.A.R. and Jifeng He, “The Weakest Prespecification,”Fundamenta Informaticae, 9, pp. 51–84 and pp. 217–252, 1986.
Hughes, J. and O’Donnel, J., “Expressing and Reasoning about Non-Deterministic Functional Programs,” inProceeding of Glasgow Workshop on Functional Programming, Fraserburgh, Scotland, Springer-Verlag, August 1989.
McCarthy, J., “Towards a Mathematical Science of Computation,” inComputer Programming and Formal Systems (P. Braffort and D. Hirschberg, eds.), North-Holland, Amsterdam, pp. 33–70, 1963.
Sondergaard, H. and Sestoft, P., “Non-Determinism in Functional Languages,”The Computer Journal, 35, 5, pp. 514–523, October 1992.
Tarski, A., “On the Calculus of Relations,”Journal of Symbolic Logic, 6, 3, pp. 73–89, 1941.
Author information
Authors and Affiliations
Additional information
Liangwei Xu: His research interests are computational model, program transformation and derivation methodology. He received the B. E. degree from Shanghai Jiao Tong University in 1982 and the M.E. degree from University of Tokyo in 1992. He currently joins Mathematical Systems Institute Inc.
Masato Takeichi, Dr. Eng.: He is a Professor of Department of Mathematical Engineering. Graduate School of Engineering, University of Tokyo. His research interests are functional programming, language implementation and constructive algorithmics.
Hideya Iwasaki, Dr. Eng.: He is an Associate Professor of Faculty of Technology, Tokyo University of Agriculture and Technology. He received the M.E. degree in 1985, the Dr. Eng. degree in 1988 from University of Tokyo. His research interests are list processing languages, functional languages, parallel processing, and constructive algorithmics.
About this article
Cite this article
Xu, L., Takeichi, M. & Iwasaki, H. Relational semantics for locally nondeterministic programs. New Gener Comput 15, 339–361 (1997). https://doi.org/10.1007/BF03037950
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF03037950