arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 0808.2953cs.PLcs.DS
收藏

Haskell中的声明组合学:同构、hylomorphism和遗传有限数据类型

Declarative Combinatorics: Isomorphisms, Hylomorphisms and Hereditarily Finite Data Types in Haskell

Paul Tarau

摘要:

本文是对基本数据类型(自然数、集合、多集合、有限函数、排列、二元判定图、图、超图、括号语言、并元有理数、素数、DNA序列等)之间的{ \em同构}的函数式程序设计框架的探索。通过{\em ranking/unranking}和{ \em pairing/unpairing}运算导出的{ \em hylomorphisms}将它们推广到遗传有限论域.嵌入式高阶{ \em组合子语言}自动提供任意到任意编码。除了实验数学的应用外,还展示了通过在数据类型之间转移操作而获得的“自由算法”的几个例子。其他应用包括组合对象的流迭代器、自定界代码、简洁的数据表示和随机实例的生成。该文件涵盖了59个数据类型,并通过使用嵌入式组合子语言,提供了3540个不同的双射变换。这篇论文的独立源代码是由一个识字的Haskell程序生成的,可以在\url{http://logic.csci.unt.edu/tarau/research/2008/fISO.zip}上找到。{ \bf Keywords}:Haskell数据表示、数据类型同构、声明组合学、计算数学、阿克曼编码、哥德尔数、算术化、排序/非排序、遗传有限集、函数和置换、二进制决策图编码、二元有理数、DNA编码

英文摘要:

This paper is an exploration in a functional programming framework of {\em isomorphisms} between elementary data types (natural numbers, sets, multisets, finite functions, permutations binary decision diagrams, graphs, hypergraphs, parenthesis languages, dyadic rationals, primes, DNA sequences etc.) and their extension to hereditarily finite universes through {\em hylomorphisms} derived from {\em ranking/unranking} and {\em pairing/unpairing} operations. An embedded higher order {\em combinator language} provides any-to-any encodings automatically. Besides applications to experimental mathematics, a few examples of ``free algorithms'' obtained by transferring operations between data types are shown. Other applications range from stream iterators on combinatorial objects to self-delimiting codes, succinct data representations and generation of random instances. The paper covers 59 data types and, through the use of the embedded combinator language, provides 3540 distinct bijective transformations between them. The self-contained source code of the paper, as generated from a literate Haskell program, is available at \url{http://logic.csci.unt.edu/tarau/research/2008/fISO.zip}. {\bf Keywords}: Haskell data representations, data type isomorphisms, declarative combinatorics, computational mathematics, Ackermann encoding, Gödel numberings, arithmetization, ranking/unranking, hereditarily finite sets, functions and permutations, encodings of binary decision diagrams, dyadic rationals, DNA encodings

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

↑