mirror of
https://github.com/Smaug123/FicroKanSharp
synced 2025-10-17 00:58:40 +00:00
1c140469bdcee678a00c3c2b29c8758acf42cf6d
FicroKanSharp
A microKanren implementation in F#.
Structure
There is a tiny untyped core, true to the spirit of the original. Extensions are implemented on top of this.
Extensions
- A couple of reifiers:
Stream.peel
itself is a trivial "tell me everything" reifier, but the usual one isReify.withRespectToFirst
, which assumes you want the first variable and substitutes all other variables in it. - A typed term and goal language, which is aware of F# unions, but is not yet as expressive as I would like.
Development tips
There are pull request checks on this repo, enforcing Fantomas-compliant formatting. After checking out the repo, you may wish to add a pre-push hook to ensure locally that formatting is complete, rather than having to wait for the CI checks to tell you that you haven't formatted your code. Consider performing the following command to set this up in the repo:
git config core.hooksPath hooks/
Before your first push (but only once), you will need to install the .NET local tools which form part of the pre-push hook:
dotnet tool restore
Languages
F#
99.3%
Python
0.7%