Skip to contentList of Theorems
- Tutorial What happens to the state while typeof° types λx.xIntroduction
- Definition 1.1 Levels and patternsIntroduction
- Example 1.2 Scope and patternsIntroduction
- Kanren angle Why not just use Scheme closures?Introduction
- Pitfall Hypotheses need a dynamic relationIntroduction
- Pitfall Two page numberingsIntroduction
- Definition 2.1 Target type, order [MN p. 13]Logic programming as proof search
- Pitfall First-order syntax does not capture bindingLogic programming as proof search
- Remark 2.2Logic programming as proof search
- Definition 2.3 Unification problem, unifier, mgu [MN p. 26–28]Logic programming as proof search
- Theorem 2.4 mgu [MN p. 28]Logic programming as proof search
- Definition 2.5 Solved form [MN p. 29]Logic programming as proof search
- Theorem 2.6 Termination and correctness [MN p. 29]Logic programming as proof search
- Tutorial Three unification traces [MN p. 29–30]Logic programming as proof search
- Kanren angle Unification in (aux kanren micro)Logic programming as proof search
- Definition 2.7 Search semantics of the logical symbols [MN p. 39]Logic programming as proof search
- Example 2.8 Why goal-directedness can fail [MN p. 41–42]Logic programming as proof search
- Definition 2.9 fohc [MN p. 43]Logic programming as proof search
- Definition 2.10 O-proof [MN p. 45]Logic programming as proof search
- Theorem 2.11 Completeness of goal-directed search for fohc [MN p. 45]Logic programming as proof search
- Proposition 2.12 Flatness [MN p. 46]Logic programming as proof search
- Tutorial An O-proof for a query with two answersLogic programming as proof search
- Kanren angle The same session in (aux kanren micro)Logic programming as proof search
- Pitfall An erratum in Figure 2.6Logic programming as proof search
- Pitfall An erratum in the last prv clauseLogic programming as proof search
- Kanren angle The prover in (aux kanren micro)Logic programming as proof search
- Example 2.13 Size and behaviour [MN p. 64–66]Logic programming as proof search
- Definition 2.14 Transparent, determinate [MN p. 67–68]Logic programming as proof search
- Kanren angle Types and (aux kanren micro)Logic programming as proof search
- Kanren angle The FSM, side by side with its λProlog originalLogic programming as proof search
- Pitfall Answer order is not part of the logicLogic programming as proof search
- Kanren angle Negation as failure and moded built-ins in (aux kanren micro)Logic programming as proof search
- Kanren angle What fohc does not need, and later chapters willLogic programming as proof search
- Definition 3.1 fohh goals and clauses [MN p. 75]Hereditary Harrop formulas: implication and universal goals
- Pitfall the precedence of =>Hereditary Harrop formulas: implication and universal goals
- Definition 3.2 polarity [MN p. 76]Hereditary Harrop formulas: implication and universal goals
- Proposition 3.3 [MN p. 76]Hereditary Harrop formulas: implication and universal goals
- Example 3.4Hereditary Harrop formulas: implication and universal goals
- Definition 3.5 clausal order [MN p. 76–77]Hereditary Harrop formulas: implication and universal goals
- Rules 3.6 O-proofsHereditary Harrop formulas: implication and universal goals
- Definition 3.7 O-proof [MN p. 77]Hereditary Harrop formulas: implication and universal goals
- Tutorial programs grow and shrink like a stackHereditary Harrop formulas: implication and universal goals
- Kanren angle answer order is a depth-first artefactHereditary Harrop formulas: implication and universal goals
- Tutorial the O-proof of r => sHereditary Harrop formulas: implication and universal goals
- Pitfall provable, yet the interpreter loopsHereditary Harrop formulas: implication and universal goals
- Tutorial a logic variable inside an assumed clauseHereditary Harrop formulas: implication and universal goals
- Kanren angle the four queries on (aux kanren micro)Hereditary Harrop formulas: implication and universal goals
- Remark 3.8Hereditary Harrop formulas: implication and universal goals
- Definition 3.9 eigenvariable, scoped constant [MN p. 82]Hereditary Harrop formulas: implication and universal goals
- Tutorial sterile jars [MN p. 83]Hereditary Harrop formulas: implication and universal goals
- Pitfall ∀\forall is not “for every value”Hereditary Harrop formulas: implication and universal goals
- Definition 3.10 free for [MN p. 85]Hereditary Harrop formulas: implication and universal goals
- Example 3.11 [MN p. 85]Hereditary Harrop formulas: implication and universal goals
- Tutorial the scope condition, derived from the rulesHereditary Harrop formulas: implication and universal goals
- Kanren angle what ∀\forall demands of the unifierHereditary Harrop formulas: implication and universal goals
- Tutorial running the two-place reverseHereditary Harrop formulas: implication and universal goals
- Pitfall implicit quantification lies inside assumed clausesHereditary Harrop formulas: implication and universal goals
- Kanren angle shared variables come for free with closuresHereditary Harrop formulas: implication and universal goals
- Theorem 3.12 [MN p. 89]Hereditary Harrop formulas: implication and universal goals
- Tutorial why the three formulas failHereditary Harrop formulas: implication and universal goals
- Example 3.13 where minimal and intuitionistic negation part waysHereditary Harrop formulas: implication and universal goals
- Tutorial a proof that uses a hypothesis twice [MN p. 91]Hereditary Harrop formulas: implication and universal goals
- Theorem 3.14 [MN p. 91]Hereditary Harrop formulas: implication and universal goals
- Kanren angle => false is not negation as failureHereditary Harrop formulas: implication and universal goals
- Example 3.15 normalising a clause to atomic headsHereditary Harrop formulas: implication and universal goals
- Pitfall equivalent as programs, not as formulasHereditary Harrop formulas: implication and universal goals
- Pitfall scoped constants and the constraint storesHereditary Harrop formulas: implication and universal goals
- Definition 4.1 Types and termsTyped λ-terms and unification problems
- Definition 4.2 Well-formed, closed, simply typed [MN p. 98]Typed λ-terms and unification problems
- Example 4.3 A typing derivationTyped λ-terms and unification problems
- Kanren angle terms are data, goals are proceduresTyped λ-terms and unification problems
- Definition 4.4 Free for; substitution [MN p. 100]Typed λ-terms and unification problems
- Definition 4.5 The rules of λ-conversion [MN p. 100–101]Typed λ-terms and unification problems
- Example 4.6 Four equal terms [MN p. 101]Typed λ-terms and unification problems
- Pitfall capital letters are not always logic variablesTyped λ-terms and unification problems
- Tutorial capture-avoiding β, by handTyped λ-terms and unification problems
- Theorem 4.7 Normal forms [MN p. 102]Typed λ-terms and unification problems
- Corollary 4.8 Decidable equality [MN p. 102]Typed λ-terms and unification problems
- Remark 4.9 Background the book does not spell outTyped λ-terms and unification problems
- Pitfall equality is intensionalTyped λ-terms and unification problems
- Remark 4.10 An erratum in the size formulaTyped λ-terms and unification problems
- Kanren angle de Bruijn terms and a β-normaliser in plain SchemeTyped λ-terms and unification problems
- Remark 4.11 Order of a typeTyped λ-terms and unification problems
- Definition 4.12 Generalised unification problem [MN p. 105]Typed λ-terms and unification problems
- Tutorial reading a quantifier prefixTyped λ-terms and unification problems
- Example 4.13 Turning λ-equations into a ∀∃∀ prefix [MN p. 106–107]Typed λ-terms and unification problems
- Kanren angle miniKanren has only ∃, and binders leakTyped λ-terms and unification problems
- Proposition 4.14 Raising [MN p. 107]Typed λ-terms and unification problems
- Tutorial raising, step by stepTyped λ-terms and unification problems
- Pitfall raising creates higher-order variablesTyped λ-terms and unification problems
- Kanren angle raising versus levelsTyped λ-terms and unification problems
- Definition 4.15 Legitimate substitution, unifier, solution [MN p. 109]Typed λ-terms and unification problems
- Example 4.16 Unifier but no solutionTyped λ-terms and unification problems
- Kanren angle miniKanren answers are unifiersTyped λ-terms and unification problems
- Kanren angle a first-order simulation of both prefixesTyped λ-terms and unification problems
- Kanren angle words are lists, composition is appendTyped λ-terms and unification problems
- Pitfall what a first-order intuition gets wrongTyped λ-terms and unification problems
- Definition 4.17 Binder, head, arguments, body [MN p. 111]Typed λ-terms and unification problems
- Definition 4.18 βη-long normal form [MN p. 111]Typed λ-terms and unification problems
- Example 4.19 η-expanding to long form [MN p. 111]Typed λ-terms and unification problems
- Definition 4.20 Rigid and flexible [MN p. 111–113]Typed λ-terms and unification problems
- Tutorial classifying heads in practiceTyped λ-terms and unification problems
- Kanren angle what the vocabulary means for the unifierTyped λ-terms and unification problems
- Definition 4.21 PCP [MN p. 114]Typed λ-terms and unification problems
- Tutorial why the encoding is correctTyped λ-terms and unification problems
- Remark 4.22 An erratum in the addition gadgetTyped λ-terms and unification problems
- Theorem 4.23 [MN p. 116]Typed λ-terms and unification problems
- Kanren angle undecidability and the searchTyped λ-terms and unification problems
- Remark 4.24 PolymorphismTyped λ-terms and unification problems
- Tutorial How to run the Scheme listingsHigher-order programming
- Definition 5.1 Rigid and flexible atoms [MN p. 119]Higher-order programming
- Definition 5.2 Polarity [MN p. 121–122]Higher-order programming
- Definition 5.3 Herbrand universes [MN p. 122]Higher-order programming
- Definition 5.4 hohc: higher-order Horn clauses [MN p. 122]Higher-order programming
- Theorem 5.5 Completeness of goal-directed search for hohc [MN p. 123–124], [MN p. 148]Higher-order programming
- Definition 5.6 hohh: higher-order hereditary Harrop formulas [MN p. 124]Higher-order programming
- Definition 5.7 hohh⁺ [MN p. 125]Higher-order programming
- Tutorial What the interpreter does with reverse (1::2::3::nil) KHigher-order programming
- Pitfall Shadowing and shared variables in assumed clausesHigher-order programming
- Kanren angle Hidden predicates are lexical scopeHigher-order programming
- Example 5.8 Queries over the database [MN p. 126–127]Higher-order programming
- Pitfall A logic variable inside a λ is shared, not abstractedHigher-order programming
- Kanren angle Predicate variables with known values are freeHigher-order programming
- Kanren angle Partial application is curried defineHigher-order programming
- Kanren angle Goals are already first-classHigher-order programming
- Example 5.9 Memoised Fibonacci in hohh⁺ [MN p. 132]Higher-order programming
- Tutorial Depth-first search for rel R, R john maryHigher-order programming
- Kanren angle Binding a logic variable to a relation: possible, but opaqueHigher-order programming
- Kanren angle Not available to closuresHigher-order programming
- Tutorial Running the encodingsHigher-order programming
- Kanren angle Which definitions are freeHigher-order programming
- Kanren angle The cut as take° 1Higher-order programming
- Tutorial Why three answers, and then oneHigher-order programming
- Kanren angle Forwards is free, synthesising F is notHigher-order programming
- Pitfall Types do not enforce the invariantsHigher-order programming
- Kanren angle A closure is an fdl you can only runHigher-order programming
- Kanren angle Interleaving as a home for non-unitary unificationHigher-order programming
- Kanren angle Unification on closures is pointer identityHigher-order programming
- Definition 5.10 E-formulas [MN p. 161]Higher-order programming
- Definition 5.11 A module as a formula [MN p. 162]Higher-order programming
- Tutorial Using a hidden constant versus exposing itHigher-order programming
- Tutorial The rules of the E-phase at work on [m3] ?- s a.Higher-order programming
- Kanren angle Modules: what Scheme scoping gives, and what it does notHigher-order programming
- Definition 6.1 The encoding of formulasλ-tree syntax: computing with binders
- Pitfall An η-short quantifier is still a quantifierλ-tree syntax: computing with binders
- Tutorial How interp finds X = bλ-tree syntax: computing with binders
- Kanren angle What works today: abstractions as Scheme closuresλ-tree syntax: computing with binders
- Tutorial Following the binder of (abs y\ app y y)λ-tree syntax: computing with binders
- Definition 6.2 The binder-mobility idiom, [MN p. 185]λ-tree syntax: computing with binders
- Pitfall A fresh constant is not an eigenvariableλ-tree syntax: computing with binders
- Kanren angle What mobility requires of a miniKanrenλ-tree syntax: computing with binders
- Definition 6.3 β-normal, β-body-normal, [MN p. 185]λ-tree syntax: computing with binders
- Tutorial A normal term and a redexλ-tree syntax: computing with binders
- Theorem 6.4 Substitution lemma “for free”, [MN p. 186]λ-tree syntax: computing with binders
- Tutorial One step under a binder: red1 (abs x\ app (abs y\y) x) Nλ-tree syntax: computing with binders
- Tutorial Synthesising a term from its pathsλ-tree syntax: computing with binders
- Pitfall Collecting all answers is outside the logicλ-tree syntax: computing with binders
- Tutorial Why typeof (abs x\x) Ty answers arr T1 T1λ-tree syntax: computing with binders
- Theorem 6.5 Subject reduction for call-by-name, [MN p. 191]–[MN p. 192]λ-tree syntax: computing with binders
- Kanren angle The usual miniKanren rendering: an explicit contextλ-tree syntax: computing with binders
- Tutorial Tracing ?- trans 1 (abs x\ abs y\ abs z\ y) P.λ-tree syntax: computing with binders
- Kanren angle The same translation with an explicit environmentλ-tree syntax: computing with binders
- Pitfall Non-overlap modulo a guard, and a missing caseλ-tree syntax: computing with binders
- Tutorial Where the five prenex forms come fromλ-tree syntax: computing with binders
- Tutorial Reading subst as a hypothetical copyλ-tree syntax: computing with binders
- Proposition 6.6 Correctness of subst, [MN p. 200]λ-tree syntax: computing with binders
- Definition 6.7 Type lowering, [MN p. 201]–[MN p. 202]λ-tree syntax: computing with binders
- Example 6.8 Lowering the quantifier all, [MN p. 201]–[MN p. 202]λ-tree syntax: computing with binders
- Proposition 6.9 [MN p. 202]λ-tree syntax: computing with binders
- Pitfall Copy is equality logically, not operationallyλ-tree syntax: computing with binders
- Kanren angle Clause order and interleavingλ-tree syntax: computing with binders
- Definition 6.10 λ-tree syntax, [MN p. 204]λ-tree syntax: computing with binders
- Definition 6.11 Essentially universal and essentially existential occurrences, [MN p. 205]λ-tree syntax: computing with binders
- Definition 6.12 Lλ, [MN p. 205]–[MN p. 206]λ-tree syntax: computing with binders
- Definition 6.13 β₀, [MN p. 206]λ-tree syntax: computing with binders
- Example 6.14 Goal versus clause, [MN p. 206]λ-tree syntax: computing with binders
- Pitfall β₀ is not the same as Lλλ-tree syntax: computing with binders
- Kanren angle A requirements checklist for (aux kanren micro)λ-tree syntax: computing with binders
- Definition 7.1 Unification problem [MN p. 211]Unification of λ-terms and higher-order patterns
- Example 7.2 Normalising a flexible-flexible problemUnification of λ-terms and higher-order patterns
- Remark 7.3Unification of λ-terms and higher-order patterns
- Definition 7.4 Rigid and flexible [MN p. 214], [MN p. 113]Unification of λ-terms and higher-order patterns
- Kanren angle first-order unification is the degenerate caseUnification of λ-terms and higher-order patterns
- Example 7.5 No mgu [MN p. 213]Unification of λ-terms and higher-order patterns
- Definition 7.6 Complete set of unifiers [MN p. 213]Unification of λ-terms and higher-order patterns
- Example 7.7 No finite CSU [MN p. 213]Unification of λ-terms and higher-order patterns
- Pitfall do not promise “the” answerUnification of λ-terms and higher-order patterns
- Definition 7.8 Imitation and projection [MN p. 215–216]Unification of λ-terms and higher-order patterns
- Pitfall imitation is scope-sensitive, projection is type-sensitiveUnification of λ-terms and higher-order patterns
- Tutorial Huet’s procedure on (F a) = (g a a)Unification of λ-terms and higher-order patterns
- Definition 7.9 Matching tree [MN p. 219]Unification of λ-terms and higher-order patterns
- Theorem 7.10 Completeness of matching trees [MN p. 219–220]Unification of λ-terms and higher-order patterns
- Example 7.11 A flexible-flexible residue [MN p. 217]Unification of λ-terms and higher-order patterns
- Proposition 7.12 Canonical substitution [MN p. 217–218]Unification of λ-terms and higher-order patterns
- Example 7.13 An infinite branch with infinitely many answers [MN p. 218]Unification of λ-terms and higher-order patterns
- Example 7.14 An infinite branch and no answer [MN p. 220]Unification of λ-terms and higher-order patterns
- Kanren angle the matching tree is a miniKanren search treeUnification of λ-terms and higher-order patterns
- Definition 7.15 The Lλ condition [MN p. 220]Unification of λ-terms and higher-order patterns
- Example 7.16 Discharging a constant, p. 4–5Unification of λ-terms and higher-order patterns
- Definition 7.17 β₀ [MN p. 206]Unification of λ-terms and higher-order patterns
- Pitfall β₀ alone is not enoughUnification of λ-terms and higher-order patterns
- Lemma 7.18 At most one useful substitution [MN p. 221]Unification of λ-terms and higher-order patterns
- Proposition 7.19 Flexible-flexible mgus [MN p. 222]Unification of λ-terms and higher-order patterns
- Pitfall same head: positions, not setsUnification of λ-terms and higher-order patterns
- Theorem 7.20 Mgus for higher-order patterns [MN p. 222]Unification of λ-terms and higher-order patterns
- Definition 7.21 Variable eliminationUnification of λ-terms and higher-order patterns
- Pitfall four things the prose leaves implicitUnification of λ-terms and higher-order patterns
- Theorem 7.22 Pattern unification is unitary and terminatingUnification of λ-terms and higher-order patterns
- Example 7.23 The book’s main example [MN p. 223–224]Unification of λ-terms and higher-order patterns
- Tutorial the book’s main example, step by stepUnification of λ-terms and higher-order patterns
- Example 7.24 Occurs failure [MN p. 224]Unification of λ-terms and higher-order patterns
- Example 7.25 Scope failure [MN p. 224]Unification of λ-terms and higher-order patterns
- Example 7.26 Discharging, by eliminationUnification of λ-terms and higher-order patterns
- Kanren angle the scope failure that surprised λKanrenUnification of λ-terms and higher-order patterns
- Example 7.27 Flexible-flexible, different headsUnification of λ-terms and higher-order patterns
- Example 7.28 Pruning under an inner binderUnification of λ-terms and higher-order patterns
- Example 7.29 Two occurrences, two pruningsUnification of λ-terms and higher-order patterns
- Example 7.30 η on demandUnification of λ-terms and higher-order patterns
- Tutorial Example 8.H in de Bruijn formUnification of λ-terms and higher-order patterns
- Kanren angle what first-order unification does with the same termsUnification of λ-terms and higher-order patterns
- Example 7.31 Eager versus delayed raising [MN p. 224–225]Unification of λ-terms and higher-order patterns
- Example 7.32 Why tags must be lowered, p. 16Unification of λ-terms and higher-order patterns
- Kanren angle levels and (aux kanren micro)Unification of λ-terms and higher-order patterns
- Pitfall unifier versus solution; delayed is not solvedUnification of λ-terms and higher-order patterns
- Kanren angle what delaying asks of a miniKanrenUnification of λ-terms and higher-order patterns
- Theorem 8.1 Hudelmaier, Dyckhoff; [MN p. 230–231]Applications: provers, functional programs, processes
- Tutorial the proof the program findsApplications: provers, functional programs, processes
- Pitfall a typo that makes the prover unsoundApplications: provers, functional programs, processes
- Kanren angle the decision procedure on today’s (aux kanren micro)Applications: provers, functional programs, processes
- Kanren angle what interleaving changes for the looping calculusApplications: provers, functional programs, processes
- Tutorial reading the ⊃I clauseApplications: provers, functional programs, processes
- Pitfall mode mattersApplications: provers, functional programs, processes
- Kanren angle what natural deduction needsApplications: provers, functional programs, processes
- Pitfall no rule for ⊥Applications: provers, functional programs, processes
- Pitfall cut plus logic variables loses completenessApplications: provers, functional programs, processes
- Kanren angle what the classical prover needs, and what interleaving givesApplications: provers, functional programs, processes
- Definition 8.2 goals, tactics, tacticals; [MN p. 241]Applications: provers, functional programs, processes
- Tutorial how the script closes the goalApplications: provers, functional programs, processes
- Kanren angle tacticals in Scheme, and what interleaving does to themApplications: provers, functional programs, processes
- Pitfall polymorphic constants, monomorphic variablesApplications: provers, functional programs, processes
- Kanren angle the classic miniKanren type inferencer is this programApplications: provers, functional programs, processes
- Tutorial evaluating a small applicationApplications: provers, functional programs, processes
- Pitfall if is a commit, not logicApplications: provers, functional programs, processes
- Proposition 8.3 [MN p. 256]Applications: provers, functional programs, processes
- Pitfall the proposition needs the logical readingApplications: provers, functional programs, processes
- Tutorial where did the variable case go?Applications: provers, functional programs, processes
- Kanren angle what functional meta-programs needApplications: provers, functional programs, processes
- Tutorial where the side conditions wentApplications: provers, functional programs, processes
- Tutorial three transitions, clause by clauseApplications: provers, functional programs, processes
- Definition 8.4 may- and must-judgments; [MN p. 269]Applications: provers, functional programs, processes
- Pitfall one pi, two jobsApplications: provers, functional programs, processes
- Remark 8.5 Lλ and πI; [MN p. 275]Applications: provers, functional programs, processes
- Kanren angle what the π-calculus needsApplications: provers, functional programs, processes
- Pitfall a preview, not an algorithmHigher-order miniKanren: the literature
- Definition 9.1 Grafting and substitution, p. 2–3Higher-order miniKanren: the literature
- Definition 9.2 Scope restriction, p. 3Higher-order miniKanren: the literature
- Definition 9.3 de Bruijn levels and indices, footnote 3, p. 4Higher-order miniKanren: the literature
- Example 9.4Higher-order miniKanren: the literature
- Kanren angle (aux kanren micro) already graftsHigher-order miniKanren: the literature
- Definition 9.5 Binder-merging, p. 4Higher-order miniKanren: the literature
- Example 9.6 binder-merging at work, p. 4Higher-order miniKanren: the literature
- Definition 9.7 Terms, scopes, static closures, Fig. 1, p. 5Higher-order miniKanren: the literature
- Definition 9.8 Operations on scopes, p. 5Higher-order miniKanren: the literature
- Tutorial the three examples of §4, step by stepHigher-order miniKanren: the literature
- Tutorial a wake-up, step by stepHigher-order miniKanren: the literature
- Tutorial what λProlog offers the novice instead: make the dependency explicitHigher-order miniKanren: the literature
- Tutorial Counter-example 1: the conjunction separates static closures from nominal unificationHigher-order miniKanren: the literature
- Tutorial Counter-example 2: the same variable at two depths danglesHigher-order miniKanren: the literature
- Tutorial Counter-example 3: “true = false” is a bug of binder-merging, not of pattern unificationHigher-order miniKanren: the literature
- Kanren angle what static closures would demand of a miniKanrenHigher-order miniKanren: the literature
- Pitfall hypotheses in a host dynamic parameter get lostHigher-order miniKanren: the literature
- Kanren angle hypotheses belong to the stateHigher-order miniKanren: the literature
- Definition 9.9 Nominal terms and permutationsHigher-order miniKanren: the literature
- Definition 9.10 Freshness and α-equality, Fig. 1Higher-order miniKanren: the literature
- Definition 9.11 Nominal unification, p. 9Higher-order miniKanren: the literature
- Kanren angle what nominal unification asks of a miniKanrenHigher-order miniKanren: the literature
- Kanren angle the eigen-absento idea, by hand, on today’s engineHigher-order miniKanren: the literature
- Lemma 9.12 Lemma 3, p. 9Higher-order miniKanren: the literature
- Lemma 9.13 Def. 11, Lemma 4, p. 10Higher-order miniKanren: the literature
- Lemma 9.14 Def. 12, Lemma 5, p. 10–11Higher-order miniKanren: the literature
- Pitfall eigen-constants and disequalityHigher-order miniKanren: the literature
- Pitfall three different ∀Higher-order miniKanren: the literature
- Definition 9.15 Binding with universe indices, p. 16Higher-order miniKanren: the literature
- Tutorial why lowering is neededHigher-order miniKanren: the literature
- Example 9.16 no mgu outside the fragment, p. 5Higher-order miniKanren: the literature
- Definition 9.17 Reduction-free fragment Lλβ, Def. 1Higher-order miniKanren: the literature
- Kanren angle what the implementations ask of a miniKanrenHigher-order miniKanren: the literature
- Definition 10.1 Terms of (aux kanren micro)Anatomy of (aux kanren micro)
- Pitfall A variable is a recordAnatomy of (aux kanren micro)
- Kanren angle Indices as levelsAnatomy of (aux kanren micro)
- Definition 10.2 StateAnatomy of (aux kanren micro)
- Proposition 10.3 The eq?-invariantAnatomy of (aux kanren micro)
- Pitfall Preserving the eq?-invariantAnatomy of (aux kanren micro)
- Definition 10.4 WalkAnatomy of (aux kanren micro)
- Pitfall Deep walks rebuild recordsAnatomy of (aux kanren micro)
- Definition 10.5 Unification, :483–515Anatomy of (aux kanren micro)
- Pitfall Procedures are opaqueAnatomy of (aux kanren micro)
- Kanren angle Where higher-order unification would goAnatomy of (aux kanren micro)
- Definition 10.6 PrefixAnatomy of (aux kanren micro)
- Tutorial The life of a tuple disequalityAnatomy of (aux kanren micro)
- Kanren angle A new store had nowhere to plug inAnatomy of (aux kanren micro)
- Definition 10.7 Streams and goalsAnatomy of (aux kanren micro)
- Tutorial Fairness, and its shapeAnatomy of (aux kanren micro)
- Pitfall Answer order is observableAnatomy of (aux kanren micro)
- Kanren angle AUGMENT and GENERIC as goalsAnatomy of (aux kanren micro)
- Pitfall The query variable is index 0Anatomy of (aux kanren micro)
- Kanren angle What answers will have to showAnatomy of (aux kanren micro)
- Tutorial Reading the six answersAnatomy of (aux kanren micro)
- Pitfall The scope check must not use eq?Anatomy of (aux kanren micro)
- Kanren angle What the tricks leave openAnatomy of (aux kanren micro)
- Definition 11.1 Universe levelsBringing λProlog to (aux kanren micro): the design
- Example 11.2Bringing λProlog to (aux kanren micro): the design
- Definition 11.3 Order independenceBringing λProlog to (aux kanren micro): the design
- Definition 11.4 A1: the scope of ∀Bringing λProlog to (aux kanren micro): the design
- Definition 11.5 A2: AUGMENT and BACKCHAINBringing λProlog to (aux kanren micro): the design
- Definition 11.6 A3: ∀ and ⊃ togetherBringing λProlog to (aux kanren micro): the design
- Definition 11.7 A4: λ-tree syntax and βBringing λProlog to (aux kanren micro): the design
- Definition 11.8 A5: Lλ unification and delayBringing λProlog to (aux kanren micro): the design
- Definition 11.9 A6: λProlog’s semantics where Ma and Friedman differBringing λProlog to (aux kanren micro): the design
- Definition 11.10 A7: the book’s programsBringing λProlog to (aux kanren micro): the design
- Definition 11.11 A8: micro’s stores on λ-termsBringing λProlog to (aux kanren micro): the design
- Definition 11.12 A9: conservativityBringing λProlog to (aux kanren micro): the design
- Pitfall A goal that unifies on its own must end in μkanren-post-unifyBringing λProlog to (aux kanren micro): the design
- Definition 11.13 Protocol invariantsBringing λProlog to (aux kanren micro): the design
- Pitfall A hook that forgets a binding must also drop it from the bindingsBringing λProlog to (aux kanren micro): the design
- Tutorial One =° on a λ-term, through micro and the hooksBringing λProlog to (aux kanren micro): the design
- Definition 12.1 λ-terms of the moduleThe module (aux kanren lambda)
- Example 12.2 Construction and printingThe module (aux kanren lambda)
- Definition 12.3 Flexible, β-redex, rigid; head normal formThe module (aux kanren lambda)
- Pitfall What is and is not an η-redexThe module (aux kanren lambda)
- Definition 12.4 The λ stateThe module (aux kanren lambda)
- Tutorial Reading the probeThe module (aux kanren lambda)
- Definition 12.5 Pattern, read off levelsThe module (aux kanren lambda)
- Rules 12.6 Unification rules of μkanren-λ-unifyThe module (aux kanren lambda)
- Definition 12.7 Variable eliminationThe module (aux kanren lambda)
- Tutorial Reading the contextsThe module (aux kanren lambda)
- Tutorial Strict and non-strict occurrencesThe module (aux kanren lambda)
- Tutorial When an occurrence of F is fatalThe module (aux kanren lambda)
- Definition 12.8 CheckThe module (aux kanren lambda)
- Proposition 12.9 No captured eigenvariableThe module (aux kanren lambda)
- Pitfall The first ∀° switches the check on for goodThe module (aux kanren lambda)
- Proposition 12.10 Wake-up terminatesThe module (aux kanren lambda)
- Pitfall Suspended is not solvedThe module (aux kanren lambda)
- Example 12.11 Warm-up: flexible–rigid, and ξThe module (aux kanren lambda)
- Example 12.12 Pruning: problem 8.H [MN p. 223–224]The module (aux kanren lambda)
- Example 12.13 Flexible–flexibleThe module (aux kanren lambda)
- Example 12.14 A non-pattern, suspended and wokenThe module (aux kanren lambda)
- Example 12.15 A binding taken backThe module (aux kanren lambda)
- Example 12.16 Occurs and scope failures, and a soft occurrenceThe module (aux kanren lambda)
- Example 12.17 An argument that may be an abstractionThe module (aux kanren lambda)
- Tutorial Why the depth must be restored on every answerThe module (aux kanren lambda)
- Example 12.18 Lowering, seen from the stateThe module (aux kanren lambda)
- Example 12.19 Discharge: raising, closing, retryingThe module (aux kanren lambda)
- Example 12.20 Levels reach into clauses, p. 16The module (aux kanren lambda)
- Tutorial λx.λy.x, step by stepThe module (aux kanren lambda)
- Tutorial λx.x x fails by the occurs checkThe module (aux kanren lambda)
- Definition 12.21 TrialThe module (aux kanren lambda)
- Pitfall Readings are per constraint, and only for ≠The module (aux kanren lambda)
- Pitfall Hints are not part of equalityThe module (aux kanren lambda)
- Tutorial what happensThe book’s examples in (aux kanren lambda)
- Tutorial the levels at workThe book’s examples in (aux kanren lambda)
- Tutorial the state of Γ, step by stepThe book’s examples in (aux kanren lambda)
- Tutorial a logic variable inside a hypothesisThe book’s examples in (aux kanren lambda)
- Tutorial trace of sterile QThe book’s examples in (aux kanren lambda)
- Tutorial two kinds of clause variablesThe book’s examples in (aux kanren lambda)
- Tutorial typing abs x\x, state by stateThe book’s examples in (aux kanren lambda)
- Kanren angle running type inference backwardsThe book’s examples in (aux kanren lambda)
- Tutorial β on demandThe book’s examples in (aux kanren lambda)
- Tutorial the book’s trace, replayedThe book’s examples in (aux kanren lambda)
- Tutorial how an unknown abstraction is built, piece by pieceThe book’s examples in (aux kanren lambda)
- Tutorial the book’s trace as state changesThe book’s examples in (aux kanren lambda)
- Tutorial matching the answers to the book’sThe book’s examples in (aux kanren lambda)
- Tutorial a non-pattern that waits for the recursive callThe book’s examples in (aux kanren lambda)
- Tutorial reading the answer against the book’s termThe book’s examples in (aux kanren lambda)
- Tutorial three rules, three answersThe book’s examples in (aux kanren lambda)
- Tutorial 8.H with levelsThe book’s examples in (aux kanren lambda)
- Tutorial from suspension to answerThe book’s examples in (aux kanren lambda)
- Tutorial why q = G (H y) must waitThe book’s examples in (aux kanren lambda)
- Pitfall a residual is a condition, not a proofThe book’s examples in (aux kanren lambda)
- Tutorial each difference, and the reason for itThe book’s examples in (aux kanren lambda)
- Kanren angle what the comparison showsThe book’s examples in (aux kanren lambda)
- Tutorial What the levels do in the second assertionLimitations, costs and the merge
- Pitfall What a green run does not sayLimitations, costs and the merge
- Definition 14.1 two readings of an eigenvariable under ≠Limitations, costs and the merge
- Tutorial Why the first escape is caught and the second is notLimitations, costs and the merge
- Tutorial Where the time goes after a ∀°Limitations, costs and the merge
- Pitfall precedenceReference card: rules and algorithms
- Definition A.1 Herbrand universes [MN p. 122]Reference card: rules and algorithms
- Definition A.2 rigid and flexible atoms [MN p. 119]Reference card: rules and algorithms
- Definition A.3 polarity; hereditary Harrop [MN p. 76]Reference card: rules and algorithms
- Definition A.4 essentially universal / existential [MN p. 205]Reference card: rules and algorithms
- Definition A.5 Lλ [MN p. 205–206,220]Reference card: rules and algorithms
- Rules A.6 Right rulesReference card: rules and algorithms
- Rules A.7 Backchaining (left) rulesReference card: rules and algorithms
- Definition A.8 O-proof [MN p. 45,77]Reference card: rules and algorithms
- Proposition A.9 flatness of fohc [MN p. 46]Reference card: rules and algorithms
- Kanren angle which rules a miniKanren already hasReference card: rules and algorithms
- Rules A.10 Typing rulesReference card: rules and algorithms
- Definition A.11 order of a type [MN p. 13]Reference card: rules and algorithms
- Definition A.12 free for; substitution [MN p. 85,100]Reference card: rules and algorithms
- Definition A.13 closures [MN p. 100–101]Reference card: rules and algorithms
- Definition A.14 normal forms [MN p. 101–102,111]Reference card: rules and algorithms
- Theorem A.15 normalisation [MN p. 102]Reference card: rules and algorithms
- Example A.16 η-long expansion [MN p. 111]Reference card: rules and algorithms
- Definition A.17 rigid and flexible terms [MN p. 111–112,214]Reference card: rules and algorithms
- Definition A.18 unification problem [MN p. 105,211]Reference card: rules and algorithms
- Definition A.19 unifier, solution [MN p. 109]Reference card: rules and algorithms
- Example A.20 the prefix order matters [MN p. 110,213]Reference card: rules and algorithms
- Proposition A.21 raising [MN p. 107]Reference card: rules and algorithms
- Rules A.22 First-order unificationReference card: rules and algorithms
- Theorem A.23 [MN p. 28–29]Reference card: rules and algorithms
- Rules A.24 Huet’s transformation rulesReference card: rules and algorithms
- Definition A.25 pre-unification; canonical substitution [MN p. 217–218]Reference card: rules and algorithms
- Theorem A.26 matching trees [MN p. 219–220]Reference card: rules and algorithms
- Example A.27 a matching tree [MN p. 216–219]Reference card: rules and algorithms
- Definition A.28 pattern [MN p. 220]Reference card: rules and algorithms
- Theorem A.29 [MN p. 208,221–224]Reference card: rules and algorithms
- Rules A.30 Pattern unificationReference card: rules and algorithms
- Example A.31 elim, occurs, scope [MN p. 223–224]Reference card: rules and algorithms
- Example A.32 elim with pruning [MN p. 224–225]Reference card: rules and algorithms
- Rules A.33 The abstract interpreter on decorated goalsReference card: rules and algorithms
- Definition A.34 binding condition and lowering, p. 16Reference card: rules and algorithms
- Proposition A.35 Prop. 4.1Reference card: rules and algorithms
- Example A.36 scope failure [MN p. 85,106]Reference card: rules and algorithms
- Remark A.37 higher-order binding condition; reconstruction in our notes, not in the bookReference card: rules and algorithms
- Kanren angle what levels requireReference card: rules and algorithms
- Pitfall one word, several meaningsGlossary
- Kanren angle what the glossary says about the missing piecesGlossary
- Kanren angle three entries checked on today’s engineGlossary