收稿日期: 2011-03-14
修回日期: 2011-07-06
网络出版日期: 2011-09-01
基金资助
2010 年高等学校博士点学科专项科研基金资助项目( 20100172120043) ; 华南理工大学中央高校基本科研业务费专项资金资助项目( 2009ZM0158)
Corecursion Operations and Its Calculation Laws on Coinductive Data Types
Received date: 2011-03-14
Revised date: 2011-07-06
Online published: 2011-09-01
Supported by
2010 年高等学校博士点学科专项科研基金资助项目( 20100172120043) ; 华南理工大学中央高校基本科研业务费专项资金资助项目( 2009ZM0158)
苏锦钿 余珊珊 . 共归纳数据类型上的共递归操作及其计算定律[J]. 华南理工大学学报(自然科学版), 2011 , 39(10) : 90 -95 . DOI: 10.3969/j.issn.1000-565X.2011.10.016
As the coinductive data types in the framework of the category theory can be regarded as the carriers of final coalgebras for some coalgebraic functors,this paper presents the coalgebraic descriptions of the coinductive data types in programming languages from the viewpoint of the category theory and proposes the definitions and coalgebraic calculation laws of corecursion operations based on the finality of final coalgebras. Meanwhile,bifunctors and type functors are used to abstractly describe parametric coinductive data types,and such calculation laws on type functors as unit and fusion ones are put forward via natural transformations. It is proved that these laws can be used to simplify the calculations on coinductive data types,thus improving the dynamic behavior description ability of programming languages for various data types.
Key words: category theory; coinductive data type; corecursion; final coalgebra
/
| 〈 |
|
〉 |