pith. sign in

arxiv: cs/0010029 · v2 · submitted 2000-10-20 · 💻 cs.LO

Using Modes to Ensure Subject Reduction for Typed Logic Programs with Subtyping

classification 💻 cs.LO
keywords logicprogramssubtypingreductionsubjecttypewell-typedconsider
0
0 comments X
read the original abstract

We consider a general prescriptive type system with parametric polymorphism and subtyping for logic programs. The property of subject reduction expresses the consistency of the type system w.r.t. the execution model: if a program is "well-typed", then all derivations starting in a "well-typed" goal are again "well-typed". It is well-established that without subtyping, this property is readily obtained for logic programs w.r.t. their standard (untyped) execution model. Here we give syntactic conditions that ensure subject reduction also in the presence of general subtyping relations between type constructors. The idea is to consider logic programs with a fixed dataflow, given by modes.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.