arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0010029cs.LO
收藏

用模式保证带子类型的类型化逻辑程序的主题归约

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

Jan-Georg Smaus, Francois Fages, Pierre Deransart

摘要:

我们考虑了逻辑程序的一个具有参数多态性和子类型的一般规定类型系统。主语归约的性质表达了类型系统相对于主系统的一致性。执行模型:如果一个程序是“良好类型的”,那么所有从“良好类型的”目标开始的派生都是“良好类型的”。众所周知,对于逻辑程序,如果没有子类型,这个性质很容易获得。他们的标准(非类型化)执行模型。在这里,我们给出的句法条件,确保主题减少,也在一般的子类型之间的关系类型构造。其思想是考虑具有由模式给出的固定的逻辑流的逻辑程序。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑