Syntax Monads for the Working Formal Metatheorist

被引:0
|
作者
Dunn, Lawrence [1 ]
Tannen, Val [1 ]
Zdancewic, Steve [1 ]
机构
[1] Univ Penn, Philadelphia, PA 19104 USA
关键词
D O I
10.4204/EPTCS.397.7
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Formally verifying the properties of formal systems using a proof assistant requires justifying numerous minor lemmas about capture-avoiding substitution. Despite work on category-theoretic accounts of syntax and variable binding, raw, first-order representations of syntax, the kind considered by many practitioners and compiler frontends, have received relatively little attention. Therefore applications miss out on the benefits of category theory, most notably the promise of reusing formalized infrastructural lemmas between implementations of different systems. Our Coq framework Tealeaves provides libraries of reusable infrastructure for a raw, locally nameless representation and can be extended to other representations in a modular fashion. In this paper we give a string-diagrammatic account of decorated traversable monads (DTMs), the key abstraction implemented by Tealeaves. We define DTMs as monoids of structured endofunctors before proving a representation theorem a` la Kleisli, yielding a recursion combinator for finitary tree-like datatypes.
引用
收藏
页码:98 / 117
页数:20
相关论文
共 50 条
  • [1] Formal ball monads
    Goubault-Larrecq, Jean
    TOPOLOGY AND ITS APPLICATIONS, 2019, 263 : 372 - 391
  • [2] THE FORMAL THEORY OF MONADS, UNIVALENTLY
    van der Weide, Niels
    LOGICAL METHODS IN COMPUTER SCIENCE, 2025, 21 (01)
  • [3] The formal theory of monoidal monads
    Zawadowski, Marek
    JOURNAL OF PURE AND APPLIED ALGEBRA, 2012, 216 (8-9) : 1932 - 1942
  • [4] The formal theory of monads II
    Lack, S
    Street, R
    JOURNAL OF PURE AND APPLIED ALGEBRA, 2002, 175 (1-3) : 243 - 265
  • [5] THE FORMAL THEORY OF MULTIMONOIDAL MONADS
    Bohm, Gabriella
    THEORY AND APPLICATIONS OF CATEGORIES, 2019, 34 : 295 - 348
  • [6] The formal theory of relative monads
    Arkor, Nathanael
    McDermott, Dylan
    JOURNAL OF PURE AND APPLIED ALGEBRA, 2024, 228 (09)
  • [7] Modules over relative monads for syntax and semantics
    Ahrens, Benedikt
    MATHEMATICAL STRUCTURES IN COMPUTER SCIENCE, 2016, 26 (01) : 3 - 37
  • [8] Towards a Formal Theory of Graded Monads
    Fujii, Soichiro
    Katsumata, Shin-ya
    Mellies, Paul-Andre
    FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES (FOSSACS 2016), 2016, 9634 : 513 - 530
  • [9] Homotopy coherent adjunctions and the formal theory of monads
    Riehl, Emily
    Verity, Dominic
    ADVANCES IN MATHEMATICS, 2016, 286 : 802 - 888
  • [10] Formal Syntax and Deep History
    Ceolin, Andrea
    Guardiano, Cristina
    Irimia, Monica Alexandrina
    Longobardi, Giuseppe
    FRONTIERS IN PSYCHOLOGY, 2020, 11