Relational Programming in miniKanren: Techniques, Applications, and Implementations

dc.contributor.advisorFriedman, Daniel P
dc.contributor.authorByrd, William E.
dc.date.accessioned2010-06-16T17:43:40Z
dc.date.available2011-05-14T11:54:55Z
dc.date.issued2010-06-16
dc.date.submitted2009
dc.descriptionThesis (Ph.D.) - Indiana University, Computer Sciences, 2009
dc.description.abstractThe promise of logic programming is that programs can be written relationally, without distinguishing between input and output arguments. Relational programs are remarkably flexible—for example, a relational type-inferencer also performs type checking and type inhabitation, while a relational theorem prover generates theorems as well as proofs and can even be used as a simple proof assistant. Unfortunately, writing relational programs is difficult, and requires many interesting and unusual tools and techniques. For example, a relational interpreter for a subset of Scheme might use nominal unification to support variable binding and scope, Constraint Logic Programming over Finite Domains (CLP(FD)) to implement relational arithmetic, and tabling to improve termination behavior. In this dissertation I present miniKanren, a family of languages specifically designed for relational programming, and which supports a variety of relational idioms and techniques. I show how miniKanren can be used to write interesting relational programs, including an extremely flexible lean tableau theorem prover and a novel constraint-free binary arithmetic system with strong termination guarantees. I also present interesting and practical techniques used to implement miniKanren, including a nominal unifier that uses triangular rather than idempotent substitutions and a novel “walk”-based algorithm for variable lookup in triangular substitutions. The result of this research is a family of languages that supports a variety of relational idioms and techniques, making it feasible and useful to write interesting programs as relations.
dc.identifier.urihttps://hdl.handle.net/2022/8777
dc.language.isoEN
dc.publisher[Bloomington, Ind.] : Indiana University
dc.rightsThis work is licensed under the Creative Commons Attribution-By 3.0 Unported License
dc.rights.urihttp://creativecommons.org/licenses/by/3.0/
dc.subjectrelational programming
dc.subjectminiKanren
dc.subjectlogic programming
dc.subjectScheme
dc.subject.classificationComputer Science
dc.titleRelational Programming in miniKanren: Techniques, Applications, and Implementations
dc.typeDoctoral Dissertation

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Byrd_indiana_0093A_10344.pdf
Size:
1.12 MB
Format:
Adobe Portable Document Format
Can’t use the file because of accessibility barriers? Contact us