Compositional Program Verification with Polynomial Functors in Dependent Type Theory

πŸ“… 2026-04-01
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
This work proposes a composable program verification framework grounded in dependent type theory, designed to harmonize modular development with formal verification. The approach characterizes program interfaces using polynomial functors, models implementations via Kleisli morphisms of free monads, and encodes pre- and postconditions through dependent polynomials. Wiring diagrams are employed to support compositional reasoning about correctness. The key theoretical contribution lies in uncovering a lax monoidal structure mapping specifications to interfaces, together with compatible lax monoidal natural transformations between presheaves, thereby establishing a foundation for concurrent and relational verification scenarios. The entire framework has been formalized in Agda, demonstrating both its feasibility and strong compositional properties.

Technology Category

Knowledge Representation and Reasoning: Nonmonotonic ReasoningConstraint Satisfaction and Optimization: Satisfiability Modulo TheoriesReasoning under Uncertainty: Relational Probabilistic Models

Application Category

Semantics and Knowledge: Methods, algorithms and applications for the development of semantic models, knowledge graphs and other forms of structured data models with machine-interpretable semanticsSystems and Infrastructure for Web, Mobile and WoT: Experiences and lessons learnt from Web-based algorithms and system deploymentsSecurity and Privacy: Data transparency and provenance
πŸ“ Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

compositional verification
polynomial functors
dependent type theory
program specification
formal verification
Innovation

Methods, ideas, or system contributions that make the work stand out.

polynomial functors
compositional verification
dependent type theory
monoidal functor
Mealy machines
πŸ”Ž Similar Papers
No similar papers found.
πŸ’Ό Related Jobs
No related jobs found.
C
C. B. AberlΓ©
Carnegie Mellon University