Abstract
The aim of this paper is twofold: to characterize contextual logic programs by means of metric semantics and to argue the usefulness of metric characterizations for formally reasoning about program properties.
A new denotationsl semantics of contextual logic programs is proposed. It is defined compositionally, without any help of any declarative paradigm and of any transition system. Following the lines of [7], it uses metric spaces rather than cpo’s and processes as semantic domains. It is shown to be well-suited to tackle extra-logical features and abstract enough for program analysis.
A methodology of program analysis is derived from the denotations] metric charaterization of programs. It is suggested that most program properties can be proved by using the equalities defining the denotational semantics and by using inductive reasoning. Properties of the computed answer substitutions can also be established by reasoning about the substitutions reported by the semantics. Those claims are argued through the study of the universal termination property of several classical procedures.
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
K.R. Apt and M. Bezem. Acyclic Programs. In D.H.D. Warren and P. Szeredi, editors, Proc. 7 th Int. Conf. on Logic Programming, pages 617–633, Jerusalem, Israel, 1990. The MIT Press.
K.R. Apt and D. Pedreschi. Studies in pure Prolog: termination. In J.W. Lloyd, editor, Symposium on Computational Logic, pages 150–176. Springer-Verlag, 1990.
K.R. Apt and D. Pedreschi. Proving Termination of General Prolog Programs. In T. Ito and A. Meyer, editors, Proceedings of the International Conference on Theoretical Aspects of Computer Software, volume 526 of Lecture Notes in Computer Science, pages 265–289. Springer-Verlag, 1991.
K.R. Apt and M.H. van Emden. Contributions to the theory of logic programming. Journal of ACM, 29(3):841–862, 1982.
M. Baudinet. Proving Termination Properties of Prolog Programs: a Semantic Approach. In Proc. 3 rd Symp. on Logic In Computer Science, pages 336–347, Edinburgh, Great-Britain, 1988. IEEE Computer Society Press.
M. Bezem. Characterizing Termination of Logic Programs with Level Mappings. In E.L. Lusk and R. Overbeek, editors, Proc. of the North American Conference on Logic Programming, pages 69–80, Cleveland, USA, 1989. The MIT Press.
J.W. deBakker and J.I. Zucker. Processes and the Denotational Semantics of Concurrency. Information and Control, 54:70–120, 1982.
Y. Deville. Logic Programming: Systematic Program Development. International Series in Logic Programming. Addison-Wesley, 1990.
R. Engelking. General Topology. Heldermann Verlag, 1989.
C.J. Hogger. Introduction to Logic Programming. Academic Press, 1984.
J.-M. Jacquet and L. Monteiro. Comparative Semantics for a Parallel Contextual Logic Programming Language. In S. Debray and M. Hermenegildo, editors, Proc. of the North American Conference on Logic Programming, pages 195–214, Austin, USA, 1990. The MIT Press.
J.W. Lloyd. Foundations of Logic Programming. Springer-Verlag, second edition, 1987.
L. Monteiro and A. Porto. Contextual Logic Programming. In G. Levi and M. Martelli, editors, Proc. 6 th Int. Conf. on Logic Programming, pages 284–302, Lisboa, 1989. The MIT Press.
C. Palamidessi, E. Marchiori, and K.R. Apt. Semantics and Proof Theory of First-Order Built-in’s of Prolog. Technical report, Centre for Mathematics and Computer Science (CWI), Amsterdam, The Netherlands, 1992. To appear.
L. Plümer. Termination Proofs for Logic Programs, volume 446 of Lecture Notes in Artificial Intelligence. Springer-Verlag, 1990.
R.K. Shyamasundar, M.R.K. Rao, and D. Kapur. Rewriting Concepts in the Study of Termination of Logic Programs. This volume.
J.D. Ullman and A. van Gelder. Efficient tests for top-down termination of logical rules. Journal of ACM, 35(2):345–373, 1988.
M.H. van Emden and R.A. Kowalski. The semantics of predicate logic as a programming language. Journal of ACM, 23(4):733–742, 1976.
T. Vasak and J. Potter. Characterization of Terminating Logic Programs. In Proc. 3 rd Symp. on Logic Programming, pages 140–147, Salt Lake City, USA, 1986. IEEE Computer Society Press.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1993 British Computer Society
About this paper
Cite this paper
Jacquet, JM. (1993). Metric Characterizations of Contextual Logic Programs. In: Broda, K. (eds) ALPUK92. Workshops in Computing. Springer, London. https://doi.org/10.1007/978-1-4471-3421-3_2
Download citation
DOI: https://doi.org/10.1007/978-1-4471-3421-3_2
Publisher Name: Springer, London
Print ISBN: 978-3-540-19783-6
Online ISBN: 978-1-4471-3421-3
eBook Packages: Springer Book Archive