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.
The general schemata (9.7) and the delta-rules for combiner primitives (9.12) of Shutt's vau-e
calculus, with this project's names:
|-------------|-------------------------------------------------------------------------|----------|
| eval-self | `[eval S e] -> S` | (9.7S) |
| eval-sym | `[eval s e] -> lookup(s, e)`, if defined | (9.7s) |
| eval-pair | `[eval (T1 . T2) e] -> [combine [eval T1 e] T2 e]` | (9.7p) |
| eval-app | `[eval <applicative T> e] -> <applicative [eval T e]>` | (9.7a) |
| beta-oper | `[combine <operative V1 V2 T e1> V3 e2] -> [eval T match((V1 . V2), (V3 . e2)) . e1]` | (9.7beta) |
| combine-app | `[combine <applicative T> (T1 ... Tm) e] -> [combine T ([eval T1 e] ... [eval Tm e]) e]` | (9.7gamma) |
| delta-vau | `[combine $vau (V1 V2 V3) e] -> <operative V1 V2 V3 e>` | (9.12) |
| delta-wrap | `[combine $wrap (V1) e] -> <applicative V1>` | (9.12) |
| delta-unwrap| `[combine $unwrap (<applicative V1>) e] -> V1` | (9.12) |
| delta-eval | `[combine $eval (V1 e1) e] -> [eval V1 e1]` | this project |
| delta-list* | `[combine $list* (V1 ... Vn) e] -> (V1 ... Vn-1 . Vn)` | this project |
| delta-encap | `[combine $encap_k (V) e] -> <capsule k V>` | this project |
| delta-isEncap | `[combine $isEncap_k (V1 ... Vn) e] -> #t or #f` (as `dat 1`, `dat 0`) | this project |
| delta-decap | `[combine $decap_k (<capsule k V>) e] -> V` | this project |
In (9.7a) the thesis text prints `[eval <applicative T>]` without its environment operand; we
read it as `[eval <applicative T> e] -> <applicative [eval T e]>`.
`Step` is the compatible closure: a rule may fire at any position, including inside the bindings
of an environment and inside every part of a compound operative. `Steps` is zero or more steps.
/-- The rules at the top of a term. -/
| evalPair (a b : Term ) (e : Env ) : Top (eval (pair a b) (env e)) (comb (eval a (env e)) b (env e))
| evalApp (t : Term ) (e : Env ) : Top (eval (app t) (env e)) (app (eval t (env e)))
| beta {v1 v2 v3 body : Term } {e1 e2 m : Env } :
ematch (pair v1 v2) (pair v3 (env e2)) = some m ->
Top (comb (oper v1 v2 body (env e1)) v3 (env e2)) (eval body (env (Env.join m e1)))
Top (comb (app t) ts (env e)) (comb t (evalList (env e) ts) (env e))
Top (comb (prim .vau ) (list3 v1 v2 v3) (env e)) (oper v1 v2 v3 (env e))
Top (comb (prim .unwrap ) (list1 (app v)) (env e)) v
Top (comb (prim .eval ) (list2 v (env e1)) (env e)) (eval v (env e1))
Top (comb (prim .listStar ) vs (env e)) r
/-- `[combine $encap_k (V) e] -> <capsule k V>` (this project's rule). -/
Top (comb (prim (.encap k)) (list1 v) (env e)) (capsule k v)
/-- `[combine $isEncap_k (V1 ... Vn) e] -> #t` if every `Vi` is a capsule of type `k`, else
`#f`; `#t` and `#f` are `dat 1` and `dat 0` (this project's rule). -/
Top (comb (prim (.isEncap k)) vs (env e)) (dat (if b then 1 else 0 ))
/-- `[combine $decap_k (<capsule k V>) e] -> V` (this project's rule). -/
| deltaDecap {v : Term } (k : Nat ) (e : Env ) :
Top (comb (prim (.decap k)) (list1 (capsule k v)) (env e)) v
/-- One step: the compatible closure of `Top`. -/
/-- A step inside the first binding of an environment. -/
| envHere (s : Nat ) {t t' : Term } (r : Env ) : Step t t' -> Step (env ((s, t) :: r)) (env ((s, t') :: r))
/-- A step inside a later binding of an environment. -/
| envThere (b : Prod Nat Term ) {r r' : Env } : Step (env r) (env r') -> Step (env (b :: r)) (env (b :: r'))
| oper1 {a a' : Term } (b c d : Term ) : Step a a' -> Step (oper a b c d) (oper a' b c d)
| oper4 (a b c : Term ) {d d' : Term } : Step d d' -> Step (oper a b c d) (oper a b c d')
| comb1 {a a' : Term } (b c : Term ) : Step a a' -> Step (comb a b c) (comb a' b c)
| comb3 (a b : Term ) {c c' : Term } : Step c c' -> Step (comb a b c) (comb a b c')
| capsule (k : Nat ) {v v' : Term } : Step v v' -> Step (capsule k v) (capsule k v')
/-- Zero or more steps. -/
/-- The equational theory of vau-e. -/
Steps (.pair a b) (.pair a' b') :=
Steps (.comb a b c) (.comb a' b' c) :=
The vau calculus is the work of John N. Shutt (PhD thesis, WPI, 2010). This explainer and its Lean are unofficial and were drafted by Claude (AI); no person has reviewed them. The Lean statements are the ground truth for what is proved; the cited sources are the ground truth for the theory. Repository: tangentproofs/vau-calculus (MIT License). Part of the tangentproofs/vau-calculus index . Progress is stored only in this browser.
This is the verbatim Lean of tangentproofs/vau-calculus at commit 2e29dbf, reproduced under its licence (MIT License; licence text ). The plain-English pages are unofficial and may be wrong.