<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Higher-Order Logic Programming for (aux kanren micro) on Massimo Nocentini</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/</link><description>Recent content in Higher-Order Logic Programming for (aux kanren micro) on Massimo Nocentini</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://massimo-nocentini.github.io/book/higher-order-kanren/index.xml" rel="self" type="application/rss+xml"/><item><title>Abstract</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/abstract/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/abstract/</guid><description>&lt;p&gt;&lt;code&gt;(aux kanren micro)&lt;/code&gt; is a small, fast miniKanren whose terms are first-order Scheme data and whose goals are first-order Horn clauses. λProlog, the language of Miller and Nadathur’s &lt;em&gt;Programming with Higher-Order Logic&lt;/em&gt;, runs a much larger logic: goals may say “for every new name &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;x&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;”&lt;/span&gt; and “assuming &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;D&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;”,&lt;/span&gt; terms may contain λ-binders, and unification works modulo α, β and η, so that programs over syntax with binders need no code for renaming, fresh names or capture-avoiding substitution. This document asks what it would take to give &lt;code&gt;(aux kanren micro)&lt;/code&gt; the same power. Part I summarizes the book chapter by chapter, with its core examples; Part II surveys the miniKanren literature on these features, centered on Ma and Friedman’s higher-order unification algorithm for λKanren; Part III describes the engine and proposes a concrete answer: a generic extension protocol for the engine and a client module, &lt;code&gt;(aux kanren lambda)&lt;/code&gt;, providing λ-terms, the goals &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant="normal"&gt;∀&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\forall&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; and &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo&gt;⊃&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\supset&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;,&lt;/span&gt; and higher-order pattern unification with universe levels and delayed non-patterns, prototyped, tested, benchmarked, and merged into &lt;code&gt;aux&lt;/code&gt; in five commits.&lt;/p&gt;</description></item><item><title>Introduction</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/ch01-intro/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/ch01-intro/</guid><description>&lt;p&gt;&lt;code&gt;(aux kanren micro)&lt;/code&gt; is a small, fast miniKanren. Its terms are first-order Scheme data, its unifier is first-order unification with an occurs check, and its goals are conjunctions, disjunctions and existentials. In logical terms it runs first-order Horn clauses (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch02-horn/#sec:horn-micro"&gt;Section&amp;nbsp;2.12&lt;/a&gt;). λProlog, the language of Miller and Nadathur’s &lt;em&gt;Programming with Higher-Order Logic&lt;/em&gt; &lt;label for="sn-192138-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-192138-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="millernadathur2012"&gt;Dale Miller and Gopalan Nadathur. &lt;cite&gt;Programming with Higher-Order Logic&lt;/cite&gt;. Cambridge University Press, Cambridge, 2012&lt;/span&gt;&lt;/span&gt;, runs a much larger logic. Goals may say “for every new name &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;x&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;”&lt;/span&gt; and “assuming &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;D&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;”,&lt;/span&gt; terms may contain λ-binders, and unification works modulo α, β and η. With these three features, programs over syntax with binders (type checkers, evaluators, provers, program transformations) contain no code for renaming, fresh names or capture-avoiding substitution, because the logic does that work.&lt;/p&gt;</description></item><item><title>Logic programming as proof search</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch02-horn/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch02-horn/</guid><description>&lt;p&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/ch01-intro/"&gt;Chapter&amp;nbsp;1&lt;/a&gt; gave the overall plan of this document: read Miller and Nadathur&amp;rsquo;s &lt;em&gt;Programming with&#10;Higher-Order Logic&lt;/em&gt; &lt;label for="sn-8843f5-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-8843f5-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="millernadathur2012"&gt;Dale Miller and Gopalan Nadathur. &lt;cite&gt;Programming with Higher-Order Logic&lt;/cite&gt;. Cambridge University Press, Cambridge, 2012&lt;/span&gt;&lt;/span&gt; with a miniKanren programmer&amp;rsquo;s eyes, and find out what&#10;&lt;code&gt;(aux kanren micro)&lt;/code&gt; would need in order to host its ideas. This chapter lays the first-order foundation. It covers the&#10;book&amp;rsquo;s Introduction and its Chapters 1 and 2, plus the parts of the Teyjus appendix needed to run the&#10;examples. Nothing here goes beyond Prolog in expressive power. What is new, compared with the usual&#10;Prolog textbook, is the &lt;em&gt;point of view&lt;/em&gt;. A logic program is a set of formulas, a query is a formula,&#10;and running the query means &lt;em&gt;searching for a proof&lt;/em&gt; in a sequent calculus. Each logical connective&#10;has a fixed search meaning, independent of the program. Atomic goals are solved by &lt;em&gt;backchaining&lt;/em&gt;&#10;on program clauses. A language counts as a logic programming language when this goal-directed search&#10;is &lt;em&gt;complete&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Hereditary Harrop formulas: implication and universal goals</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch03-hh/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch03-hh/</guid><description>&lt;p&gt;In &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch02-horn/"&gt;Chapter&amp;nbsp;2&lt;/a&gt; we met the logic of first-order Horn clauses, &lt;em&gt;fohc&lt;/em&gt;, the logic behind Prolog.&#10;Its search semantics was given by a handful of reduction rules, one per logical symbol, and two&#10;of them never fired: AUGMENT, for goals of the form &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;mo&gt;⊃&lt;/mo&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;D\supset G&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;,&lt;/span&gt; and GENERIC, for goals of the form&#10;&lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant="normal"&gt;∀&lt;/mi&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mtext&gt; &lt;/mtext&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\forall x\,G&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;.&lt;/span&gt; The reason is purely syntactic: in &lt;em&gt;fohc&lt;/em&gt; neither goals nor clause bodies may&#10;contain implications or universal quantifiers, so the signature &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant="normal"&gt;Σ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\Sigma&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; and the program &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;𝒫&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\mathcal{P}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; stay&#10;fixed for the whole computation. Miller and Nadathur &lt;label for="sn-f422ed-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-f422ed-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="millernadathur2012"&gt;Dale Miller and Gopalan Nadathur. &lt;cite&gt;Programming with Higher-Order Logic&lt;/cite&gt;. Cambridge University Press, Cambridge, 2012&lt;/span&gt;&lt;/span&gt; observe that such a language “does not make&#10;very strong use of the structure afforded by logic” [MN p. 75].&lt;/p&gt;</description></item><item><title>Typed λ-terms and unification problems</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch04-lambda/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch04-lambda/</guid><description>&lt;p&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch02-horn/"&gt;Chapter&amp;nbsp;2&lt;/a&gt; and &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch03-hh/"&gt;Chapter&amp;nbsp;3&lt;/a&gt; did logic programming over &lt;em&gt;first-order&lt;/em&gt; terms. &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch03-hh/"&gt;Chapter&amp;nbsp;3&lt;/a&gt; added&#10;universal quantifiers and implications to goals (&lt;em&gt;fohh&lt;/em&gt;), and with them eigenvariables: constants made&#10;up during the search that no logic variable created earlier may capture. Chapter 4 of the book&#10;&lt;label for="sn-55e956-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-55e956-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="millernadathur2012"&gt;Dale Miller and Gopalan Nadathur. &lt;cite&gt;Programming with Higher-Order Logic&lt;/cite&gt;. Cambridge University Press, Cambridge, 2012&lt;/span&gt;&lt;/span&gt; keeps the logic and changes the &lt;em&gt;terms&lt;/em&gt;. First-order terms give way to&#10;&lt;em&gt;simply typed λ-terms&lt;/em&gt;. This chapter studies those terms on their own and leaves the higher-order&#10;logic built on them to &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch05-hoprog/"&gt;Chapter&amp;nbsp;5&lt;/a&gt; [MN p. 96].&lt;/p&gt;</description></item><item><title>Higher-order programming</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch05-hoprog/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch05-hoprog/</guid><description>&lt;p&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch04-lambda/"&gt;Chapter&amp;nbsp;4&lt;/a&gt; replaced first-order terms by simply typed &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-terms and allowed quantification at every type, including predicate types (types whose target is &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;𝗈&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\mathsf{o}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;);&lt;/span&gt; it also showed that unification of such terms is undecidable and may have infinitely many incomparable solutions. This chapter, which follows Chapter 5 of the book &lt;label for="sn-33c6b9-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-33c6b9-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="millernadathur2012"&gt;Dale Miller and Gopalan Nadathur. &lt;cite&gt;Programming with Higher-Order Logic&lt;/cite&gt;. Cambridge University Press, Cambridge, 2012&lt;/span&gt;&lt;/span&gt; and the core of its Chapter 6, asks the practical question: &lt;em&gt;what logic programming languages do we get, and what do they buy us?&lt;/em&gt;&lt;/p&gt;</description></item><item><title>λ-tree syntax: computing with binders</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch06-lambdatree/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch06-lambdatree/</guid><description>&lt;p&gt;The previous chapters gave us two kinds of machinery. &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch04-lambda/"&gt;Chapter&amp;nbsp;4&lt;/a&gt; and &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch05-hoprog/"&gt;Chapter&amp;nbsp;5&lt;/a&gt; gave us simply typed &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-terms as &lt;em&gt;data&lt;/em&gt;, with an equality that already contains &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\alpha&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-, &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\beta&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;- and &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;η&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\eta&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-conversion. &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch03-hh/"&gt;Chapter&amp;nbsp;3&lt;/a&gt; gave us the two goal connectives of hereditary Harrop formulas: the universal goal &lt;code&gt;pi x\ G&lt;/code&gt;, proved with a fresh &lt;em&gt;eigenvariable&lt;/em&gt;, and the implicational goal &lt;code&gt;D =&amp;gt; G&lt;/code&gt;, proved with the program temporarily extended by &lt;code&gt;D&lt;/code&gt;. This chapter, which follows Chapter 7 of the book&lt;label for="sn-375d15-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-375d15-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="millernadathur2012"&gt;Dale Miller and Gopalan Nadathur. &lt;cite&gt;Programming with Higher-Order Logic&lt;/cite&gt;. Cambridge University Press, Cambridge, 2012&lt;/span&gt;&lt;/span&gt; ([MN p. 175]–[MN p. 210]), shows what the two kinds of machinery can do together: they let a logic program compute over syntax that contains &lt;em&gt;binders&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Unification of λ-terms and higher-order patterns</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch07-hounif/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch07-hounif/</guid><description>&lt;p&gt;The previous chapters built programs whose execution keeps asking one question: &lt;em&gt;find values for the logic variables that make two &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-terms equal modulo &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\alpha&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;,&lt;/span&gt; &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\beta&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; and &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;η&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\eta&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;. &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch04-lambda/"&gt;Chapter&amp;nbsp;4&lt;/a&gt; showed how such questions are written as quantified formulas; &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch05-hoprog/"&gt;Chapter&amp;nbsp;5&lt;/a&gt; and &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch06-lambdatree/"&gt;Chapter&amp;nbsp;6&lt;/a&gt; produced them by the thousand, from higher-order predicates such as &lt;code&gt;mappred&lt;/code&gt; and from the &lt;code&gt;pi x\ ...&lt;/code&gt; goals that walk under binders in &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-tree syntax. &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch06-lambdatree/"&gt;Chapter&amp;nbsp;6&lt;/a&gt; also isolated the fragment &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;L&lt;/mi&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;L_\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;,&lt;/span&gt; in which a logic variable is applied only to distinct bound variables. This chapter, which follows Chapter 8 of the book&lt;label for="sn-864800-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-864800-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="millernadathur2012"&gt;Dale Miller and Gopalan Nadathur. &lt;cite&gt;Programming with Higher-Order Logic&lt;/cite&gt;. Cambridge University Press, Cambridge, 2012&lt;/span&gt;&lt;/span&gt;, explains how an implementation &lt;em&gt;solves&lt;/em&gt; these questions, and why &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;L&lt;/mi&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;L_\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; is the fragment to aim for.&lt;/p&gt;</description></item><item><title>Applications: provers, functional programs, processes</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch08-apps/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch08-apps/</guid><description>&lt;p&gt;The previous chapters assembled three tools: &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-tree syntax, which represents object-level binders by meta-level abstractions (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch06-lambdatree/"&gt;Chapter&amp;nbsp;6&lt;/a&gt;); the universal and implicational goals of hereditary Harrop formulas, which give fresh constants and scoped hypotheses (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch03-hh/"&gt;Chapter&amp;nbsp;3&lt;/a&gt;); and the unification of &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-terms, decidable and most-general in the pattern fragment &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;L&lt;/mi&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;L_\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch07-hounif/"&gt;Chapter&amp;nbsp;7&lt;/a&gt;). Chapters 9–11 of the book&lt;label for="sn-018767-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-018767-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="millernadathur2012"&gt;Dale Miller and Gopalan Nadathur. &lt;cite&gt;Programming with Higher-Order Logic&lt;/cite&gt;. Cambridge University Press, Cambridge, 2012&lt;/span&gt;&lt;/span&gt; put the three to work on three families of meta-programs: &lt;em&gt;proof systems&lt;/em&gt; (intuitionistic and classical provers, proof checkers, tactics), &lt;em&gt;functional programs&lt;/em&gt; (type inference, evaluators, partial evaluation, CPS conversion) and &lt;em&gt;processes&lt;/em&gt; (the &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;π&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\pi&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-calculus, its transitions, traces, and an encoding of the &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-calculus).&lt;/p&gt;</description></item><item><title>Higher-order miniKanren: the literature</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-2/ch09-lkanren/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-2/ch09-lkanren/</guid><description>&lt;p&gt;The previous chapters described what λProlog is. It has a logic, higher-order hereditary Harrop&#10;formulas (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch03-hh/"&gt;Chapter&amp;nbsp;3&lt;/a&gt;). It has a term language, simply typed λ-terms used as λ-tree syntax&#10;(&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch04-lambda/"&gt;Chapter&amp;nbsp;4&lt;/a&gt; and &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch06-lambdatree/"&gt;Chapter&amp;nbsp;6&lt;/a&gt;). It has a unifier, Huet&amp;rsquo;s procedure or its decidable core, pattern&#10;unification (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch07-hounif/"&gt;Chapter&amp;nbsp;7&lt;/a&gt;). And it has a style of programming (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch08-apps/"&gt;Chapter&amp;nbsp;8&lt;/a&gt;). This chapter&#10;changes the point of view. Several people have tried to put these ideas into a miniKanren, and&#10;several systems implement λProlog efficiently. What did they actually do, and what went wrong?&lt;/p&gt;</description></item><item><title>Anatomy of (aux kanren micro)</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch10-micro/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch10-micro/</guid><description>&lt;p&gt;The chapters so far studied what a higher-order logic programming language &lt;em&gt;is&lt;/em&gt;: the uniform&#10;proofs of hereditary Harrop formulas (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch03-hh/"&gt;Chapter&amp;nbsp;3&lt;/a&gt;), λ-terms as data (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch04-lambda/"&gt;Chapter&amp;nbsp;4&lt;/a&gt; and &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch06-lambdatree/"&gt;Chapter&amp;nbsp;6&lt;/a&gt;),&#10;higher-order pattern unification (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch07-hounif/"&gt;Chapter&amp;nbsp;7&lt;/a&gt;), and, in &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-2/ch09-lkanren/"&gt;Chapter&amp;nbsp;9&lt;/a&gt;, how λKanren grafts&#10;these features onto a miniKanren &lt;label for="sn-2bef39-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-2bef39-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="mafriedman2021"&gt;Weixi Ma and Daniel P. Friedman. A new higher-order unification algorithm for &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;Kanren. In &lt;cite&gt;miniKanren and Relational Programming Workshop&lt;/cite&gt;, 2021&lt;/span&gt;; and &lt;span class="bib-entry" data-cite="malufriedman2020"&gt;Weixi Ma, Kuang-Chen Lu, and Daniel P. Friedman. Higher-order logic programming with &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;Kanren. In &lt;cite&gt;miniKanren and Relational Programming Workshop&lt;/cite&gt;, 2020&lt;/span&gt;&lt;/span&gt;. This chapter opens the&#10;&lt;em&gt;proposal&lt;/em&gt; part of the document. Before deciding how &lt;code&gt;(aux kanren micro)&lt;/code&gt; should grow, we need an exact&#10;picture of the engine: what a variable is, what a state contains, how unification&#10;and the constraint stores interact, how the search interleaves, and how answers are printed. The&#10;point is not to explain the code to its author but to put next to each other the facts that matter&#10;when the engine is extended: which invariants a new feature must preserve, which parts can be&#10;reused from outside, and which parts are closed.&lt;/p&gt;</description></item><item><title>Bringing λProlog to (aux kanren micro): the design</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch11-design/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch11-design/</guid><description>&lt;p&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch10-micro/"&gt;Chapter&amp;nbsp;10&lt;/a&gt; ended with a precise list of what an importing module cannot obtain from &lt;code&gt;(aux kanren micro)&lt;/code&gt; today: a named place in the state for its own data, a call after every binding (to check the scope of eigenvariables eagerly and to wake postponed equations), and a say in reification (to print new constraints and to hide what must not escape). The three tricks of &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch10-micro/#sec:micro-noedit"&gt;Section&amp;nbsp;10.9.2&lt;/a&gt; show that &lt;span class="sc"&gt;augment&lt;/span&gt; and &lt;span class="sc"&gt;generic&lt;/span&gt; &lt;em&gt;fit&lt;/em&gt; the shape of a μKanren goal; they do not make them sound under every goal of the engine, nor cheap.&lt;/p&gt;</description></item><item><title>The module (aux kanren lambda)</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch12-module/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch12-module/</guid><description>&lt;p&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch10-micro/"&gt;Chapter&amp;nbsp;10&lt;/a&gt; took &lt;code&gt;(aux kanren micro)&lt;/code&gt; apart and ended, in &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch10-micro/#sec:micro-ext"&gt;Section&amp;nbsp;10.9&lt;/a&gt;, with the list of points an extension&#10;cannot reach from outside: the state has no free slot, and the unifier, the walkers and the reifier are closed.&#10;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch11-design/"&gt;Chapter&amp;nbsp;11&lt;/a&gt; opened exactly those points with a small, λ-agnostic protocol of hooks and explained why the&#10;proposal is a client module of that protocol rather than a native engine. This chapter is about the client&#10;itself: the module &lt;code&gt;(aux kanren lambda)&lt;/code&gt;, which brings into &lt;code&gt;(aux kanren micro)&lt;/code&gt; the three ingredients of Part I,&lt;/p&gt;</description></item><item><title>The book’s examples in (aux kanren lambda)</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch13-examples/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch13-examples/</guid><description>&lt;p&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch12-module/"&gt;Chapter&amp;nbsp;12&lt;/a&gt; presented the module &lt;code&gt;(aux kanren lambda)&lt;/code&gt; rule by rule: the terms &lt;code&gt;ƛ&lt;/code&gt; and&#10;&lt;code&gt;@&lt;/code&gt;, the levels that police the scope of eigenvariables,&#10;the unifier for &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;L&lt;/mi&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;L_\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; with its delayed equations, and the goals &lt;code&gt;∀°&lt;/code&gt; and &lt;code&gt;⊃°&lt;/code&gt;. This chapter&#10;runs that machinery on the programs of Part I. Each example was introduced in an earlier chapter, where&#10;we explained what it means in λProlog. Here we ask a narrower question: what does the module&#10;&lt;em&gt;do&lt;/em&gt; with it? Which rule fires, why does the answer have the shape it has, and does it come out in&#10;the order λProlog gives?&lt;/p&gt;</description></item><item><title>Limitations, costs and the merge</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch14-roadmap/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch14-roadmap/</guid><description>&lt;p&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch11-design/"&gt;Chapter&amp;nbsp;11&lt;/a&gt;, &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch12-module/"&gt;Chapter&amp;nbsp;12&lt;/a&gt; and &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-3/ch13-examples/"&gt;Chapter&amp;nbsp;13&lt;/a&gt; presented the proposal from the inside. The first gave the&#10;extension protocol added to &lt;code&gt;(aux kanren micro)&lt;/code&gt;, the second the module &lt;code&gt;(aux kanren lambda)&lt;/code&gt; built on it, and&#10;the third the book&amp;rsquo;s programs running beside their λProlog originals. This chapter looks at the proposal&#10;from the outside, as a reviewer does before and after a merge. It asks five questions.&lt;/p&gt;</description></item><item><title>Reference card: rules and algorithms</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/appendices/appa-rules/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/appendices/appa-rules/</guid><description>&lt;p&gt;This appendix lists the formal rules used in the document, each with the page where its source states it; &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch02-horn/"&gt;Chapter&amp;nbsp;2&lt;/a&gt;, &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch03-hh/"&gt;Chapter&amp;nbsp;3&lt;/a&gt;, &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch04-lambda/"&gt;Chapter&amp;nbsp;4&lt;/a&gt;, &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch05-hoprog/"&gt;Chapter&amp;nbsp;5&lt;/a&gt; and &lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/part-1/ch07-hounif/"&gt;Chapter&amp;nbsp;7&lt;/a&gt; explain them.&#10;Page references [MN p. n] use the printed page numbers of&lt;label for="sn-5caf08-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-5caf08-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="millernadathur2012"&gt;Dale Miller and Gopalan Nadathur. &lt;cite&gt;Programming with Higher-Order Logic&lt;/cite&gt;. Cambridge University Press, Cambridge, 2012&lt;/span&gt;&lt;/span&gt;; papers are cited with their own page numbers.&lt;/p&gt;&#10;&lt;p&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/higher-order-kanren/appendices/appa-rules/#tab-rules-syntax"&gt;Table&amp;nbsp;A.1&lt;/a&gt; maps every λProlog construct used in the document to the logical formula it denotes.&lt;/p&gt;</description></item><item><title>Glossary</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/appendices/appb-glossary/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/appendices/appb-glossary/</guid><description>&lt;p&gt;The preceding chapters use vocabulary from three communities. The first is the proof theory of Miller and&#10;Nadathur&amp;rsquo;s book&lt;label for="sn-96f79f-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-96f79f-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="millernadathur2012"&gt;Dale Miller and Gopalan Nadathur. &lt;cite&gt;Programming with Higher-Order Logic&lt;/cite&gt;. Cambridge University Press, Cambridge, 2012&lt;/span&gt;&lt;/span&gt;, where you find sequents, uniform proofs and eigenvariables. The second&#10;is the literature on unification of &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;λ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\lambda&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-terms (patterns, raising, pruning, universe levels). The third is&#10;miniKanren, with streams, interleaving, soft cut and reification, and in particular the engine &lt;code&gt;(aux kanren micro)&lt;/code&gt; that we&#10;want to extend. The same word sometimes means different things in different communities (“suspension”,&#10;“level”, “scope extrusion”, “fresh”), and the same idea sometimes has three names&#10;(GENERIC, &lt;code&gt;pi&lt;/code&gt;, &lt;code&gt;all&lt;/code&gt;). This appendix collects all of them in one alphabetical list. Each entry gives a&#10;short, precise definition and tells you where the concept is treated in this document and in the book.&lt;/p&gt;</description></item><item><title>Bibliography</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/bibliography/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/bibliography/</guid></item><item><title>List of Figures</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/list-of-figures/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/list-of-figures/</guid></item><item><title>List of Tables</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/list-of-tables/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/list-of-tables/</guid></item><item><title>List of Listings</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/list-of-listings/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/list-of-listings/</guid></item><item><title>List of Theorems</title><link>https://massimo-nocentini.github.io/book/higher-order-kanren/list-of-theorems/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/higher-order-kanren/list-of-theorems/</guid></item></channel></rss>