首页> 外文期刊>Mathematical structures in computer science >A liberal type system for functional logic programs
【24h】

A liberal type system for functional logic programs

机译:功能逻辑程序的自由类型系统

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

We propose a new type system for functional logic programming which is more liberal thanrnthe classical Damas–Milner usually adopted, but it is also restrictive enough to ensure typernsoundness. Starting from Damas–Milner typing of expressions, we propose a new notion ofrnwell-typed program that adds support for type-indexed functions, a particular form ofrnexistential types, opaque higher-order patterns and generic functions – as shown by anrnextensive collection of examples that illustrate the possibilities of our proposal. In thernnegative side, the types of functions must be declared, and therefore types are checked butrnnot inferred. Another consequence is that parametricity is lost, although the impact of thisrnflaw is limited as ‘free theorems’ were already compromised in functional logic programmingrnbecause of non-determinism.
机译:我们提出了一种用于函数逻辑编程的新型系统,它比通常采用的经典Damas-Milner更为宽松,但也足以确保类型健全。从Damas–Milner表达式的输入开始,我们提出了rnwell型程序的新概念,该程序增加了对类型索引函数,特殊形式的存在型类型,不透明的高阶模式和泛型函数的支持-如大量示例说明我们提议的可能性。在负方面,必须声明函数的类型,因此将检查类型,但不进行推断。另一个后果是参数丢失了,尽管这种缺陷的影响是有限的,因为“自由定理”已经由于不确定性而在功能逻辑编程中受到损害。

著录项

  • 来源
    《Mathematical structures in computer science》 |2015年第4期|942-977|共36页
  • 作者单位

    Dpto. de Sistemas Informáticos y Computación, Facultad de Informática,Universidad Complutense de Madrid, Madrid, Spain;

    Dpto. de Sistemas Informáticos y Computación, Facultad de Informática,Universidad Complutense de Madrid, Madrid, Spain;

    Dpto. de Sistemas Informáticos y Computación, Facultad de Informática,Universidad Complutense de Madrid, Madrid, Spain;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号