Back to Search Start Over

Defining Corecursive Functions in Coq Using Approximations

Authors :
Vlad Rusu and David Nowak
Rusu, Vlad
Nowak, David
Vlad Rusu and David Nowak
Rusu, Vlad
Nowak, David
Publication Year :
2022

Abstract

We present two methods for defining corecursive functions that go beyond what is accepted by the builtin corecursion mechanisms of the Coq proof assistant. This gain in expressiveness is obtained by using a combination of axioms from Coq’s standard library that, to our best knowledge, do not introduce inconsistencies but enable reasoning in standard mathematics. Both methods view corecursive functions as limits of sequences of approximations, and both are based on a property of productiveness that, intuitively, requires that for each input, an arbitrarily close approximation of the corresponding output is eventually obtained. The first method uses Coq’s builtin corecursive mechanisms in a non-standard way, while the second method uses none of the mechanisms but redefines them. Both methods are implemented in Coq and are illustrated with examples.

Details

Database :
OAIster
Notes :
application/pdf, English
Publication Type :
Electronic Resource
Accession number :
edsoai.on1358730996
Document Type :
Electronic Resource
Full Text :
https://doi.org/10.4230.LIPIcs.ECOOP.2022.12