首页    期刊浏览 2024年10月07日 星期一
登录注册

文章基本信息

  • 标题:A Three-Valued Semantics for Typed Logic Programming
  • 本地全文:下载
  • 作者:João Barbosa ; Mário Florido ; Vítor Santos Costa
  • 期刊名称:Electronic Proceedings in Theoretical Computer Science
  • 电子版ISSN:2075-2180
  • 出版年度:2019
  • 卷号:306
  • 页码:36-51
  • DOI:10.4204/EPTCS.306.10
  • 语种:English
  • 出版社:Open Publishing Association
  • 摘要:Types in logic programming have focused on conservative approximations of program semantics by regular types, on one hand, and on type systems based on a prescriptive semantics defined for typed programs, on the other. In this paper, we define a new semantics for logic programming, where programs evaluate to true, false, and to a new semantic value called wrong, corresponding to a run-time type error. We then have a type language with a separated semantics of types. Finally, we define a type system for logic programming and prove that it is semantically sound with respect to a semantic relation between programs and types where, if a program has a type, then its semantics is not wrong. Our work follows Milner's approach for typed functional languages where the semantics of programs is independent from the semantic of types, and the type system is proved to be sound with respect to a relation between both semantics.
国家哲学社会科学文献中心版权所有