Anti-unification refers to the process of generalizing two (or more) goals into a single, more general, goal that captures some of the structure that is common to all initial goals. In general one is typically interested in computing what is often called a most specific generalization, that is a generalization that captures a maximal amount of shared structure. In this work we address the problem of anti-unification in CLP, where goals can be seen as unordered sets of atoms and/or constraints. We show that while the concept of a most specific generalization can easily be defined in this context, computing it becomes an NP-complete problem. We subsequently introduce a generalization algorithm that computes a well-defined abstraction whose computation can be bound to a polynomial execution time. Initial experiments show that even a naive implementation of our algorithm produces acceptable generalizations in an efficient way. Under consideration for acceptance in TPLP.
利用抽象解释理论对逻辑程序进行静态分析,面临正确性、最优性和精度问题。我们提出了一个框架,配备了两个统一运营商的向前统一(调用程序)和向后统一(从程序返回)的指称,目标相关的语义。后者通过匹配操作实现。我们的建议澄清和统一了许多不同的框架和思想的静态分析的逻辑编程在一个单一的,正式的设置。在抽象方面,我们专注于域共享的Jacobs和Langen,并提供最佳的正确近似的所有原始的语义算子,即投影,重命名,向前和向后统一。我们表明,抽象的统一运营商是严格更精确的比那些在文献中定义在同一个抽象域。在某些情况下,我们的运营商是更精确的比那些更复杂的领域,涉及线性和自由度。逻辑程序设计理论与实践(Theory and Practice of Logic Programming,TPLP)
Czech Academy of Sciences Institute of Computer Science(捷克科学院计算机科学研究所);Research Institute for Symbolic Computation(符号计算研究所);Johannes Kepler University(约翰内斯·开普勒大学)
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系统在我们的研究小组开发。
在逻辑程序的分析中,用于检测共享和线性信息的抽象域被广泛使用。设计这样的域的抽象统一算法已被证明是相当困难的。目前,可用的算法是正确的,但不是最佳的,即,它们不能充分利用由抽象域传达的信息。在本文中,我们定义了一个新的(无限)域ShLin-w,它可以被认为是一个一般的框架,其他域可以很容易地通过抽象得到。ShLin-w使共享和线性之间的相互作用变得明确。我们提供了一个建设性的表征的最佳抽象统一运营商的ShLin-w,我们提升到两个著名的抽象ShLin-w。即,经典的Sharing X Lin抽象域和Andy King的更精确的ShLin-2抽象域。在单绑定取代的情况下,我们得到最佳的抽象统一算法,这样的域。出现在逻辑编程理论与实践(TPLP)中。
The Unification Type of an Equational Theory May Depend on the Instantiation Preorder: From Results for Single Theories to Results for Classes of Theories
TU Dresden(德累斯顿工业大学);Center for Scalable Data Analytics and Artificial Intelligence (ScaDS.AI) Dresden/Leipzig(德累斯顿/莱比锡可扩展数据分析与人工智能中心)