Universes for Generic Programs and Proofs in Dependent Type Theory
Universes for Generic Programs and Proofs in Dependent Type Theory
复制标题
依赖类型理论中的泛型程序和证明的宇宙
DOI:
10.5555/985799.985801
复制
发表时间:
2003
期刊:
影响因子:
--
通讯作者:
Patrik Jansson
中科院分区:
文献类型:
--
作者:
Marcin Benke;P. Dybjer;Patrik Jansson
We show how to write generic programs and proofs in Martin-Lof type theory. To this end we consider several extensions of Martin-Lof's logical framework for dependent types. Each extension has a universe of codes (signatures) for inductively defined sets with generic formation, introduction, elimination, and equality rules. These extensions are modeled on Dybjer and Setzer's finitely axiomatized theories of inductive-recursive definitions, which also have universes of codes for sets, and generic formation, introduction, elimination, and equality rules. Here we consider several smaller universes of interest for generic programming and universal algebra. We formalize one-sorted and many-sorted term algebras, as well as iterated, generalized, parameterized, and indexed inductive definitions. We also show how to extend the techniques of generic programming to these universes. Furthermore, we give generic proofs of reflexivity and substitutivity of a generic equality test: Most of the definitions in the paper have been implemented using the proof assistant Alfa for dependent type theory.