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 条
  • [21] Logic, optimization, and constraint programming
    Hooker, JN
    INFORMS JOURNAL ON COMPUTING, 2002, 14 (04) : 295 - 321
  • [22] Temporal logic and annotated constraint logic programming
    Fruhwirth, T
    EXECUTABLE MODAL AND TEMPORAL LOGICS, 1995, 897 : 58 - 68
  • [23] PARTIAL EVALUATION OF PATTERN-MATCHING IN CONSTRAINT LOGIC PROGRAMMING-LANGUAGES
    SMITH, DA
    SIGPLAN NOTICES, 1991, 26 (09): : 62 - 71
  • [24] On integrating Constraint Logic Programming and Integer Programming
    Appa, G
    Mourtos, I
    Magos, D
    6TH WORLD MULTICONFERENCE ON SYSTEMICS, CYBERNETICS AND INFORMATICS, VOL V, PROCEEDINGS: COMPUTER SCI I, 2002, : 140 - 145
  • [25] Polynomial-time learning in logic programming and constraint logic programming
    Sebag, M
    Rouveirol, C
    INDUCTIVE LOGIC PROGRAMMING, 1997, 1314 : 105 - 126
  • [26] Logic programming with infinite sets
    Cenzer, D
    Remmel, JB
    Marek, VW
    ANNALS OF MATHEMATICS AND ARTIFICIAL INTELLIGENCE, 2005, 44 (04) : 309 - 339
  • [27] Logic programming with infinite sets
    Douglas Cenzer
    Jeffrey B Remmel
    Victor W. Marek
    Annals of Mathematics and Artificial Intelligence, 2005, 44 : 309 - 339
  • [28] REMARK ON CONSTRAINT SETS IN LINEAR PROGRAMMING
    CLARK, FE
    AMERICAN MATHEMATICAL MONTHLY, 1961, 68 (04): : 351 - &
  • [29] Cooperative constraint functional logic programming
    Marin, M
    Ida, T
    Suzuki, T
    INTERNATIONAL SYMPOSIUM ON PRINCIPLES OF SOFTWARE EVOLUTION, PROCEEDINGS, 2000, : 214 - 220
  • [30] Constraint Logic Programming and scheduling problems
    Varnier, C
    Baptiste, P
    INFORMATION INTELLIGENCE AND SYSTEMS, VOLS 1-4, 1996, : 2942 - 2946