Saltar para:
Logótipo
Você está em: Início > Publicações > Visualização > A structured alternative to Prolog with simple compositional semantics
Mapa das Instalações
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

A structured alternative to Prolog with simple compositional semantics

Título
A structured alternative to Prolog with simple compositional semantics
Tipo
Artigo em Revista Científica Internacional
Ano
2011
Autores
Antonio Porto
(Autor)
FCUP
Ver página pessoal Sem permissões para visualizar e-mail institucional Pesquisar Publicações do Participante Ver página do Authenticus Sem ORCID
Revista
Vol. 11
Páginas: 611-627
ISSN: 1471-0684
Indexação
Classificação Científica
FOS: Ciências exactas e naturais > Ciências da computação e da informação
Outras Informações
ID Authenticus: 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.
Idioma: Inglês
Tipo (Avaliação Docente): Científica
Nº de páginas: 17
Documentos
Não foi encontrado nenhum documento associado à publicação.
Publicações Relacionadas

Dos mesmos autores

PPDP (2009)
Outras Publicações
António Porto; Francisco Javier López Fraguas
COORDINATION (2000)
Outras Publicações
António Porto; Gruia Catalin Roman
Epilog: A Language for Extended Programming in Logic (1984)
Capítulo ou Parte de Livro
António Porto
SEMANTICS OF PROPERTY INHERITANCE IN A HIERARCHICAL SYSTEM WITH EXPLICIT NEGATION (1991)
Artigo em Revista Científica Internacional
DAVID, G; PORTO, A

Ver todas (26)

Da mesma revista

Introduction to the 33rd international conference on logic programming special issue (2017)
Outra Publicação em Revista Científica Internacional
Ricardo Rocha; Son, TC
Introduction to the 28th international conference on logic programming special issue (2012)
Outra Publicação em Revista Científica Internacional
AGOSTINO DOVIER; VÃTOR SANTOS COSTA
Towards multi-threaded local tabling using a common table space (2012)
Artigo em Revista Científica Internacional
Miguel Areias; Ricardo Rocha
Threads and or-parallelism unified (2010)
Artigo em Revista Científica Internacional
Ines Dutra; Ricardo Rocha
The YAP Prolog system (2012)
Artigo em Revista Científica Internacional
Vitor Santos Costa; Ricardo Rocha; Luis Damas

Ver todas (20)

Recomendar Página Voltar ao Topo
Copyright 1996-2024 © Faculdade de Ciências da Universidade do Porto  I Termos e Condições  I Acessibilidade  I Índice A-Z  I Livro de Visitas
Última actualização: 2016-03-23 I  Página gerada em: 2024-08-22 às 15:48:13 | Política de Utilização Aceitável | Política de Proteção de Dados Pessoais | Denúncias