{"title":"要还是不要:为稳定的 Kanren 添加完整性约束以做出决定","authors":"Xiangyu Guo, Ajay Bansal","doi":"arxiv-2408.16699","DOIUrl":null,"url":null,"abstract":"We integrate integrity constraints to stableKanren to enable a new\nproblem-solving paradigm in combinatorial search problems. stableKanren extends\nminiKanren to reasoning about contradictions under stable model semantics.\nHowever, writing programs to solve combinatorial search problems in\nstableKanren did not fully utilize the contradiction reasoning. This is mainly\ndue to the lack of control over the predicate (goal function) outcome during\nresolution. Integrity constraints defined by answer set programming (ASP)\nprovide the ability to constrain the predicate outcome. However, integrity\nconstraints are headless normal clauses, and stableKanren cannot create a goal\nfunction without a valid head. There are two approaches to handling integrity\nconstraints, but they do not fit stableKanren. Therefore, we design a new\napproach to integrate integrity constraints into stableKanren. We show a\nuniform framework to solve combinatorial search problems using integrity\nconstraints in extended stableKanren.","PeriodicalId":501197,"journal":{"name":"arXiv - CS - Programming Languages","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-08-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"To Be or Not To Be: Adding Integrity Constraints to stableKanren to Make a Decision\",\"authors\":\"Xiangyu Guo, Ajay Bansal\",\"doi\":\"arxiv-2408.16699\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"We integrate integrity constraints to stableKanren to enable a new\\nproblem-solving paradigm in combinatorial search problems. stableKanren extends\\nminiKanren to reasoning about contradictions under stable model semantics.\\nHowever, writing programs to solve combinatorial search problems in\\nstableKanren did not fully utilize the contradiction reasoning. This is mainly\\ndue to the lack of control over the predicate (goal function) outcome during\\nresolution. Integrity constraints defined by answer set programming (ASP)\\nprovide the ability to constrain the predicate outcome. However, integrity\\nconstraints are headless normal clauses, and stableKanren cannot create a goal\\nfunction without a valid head. There are two approaches to handling integrity\\nconstraints, but they do not fit stableKanren. Therefore, we design a new\\napproach to integrate integrity constraints into stableKanren. We show a\\nuniform framework to solve combinatorial search problems using integrity\\nconstraints in extended stableKanren.\",\"PeriodicalId\":501197,\"journal\":{\"name\":\"arXiv - CS - Programming Languages\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-08-29\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Programming Languages\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2408.16699\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Programming Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.16699","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
To Be or Not To Be: Adding Integrity Constraints to stableKanren to Make a Decision
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.