Refining inductive types
Atkey, Robert and Johann, Patricia and Ghani, Neil (2012) Refining inductive types. Logical Methods in Computer Science, 8 (2). 9. ISSN 1860-5974 (https://doi.org/10.2168/LMCS-8(2:9)2012)
PDF.
Filename: 1205.2492.pdf
Preprint License: Download (387kB) |
Abstract
Dependently typed programming languages allow sophisticated properties of data to be expressed within the type system. Of particular use in dependently typed programming are indexed types that refine data by computationally useful information. For example, the N-indexed type of vectors refines lists by their lengths. Other data types may be refined in similar ways, but programmers must produce purpose-specific refinements on an ad hoc basis, developers must anticipate which refinements to include in libraries, and implementations must often store redundant information about data and their refinements. In this paper we show how to generically derive inductive characterisations of refinements of inductive types, and argue that these characterisations can alleviate some of the aforementioned difficulties associated with ad hoc refinements. Our characterisations also ensure that standard techniques for programming with and reasoning about inductive types are applicable to refinements, and that refinements can themselves be further refined.
ORCID iDs
Atkey, Robert ORCID: https://orcid.org/0000-0002-4414-5047, Johann, Patricia and Ghani, Neil ORCID: https://orcid.org/0000-0002-3988-2560;-
-
Item type: Article ID code: 45360 Dates: DateEvent4 June 2012PublishedSubjects: Science > Mathematics > Electronic computers. Computer science Department: Faculty of Science > Computer and Information Sciences Depositing user: Pure Administrator Date deposited: 24 Oct 2013 08:37 Last modified: 12 Dec 2024 02:51 URI: https://strathprints.strath.ac.uk/id/eprint/45360