【24h】

What Is a Pure Functional?

机译:什么是纯功能?

获取原文
获取外文期刊封面目录资料

摘要

Given an ML function f : (int->int) ->int how can we rigorously specify that f is pure, i.e., produces no side-effects other than those arising from calling its functional argument? We show that existing methods based on preservation of invariants and relational parametricity are insufficient for this purpose and thus define a new notion that captures purity in the sense that for any functional F that is pure in this sense there exists a corresponding question-answer strategy. This research is motivated by an attempt to prove algorithms correct that take such supposedly pure functionals as input and apply them to stateful arguments in order to inspect intensional aspects of their behaviour.
机译:给定一个ML函数f:(int-> int)-> int我们如何严格地指定f是纯净的,即除了调用其函数自变量引起的副作用外,不产生其他副作用?我们表明,基于不变性和关系参数的保留的现有方法不足以实现此目的,因此定义了一个新的概念,即在这种意义上对于任何纯正的函数F都存在相应的问答策略的情况下,它捕获了纯度。这项研究的动机是试图证明算法正确,该算法以所谓的纯函数作为输入并将其应用于有状态自变量,以检查其行为的内涵。

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号