跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 人工智能

arXiv:2307.06382 (cs)
[提交于 2023年7月12日]

标题:Rethinking Answer Set Programming Templates

作者:Mario Alviano, Giovambattista Ianni, Francesco Pacenza, Jessica Zangari
查看论文《Rethinking Answer Set Programming Templates》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:In imperative programming, the Domain-Driven Design methodology helps in coping with the complexity of software development by materializing in code the invariants of a domain of interest. Code is cleaner and more secure because any implicit assumption is removed in favor of invariants, thus enabling a fail fast mindset and the immediate reporting of unexpected conditions. This article introduces a notion of template for Answer Set Programming that, in addition to the don't repeat yourself principle, enforces locality of some predicates by means of a simple naming convention. Local predicates are mapped to the usual global namespace adopted by mainstream engines, using universally unique identifiers to avoid name clashes. This way, local predicates can be used to enforce invariants on the expected outcome of a template in a possibly empty context of application, independently by other rules that can be added to such a context. Template applications transpiled this way can be processed by mainstream engines and safely shared with other knowledge designers, even when they have zero knowledge of templates.
主题: 人工智能 (cs.AI); 计算机科学中的逻辑 (cs.LO); 程序设计语言 (cs.PL); 软件工程 (cs.SE)
引用方式: arXiv:2307.06382 [cs.AI]
  (或者 arXiv:2307.06382v1 [cs.AI] 对于此版本)
  https://doi.org/10.48550/arXiv.2307.06382

提交历史

来自:Francesco Pacenza
[v1] 2023年7月12日 星期三 18:08:06 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.AI
< 上一篇   |   下一篇 >
最新 | 近期 | 2023-07
切换浏览方式为:
cs
cs.LO
cs.PL
cs.SE

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站