Recursive Function Definition over Coinductive Types
Recursive Function Definition over Coinductive Types
复制标题
共导类型的递归函数定义
DOI:
10.1007/3-540-48256-3_6
复制
发表时间:
1999
期刊:
影响因子:
--
通讯作者:
John Matthews
中科院分区:
文献类型:
--
作者:
John Matthews
Using the notions of unique fixed point, converging equivalence relation, and contracting function, we generalize the technique of well-founded recursion. We are able to define functions in the Isabelle theorem prover that recursively call themselves an infinite number of times. In particular, we can easily define recursive functions that operate over coinductively-defined types, such as infinite lists. Previously in Isabelle such functions could only be defined corecursively, or had to operate over types containing "extra" bottom-elements. We conclude the paper by showing that the functions for filtering and flattening infinite lists have simple recursive definitions.