The University of Southampton
University of Southampton Institutional Repository

Coinductive soundness of corecursive type class resolution

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
0302-9743
311-327
Springer
Farka, František
27fe3fde-d687-4882-a2a7-cae39126c589
Komendantskaya, Ekaterina
f12d9c23-5589-40b8-bcf9-a04fe9dedf61
Hammond, Kevin
88dff6c4-1247-4fc0-bee5-b8aa994b8c30
Hermenegildo, Manuel V.
Lopez-Garcia, Pedro
Farka, František
27fe3fde-d687-4882-a2a7-cae39126c589
Komendantskaya, Ekaterina
f12d9c23-5589-40b8-bcf9-a04fe9dedf61
Hammond, Kevin
88dff6c4-1247-4fc0-bee5-b8aa994b8c30
Hermenegildo, Manuel V.
Lopez-Garcia, Pedro

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. pp. 311-327 . (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
ORCID for Ekaterina Komendantskaya: ORCID iD orcid.org/0000-0002-3240-0987

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 ORCID iD
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

Atom RSS 1.0 RSS 2.0

Contact ePrints Soton: eprints@soton.ac.uk

ePrints Soton supports OAI 2.0 with a base URL of http://eprints.soton.ac.uk/cgi/oai2

This repository has been built using EPrints software, developed at the University of Southampton, but available to everyone to use.

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we will assume that you are happy to receive cookies on the University of Southampton website.

×