paper-with-me

홈 › Papers

Justifications in Constraint Handling Rules for Logical Retraction in Dynamic Algorithms

2017-06-24 · Thom Fruehwirth

We present a straightforward source-to-source transformation that introduces justifications for user-defined constraints into the CHR programming language. Then a scheme of two rules suffices to allow for logical retraction (deletion, removal) of constraints during computation. Without the need to recompute from scratch, these rules remove not only the constraint but also undo all consequences of the rule applications that involved the constraint. We prove a confluence result concerning the rule scheme and show its correctness. When algorithms are written in CHR, constraints represent both data and operations. CHR is already incremental by nature, i.e. constraints can be added at runtime. Logical retraction adds decrementality. Hence any algorithm written in CHR with justifications will become fully dynamic. Operations can be undone and data can be removed at any point in the computation without compromising the correctness of the result. We present two classical examples of dynamic algorithms, written in our prototype implementation of CHR with justifications that is available online: maintaining the minimum of a changing set of numbers and shortest paths in a graph whose edges change.

📄 PDF Abstract BibTeX arXiv:1706.07946

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

UniKER: A Unified Framework for Combining Embedding and Definite Horn Rule Reasoning for Knowledge Graph Inference

2021-11-01 · EMNLP 2021 11 · Kewei Cheng, Ziqing Yang, Ming Zhang, Yizhou Sun

Knowledge graph inference has been studied extensively due to its wide applications. It has been addressed by two lines of research, i.e., the more traditional logical rule reasoning and the more recent knowledge graph e…

Graph EmbeddingKnowledge Graph Embedding

Retraction-Free Decentralized Non-convex Optimization with Orthogonal Constraints

2024-05-19 · Youbang Sun, Shixiang Chen, Alfredo Garcia, Shahin Shahrampour

In this paper, we investigate decentralized non-convex optimization with orthogonal constraints. Conventional algorithms for this setting require either manifold retractions or other types of projection to ensure feasibi…

Computational Efficiency

Explanatory relations in arbitrary logics based on satisfaction systems, cutting and retraction

2018-03-05 · Marc Aiguier, Jamal Atif, Isabelle Bloch, Ramón Pino-Pérez

The aim of this paper is to introduce a new framework for defining abductive reasoning operators based on a notion of retraction in arbitrary logics defined as satisfaction systems. We show how this framework leads to th…

Local Linear Convergence of Infeasible Optimization with Orthogonal Constraints

2024-12-07 · Youbang Sun, Shixiang Chen, Alfredo Garcia, Shahin Shahrampour

Many classical and modern machine learning algorithms require solving optimization tasks under orthogonality constraints. Solving these tasks with feasible methods requires a gradient descent update followed by a retract…

Faithful Logical Reasoning via Symbolic Chain-of-Thought

2024-05-28 · Jundong Xu, Hao Fei, Liangming Pan, Qian Liu 외

While the recent Chain-of-Thought (CoT) technique enhances the reasoning ability of large language models (LLMs) with the theory of mind, it might still struggle in handling logical reasoning that relies much on symbolic…

Logical Reasoning