A Few Constructions on Constructors
A Few Constructions on Constructors
复制标题
关于构造函数的一些构造
DOI:
--
复制
发表时间:
2004
期刊:
影响因子:
--
通讯作者:
James McKinna
中科院分区:
文献类型:
--
作者:
Conor McBride;H. Goguen;James McKinna
We present four constructions for standard equipment which can be generated for every inductive datatype: case analysis, structural recursion, no confusion, acyclicity. Our constructions follow a two-level approach—they require less work than the standard techniques which inspired them [11,8]. Moreover, given a suitably heterogeneous notion of equality, they extend without difficulty to inductive families of datatypes. These constructions are vital components of the translation from dependently typed programs in pattern matching style [7] to the equivalent programs expressed in terms of induction principles [21] and as such play a crucial behind-the-scenes role in Epigram [25].