arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1507.06852cs.PL
收藏

在集合约束逻辑程序设计中增加部分函数

Adding Partial Functions to Constraint Logic Programming with Sets

Maximiliano Cristia, Gianfranco Rossi, Claudia Frydman

摘要:

部分函数是形式规格说明符号(如Z、B和Alloy)中常见的抽象。相反,可执行程序设计语言通常很少或根本不支持它们。在本文中,我们建议添加部分功能作为一个原始的功能,约束逻辑编程(CLP)语言,即{log}。虽然部分函数可以在{log}之上编程,但将它们作为一等公民提供给语言可以安全处理的集合论公式的形式增加了宝贵的灵活性和通用性。特别是,本文展示了如何自然地扩展{log}约束求解器,以适应新的原始约束处理部分功能。新版本的效率是经验性的评估,通过运行一些非平凡的集合理论的目标,涉及部分功能,从Z编写的规范获得。

英文摘要:

Partial functions are common abstractions in formal specification notations such as Z, B and Alloy. Conversely, executable programming languages usually provide little or no support for them. In this paper we propose to add partial functions as a primitive feature to a Constraint Logic Programming (CLP) language, namely {log}. Although partial functions could be programmed on top of {log}, providing them as first-class citizens adds valuable flexibility and generality to the form of set-theoretic formulas that the language can safely deal with. In particular, the paper shows how the {log} constraint solver is naturally extended in order to accommodate for the new primitive constraints dealing with partial functions. Efficiency of the new version is empirically assessed by running a number of non-trivial set-theoretical goals involving partial functions, obtained from specifications written in Z.

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

↑