Skip to main navigation Skip to search Skip to main content

Equation, sets, and reduction semantica for functional and logic programming

  • University of North Carolina at Chapel Hill

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

9 Scopus citations

Abstract

We present a framework for first-order functional and Horn-logic programming using rewrite rules and equations. A program in this framework is a set of rewrite rules followed by a set of equations that need to be solved. These rewrite rules are an extension of the rewrite rules found in non-canonical term-writing systems in that they permit conditions, expressed as a set of equations having logical variables, on the right-hand side of a rule. The reduction semantics of equations is given in terms of complete sets of solutions. An operational strategy which computes these solutions is given in terms of a new technique called object refinement. This semantics is also called the refinement semantics. Object refinement is a generalisation of the outermost reduction rule of functional languages and the unification rule of logic languages. Consistency and completeness theorems are presented in order to establish the equivalence of the reduction and refinement semantics. Since an equation may possess multiple solutions, a set construct is provided to collect these solutions. The resulting language, called EqL, is currently being implemented. Examples are used to illustrate the language constructs and their semantics. The relationship of these ideas to other closely related ideas, notably narrowing, is also discussed.

Original languageEnglish
Title of host publicationProceedings of the 1986 ACM Conference on LISP and Functional Programming, LFP 1986
PublisherAssociation for Computing Machinery, Inc
Pages320-331
Number of pages12
ISBN (Electronic)0897912004, 9780897912006
DOIs
StatePublished - Aug 8 1986
Event1986 ACM Conference on LISP and Functional Programming, LFP 1986 - Cambridge, United States
Duration: Aug 4 1986Aug 6 1986

Publication series

NameProceedings of the 1986 ACM Conference on LISP and Functional Programming, LFP 1986

Conference

Conference1986 ACM Conference on LISP and Functional Programming, LFP 1986
Country/TerritoryUnited States
CityCambridge
Period08/4/8608/6/86

Fingerprint

Dive into the research topics of 'Equation, sets, and reduction semantica for functional and logic programming'. Together they form a unique fingerprint.

Cite this