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/Env/Syntax.lean184 lines · 21 declarations on the siteview on GitHub ↗
import Vau.Reduction
/-!
# vau-e: the vau calculus with environments (syntax and auxiliary functions)
This follows Shutt's vau-e calculus (PhD thesis, WPI 2010, section 9.1, (9.1) and (9.6)):
```
S ::= d | o | e | #ignore | () | <operative T T T T> (self-evaluating terms)
A ::= [eval T T] | [combine T T T] (active terms)
T ::= S | s | (T . T) | <applicative T> | A (terms)
| <capsule k T> (this project's addition)
e ::= <<B*>>, B ::= s <- T (environments)
V = terms whose every active subterm is within an operative or environment (values)
```
Representation choices (this project's, not Shutt's):
* Symbols are natural numbers. The `$lambda` file names the few symbols it uses.
* An environment is a plain list of bindings (`List (Nat x Term)`). Shutt's grammar keeps the bindings sorted, with no
symbol bound twice, and his join `e1 . e2` merges them so that a binding in `e1` wins. Here
`join` is list append and `lookup` takes the first binding. The two agree on every lookup, but
two environments that list the same bindings in a different order are different terms here,
so this equational theory is weaker than Shutt's.
* Primitive operatives are the ones named in `Prim`. `$vau`, `$wrap` and `$unwrap` have Shutt's
delta-rules (9.12). `$eval` and `$list*` have delta-rules written by this project (Shutt uses
them in (4.20)-(4.22) and calls their rules self-evident).
* Encapsulation types are this project's addition: the term `capsule k v` and the primitives
`$encap k`, `$isEncap k`, `$decap k` (see `Vau/Env/Encapsulation.lean`).
-/
namespaceVauE
/-- Primitive operatives. For a standard applicative `foo`, `$foo` is its underlying operative,