paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Monadic and comonadic aspects of dependency analysis

依赖分析的 monadic 与 comonadic 方面
OOPSLA 6(OOPSLA2)2022匹配度 2/10 · 该论文是纯范畴论/类型系统方向的依赖分析演算统一工作,虽属静态分析基础理论,但未涉及机器学习系统、Agentic 程序、LLM 与静态分析的交叉、浮点程序分析或贝叶斯程序分析,与用户研究画像的核心方向关联很弱。引用 2 inbox
Pritam Choudhury
crossref: 2026-09-10

AI 速览

一句话:本文用范畴论中 monadic 与 comonadic 思想设计统一依赖分析演算,涵盖并解释 DCC 与 λ∘。

依赖分析对安全信息流、绑定时间分析等至关重要。Abadi 等人将多种演算统一为 Dependency Core Calculus (DCC),但其 monadic bind 规则非标准,依赖辅助 protection judgement,且因 monadic 本质无法刻画 comonadic 依赖分析,如 Davies 的 binding-time calculus λ∘。本文受范畴论标准思想启发,设计一种新的依赖演算,兼具 monadic 与 comonadic 特征,可涵盖 DCC 与 λ∘。该构造用范畴概念解释 DCC 的非标准 bind 规则和 protection judgement,并导出一种证明依赖分析正确性的新技术。作者用此技术给出 DCC 与 λ∘ 正确性的替代证明。

问题
DCC 虽统一多种依赖分析演算,但其 bind 规则非标准且依赖 protection judgement,并且仅具 monadic 性质,无法涵盖 λ∘ 等 comonadic 依赖分析。
方法
受范畴论启发,设计同时具有 monadic 与 comonadic 性质的依赖演算,并用范畴概念解释 DCC 的非标准规则与 protection judgement。
评估
新演算涵盖 DCC 与 λ∘,提供新的正确性证明技术,并据此给出两者的替代正确性证明。
原文摘要(Abstract)

Dependency analysis is vital to several applications in computer science. It lies at the essence of secure information flow analysis, binding-time analysis, etc. Various calculi have been proposed in the literature for analysing individual dependencies. Abadi et. al., by extending Moggi’s monadic metalanguage, unified several of these calculi into the Dependency Core Calculus (DCC). DCC has served as a foundational framework for dependency analysis for the last two decades. However, in spite of its success, DCC has its limitations. First, the monadic bind rule of the calculus is nonstandard and relies upon an auxiliary protection judgement. Second, being of a monadic nature, the calculus cannot capture dependency analyses that possess a comonadic nature, for example, the binding-time calculus, λ ∘ , of Davies. In this paper, we address these limitations by designing an alternative dependency calculus that is inspired by standard ideas from category theory. Our calculus is both monadic and comonadic in nature and subsumes both DCC and λ ∘ . Our construction explains the nonstandard bind rule and the protection judgement of DCC in terms of standard categorical concepts. It also leads to a novel technique for proving correctness of dependency analysis. We use this technique to present alternative proofs of correctness for DCC and λ ∘ .

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot1453,
  title = {Monadic and comonadic aspects of dependency analysis},
  author = {Pritam Choudhury},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {6},
  number = {OOPSLA2},
  year = {2022},
  doi = {10.1145/3563335}
}