Subject Reduction of Logic Programs as Proof-Theoretic Property.

作者: Pierre Deransart , Jan-Georg Smaus

DOI:

关键词: Mercury (programming language)GödelProgramming languageCalculusComputer scienceSubject reduction

摘要: We consider prescriptive type systems for logic programs (as in Godel or Mercury). In such systems, the typing is static, but it guarantees an operational property: if a program “well-typed”, then all derivations starting “well-typed” query are again “well-typed”. This property has been called subject reduction. show that this can also be phrased as of proof-theoretic semantics programs, thus abstracting from usual (top-down) semantics. view leads us to questioning condition which usually considered necessary reduction, namely head condition. It states each clause must have variant (and not proper instance) declared type. study more general conditions, reestablishing certain symmetry between heads and body atoms. The underlying idea derivation, terms should only unified their types unifiable. discuss possible implications our results.

参考文章(35)
Uday S. Reddy, T. L. Lakshman, Typed Prolog: A Semantic Reconstruction of the Mycroft-O'Keefe Type System. ISLP. pp. 202- 217 ,(1991)
Rodney W. Topor, Patricia M. Hill, A semantics for typed logic programs Types in Logic Programming. pp. 1- 62 ,(1992)
Pascale Louvet, Olivier Ridoux, Parametric polymorphism for typed Prolog and λProlog international symposium on programming language implementation and logic programming. pp. 47- 61 ,(1996) , 10.1007/3-540-61756-6_76
Frank Pfenning, Gopalan Nadathur, Types in Higher-Order Logic Programming ,(1992)
Christoph Beierle, Type Inferencing for Polymorphic Order-Sorted Logic Programs. international conference on lightning protection. pp. 765- 779 ,(1995)
Michael Hanus, Logic Programming with Type Specifications Types in Logic Programming. pp. 91- 140 ,(1992)
Patricia Hill, J. W. Lloyd, The Gödel Programming Language ,(1994)
Krzysztof R. Apt, On the Unification Free Prolog Programs mathematical foundations of computer science. pp. 1- 19 ,(1993) , 10.1007/3-540-57182-5_1
P. M. Hill, The Completion of Typed Logic Programs and SLDNF-Resolution international conference on logic programming. pp. 182- 193 ,(1993) , 10.1007/3-540-56944-8_52