Compositional Program Verification with Polynomial Functors in Dependent Type Theory
arXiv:2604.01303v1 Announce Type: cross 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 ca
View PDF HTML (experimental)
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.
Subjects:
Logic in Computer Science (cs.LO); Programming Languages (cs.PL); Category Theory (math.CT)
Cite as: arXiv:2604.01303 [cs.LO]
(or arXiv:2604.01303v1 [cs.LO] for this version)
https://doi.org/10.48550/arXiv.2604.01303
arXiv-issued DOI via DataCite (pending registration)
Submission history
From: C.B. Aberlé [view email] [v1] Wed, 1 Apr 2026 18:16:05 UTC (28 KB)
Sign in to highlight and annotate this article

Conversation starters
Daily AI Digest
Get the top 5 AI stories delivered to your inbox every morning.
More about
announceproductinterface
A look at how some teens use popular role-playing chatbots and, for parents, the high stakes task of understanding the impact of the possibly addictive products (New York Times)
New York Times : A look at how some teens use popular role-playing chatbots and, for parents, the high stakes task of understanding the impact of the possibly addictive products When Quentin was 13, he kept seeing ads on YouTube for Talkie, an app with countless A.I.s eager to speak with you.
Knowledge Map
Connected Articles — Knowledge Graph
This article is connected to other articles through shared AI topics and tags.
More in Releases


HHS Announces Request for Information to Harness Artificial Intelligence to Deflate Health Care Costs and Make America Healthy Again - HHS.gov
HHS Announces Request for Information to Harness Artificial Intelligence to Deflate Health Care Costs and Make America Healthy Again HHS.gov

Stop Writing AI Prompts From Scratch: A Developer's System for Reusable Prompt Templates
You open Cursor. You need to refactor a service. You type something like: "Hey, can you refactor this function to be cleaner?" The AI gives you something mediocre. You tweak the prompt. Try again. The output improves. You get what you need — but you've spent four minutes writing a prompt you'll write again tomorrow, and next week, and every time a similar task comes up. This is the hidden tax on AI-assisted development. Not API costs. Not context limits. Prompt reinvention. Most developers treat every AI interaction as a blank slate. Senior engineers don't. They've built systems. This article is about building that system: a reusable prompt library that makes your AI interactions faster, more consistent, and dramatically higher quality. Why Most Developer Prompts Fail Before building a sys




Discussion
Sign in to join the discussion
No comments yet — be the first to share your thoughts!