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

在Coq中实现Deflate

An implementation of Deflate in Coq

Christoph-Simon Senjak, Martin Hofmann

摘要:

广泛使用的压缩格式“Deflate”在RFC 1951中定义,基于无前缀编码和反向引用。关于这些编码的指定方式有一些不明确的地方,标准中有几个混淆的来源。我们试图通过给出一个严格的数学规范来解决这个问题,我们在Coq中将其形式化。我们在Coq中产生了一个经过验证的实现,它在几兆字节的输入上实现了具有竞争力的性能。在本文中,我们提出了我们的实现的几个部分:一个完全验证的实现规范的无前缀编码,它可以用于其他压缩格式,以及一个优雅的形式主义,用于指定复杂的格式,我们用来实现一个压缩和解压缩算法在Coq,我们正式证明逆对方-第一次,这已经实现了我们的知识。与其他Deflate实现的兼容性可以凭经验显示。我们还讨论了一些困难,特别是关于内存和运行时的要求,我们的方法来克服它们。

英文摘要:

The widely-used compression format "Deflate" is defined in RFC 1951 and is based on prefix-free codings and backreferences. There are unclear points about the way these codings are specified, and several sources for confusion in the standard. We tried to fix this problem by giving a rigorous mathematical specification, which we formalized in Coq. We produced a verified implementation in Coq which achieves competitive performance on inputs of several megabytes. In this paper we present the several parts of our implementation: a fully verified implementation of canonical prefix-free codings, which can be used in other compression formats as well, and an elegant formalism for specifying sophisticated formats, which we used to implement both a compression and decompression algorithm in Coq which we formally prove inverse to each other -- the first time this has been achieved to our knowledge. The compatibility to other Deflate implementations can be shown empirically. We furthermore discuss some of the difficulties, specifically regarding memory and runtime requirements, and our approaches to overcome them.

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

↑