Skip to main content
QUICK REVIEW

[Paper Review] Substitution for Non-Wellfounded Syntax with Binders Through Monoidal Categories

Ralph Matthes, Kobe Wullaert|arXiv (Cornell University)|Aug 10, 2023
Logic, programming, and type systemsComputer Science1 citations
TL;DR

This paper presents a category-theoretic framework for constructing non-wellfounded syntax with binders and their monadic substitution using monoidal categories and strong functors. It introduces monoidal heterogeneous substitution systems to uniformly handle both wellfounded and non-wellfounded terms, proving ω-cocontinuity for signature functors and formalizing the entire construction in UniMath/Coq.

ABSTRACT

We describe a generic construction of non-wellfounded syntax involving variable binding and its monadic substitution operation. Our construction of the syntax and its substitution takes place in category theory, notably by using monoidal categories and strong functors between them. A language is specified by a multi-sorted binding signature, say Σ. First, we provide sufficient criteria for Σ to generate a language of possibly infinite terms, through ω-continuity. Second, we construct a monadic substitution operation for the language generated by Σ. A cornerstone in this construction is a mild generalization of the notion of heterogeneous substitution systems developed by Matthes and Uustalu; such a system encapsulates the necessary corecursion scheme for implementing substitution. The results are formalized in the Coq proof assistant, through the UniMath library of univalent mathematics.

Motivation & Objective

  • To provide a generic, categorical construction of non-wellfounded syntax with variable binding using monoidal categories.
  • To define a monadic substitution operation for such syntax that supports corecursive substitution via heterogeneous substitution systems.
  • To unify the treatment of wellfounded and non-wellfounded syntax within a single categorical framework.
  • To formalize the entire construction in UniMath/Coq, ensuring correctness within univalent foundations.
  • To enable the representation of infinite search spaces in simply-typed lambda calculus using coinductive syntax.

Proposed method

  • Using multi-sorted binding signatures to specify the language, with functors generated from these signatures.
  • Applying ω-cocontinuity criteria to ensure the existence of final coalgebras for non-wellfounded terms.
  • Introducing monoidal heterogeneous substitution systems as a generalization of Matthes and Uustalu’s systems to support corecursive substitution.
  • Leveraging tensorial strength and actegories to model substitution in monoidal categories.
  • Constructing a monadic substitution operation via final coalgebras and strength, ensuring compatibility with bisimilarity and α-equivalence.
  • Formalizing all results in UniMath/Coq using univalent foundations, with a concrete instantiation in the category of sets.

Experimental results

Research questions

  • RQ1How can non-wellfounded syntax with binders be uniformly constructed in a categorical framework that also supports wellfounded syntax?
  • RQ2What categorical conditions ensure the existence of non-wellfounded terms via final coalgebras for signature functors?
  • RQ3How can substitution be defined coinductively for such non-wellfounded terms in a way that respects α-equivalence and bisimilarity?
  • RQ4Can monoidal heterogeneous substitution systems be generalized to support both wellfounded and non-wellfounded terms in a single framework?
  • RQ5How can such a system be formally verified within univalent foundations using proof assistants like Coq?

Key findings

  • The paper establishes sufficient criteria for a multi-sorted binding signature to generate a language of non-wellfounded terms via ω-cocontinuity of the associated signature functors.
  • It constructs a monadic substitution operation for non-wellfounded syntax using a generalization of heterogeneous substitution systems, enabling corecursive substitution.
  • The framework unifies the treatment of wellfounded and non-wellfounded syntax within the same categorical machinery, using monoidal categories and strong functors.
  • All results are formally verified in UniMath/Coq, with a concrete instantiation in the category of sets, providing a formal construction of non-wellfounded syntax with binding in univalent foundations.
  • The approach supports the representation of infinite search spaces in simply-typed lambda calculus as coinductive terms, with well-typed substitution preserved.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.