首页 | 本学科首页   官方微博 | 高级检索  
     

程序语言中的共归纳数据类型及其应用
引用本文:苏锦钿,余珊珊. 程序语言中的共归纳数据类型及其应用[J]. 计算机科学, 2011, 38(11): 114-118
作者姓名:苏锦钿  余珊珊
作者单位:1. 华南理工大学计算机科学与工程学院 广州510640
2. 中山大学信息科学与技术学院广州510275
基金项目:本文受2010年高校博上点科研基金-新教师类(20100172120043),华南理工大学中央高校基本科研业务费专项资金(2009GM0158)资助。
摘    要:归纳数据类型利用代数方法从构造的角度归纳地描述数据类型的有限语法结构,但在描述动态行为方面存在一定的不足。作为归纳数据类型的范畴对偶概念,共归纳数据类型利用共代数方法从观察的角度共归纳地描述了数据类型的动态行为。首先,从范畴论和代数的角度给出程序语言中的归纳数据类型定义,并分析了相应的递归操作;接着,利用共代数给出共归纳数据类型的范畴论定义,并根据共归纳数据类型的终结性分析了相应的共递归操作;最后,指出如何利用无双代数及分配律将归纳与共归纳数据类型有机地融合起来,探讨数据类型的语法构造与动态行为关系。

关 键 词:归纳数据类型,共归纳数据类型,范畴论,代数,共代数,双代数

Coinductive Data Types and their Applications in Programming Languages
SU Jin-dian,YU Shan-shan. Coinductive Data Types and their Applications in Programming Languages[J]. Computer Science, 2011, 38(11): 114-118
Authors:SU Jin-dian  YU Shan-shan
Affiliation:(College of Computer Science and Engineering, South China University of Technology, Guangzhou 510640, China) (School of Information Science and Technology,Sun Yet-Sen University,Guangzhou 510275,China)
Abstract:Inductive data types mainly focus on the finite syntactic structures inductively in terms of algebras from the construction perspective, but have some disadvantages in describing dynamic behaviors. As their categorical dual nodons, coinductive data types aim to coinductivcly describe the observable behaviors of data types in terms of coalgebras from the observation perspective. We firstly gave the definitions of inductive data types in programming languages from the categorical and algebraic viewpoints. After that, we continued to present the definition of coinductive data types with coalgebras and analyze the corresponding corecursion operations according to the finality of coinductive data types. Finally, we pointed out how to use J,-bialgebras and distributive laws to combine inductive and coinductive data types and discuss the relations between syntactic constructions and dynamic behaviors of data types.
Keywords:Inductive data type   Coinductive data type   Category theory   Algebras   Coalgebras   Bialgcbras
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《计算机科学》浏览原始摘要信息
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号