This rewrite system is a working version of anharmonic lambda, or kali (older: kaleidoscope). The goal is to find a version which contains both chemlambda v2 and em-convex. All rewrites are chosen from emergent algebra considerations. See this tool to choose DIST rewrites. It is amazing that it can reduce lambda terms. It has also a brutal form of eta reduction, related to the Reidemester 2 moves. Work in progress because as the name tells, a completely symmetrical version should have 24 nodes.

Credits:
I modified this js version by ishanpm of my chemlambda v2, see issue 9. The first 4 duplication examples are inspired from lambda terms proposed in issue 8.
Last modified: 18.10.2019. Part of (my pages to play and learn)
    (stops at max. number of nodes 2048)

CODE:
MOL NOW:

MOL AFTER:

before:

chosen:

after: