Skip to main content
CenXiv.org
此网站处于试运行阶段,支持我们!
我们衷心感谢所有贡献者的支持。
贡献
赞助
cenxiv logo > cs > arXiv:1810.02142

帮助 | 高级搜索

计算机科学 > 计算机科学中的逻辑

arXiv:1810.02142 (cs)
[提交于 2018年10月4日 ]

标题: 命题逻辑的短路求值:非交换变体和交换变体

标题: Propositional logic with short-circuit evaluation: a non-commutative and a commutative variant

Authors:Jan A. Bergstra, Alban Ponse, Daan J.C. Staudt
摘要: 短路求值表示命题联结词的语义,在这种语义中,只有当第一个参数不足以确定表达式的值时,才会对第二个参数进行求值。 短路求值在编程中被广泛使用,其中顺序合取和析取作为原始联结词。 我们研究的问题是,在以下假设下,哪些逻辑定律可以公理化短路求值:复合语句从左到右进行求值,每个原子(命题变量)求值为真或假,并且原子求值可能导致副作用。 这个问题的答案取决于可能发生的基本副作用类型,并导致不同的“短路逻辑”。 基本情况是FSCL(自由短路逻辑),它描述了每个原子求值可能导致副作用的情况。 我们回顾了一些主要结果,然后将FSCL与MSCL(记忆短路逻辑)相关联,在复合语句的求值过程中,每个原子的第一次求值结果会被记忆。 MSCL可以看作是命题逻辑的顺序变体:原子求值不能引起副作用,且顺序联结词不是可交换的。 然后我们将MSCL与SSCL(静态短路逻辑)相关联,SSCL是命题逻辑的一种变体,它规定使用可交换的顺序联结词进行短路求值。 我们提出了求值树作为短路求值的直观语义,并为上述提到的短路逻辑提供了简单的等式公理化方法,这些方法仅使用否定和顺序联结词。
摘要: Short-circuit evaluation denotes the semantics of propositional connectives in which the second argument is evaluated only if the first argument does not suffice to determine the value of the expression. Short-circuit evaluation is widely used in programming, with sequential conjunction and disjunction as primitive connectives. We study the question which logical laws axiomatize short-circuit evaluation under the following assumptions: compound statements are evaluated from left to right, each atom (propositional variable) evaluates to either true or false, and atomic evaluations can cause a side effect. The answer to this question depends on the kind of atomic side effects that can occur and leads to different "short-circuit logics". The basic case is FSCL (free short-circuit logic), which characterizes the setting in which each atomic evaluation can cause a side effect. We recall some main results and then relate FSCL to MSCL (memorizing short-circuit logic), where in the evaluation of a compound statement, the first evaluation result of each atom is memorized. MSCL can be seen as a sequential variant of propositional logic: atomic evaluations cannot cause a side effect and the sequential connectives are not commutative. Then we relate MSCL to SSCL (static short-circuit logic), the variant of propositional logic that prescribes short-circuit evaluation with commutative sequential connectives. We present evaluation trees as an intuitive semantics for short-circuit evaluation, and simple equational axiomatizations for the short-circuit logics mentioned that use negation and the sequential connectives only.
评论: 34页,6张表格。下面的文本有很大一部分来自arXiv:1206.1936、arXiv:1010.3674和arXiv:1707.05718。与arXiv:1707.05718一起,这篇论文涵盖了大部分arXiv:1010.3674的内容。
主题: 计算机科学中的逻辑 (cs.LO)
MSC 类: 03C90
ACM 类: F.3.1; F.3.2
引用方式: arXiv:1810.02142 [cs.LO]
  (或者 arXiv:1810.02142v1 [cs.LO] 对于此版本)
  https://doi.org/10.48550/arXiv.1810.02142
通过 DataCite 发表的 arXiv DOI

提交历史

来自: Alban Ponse [查看电子邮件]
[v1] 星期四, 2018 年 10 月 4 日 10:42:37 UTC (27 KB)
全文链接:

获取论文:

    查看标题为《》的 PDF
  • 查看中文 PDF
  • 查看 PDF
  • TeX 源代码
  • 其他格式
查看许可
当前浏览上下文:
cs.LO
< 上一篇   |   下一篇 >
新的 | 最近的 | 2018-10
切换浏览方式为:
cs

参考文献与引用

  • NASA ADS
  • 谷歌学术搜索
  • 语义学者
a 导出 BibTeX 引用 加载中...

BibTeX 格式的引用

×
数据由提供:

收藏

BibSonomy logo Reddit logo

文献和引用工具

文献资源探索 (什么是资源探索?)
连接的论文 (什么是连接的论文?)
Litmaps (什么是 Litmaps?)
scite 智能引用 (什么是智能引用?)

与本文相关的代码,数据和媒体

alphaXiv (什么是 alphaXiv?)
CatalyzeX 代码查找器 (什么是 CatalyzeX?)
DagsHub (什么是 DagsHub?)
Gotit.pub (什么是 GotitPub?)
Hugging Face (什么是 Huggingface?)
带有代码的论文 (什么是带有代码的论文?)
ScienceCast (什么是 ScienceCast?)

演示

复制 (什么是复制?)
Hugging Face Spaces (什么是 Spaces?)
TXYZ.AI (什么是 TXYZ.AI?)

推荐器和搜索工具

影响之花 (什么是影响之花?)
核心推荐器 (什么是核心?)
IArxiv 推荐器 (什么是 IArxiv?)
  • 作者
  • 地点
  • 机构
  • 主题

arXivLabs:与社区合作伙伴的实验项目

arXivLabs 是一个框架,允许合作伙伴直接在我们的网站上开发和分享新的 arXiv 特性。

与 arXivLabs 合作的个人和组织都接受了我们的价值观,即开放、社区、卓越和用户数据隐私。arXiv 承诺这些价值观,并且只与遵守这些价值观的合作伙伴合作。

有一个为 arXiv 社区增加价值的项目想法吗? 了解更多关于 arXivLabs 的信息.

这篇论文的哪些作者是支持者? | 禁用 MathJax (什么是 MathJax?)
  • 关于
  • 帮助
  • contact arXivClick here to contact arXiv 联系
  • 订阅 arXiv 邮件列表点击这里订阅 订阅
  • 版权
  • 隐私政策
  • 网络无障碍帮助
  • arXiv 运营状态
    通过...获取状态通知 email 或者 slack

京ICP备2025123034号