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. In this version a choice of rewrites avoid the need of "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. This version is better suited to lambda calculus. For a much more wild and interesting version see the sister page here. (Updated in tandem.)

Credits:
I modified this js version by ishanpm of my chemlambda v2, see issue 9. The 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: