Giter Site home page Giter Site logo

chemski's Introduction

chemSKI

Marius Buliga

A purely local graph rewrite system for the SKI combinator calculus, in chemlambda style.

The online article with javascript simulations available here.

Motivation. German Kruszewski posed the problem of a chemlambda style graph-rewriting version of his and Tomas Mikolov Combinatory Chemistry https://www.mitpressjournals.org/doi/pdf/10.1162/isal_a_00258
https://arxiv.org/pdf/2003.07916.pdf

chemSKI is a graph rewrite system for the SKI combinator calculus, with only local graph rewrites. The algorithm of application of rewrites is random.

Differences. Kruszewski and Mikolov Combinatory Chemistry is conservative. Therefore the reaction

S a b c + c --> (a c) (b c) + S

is based on the delegated duplication of c, i.e. the reaction happens only if somewhere else in the system the term c is produced.

chemSKI graph rewrites are not conservative, but they can easily be made conservative in the following way, inspired by the project Hapax. In chemSKI the SKI combinators graphs (i.e. chemSKI graphs) can be supplemented with small token molecules, ie two nodes molecules like I-A, S-A, S-K, ..., which added to the rewrites make them conservative in the nodes and edges.

Another feature of Combinatory Chemistry is that it allows chemical reactions which build larger graphs from smaller ones. In terms of combinators, the reaction is

A + B --> A B

like in Fontana and Buss ALCHEMY.

This can be replaced in chemSKI by a rewrite which adds (inserts, glues) a token molecule to an edge of the graph of another token, or to one of any other graph. This was suggested for chemlambda in Chemlambda strings https://doi.org/10.6084/m9.figshare.5751318.v1 and a first attempt was done in the repository hapax https://github.com/mbuliga/hapax mentioned before.

chemski's People

Contributors

mbuliga avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.