DKanren
miniKanren variant with a functional syntax, expressing disjunction via pattern matching
Install / Use
/learn @gregr/DKanrenREADME
dKanren
The purpose of dKanren is to support a model of programming that is as declarative as possible, and that can also be used for logical inference. The current version provides logic programming with symbolic constraints using a first order functional language syntax. Future versions will also provide access to lower level primitives and the scheduler for more direct control. The constraint system is designed to be extensible, to allow plugging in domain-specific solvers.
Constraint satisfaction
- symbolic constraints
- numeric constraints and solving
- foundation based on lattices for extensibility
- support for true negation and universal quantification
Scheduling
- delayed goals and lazy constraints
- eager following of deterministic paths
- demand-based guess ordering
Functional logic programming
- dk-evalo
- implicit pattern negation
Caveat
This is still an early work in progress. For now, you'll probably be more interested in miniKanren and Barliman:
https://github.com/michaelballantyne/faster-miniKanren
https://github.com/webyrd/Barliman
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
