Coinductive soundness of corecursive type class resolution
Coinductive soundness of corecursive type class resolution
Horn clauses and first-order resolution are commonly used to implement type classes in Haskell. Several corecursive extensions to type class resolution have recently been proposed, with the goal of allowing (co)recursive dictionary construction where resolution does not terminate. This paper shows, for the first time, that corecursive type class resolution and its extensions are coinductively sound with respect to the greatest Herbrand models of logic programs and that they are inductively unsound with respect to the least Herbrand models. We establish incompleteness results for various fragments of the proof system.
Coinduction, Haskell, Herbrand models, Horn clauses, Resolution, Type classes
311-327
Farka, František
27fe3fde-d687-4882-a2a7-cae39126c589
Komendantskaya, Ekaterina
f12d9c23-5589-40b8-bcf9-a04fe9dedf61
Hammond, Kevin
88dff6c4-1247-4fc0-bee5-b8aa994b8c30
25 July 2017
Farka, František
27fe3fde-d687-4882-a2a7-cae39126c589
Komendantskaya, Ekaterina
f12d9c23-5589-40b8-bcf9-a04fe9dedf61
Hammond, Kevin
88dff6c4-1247-4fc0-bee5-b8aa994b8c30
Farka, František, Komendantskaya, Ekaterina and Hammond, Kevin
(2017)
Coinductive soundness of corecursive type class resolution.
Hermenegildo, Manuel V. and Lopez-Garcia, Pedro
(eds.)
In Logic-Based Program Synthesis and Transformation - 26th International Symposium, LOPSTR 2016, Revised Selected Papers.
vol. 10184,
Springer.
.
(doi:10.1007/978-3-319-63139-4_18).
Record type:
Conference or Workshop Item
(Paper)
Abstract
Horn clauses and first-order resolution are commonly used to implement type classes in Haskell. Several corecursive extensions to type class resolution have recently been proposed, with the goal of allowing (co)recursive dictionary construction where resolution does not terminate. This paper shows, for the first time, that corecursive type class resolution and its extensions are coinductively sound with respect to the greatest Herbrand models of logic programs and that they are inductively unsound with respect to the least Herbrand models. We establish incompleteness results for various fragments of the proof system.
This record has no associated files available for download.
More information
Published date: 25 July 2017
Additional Information:
Publisher Copyright:
© Springer International Publishing AG 2017.
Venue - Dates:
26th International Symposium on Logic-Based Program Synthesis and Transformation, LOPSTR 2016, , Edinburgh, United Kingdom, 2016-09-06 - 2016-09-08
Keywords:
Coinduction, Haskell, Herbrand models, Horn clauses, Resolution, Type classes
Identifiers
Local EPrints ID: 500424
URI: http://eprints.soton.ac.uk/id/eprint/500424
ISSN: 0302-9743
PURE UUID: c06abdb9-09c6-4a3e-b309-cccc5782a54a
Catalogue record
Date deposited: 29 Apr 2025 16:43
Last modified: 23 May 2025 02:08
Export record
Altmetrics
Contributors
Author:
František Farka
Author:
Ekaterina Komendantskaya
Author:
Kevin Hammond
Editor:
Manuel V. Hermenegildo
Editor:
Pedro Lopez-Garcia
Download statistics
Downloads from ePrints over the past year. Other digital versions may also be available to download e.g. from the publisher's website.
View more statistics