Abstract
A simple and efficient way that the ideas of typing, modularisation and data abstraction can be realised in a logic programming framework, which also remains within the spirit of logic programming, is proposed here. A polymorphic type system with subtypes is presented and it is shown how it can form the basis for modular structure. The ideas are presented as an extension to PROLOG, which is taken as a practical representative of logic programming. Additionally, they have been implemented in a skeleton language on top of standard PROLOG.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
5. References
Berztiss, A. & S. Thatte. Specification and Implementation of Abstract Data Types. Advances in Computers, Vol.22, pp.295–353, 1983.
Clark, K. & S. Tarnlund. A first order theory of data and programs. Information Processing (IFIP) '77, North-Holland, pp.939–944, 1977.
Clocksin, W.F. & C.S. Mellish. Programming in Prolog. Springer-Verlag, 1981.
Cardelli L. & P. Wegner. On understanding Types, Data Abstraction and Polymorphism. Computing Surveys, Vol.17, No.4, December 1985, ACM, pp.471–522, 1986.
Dayantis George. Logic program derivation for a class of first-order logic relations. In: Proc. 10th IJCAI, Vol.1, pp.9–15, 1987.
Dayantis George. ‘Types, modularisation and abstraction in logic programming'. D.Phil. thesis, University of Sussex, May 1988.
Domolki, B. & P. Szeredi. Prolog in practice. Information Processing (IFIP) '83, North-Holland, pp. 627–636, 1983.
Furukawa, K., Nakajima, R. & A. Yonezawa. Modularization and Abstraction in Logic Programming. ICOT TR-022, 1983.
Goguen, J. & J. Meseguer. Equalities, types and generic modules for logic programming. In: de Groot, D. & E. Lindstrom (eds.). Logic Programming: Functions, Relations and Equations. Prentice-Hall, 1986.
Miller, D.A. A theory of modules for logic programming. Proc. 3d IEEE Symposium on Logic Programming, pp.448–462, 1986.
Mishra, P. Towards a theory of types in Prolog. Proc. 1st IEEE Symposium on Logic Programming, pp.289–298, 1984.
Mycroft, A. & R. O'Keefe. A polymorphic type system for Prolog. D.A.I. paper, No.211, Univ. of Edinburgh, 1983. Also in: Artificial Intelligence, Vol.23, No.3, pp.295–307, 1984.
Nait, Abdallah M. Procedures in Horn-clause programming. in: Shapiro, E. (ed.) Proceedings of Third International Conference on Logic Programming, London, July 1986, Lecture Notes in Computer Science, Vol. 225, Springer-Verlag, pp.433–447, 1986.
O'Keefe, R. Towards an algebra for constructing logic programs. Proc. 2nd IEEE Symposium on Logic Programming, pp.152–160, 1985.
Sannella, D.T. & L.A. Wallen. A calculus for the construction of modular Prolog programs. (To appear:) Proc. 4th IEEE Symposium on Logic Programming, 1987.
Smolka, G. Order-sorted Horn logic, semantics and deduction. Technical paper, FB Informatik, Kaiserslautern Univ., W.Germany, 1986.
Walther, C. A many-sorted calculus based on resolution and paramodulation. Proc. 8th IJCAI, pp.882–891, 1983.
Zaniolo, C. Object-oriented programming in Prolog. Proc. 1st IEEE Symposium on Logic Programming, pp.265–270, 1984.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1988 Akademie-Verlag Berlin
About this paper
Cite this paper
Dayantis, G. (1988). Types, modularisation and abstraction in logic programming. In: Grabowski, J., Lescanne, P., Wechler, W. (eds) Algebraic and Logic Programming. ALP 1988. Lecture Notes in Computer Science, vol 343. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-50667-5_64
Download citation
DOI: https://doi.org/10.1007/3-540-50667-5_64
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-50667-6
Online ISBN: 978-3-540-46063-3
eBook Packages: Springer Book Archive