Typed Embedding of a Relational Language in OCaml

Dmitrii Kosarev, Dmitry Boulytchev
5/28/2018
24 citations
cs.PL

Official code: PLTools/OCanren (125 stars, OCaml, LGPL-2.1, last commit 2026-08-27).

Abstract

We present an implementation of the relational programming language miniKanren as a set of combinators and syntax extensions for OCaml. The key feature of our approach is polymorphic unification, which can be used to unify data structures of arbitrary types.

Show full abstract

In addition we provide a useful generic programming pattern to systematically develop relational specifications in a typed manner, and address the problem of integration of relational subsystems into functional applications.

View on arXivView PDF

Code Implementations(1)

PLTools/OCanrenOfficial100%
LGPL-2.1

Statically typed embedding of miniKanren relational programming language into OCaml

12518OCaml, DuneSep 22, 20153 months agoLGPL-2.1
minikanrenocamlrelational-programming

Similar Papers

Cite this paper

@article{kosarev2018typed,
  title  = {Typed Embedding of a Relational Language in OCaml},
  author = {Dmitrii Kosarev and Dmitry Boulytchev},
  year   = {2018},
  eprint = {1805.11006},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1805.11006}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1805.11006.svg)](https://codeofpaper.com/paper/1805.11006)

Discussion