Abstract
In relational semantics, the input-output semantics of a program is a relation on its set of states. We generalize this in considering elements of Kleene algebras as semantical values. In a nondeterministic context, the demonic semantics is calculated by considering the worst behavior of the program. In this paper, we concentrate on while loops. Calculating the semantics of a loop is difficult, but showing the correctness of any candidate abstraction is much easier. For deterministic programs, Mills has described a checking method known as the while statement verification rule. A corresponding programming theorem for nondeterministic iterative constructs is proposed, proved and applied to an example. This theorem can be considered as a generalization of the while statement verification rule to nondeterministic loops.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
C. J. Aarts. Galois connections presented calculationally. Eindhoven University of Technology, Dept. of Mathematics and Computer Science, July 1992.
R. Back and J. von Wright. Refinement Calculus — A Systematic Introduction. Springer, 1998.
R. C. Backhouse et al. Fixed point calculus. Inform. Proc. Letters, 53:131–136, 1995.
R. C. Backhouse and J. van der Woude. Demonic operators and monotype factors. Mathematical Structures in Comput. Sci., 3(4):417–433, 1993.
R. Berghammer and H. Zierer. Relational algebraic semantics of deterministic and nondeterministic programs. Theoret. Comput. Sci., 43:123–147, 1986.
N. Boudriga, F. Elloumi, and A. Mili, On the lattice of specifications: Applications to a specification methodology. Formal Aspects of Computing, 4:544–571, 1992.
C. Brink, W. Kahl, and G. Schmidt (eds). Relational Methods in Computer Science. Springer, 1997.
J. H. Conway. Regular Algebra and Finite Machines. Chapman and Hall, London, 1971.
J. Desharnais, N. Belkhiter, S. B. M. Sghaier, F. Tchier, A. Jaoua, A. Mili, and N. Zaguia. Embedding a demonic semilattice in a relation algebra. Theoret. Comput. Sci., 149(2):333–360, 1995.
J. Desharnais and B. Möller. Characterizing functions in Kleene algebras. In J. Desharnais (ed.), Proc. 5th Seminar on Relational Methods in Computer Science (RelMiCS’5). Université Laval, Canada, pages 55–64, 2000.
D. Harel, D. Kozen, and J. Tiuryn. Dynamic Logic. Forthcoming book.
E. Hehner. Predicative programming, Parts I and II. CACM, 27:134–151, 1984.
D. Kozen. Kleene algebra with tests. ACM TOPLAS 19(3):427–443, 1997.
A. Mili, J. Desharnais, and F. Mili. Relational heuristics for the design of deterministic programs. Acta Inform., 24(3):239–276, 1987.
H. D. Mills. The new math of computer programming. CACM, 18(1):43–48, 1975.
H. D. Mills, V. R. Basili, J. D. Gannon and R. G. Hamlet. Principles of Computer Programming. A Mathematical Approach. Allyn and Bacon, Inc., 1987.
B. Möller. Typed Kleene algebras. Universität Augsburg, Institut für Informatik, Report, 1999
T. S. Norvell. Predicative semantics of loops. In R. S. Bird and L. Meertens (eds), Algorithmic Languages and Calculi, Chapman & Hall, 1997, pages 415–437.
G. Schmidt and T. Ströhlein. Relations and Graphs. EATCS Monographs in Computer Science, Springer-Verlag, Berlin, 1993.
E. Sekerinski. A calculus for predicative programming. Second International Conf. on the Mathematics of Program Construction. R. S. Bird, C. C. Morgan and J. C. P. Woodcock (eds), Oxford, June 1992, Lect. Notes in Comput. Sci., Vol. 669, Springer-Verlag, 1993.
F. Tchier. Sémantiques relationelles demoniaques et vérification de boucles non-déterministes. Ph.D. Thesis, Département de Mathématiques, Université Laval, Canada, 1996.
F. Tchier and J. Desharnais. Applying a generalization of a theorem of Mills to generalized looping structures. Colloquium Science and Engineering for Software Development, organized in the memory of Dr. Harlan D. Mills, and affiliated to the 21st International Conference on Software Engineering, Los Angeles, 18 May 1999, pages 31–38.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2000 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Desharnais, J., Möller, B., Tchier, F. (2000). Kleene under a Demonic Star. In: Rus, T. (eds) Algebraic Methodology and Software Technology. AMAST 2000. Lecture Notes in Computer Science, vol 1816. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45499-3_26
Download citation
DOI: https://doi.org/10.1007/3-540-45499-3_26
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-67530-3
Online ISBN: 978-3-540-45499-1
eBook Packages: Springer Book Archive