arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.01303cs.LOcs.PLmath.CT
收藏

基于依赖类型理论的多项式函子的组合程序验证

Compositional Program Verification with Polynomial Functors in Dependent Type Theory

Carnegie Mellon University(卡内基梅隆大学)

C. B. Aberlé

AI总结:

本文基于依赖类型理论的多项式函子提出组合程序验证框架,通过多项式函子作为接口、自由monad的Kleisli态射作为实现,并利用Mealy机提供组合性操作语义,揭示了规范到接口的monoidal函子结构,拓展至并发与关系验证等场景。

摘要:

我们提出一个基于依赖类型理论多项式函子的组合程序验证框架。在该框架中,多项式函子作为程序接口,自由monad monad的Kleisli态射作为实现,依赖多项式编码前/后条件规范。我们展示实现及其验证通过连线图组合,Mealy机提供组合coalgebraic操作语义。我们识别出该组合性的抽象范畴结构为从规范到接口的monoidal函子,带有兼容的monoidal自然变换的lax monoidal presheaves;这为扩展到其他范畴、monoidal积等打开了大门,包括并发和关系验证等场景,我们进行了简要描述。作为概念验证,整个框架已在Agda中形式化。

英文摘要:

We present a framework for compositional program verification based on polynomial functors in dependent type theory. In this framework, polynomial functors serve as program interfaces, Kleisli morphisms for the free monad monad serve as implementations, and dependent polynomials encode pre/postcondition specifications. We show that implementations and their verifications compose via wiring diagrams, and that Mealy machines provide a compositional coalgebraic operational semantics. We identify the abstract categorical structure underlying this compositionality as a monoidal functor from specifications to interfaces with a compatible monoidal natural transformation of lax monoidal presheaves; this opens the door to generalizations to other categories, monoidal products, etc., including settings for concurrency and relational verification, which we sketch. As a proof-of-concept, the entire framework has been formalized in Agda.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑