One or Nothing: Anti-unification over the Simply-Typed Lambda Calculus
David M. Cerna, Michal Buran
TL;DR
This paper investigates anti-unification (AU) for deep, nested generalization variables in the simply-typed λ-calculus, challenging prior results that relied on unitary, shallow forms. It introduces Λ-pseudo-patterns and extends them to the super-pattern fragment Λ_sp, establishing a framework to analyze deep AU in higher-order settings. The key result is a nullarity theorem: there is no least general generalization (no minimal complete set) for deep AU in either Λ or Λ_sp, even under strong restrictions on how free-variable arguments may appear. This implies that practical applications like proof generalization and templating in interactive provers cannot rely on a unique minimal generalization in these settings and may require moving to more expressive type theories (e.g., the λ-Cube) or alternative frameworks. Overall, the work delineates fundamental limits of deep AU and motivates future exploration of broader computational formalisms for generalization tasks.
Abstract
Generalization techniques have many applications, including template construction, argument generalization, and indexing. Modern interactive provers can exploit advancement in generalization methods over expressive type theories to further develop proof generalization techniques and other transformations. So far, investigations concerned with anti-unification (AU) over $λ$-terms and similar type theories have focused on developing algorithms for well-studied variants. These variants forbid the nesting of generalization variables, restrict the structure of their arguments, and are \textit{unitary}. Extending these methods to more expressive variants is important to applications. We consider the case of nested generalization variables and show that the AU problem is \textit{nullary} (using \textit{capture-avoiding} substitutions), even when the arguments to free variables are severely restricted.
