chemart / alchemy

View on GitHub

AlChemy (lambda-calculus chemistry) — The chemistry that gave the field its vocabulary. Molecules are lambda-expressions in normal form, and a collision applies one to the other: s1 + s2 -> s1 + s2 + normal_form(s1 applied to s2). Both reactants survive, so …

chemistry official · built in rewriting fidelity: reconstructed constructive #banzhaf-yamamoto
files / README.md · 457 B · at 2d81ee8a2e7f Raw

AlChemy (lambda-calculus chemistry)

One of the artificial chemistries of Banzhaf & Yamamoto, Artificial Chemistries (MIT Press, 2015), §9.1; first proposed by Fontana, 1991; Fontana & Buss, 1994.

Its generator ships with the chemart library, so loading it runs no code from the hub and needs no trust_remote_code.

import chemart

net = chemart.generate_network("chemart/alchemy", seed=0)   # same as "alchemy"
print(net.summary())