实数空间和其他空间上的可计算决策
Computable decision making on the reals and other spaces via partiality and nondeterminism
摘要:
虽然许多安全关键软件系统使用浮点数来表示真实世界的输入和输出,但程序员通常会考虑使用实数进行计算的理想化版本。与理想情况的重大偏差可能会导致错误并危及安全。一些编程系统实现了精确的实数运算,这解决了这个问题,但使其他问题复杂化,例如决策。在这些系统中,不可能基于诸如$\mathbb{R}$之类的连通空间来计算(总体的和确定性的)离散决策。我们提出的编程语言语义的基础上建设性的拓扑结构的变体,允许非确定性和/或不确定性。非确定性或非确定性都足以允许在诸如$\mathbb{R}$之类的连通空间上进行可计算决策。然后,我们介绍了空间上的模式匹配,一种语言结构,用于创建空间上的程序,在函数式编程中推广模式匹配,其中模式不需要表示可判定的谓词,也可能重叠或不详尽,分别产生不确定性或不确定性。非确定性和/或非确定性也产生用于构造近似决策过程的形式逻辑。我们在马歇尔语言中实现了这些结构,以实现精确的实数运算。
英文摘要:
Though many safety-critical software systems use floating point to represent real-world input and output, programmers usually have idealized versions in mind that compute with real numbers. Significant deviations from the ideal can cause errors and jeopardize safety. Some programming systems implement exact real arithmetic, which resolves this matter but complicates others, such as decision making. In these systems, it is impossible to compute (total and deterministic) discrete decisions based on connected spaces such as $\mathbb{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 $\mathbb{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 implemented these constructs in the Marshall language for exact real arithmetic.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。