arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.02704cs.PLcs.LO
收藏

扩展Isabelle/HOL的代码生成器以支持Go编程语言

Extending Isabelle/HOL's Code Generator with support for the Go programming language

Terru Stübinger, Lars Hupel

AI总结:

本工作为Isabelle/HOL的代码生成器新增Go语言作为第五种目标语言,通过命令式构造模拟函数式特性,并以附加库形式提供支持。

摘要:

Isabelle证明助手包含一种小型函数式语言,允许用户编写程序并对其进行推理。到目前为止,这些程序可以被提取到多种函数式语言中:Standard ML、OCaml、Scala和Haskell。本工作为代码生成器增加了对Go作为第五种目标语言的支持。与之前的目标语言不同,Go不是一种函数式语言,并且鼓励使用命令式风格的代码,因此Isabelle语言的许多特性(特别是数据类型、模式匹配和类型类)必须使用Go中的命令式语言构造来模拟。所开发的代码生成功能作为一个附加库提供,可以简单地导入到现有的理论中。

英文摘要:

The Isabelle proof assistant includes a small functional language, which allows users to write and reason about programs. So far, these programs could be extracted into a number of functional languages: Standard ML, OCaml, Scala, and Haskell. This work adds support for Go as a fifth target language for the Code Generator. Unlike the previous targets, Go is not a functional language and encourages code in an imperative style, thus many of the features of Isabelle's language (particularly data types, pattern matching, and type classes) have to be emulated using imperative language constructs in Go. The developed Code Generation is provided as an add-on library that can be simply imported into existing theories.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑