English

Syntactically and semantically regular languages of lambda-terms coincide through logical relations

Logic in Computer Science 2024-02-09 v4 Formal Languages and Automata Theory Programming Languages

Abstract

A fundamental theme in automata theory is regular languages of words and trees, and their many equivalent definitions. Salvati has proposed a generalization to regular languages of simply typed λ\lambda-terms, defined using denotational semantics in finite sets. We provide here some evidence for its robustness. First, we give an equivalent syntactic characterization that naturally extends the seminal work of Hillebrand and Kanellakis connecting regular languages of words and syntactic λ\lambda-definability. Second, we show that any finitary extensional model of the simply typed λ\lambda-calculus, when used in Salvati's definition, recognizes exactly the same class of languages of λ\lambda-terms as the category of finite sets does. The proofs of these two results rely on logical relations and can be seen as instances of a more general construction of a categorical nature, inspired by previous categorical accounts of logical relations using the gluing construction.

Keywords

Cite

@article{arxiv.2308.00198,
  title  = {Syntactically and semantically regular languages of lambda-terms coincide through logical relations},
  author = {Vincent Moreau and Lê Thành Dũng Nguyên},
  journal= {arXiv preprint arXiv:2308.00198},
  year   = {2024}
}

Comments

The proofs on "finitely pointable" CCCs in versions 1 and 2 were wrong; we now make slightly weaker claims on well-pointed locally finite CCCs. New in this version: added reference [3] and official DOI (proceedings of CSL 2024)

R2 v1 2026-06-28T11:45:03.212Z