We define a type structure for Horn clause logic, with tbe emphasis on the definition of the model theoretic semantic. The other issue which is faced in the paper is related to the static verification of type correctness. We define two operational semantics. The first one, which is shown to be equivalent to The Model Theoretic semantics, is defined in terms of dynamic type cheching. The second semantics which consists of static type cheecking and standard Horn clause operational semantics is shown to give a denotation (equivalent to the one defined by the model theoretic semantics) only to the set of statically cheeckable programs, a reasonable subset of the set of type correct programs. An interesting feature of our approach is that type cheecking simply consistists of program execution in a specific Horn clause theory, the theory of types.

Types and declarative static type checking in logic programming

Asirelli P;
1983

Abstract

We define a type structure for Horn clause logic, with tbe emphasis on the definition of the model theoretic semantic. The other issue which is faced in the paper is related to the static verification of type correctness. We define two operational semantics. The first one, which is shown to be equivalent to The Model Theoretic semantics, is defined in terms of dynamic type cheching. The second semantics which consists of static type cheecking and standard Horn clause operational semantics is shown to give a denotation (equivalent to the one defined by the model theoretic semantics) only to the set of statically cheeckable programs, a reasonable subset of the set of type correct programs. An interesting feature of our approach is that type cheecking simply consistists of program execution in a specific Horn clause theory, the theory of types.
1983
Istituto di Scienza e Tecnologie dell'Informazione "Alessandro Faedo" - ISTI
Logic programming
File in questo prodotto:
File Dimensione Formato  
prod_420811-doc_149263.pdf

accesso aperto

Descrizione: Types and declarative static type checking in logic programming
Dimensione 3.03 MB
Formato Adobe PDF
3.03 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/20.500.14243/369425
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact