minikanren Questions

2

Solved

I am currently learning miniKanren by The Reasoned Schemer and Racket. I have three versions of minikanren implementation: The Reasoned Schemer, First Edition (MIT Press, 2005). I called it TRS1 h...

4

I started studying miniKanren with the book "The Reasoned Schemer - second edition" and the DrRacket scheme environment. I installed the "faster-minikanren" package, but the first examples of the ...
Groomsman asked 28/5, 2018 at 14:51

2

In Prolog - Programming for Artificial Intelligence, Bratko says the following on page 58. "Matching in Prolog corresponds to what is called unification in logic. However, we avoid the word unific...
Vandervelde asked 17/11, 2015 at 7:17

8

Solved

By Logic Programming I mean the a sub-paradigm of declarative programming languages. Don't confuse this question with "What problems can you solve with if-then-else?" A language like Prolog is ver...

0

There is a video where minikanren is used to go from data to programs. That is, given data, it generates the program that generates the data. So is it possible to generate a universal function su...

3

Solved

Recently I have been looking into graph databases like Neo4j and into logic programming in Prolog and miniKanren. From what I have learned so far, both allow specifying facts and relations between ...
Bivens asked 22/3, 2015 at 9:44

3

In miniKanren, succeed can be defined as (define succeed (== #t #t)), and fail can be defined as (define fail (=== #t #f)). But what about #s and #u as short forms of succeed and fail, as they appe...
Phosphoresce asked 21/7, 2019 at 13:51

4

Solved

I'm reading the Reasoned Schemer. I have some intuition about how conde works. However, I can't find a formal definition of what conde/conda/condu/condi do. I'm aware of https://www.cs.indiana.e...

2

Solved

Does MiniKanren have the "not" operator? For example, how would one represent Prolog's a :- b, not(c) a is true if b is true and c is not (Prolog uses negation as failure, i.e. not(c) is consid...

2

Solved

On Exercise (or entry?) 57, I'm just not understanding how the logic flows. The question is that this: given (define teacupo (lambda (x) (conde ((= tea x ) #s) ((= cup x ) #s) (else #u)))) ...
Onyx asked 4/7, 2015 at 19:48

2

Solved

When I want to read up on logic programming I always stumble over two "main" ways to do it nowadays: miniKanren, a minilanguage introduced in The Reasoned Schemer and popular at the moment ...
Stalagmite asked 12/2, 2015 at 0:4

2

Solved

I've just started playing with core.logic, and to work on it I'm trying to implement something simple that is similar to a problem that I am currently working on professionally. However, one part o...
Mccollum asked 2/1, 2012 at 20:25

1

Solved

I've been working through The Reasoned Schemer (TRS) using Clojure.logic and paying attention to the differences documented here. I reached frame 24 of Chapter 3, where TRS reports that (run 5 [x]...

2

Solved

I want to use Clojure's Core.logic. However, I want to also understand how it works. Is there a concise explanation of it somewhere? (Like implementing a metacircular evaluator?) Thanks!

3

Solved

I understand that some Prologs support dictionary-like associative data structures out of the box. For the implementations that do, do they support some notion of partial unification with another s...
Dong asked 9/10, 2012 at 22:2

2

Solved

Community Wiki I don't care about the reputation points, I just want good answers. Feel free to remark this question as community wiki. Context I'm been working through The Reasoned Schemer, and...
Vocalism asked 2/6, 2012 at 0:55

1

Solved

This is NOT homework -- the solution is already in the text. I just failed to understand the solution. Problem (run* (q) (let [a (== true q) b (== false q)] b)) Correct Solution (false) M...
Hein asked 31/5, 2012 at 5:10

2

Solved

Chapter 5 of SICP explains the scheme meta circular evaluator interns of a register machine. Is there anything that provides a similar type of Mini-Kanren in terms of Scheme primitives? I know th...
Blane asked 12/4, 2012 at 6:14

2

Solved

All miniKanren relations end with the letter o. What is the motivation for this? I see that the Clojure core.logic library also does this.
Beet asked 6/2, 2012 at 17:5
1

© 2022 - 2024 — McMap. All rights reserved.