Constructive Type Classes in Isabelle
Constructive Type Classes in Isabelle
复制标题
伊莎贝尔的构造类型类
DOI:
10.1007/978-3-540-74464-1_11
复制
发表时间:
2006
期刊:
影响因子:
--
通讯作者:
M. Wenzel
中科院分区:
文献类型:
--
作者:
Florian Haftmann;M. Wenzel
We reconsider the well-known concept of Haskell-style type classes within the logical framework of Isabelle. So far, axiomatic type classes in Isabelle merely account for the logical aspect as predicates over types, while the operational part is only a convention based on raw overloading. Our more elaborate approach to constructive type classes provides a seamless integration with Isabelle locales, which are able to manage both operations and logical properties uniformly. Thus we combine the convenience of type classes and the flexibility of locales. Furthermore, we construct dictionary terms derived from notions of the type system. This additional internal structure provides satisfactory foundations of type classes, and supports further applications, such as code generation and export of theories and theorems to environments without type classes.