A pure lambda-calculus interpreter that applies tabling to weak-head reduction, folding self-referential terms into finite cyclic graphs
Project description
tablambda
A pure lambda-calculus interpreter and compiler, realizing the semantics of the
paper paper/tablambda.tex and depending on fixpoints.
pip install tablambda
You write ordinary pure lambda terms, and the interpreter gives them powers a pure language normally lacks:
- Cyclic and infinite data structures, built and transformed directly, with no
letrec, no added recursion construct, and no mutable references. - Automatic memoization and dynamic programming: repeated subproblems are shared for you, with no cache written by hand.
- A diverging loop is detected and returns a meaningless value in finite time instead of hanging.
The companion compiler turns a term into a standalone Python module, so a program written once as a lambda term can also run as compiled code.
No parser is provided: terms are built directly in Python, with a small prelude of the usual combinators, Church numerals, and Scott-encoded lists.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tablambda-0.7.0.post9.dev0.tar.gz.
File metadata
- Download URL: tablambda-0.7.0.post9.dev0.tar.gz
- Upload date:
- Size: 134.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e4619b43eba5b1f2baa79f1a649ee33e653198eb2547f082270145757de25b8
|
|
| MD5 |
d981d9778a42d6b541118781e18b6a7d
|
|
| BLAKE2b-256 |
1b05e6410421d516d5b91d97ebbcdf1f60689dac3c2973531c6473768bb07fcb
|
Provenance
The following attestation bundles were made for tablambda-0.7.0.post9.dev0.tar.gz:
Publisher:
ci.yml on Atry/tablambda
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tablambda-0.7.0.post9.dev0.tar.gz -
Subject digest:
1e4619b43eba5b1f2baa79f1a649ee33e653198eb2547f082270145757de25b8 - Sigstore transparency entry: 1907835807
- Sigstore integration time:
-
Permalink:
Atry/tablambda@85e9c56cd163b79e3c22e76d122e863f0e71fa3b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Atry
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@85e9c56cd163b79e3c22e76d122e863f0e71fa3b -
Trigger Event:
push
-
Statement type:
File details
Details for the file tablambda-0.7.0.post9.dev0-py3-none-any.whl.
File metadata
- Download URL: tablambda-0.7.0.post9.dev0-py3-none-any.whl
- Upload date:
- Size: 137.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ab0288dc3882f4a8738fafd50c1ae2cf6211cbdc93f2b2ecdff05eaa0c11220
|
|
| MD5 |
1b8d07acd57a7893f1a6a25ad9b8ce74
|
|
| BLAKE2b-256 |
c913150f4027e22ae57e4bc1c7aee8b396580fa038db2d4ef51aaab3306b96d5
|
Provenance
The following attestation bundles were made for tablambda-0.7.0.post9.dev0-py3-none-any.whl:
Publisher:
ci.yml on Atry/tablambda
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tablambda-0.7.0.post9.dev0-py3-none-any.whl -
Subject digest:
4ab0288dc3882f4a8738fafd50c1ae2cf6211cbdc93f2b2ecdff05eaa0c11220 - Sigstore transparency entry: 1907835989
- Sigstore integration time:
-
Permalink:
Atry/tablambda@85e9c56cd163b79e3c22e76d122e863f0e71fa3b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Atry
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@85e9c56cd163b79e3c22e76d122e863f0e71fa3b -
Trigger Event:
push
-
Statement type: