Adding partial functions to Constraint Logic Programming with sets

被引:5
|
作者
Cristia, Maximiliano [1 ,2 ]
Rossi, Gianfranco [3 ]
Frydman, Claudia [4 ]
机构
[1] CIFASIS, Rosario, Argentina
[2] UNR, Rosario, Argentina
[3] Univ Parma, I-43100 Parma, Italy
[4] Univ Toulon & Var, Aix Marseille Univ, CNRS, ENSAM,LSIS UMR 7296, Toulon, France
关键词
CLP; {log}; set theory; partial functions; LANGUAGE;
D O I
10.1017/S1471068415000290
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:651 / 665
页数:15
相关论文
共 50 条
  • [11] LOGIC PROGRAMMING WITH SETS
    KUPER, GM
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1990, 41 (01) : 44 - 64
  • [12] Functional and constraint logic programming
    Rodríguez-Artalejo, M
    CONSTRAINTS IN COMPUTATIONAL LOGICS: THEORY AND APPLICATIONS, 2001, 2002 : 202 - 270
  • [13] CONSTRAINT SATISFACTION USING CONSTRAINT LOGIC PROGRAMMING
    VANHENTENRYCK, P
    SIMONIS, H
    DINCBAS, M
    ARTIFICIAL INTELLIGENCE, 1992, 58 (1-3) : 113 - 159
  • [14] NEGATION AND CONSTRAINT LOGIC PROGRAMMING
    STUCKEY, PJ
    INFORMATION AND COMPUTATION, 1995, 118 (01) : 12 - 33
  • [15] CONSTRAINT LOGIC PROGRAMMING - A SURVEY
    JAFFAR, J
    MAHER, MJ
    JOURNAL OF LOGIC PROGRAMMING, 1994, 20 : 503 - 581
  • [16] A CONSTRAINT LOGIC PROGRAMMING SHELL
    LIM, P
    STUCKEY, PJ
    LECTURE NOTES IN COMPUTER SCIENCE, 1990, 456 : 75 - 88
  • [17] AN INTRODUCTION TO CONSTRAINT LOGIC PROGRAMMING
    KRIWACZEK, F
    LECTURE NOTES IN ARTIFICIAL INTELLIGENCE, 1992, 617 : 82 - 94
  • [18] Coinductive Constraint Logic Programming
    Saeedloei, Neda
    Gupta, Gopal
    FUNCTIONAL AND LOGIC PROGRAMMING (FLOPS 2012), 2012, 7294 : 243 - 259
  • [19] Functional and (Constraint) Logic Programming
    Escobar, Santiago
    Falaschi, Moreno
    INFORMATION AND COMPUTATION, 2014, 235 : 1 - 2
  • [20] HIERARCHICAL CONSTRAINT LOGIC PROGRAMMING
    WILSON, M
    BORNING, A
    JOURNAL OF LOGIC PROGRAMMING, 1993, 16 (3-4): : 277 - 318