Executable algebra for merge laws and proofs of contract.
Define terms, substitution, and beta/eta rules. Treat merge as a lambda term whose normal form encodes the contract.
Apply the calculus to API evaluation order: call-by-value respects causal dependencies, call-by-name risks reordering.