Journal of the ACM · 1990 · 74 citations · 25 references
ComputingComputer ScienceLogicProgramming LanguagesTheory Of ComputationFirst-order LogicLogic ProgrammingPredicate LogicFirst-order Logic ProgrammingHigher-order LogicHigher-order Logic ProgrammingHigher-order UnificationHorn Clause LogicHorn ClausesReductionsUnification
The paper proposes a higher‑order generalization of Horn clauses to serve as a foundation for logic programming. Higher‑order Horn clauses are defined by replacing first‑order terms with simply typed λ‑terms and allowing quantification over functions and predicates, and a complete theorem‑proving procedure is presented that interweaves higher‑order unification with backchaining and goal reductions, generalizing SLD‑resolution. The study shows that predicate‑variable substitutions are tightly constrained, enabling higher‑order Horn clauses to specify computations like first‑order Horn clauses, and these results are implemented in the λProlog language.
A generalization of Horn clauses to a higher-order logic is described and examined as a basis for logic programming. In qualitative terms, these higher-order Horn clauses are obtained from the first-order ones by replacing first-order terms with simply typed λ-terms and by permitting quantification over all occurrences of function symbols and some occurrences of predicate symbols. Several proof-theoretic results concerning these extended clauses are presented. One result shows that although the substitutions for predicate variables can be quite complex in general, the substitutions necessary in the context of higher-order Horn clauses are tightly constrained. This observation is used to show that these higher-order formulas can specify computations in a fashion similar to first-order Horn clauses. A complete theorem-proving procedure is also described for the extension. This procedure is obtained by interweaving higher-order unification with backchaining and goal reductions, and constitutes a higher-order generalization of SLD-resolution. These results have a practical realization in the higher-order logic programming language called λProlog.
25
A theory of type polymorphism in programming
Robin Milner · Journal of Computer and System Sciences · 1978 · 2.2K citations · Full text
A formulation of the simple theory of types
Alonzo Church · Journal of Symbolic Logic · 1940 · 1.9K citations
The Semantics of Predicate Logic as a Programming Language
M. H. van Emden, Robert Kowalski · Journal of the ACM · 1976 · 1.5K citations · Full text
Humanities, Computer Science, Logic +16
Leon Sterling, Ehud Shapiro, Randy Garrett · IEEE Expert · 1987 · 1.1K citations