A Semantics for Logic Programs Based on Hereditary Harrop Formulas
نویسنده
چکیده
We present a semantic framework for logic programs based on first-order hereditary Harrop formulas. The denotational and operational semantics are defined in a uniform way by characterizing some basic algebraic operators, which are directly related to the syntactic structure of the language. This allows us to address problems such as the relation between the operational semantics and the denotational semantics, the existence of a denotation of hereditary Harrop programs and their properties of compositionality, correctness and minimality. We define also an abstract interpretation framework based on the abstract interpretation theory. With this approach, the abstract denotational definition, the transition system and goal-independent denotations are systematically derived from the concrete ones, by replacing the concrete semantic operators by their abstract optimal versions. An extension to the higher-order context is considered. The adaptation of the first-order semantic framework to the higher-order language allows us the study of new properties such as abstraction and types.
منابع مشابه
A Semantics for Logic Programs based on First Order Hereditary Harrop Formulas
The paper introduces a semantics for logic programs based on rst order hereditary Harrop formulas which are expressed in terms of intuitionistic derivations. The derivations are constructed by means of an intuitionistic proof procedure that constitutes the resolution mechanism of the language. The semantics of a program is a goal independent denotation which can be equivalently speciied by a de...
متن کاملA New Execution Model for the logic of hereditary Harrop formulas
The class of first-order Hereditary Harrop formulas (fohh) is a well-established extension of first-order Horn clauses. Its operational semantics is based on intuitionistic provability. We propose another operational semantics for fohh which is based on game semantics. This new semantics has several interesting aspects: in particular, it gives a logical status to the read predicate. keywords: i...
متن کاملFormalizing Two Fixed Point Semantics for HH(C)
The scheme HH(C) emerged as a double extension of traditional Logic Programming. On one hand, extending Horn logic to hereditary Harrop formulas (HH ), in order to improve the expressive power; on the other, incorporating constraints, in order to increase the efficiency. The behavior of such extended CLP programs was explained by means of a sequent calculus that, from every program and set of c...
متن کاملHigher-Order Logic Programming Languages with Constraints: A Semantics
A Kripke Semantics is defined for a higher-order logic programming language with constraints, based on Church’s Theory of Types and a generic constraint formalism. Our syntactic formal system, hoHH(C) (higher-order hereditary Harrop formulas with constraints), which extends λProlog’s logic, is shown sound and complete. A Kripke semantics for equational reasoning in the simply typed lambda-calcu...
متن کاملA Proposal for Modules in λProlog: Preliminary Draft
Higher-order hereditary Harrop formulas, the underlying logical foundation of λProlog [20], are more expressive than first-order Horn clauses, the logical foundation of Prolog. In particular, various forms of scoping and abstraction are supported by the logic of higher-order hereditary Harrop formulas while they are not supported by first-order Horn clauses. Various papers have argued that the ...
متن کامل