To Be or Not To Be: Adding Integrity Constraints to stableKanren to Make a Decision

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Guo, Xiangyu, Bansal, Ajay
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910582269018112
author Guo, Xiangyu
Bansal, Ajay
author_facet Guo, Xiangyu
Bansal, Ajay
contents We integrate integrity constraints to stableKanren to enable a new problem-solving paradigm in combinatorial search problems. stableKanren extends miniKanren to reasoning about contradictions under stable model semantics. However, writing programs to solve combinatorial search problems in stableKanren did not fully utilize the contradiction reasoning. This is mainly due to the lack of control over the predicate (goal function) outcome during resolution. Integrity constraints defined by answer set programming (ASP) provide the ability to constrain the predicate outcome. However, integrity constraints are headless normal clauses, and stableKanren cannot create a goal function without a valid head. There are two approaches to handling integrity constraints, but they do not fit stableKanren. Therefore, we design a new approach to integrate integrity constraints into stableKanren. We show a uniform framework to solve combinatorial search problems using integrity constraints in extended stableKanren.
format Preprint
id arxiv_https___arxiv_org_abs_2408_16699
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle To Be or Not To Be: Adding Integrity Constraints to stableKanren to Make a Decision
Guo, Xiangyu
Bansal, Ajay
Programming Languages
03B70, 68T27, 68T30
D.3.0
We integrate integrity constraints to stableKanren to enable a new problem-solving paradigm in combinatorial search problems. stableKanren extends miniKanren to reasoning about contradictions under stable model semantics. However, writing programs to solve combinatorial search problems in stableKanren did not fully utilize the contradiction reasoning. This is mainly due to the lack of control over the predicate (goal function) outcome during resolution. Integrity constraints defined by answer set programming (ASP) provide the ability to constrain the predicate outcome. However, integrity constraints are headless normal clauses, and stableKanren cannot create a goal function without a valid head. There are two approaches to handling integrity constraints, but they do not fit stableKanren. Therefore, we design a new approach to integrate integrity constraints into stableKanren. We show a uniform framework to solve combinatorial search problems using integrity constraints in extended stableKanren.
title To Be or Not To Be: Adding Integrity Constraints to stableKanren to Make a Decision
topic Programming Languages
03B70, 68T27, 68T30
D.3.0
url https://arxiv.org/abs/2408.16699