NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Normalisation by Traversals

C.-h. Luke OngarXiv 2015

Abstract

We present a novel method of computing the beta-normal eta-long form of a simply-typed lambda-term by constructing traversals over a variant abstract syntax tree of the term. In contrast to beta-reduction, which changes the term by substitution, this method of normalisation by traversals leaves the original term intact. We prove the correctness of the normalisation procedure by game semantics. As an application, we establish a path-traversal correspondence theorem which is the basis of a key decidability result in higher-order model checking.

Introduction

In the $\lambda$-calculus, normalization is the fundamental process of reducing a term to its simplest form. Traditionally, this is achieved via $\beta$-reduction, a destructive process relying on substitution—cutting and pasting subterms. While effective, $\beta$-reduction obscures the relationship between the initial program and its final output, posing significant challenges for higher-order model checking.

This paper introduces Normalisation by Traversals, a local and non-destructive method that computes the $\beta$-normal, $\eta$-long form of a term without modifying the original abstract syntax tree (AST). By extracting the semantic "truth" directly from the tree structure, we provide a new foundation for reasoning about higher-order programs.

Methodology

The proposed method relies on three core pillars:

1. Long Forms and Explicit Application

Terms are represented in a "long form" where every subterm is fully $\eta$-expanded. Application sites are explicitly marked with a "long application" operator (@), creating a structured arena for traversal.

2. Traversals and Justification Pointers

A traversal is a justified sequence of nodes in the long form's AST. Unlike a simple path, each node (except the root) contains a justification pointer back to a previous node that "enabled" it. This structure captures the scoping and binding rules of the $\lambda$-calculus.

A complex traversal sequence over a simply-typed lambda-term, illustrating the use of justification pointers to maintain scoping information.

3. Game Semantics Integration

The correctness of the method is established by mapping traversals to the framework of game semantics. Traversals are shown to be "uncovered plays" of an innocent strategy. We utilize direct arena morphisms to create a bijection between the explicit AST (the arena) and the semantic strategy.

Mapping of syntactic structures to game-semantic paths via arena morphisms.

Key Results

The theoretical framework yields several significant results:

  • Theorem 1.1 (Correctness): Establishes a bijection between projected traversals over a term $M$ and the justified paths in the AST of its normal form.
  • Theorem 3.18 (Strong Bijection): The core technical result, proving that the mapping from traversals to the game-semantic denotation of a term is a strong bijection.
  • Theorem 4.5 (Traversal-Path Correspondence): Extends the theory to higher-order recursion schemes (HORS), proving that paths in a tree generated by a recursion scheme are exactly the traversals of its computation tree. This provides a formal basis for decidability results in model checking.

Discussion and Future Work

The traversal-based approach offers a highly local method for reduction, which is particularly advantageous for higher-order model checking where reasoning about infinite trees generated by recursion is required.

Currently, the work is limited to the simply-typed $\lambda$-calculus. Future research will explore extensions to polymorphic types (System F) and dependent types, as well as the computational efficiency of traversal generation compared to traditional $\beta$-reduction engines. This method serves as a critical step toward new decidability results in the verification of higher-order programs.

Summary updated

BibTeX
@misc{ong2015normalisation,
  author = {C.-H. Luke Ong},
  title = {{Normalisation by Traversals}},
  year = {2015},
  eprint = {1511.02629},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1511.02629},
}
Some properties of conversionTransactions of the American Mathematical Society · 1936
The Safe Lambda CalculusarXiv · 2009
Leafy automata for higher-order concurrencyarXiv · 2021
Symbolic Backwards-Reachability Analysis for Higher-Order Pushdown SystemsLog. Methods Comput. Sci · 2008
Computational lambda-calculus and monads[1989] Proceedings. Fourth Annual Symposium on Logic in Computer Science
Higher-Order Constrained Horn Clauses and Refinement TypesarXiv · 2017
Figure