Formal Metatheory of Second-Order Abstract Syntax

01/10/2022
by   Marcelo Fiore, et al.
0

Despite extensive research both on the theoretical and practical fronts, formalising, reasoning about, and implementing languages with variable binding is still a daunting endeavour - repetitive boilerplate and the overly complicated metatheory of capture-avoiding substitution often get in the way of progressing on to the actually interesting properties of a language. Existing developments offer some relief, however at the expense of inconvenient and error-prone term encodings and lack of formal foundations. We present a mathematically-inspired language-formalisation framework implemented in Agda. The system translates the description of a syntax signature with variable-binding operators into an intrinsically-encoded, inductive data type equipped with syntactic operations such as weakening and substitution, along with their correctness properties. The generated metatheory further incorporates metavariables and their associated operation of metasubstitution, which enables second-order equational/rewriting reasoning. The underlying mathematical foundation of the framework - initial algebra semantics - derives compositional interpretations of languages into their models satisfying the semantic substitution lemma by construction.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/11/2023

E-unification for Second-Order Abstract Syntax

Higher-order unification (HOU) concerns unification of (extensions of) λ...
research
01/22/2021

CutLang V2: towards a unified Analysis Description Language

We will present the latest developments in CutLang, the runtime interpre...
research
09/06/2022

Variable binding and substitution for (nameless) dummies

By abstracting over well-known properties of De Bruijn's representation ...
research
05/03/2021

Abstract clones for abstract syntax

We give a formal treatment of simple type theories, such as the simply-t...
research
06/15/2023

Recursive First-order Syntactic Unification Modulo Variable Classes

We present a generalization of first-order syntactic unification to a te...
research
08/10/2023

Substitution for Non-Wellfounded Syntax with Binders

We describe a generic construction of non-wellfounded syntax involving v...
research
05/18/2022

Rensets and Renaming-Based Recursion for Syntax with Bindings

I introduce renaming-enriched sets (rensets for short), which are algebr...

Please sign up or login with your details

Forgot password? Click here to reset