Higher-order Horn clauses

Gopalan Nadathur, Dale Miller

Journal of the ACM · 1990 · 74 citations · 25 references

DOIFull text

Open access

Concepts

TL;DR

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.

Abstract

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.

References

25