函数逻辑编程(FLP)语言使用非终止和非汇合构造器系统(CS)作为程序,以便定义非严格非确定性函数。对于这类函数的参数传递,通常考虑两种语义选择:调用时选择和运行时选择。虽然前者是现代FLP语言的标准选择,但后者缺乏一些属性--主要是组合性--这阻碍了它在实际FLP系统中的使用。传统上,它已被认为是调用时的选择诱导一个单一的指称语义,而运行时的选择诱导一个复数的语义。我们已经发现,后者的识别是错误的,当涉及到模式匹配,因此,我们提出了两个新的组合复数语义CS的是不同的运行时的选择。我们研究了我们的复数语义的基本属性-组合性,极性,单调性的替代,和构造函数系统的冒泡属性的限制形式-以及它们之间的关系和以前的建议,得出的结论是,这些语义形成了一个层次结构的意义上的集合包含的一组计算值。我们还确定了一类程序,其特征在于所提出的复数语义的行为相同的语法标准,和一个程序转换,可以用来模拟其中之一的长期重写。在实践层面上,我们研究如何使用这些语义的表达能力,以提高程序的声明味。我们还提出了一种语言,结合调用时间的选择和我们的复数语义,我们已经实现了在莫德。由此产生的解释器被用来测试几个显着的例子显示的组合语义的能力。逻辑程序设计理论与实践(Theory and Practice of Logic Programming,TPLP)
英文摘要:
Functional logic programming (FLP) languages use non-terminating and non-confluent constructor systems (CS's) as programs in order to define non-strict non-determi-nistic functions. Two semantic alternatives have been usually considered for parameter passing with this kind of functions: call-time choice and run-time choice. While the former is the standard choice of modern FLP languages, the latter lacks some properties---mainly compositionality---that have prevented its use in practical FLP systems. Traditionally it has been considered that call-time choice induces a singular denotational semantics, while run-time choice induces a plural semantics. We have discovered that this latter identification is wrong when pattern matching is involved, and thus we propose two novel compositional plural semantics for CS's that are different from run-time choice.
We study the basic properties of our plural semantics---compositionality, polarity, monotonicity for substitutions, and a restricted form of the bubbling property for constructor systems---and the relation between them and to previous proposals, concluding that these semantics form a hierarchy in the sense of set inclusion of the set of computed values. We have also identified a class of programs characterized by a syntactic criterion for which the proposed plural semantics behave the same, and a program transformation that can be used to simulate one of them by term rewriting. At the practical level, we study how to use the expressive capabilities of these semantics for improving the declarative flavour of programs. We also propose a language which combines call-time choice and our plural semantics, that we have implemented in Maude. The resulting interpreter is employed to test several significant examples showing the capabilities of the combined semantics.
To appear in Theory and Practice of Logic Programming (TPLP)
Online Proceedings of the 11th International Colloquium on Implementation of Constraint LOgic Programming Systems (CICLOPS 2011), Lexington, KY, U.S.A., July 10, 2011
Implementing WordNet Measures of Lexical Semantic Similarity in a Fuzzy Logic Programming System
本文介绍了将WordNet集成到模糊逻辑程序设计系统中的技术。由于WordNet涉及的话,但不给他们之间的关系的分级信息,我们已经实施了标准的相似性措施和新的指令,允许接近方程连接两个单词生成的近似度。近似方程是关键的语法结构,除了弱统一算法之外,它还使这种程序设计语言中灵活的查询-应答过程成为可能。这一增加拓宽了模糊逻辑编程的范围,允许某些形式的词汇推理,并加强了自然语言处理的应用。逻辑程序设计理论与实践(Theory and Practice of Logic Programming,TPLP)
A Proof Theoretic Approach to Failure in Functional Logic Programming
如何从程序中提取负信息是逻辑程序设计中的一个重要问题。在这里,我们解决问题的功能逻辑程序,从证明理论的角度来看。我们工作的出发点是CRWL(Constructor based ReWriting Logic),它是一个成熟的函数逻辑编程理论框架,其基本概念是非严格非确定函数。我们提出了一个证明演算,CRWLF,这是能够推导出否定信息的CRWL程序。特别是,CRWLF能够证明CRWL内的复位有限失败。
Proceedings 29th and 30th Workshops on (Constraint) Logic Programming and 24th International Workshop on Functional and (Constraint) Logic Programming
(约束)逻辑编程研讨会(WLP)是德国逻辑编程学会(Gesellschaft für Logische Programmierung e.V.,GLP),并汇集了对逻辑编程、约束编程、答案集编程以及数据库和人工智能等相关领域感兴趣的研究人员(不仅来自德国)。函数和(约束)逻辑编程国际研讨会(WFLP)旨在汇集对函数编程,逻辑编程及其集成感兴趣的研究人员,学生和从业者。讲习班有一个共同地点的传统,以促进对高级声明性程序设计语言和相关领域的基础、应用和组合感兴趣的社区之间的跨部门思想和经验交流。
A Fuzzy Logic Programming Environment for Managing Similarity and Truth Degrees
FASIL(“Fuzzy Aggregators and Similarity Into a Logic Language”的缩写)是一种模糊逻辑程序设计语言,具有隐式/显式真度注释、大量的连接词和相似性统一。FASIL集成并扩展了MALP(Multi-Adjoint Logic Programming,一种带有显式注释规则的模糊逻辑语言)和Bousi~Prolog(使用弱统一算法,非常适合灵活的查询应答)的功能。因此,它在一个框架中适当地管理相似性和真度,结合了两种语言的表达优势。本文介绍了FASILL的主要功能和实现细节。沿着该文件,我们描述了它的语法和操作语义,我们给出了线索的实施格模块和相似性模块,两个主要的构建块的新的编程环境,丰富了FLOPER系统在我们的研究小组开发。