Not official documentation. This is an unofficial explainer of John N. Shutt's vau calculus. It is not written, reviewed or endorsed by John N. Shutt, Dale Schumacher, Mitchell Wand, or any author of the cited sources. An AI model (Claude) drafted the text and the Lean, and no person has reviewed them. The text may contain errors; the Lean statements are the ground truth for what is proved, and the cited sources are the ground truth for the theory. The Lean covers the pure vau-x calculus (no delta-rules) and a model of vau-e (environments, $vau, derived $lambda) with this project's additions (encapsulation types, an actor model). It does not formalize Shutt's general framework; confluence is proved directly for these concrete rules only.Licence of this repository: MIT License. Cited works keep their own copyright; only short, attributed phrases are quoted.
Vau/Lambda.lean222 lines · 21 declarations on the siteview on GitHub ↗
import Vau.Confluence
/-!
# The lambda embedding
Shutt's map (15.28) in thesis section 15.4 sends lambda terms to fexpr terms. Written for vau-x
(which has no environments, so the environment argument of (15.28) is dropped; that adaptation is
this project's):
```
embed x = x
embed c = c (a constant becomes primitive data)
embed (M N) = [combine (embed M) (embed N)]
embed (lambda x.M) = <vau x.(embed M)>
```
beta-vau fires only on a value operand. The image of a variable, a constant or an abstraction is
a value; the image of an application is not. So the image behaves like the **call-by-value**
lambda calculus (Plotkin's lambda-v): beta fires only when the argument is a value. `LStep` below
is that calculus, with beta-v allowed at any position (including under a lambda).
Results:
* `embed_step`: one lambda-v step is one vau-x step (simulation).
* `step_embed`: every vau-x step from `embed M` is the image of one lambda-v step from `M`