Author:
FAGES FRANÇOIS,COQUERY EMMANUEL
Abstract
We present a prescriptive type system with parametric polymorphism and subtyping for
constraint logic programs. The aim of this type system is to detect programming errors
statically. It introduces a type discipline for constraint logic programs and modules, while
maintaining the capabilities of performing the usual coercions between constraint domains,
and of typing meta-programming predicates, thanks to the exibility of subtyping. The
property of subject reduction expresses the consistency of a prescriptive type system w.r.t.
the execution model: if a program is ‘well-typed’, then all derivations starting from a
‘well-typed’ goal are again ‘well-typed’. That property is proved w.r.t. the abstract execution
model of constraint programming which proceeds by accumulation of constraints only, and
w.r.t. an enriched execution model with type constraints for substitutions. We describe our
implementation of the system for type checking and type inference. We report our experimental
results on type checking ISO-Prolog, the (constraint) libraries of Sicstus Prolog and other
Prolog programs.
Publisher
Cambridge University Press (CUP)
Subject
Artificial Intelligence,Computational Theory and Mathematics,Hardware and Architecture,Theoretical Computer Science,Software
Cited by
13 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. A Constraint-Based Mathematical Modeling Library in Prolog with Answer Constraint Semantics;Lecture Notes in Computer Science;2024
2. Data Driven Relational Constraint Programming;2020 IEEE 21st International Conference on Information Reuse and Integration for Data Science (IRI);2020-08
3. Coding guidelines for Prolog;Theory and Practice of Logic Programming;2011-06-30
4. From Rules to Constraint Programs with the Rules2CP Modelling Language;Lecture Notes in Computer Science;2009
5. Abstract interpretation and types for systems biology;Theoretical Computer Science;2008-08