Dependently typed programming with finite sets
Open Access
- 30 August 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- Vol. 8, 33-44
Abstract
Definitions of many mathematical structures used in computer science are parametrized by finite sets. To work with such structures in proof assistants, we need to be able to explain what a finite set is. In constructive mathematics, a widely used definition is listability: a set is considered to be finite, if its elements can be listed completely. In this paper, we formalize different variations of this definition in the Agda programming language. We develop a toolbox for boilerplate-free programming with finite sets that arise as subsets of some base set with decidable equality. Among other things we implement combinators for defining functions from finite sets and a prover for quantified formulas over decidable properties on finite sets.Keywords
Funding Information
- Estonian Ministry of Education and Research (IUT33-13)
- Estonian Science Foundation (9475)
This publication has 6 references indexed in Scilit:
- On streams that are finitely redLogical Methods in Computer Science, 2012
- Dependently Typed Programming in Agda2009
- Canonical Big Operators2008
- Comprehending monadsMathematical Structures in Computer Science, 1992
- Constructive Analysis1985
- Sur la notion d'ensemble finiFundamenta Mathematicae, 1920