English

A Linear Algebra Approach to Linear Metatheory

Programming Languages 2022-01-03 v3

Abstract

Linear typed λ\lambda-calculi are more delicate than their simply typed siblings when it comes to metatheoretic results like preservation of typing under renaming and substitution. Tracking the usage of variables in contexts places more constraints on how variables may be renamed or substituted. We present a methodology based on linear algebra over semirings, extending McBride's kits and traversals approach for the metatheory of syntax with binding to linear usage-annotated terms. Our approach is readily formalisable, and we have done so in Agda.

Keywords

Cite

@article{arxiv.2005.02247,
  title  = {A Linear Algebra Approach to Linear Metatheory},
  author = {James Wood and Robert Atkey},
  journal= {arXiv preprint arXiv:2005.02247},
  year   = {2022}
}

Comments

In Proceedings Linearity&TLLA 2020, arXiv:2112.14305

R2 v1 2026-06-23T15:19:34.492Z