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/Eval.lean149 lines · 12 declarations on the siteview on GitHub ↗
import Vau.Reduction
/-!
# Evaluation is a special case of reduction
Shutt's 2007 NEPLS talk says that explicit evaluation "makes term evaluation a special case of
term reduction". This file makes one precise version of that sentence.
`Run t r` is a **big-step evaluator** for vau-x, written in the style of a Lisp interpreter. It is
this project's own definition: the thesis gives no operational semantics for vau-x. `Run` is
defined by its own rules, independently of the compatible closure `Step`:
* data (atoms, operatives, pairs, applicatives) is run part by part, and an operative body is
not entered;
* to run `[eval t]`: run `t` to a value; then a self-evaluating value is the result, a pair
`(a . b)` continues as `[combine [eval a] b]`, and an applicative `<u>` gives `<f>` where
`[eval u]` runs to `f`;
* to run `[combine f x]`: run `f` and `x` to values; then call the combiner. A `<vau x.T>`
substitutes the operand, a wrapper `<c>` evaluates each operand of a proper list, a `<vau2.T>`
takes a pair apart, and a `<vau0.T>` accepts `()`.
The headline `eval_is_reduction` says: if `[eval t]` runs to `v`, then `[eval t] ->* v`, and
`v` is a value. It is one direction only. Reduction has many steps that `Run` never takes (for
example, steps inside an operative body), so the converse is not claimed.