Go to:
Logótipo
You are in:: Start > Publications > View > A structured alternative to Prolog with simple compositional semantics
Map of Premises
FC6 - Departamento de Ciência de Computadores FC5 - Edifício Central FC4 - Departamento de Biologia FC3 - Departamento de Física e Astronomia e Departamento GAOT FC2 - Departamento de Química e Bioquímica FC1 - Departamento de Matemática
Publication

A structured alternative to Prolog with simple compositional semantics

Title
A structured alternative to Prolog with simple compositional semantics
Type
Article in International Scientific Journal
Year
2011
Authors
Antonio Porto
(Author)
FCUP
View Personal Page You do not have permissions to view the institutional email. Search for Participant Publications View Authenticus page Without ORCID
Journal
Vol. 11
Pages: 611-627
ISSN: 1471-0684
Indexing
Scientific classification
FOS: Natural sciences > Computer and information sciences
Other information
Authenticus ID: P-002-Q2M
Abstract (EN): Prolog's very useful expressive power is not captured by traditional logic programming semantics, due mainly to the cut and goal and clause order. Several alternative semantics have been put forward, exposing operational details of the computation state. We propose instead to redesign Prolog around structured alternatives to the cut and clauses, keeping the expressive power and computation model but with a compositional denotational semantics over much simpler states-just variable bindings. This considerably eases reasoning about programs, by programmers and tools such as a partial evaluator, with safe unfolding of calls through predicate definitions. An if-then-else across clauses replaces most uses of the cut, but the cut's full power is achieved by an until construct. Disjunction, conjunction and until, along with unification, are the primitive goal types with a compositional semantics yielding sequences of variable-binding solutions. This extends to programs via the usual technique of a least fixpoint construction. A simple interpreter for Prolog in the alternative language, and a definition of until in Prolog, establish the identical expressive power of the two languages. Many useful control constructs are derivable from the primitives, and the semantic framework illuminates the discussion of alternative ones. The formalisation rests on a term language with variable abstraction as in the lambda-calculus. A clause is an abstraction on the call arguments, a continuation, and the local variables. It can be inclusive or exclusive, expressing a local case bound to a continuation by either a disjunction or an if-then-else. Clauses are open definitions, composed (and closed) with simple functional application (beta-reduction). This paves the way for a simple account of flexible module composition mechanisms. Cube, a concrete language with the exposed principles, has been implemented on top of a Prolog engine and successfully used to build large real-world applications.
Language: English
Type (Professor's evaluation): Scientific
No. of pages: 17
Documents
We could not find any documents associated to the publication.
Related Publications

Of the same authors

PPDP (2009)
Other Publications
António Porto; Francisco Javier López Fraguas
COORDINATION (2000)
Other Publications
António Porto; Gruia Catalin Roman
Epilog: A Language for Extended Programming in Logic (1984)
Chapter or Part of a Book
António Porto
SEMANTICS OF PROPERTY INHERITANCE IN A HIERARCHICAL SYSTEM WITH EXPLICIT NEGATION (1991)
Article in International Scientific Journal
DAVID, G; PORTO, A

See all (26)

Of the same journal

Introduction to the 33rd international conference on logic programming special issue (2017)
Another Publication in an International Scientific Journal
Ricardo Rocha; Son, TC
Introduction to the 28th international conference on logic programming special issue (2012)
Another Publication in an International Scientific Journal
AGOSTINO DOVIER; VÃTOR SANTOS COSTA
Towards multi-threaded local tabling using a common table space (2012)
Article in International Scientific Journal
Miguel Areias; Ricardo Rocha
Threads and or-parallelism unified (2010)
Article in International Scientific Journal
Ines Dutra; Ricardo Rocha
The YAP Prolog system (2012)
Article in International Scientific Journal
Vitor Santos Costa; Ricardo Rocha; Luis Damas

See all (20)

Recommend this page Top
Copyright 1996-2024 © Faculdade de Ciências da Universidade do Porto  I Terms and Conditions  I Acessibility  I Index A-Z  I Guest Book
Page created on: 2024-07-21 at 03:35:57 | Acceptable Use Policy | Data Protection Policy | Complaint Portal