首页> 外文会议>Interactive theorem proving >Fast Machine Words in Isabelle/HOL
【24h】

Fast Machine Words in Isabelle/HOL

机译:Isabelle / HOL中的快速机器词

获取原文
获取原文并翻译 | 示例

摘要

Code generated from a verified formalisation typically runs faster when it uses machine words instead of a syntactic representation of integers. This paper presents a library for Isabelle/HOL that links the existing formalisation of words to the machine words that the four target languages of Isabelle/HOL's code generator provide. Our design ensures that (i) Isabelle/HOL machine words can be mapped soundly and efficiently to all target languages despite the differences in the APIs; (ii) they can be used uniformly with the three evaluation engines in Isabelle/HOL, namely code generation, normalisation by evaluation, and term rewriting; and (iii) they blend in with the existing formalisations of machine words. Several large-scale formalisation projects use our library to speed up their generated code. To validate the unverified link between machine words in the logic and those in the target languages, we extended Isabelle/HOL with a general-purpose testing facility that compiles test cases expressed within Isabelle/HOL to the four target languages and runs them with the most common implementations of each language. When we applied this to our library of machine words, we discovered miscomputations in the 64-bit word library of one of the target-language implementations.
机译:从验证的形式生成的代码通常在使用机器字而不是整数的语法表示时运行得更快。本文介绍了Isabelle / HOL的库,该库将单词的现有形式化与Isabelle / HOL的代码生成器提供的四种目标语言提供的机器词关联。我们的设计确保(i)尽管API有所不同,但Isabelle / HOL机器字可以正确有效地映射到所有目标语言; (ii)它们可以与Isabelle / HOL中的三个评估引擎统一使用,即代码生成,评估标准化和术语重写; (iii)与现有的机器语言形式融合在一起。几个大型形式化项目使用我们的库来加快其生成的代码。为了验证逻辑机器语言和目标语言机器语言之间未经验证的链接,我们使用通用测试工具扩展了Isabelle / HOL,该工具将Isabelle / HOL中表示的测试用例编译为四种目标语言,并使用最多每种语言的通用实现。当我们将其应用于机器语言库时,我们在目标语言实现之一的64位词库中发现了错误计算。

著录项

  • 来源
    《Interactive theorem proving》|2018年|388-410|共23页
  • 会议地点 Oxford(GB)
  • 作者

    Andreas Lochbihler;

  • 作者单位

    Institute of Information Security, Department of Computer Science, ETH Zurich, Zurich, Switzerland;

  • 会议组织
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号