Proceedings

Type Inference in Prolog and Its Application

Download BibTeX Cite

Proceedings of the Ninth International Joint Conference on Artificial Intelligence. Logic Programming. Pages 704-706.

© 1985 International Joint Conferences on Artificial Intelligence

Abstract

In this paper we present a type inference method for Prolog programs. The new idea ia to describe a superset of the succeas set by aasociating a type subatitution (an anignment of sets of ground terma to variables) with each head of definite clause. Thia approach not only conforms to the style of definition inherent to Prolog but also givea aome accuracy to the types infered. We show the baaic computation method of the superset by sequential approximation aa weil aa an incremental method to utilize already obtained reaults. We also show its application to verification of Prolog programs.

  1. Apt,K.R. and M.H.van Emden, •contribution to the Theory ofLogic Programming",J.ACM, Vol.29,No.3,pp 841-862,1982.
  2. Boyer,R.S. and J.S.Moore, •A Computational Logic• ,Chap. 6., Academic Press,l979.
  3. Bruynooghe,M., •Adding Redundancy to Obtain More Reliable and More Readable Prolog Programs•, Proc.lst International Logic Programming Conference,pp.129-133,1982.
  4. van Emden,M.H. and R .A.Kowalski, •The Semantics of Predicate Logic as Programing Language• ,J.ACM,Vol.23,No.4, pp.733-742,1976.
  5. Kanamori,T., •verill.cation. of Prolog Programs Using An Extension of Execution• ,ICOT TR-096,1984.
  6. Kanamori, T .and H.Fujita, •rormulation of Induction Formu- las in Verill.cation of Prolog Programs• ,ICOT TR-094,1984.
  7. Kanamori,T.and K.Horiuchi, •Type lnference in Prolog and Its Applications• ,ICOT TR-095,1984.
  8. Mishra,P .,-Towards a Theory of Types in Prolog" ,Proc. 1984 International Symposium on Logic Programming,pp.289- 298,1984.
  9. Mycroft,R.and R.A.O'Keefe, •A Polymorphie Type System for Prolog", Artill.cial Intelligence 23,pp.295-307,1984.
  10. Pereira,L.M.,F .C.N .Pereira and D.H.D.Warren, •user's Guide to DECsystem-10 Prolog", Occational Paper 15,Dept.of Artiflcial lntelligence, Edinburgh,1979.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards