paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Computable decision making on the reals and other spaces

实数及其他空间上的可计算决策
LICS Proceedings of the 33rd Annual ACM/IEEE Symposium on Logic in Computer Science2018匹配度 3/10 · 论文属于构造拓扑语义与语言设计,讨论精确实数运算下的可计算离散决策,与用户的 AI↔PL、静态分析/Agent 主线无交集;仅因涉及实数/浮点数值程序的语义与验证这一相邻主题、且兼具形式化与实现(扩展 Marshall 语言)而略有重叠。引用 6 inbox
Benjamin Sherman, Luke Sciarappa, Adam Chlipala, Michael Carbin
crossref: 2026-09-12

AI 速览

一句话:提出基于构造拓扑的程序语义,利用非确定性/部分性及空间模式匹配,在精确实数计算中实现可计算的离散决策。

许多安全关键系统用浮点表示输入输出,但其行为规格使用实数;精确实数算术可使计算严格匹配规格,却使离散决策变得不可计算:在 R 等连通空间上无法实现完全、确定的判定。本文提出基于构造拓扑的程序语言语义,并给出允许非确定性或部分性的变体;结果表明,非确定性或部分性任一即可在连通空间上支持可计算决策。作者进一步引入空间模式匹配,将函数式编程的模式匹配推广到空间,模式不必是可判定谓词,且可重叠或不穷尽,分别对应非确定性与部分性。非确定性和/或部分性还给出构造近似判定过程的形式逻辑。最后,他们扩展精确实数算术语言 Marshall 并实现若干程序。

问题
精确实数算术虽能严格匹配数学规格,但在 R 等连通空间上无法进行完全、确定的离散决策,从而威胁安全关键系统的规格一致性。
方法
提出基于构造拓扑的程序语言语义,允许非确定性/部分性,并引入可重叠或不穷尽的空间模式匹配来构造程序与近似判定过程。
评估
扩展精确实数算术语言 Marshall 并实现若干程序,以验证所提构造的可用性。
原文摘要(Abstract)

Though many safety-critical software systems use floating point to represent real-world input and output, the mathematical specifications of these systems' behaviors use real numbers. Significant deviations from those specifications can cause errors and jeopardize safety. To ensure system safety, some programming systems offer exact real arithmetic, which often enables a program's computation to match its mathematical specification exactly. However, exact real arithmetic complicates decision-making: in these systems, it is impossible to compute (total and deterministic) discrete decisions based on connected spaces such as R. We present programming-language semantics based on constructive topology with variants allowing nondeterminism and/or partiality. Either nondeterminism or partiality suffices to allow computable decision making on connected spaces such as R. We then introduce pattern matching on spaces, a language construct for creating programs on spaces, generalizing pattern matching in functional programming, where patterns need not represent decidable predicates and also may overlap or be inexhaustive, giving rise to nondeterminism or partiality, respectively. Nondeterminism and/or partiality also yield formal logics for constructing approximate decision procedures. We extended the Marshall language for exact real arithmetic with these constructs and implemented some programs with it.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot4360,
  title = {Computable decision making on the reals and other spaces},
  author = {Benjamin Sherman and Luke Sciarappa and Adam Chlipala and Michael Carbin},
  booktitle = {LICS},
  year = {2018},
  doi = {10.1145/3209108.3209193}
}