Why verified parts need carefully checked connections to form reliable AI workflows.
Reusable capabilities can help AI tackle larger tasks. Mathematical contracts establish when those capabilities can work together, while explicit checks keep their guarantees tied to the conditions that support them.
An intelligent machine faces a problem that software engineers know well: a collection of working parts does not necessarily make a working system. Each part may behave correctly in isolation, yet fail when another supplies an unexpected input or changes something it depends on. As AI systems take on longer tasks, these interactions become harder to ignore. A promising route toward broader competence begins with a deceptively simple idea: build reusable capabilities, then establish the conditions under which they can safely work together.
Evolution offers a clue about why reuse matters. In a 2005 study at the Weizmann Institute of Science, researchers evolved computational networks to solve tasks whose underlying subproblems returned in different combinations. Under those conditions, modular structures emerged, and the networks adapted rapidly as goals changed. The experiment suggested a mechanism through which changing environments could favor reusable organization. Familiar demands, rearranged over time, rewarded systems that could preserve useful parts while changing their connections.
For computer science, the intriguing lesson concerns how to organize learning. Training across related tasks could encourage a system to discover operations that remain useful beyond the circumstances in which they first appeared. But evolutionary success and mathematical verification provide different kinds of evidence. Survival demonstrates adequacy under encountered conditions; a proof establishes a stated property under explicit assumptions. Engineers seeking reliable AI must bring these ideas together carefully, combining the adaptability of reusable structures with precise accounts of what those structures actually guarantee.
Calling a software component correct leaves an essential question unanswered: correct according to what? Formal verification starts with a specification, a mathematical description of the behavior that matters. A proof then establishes that an implementation satisfies that description under stated conditions. This differs from testing, which examines selected executions. Verification can cover every execution represented by the formal model, although its conclusions remain limited by the specification and assumptions. A perfectly proved program can still implement an incomplete understanding of its intended task.
The CompCert compiler illustrates how such reasoning can extend across a complicated workflow. A compiler transforms source code through successive representations until it becomes machine instructions. Every transformation creates an opportunity to alter what the program does. CompCert connects these stages through mathematical proofs that establish preservation of program behavior, within its formal semantics and assumptions. Its achievement concerns the relationship between the original program and the generated code. It does not establish that the original program fulfills its author’s intentions.
The broader principle is compositional verification: establish properties of the parts, then prove that their connections preserve the property required of the whole. Engineers often express this through contracts containing assumptions and guarantees. A component promises certain behavior when its assumptions hold. Assembly requires showing that the surrounding system supplies those conditions. Shared state, timing and interference can complicate that obligation considerably. Reuse becomes valuable because an established proof can support further reasoning, provided the new context respects its boundaries.
Before an AI can combine useful components, someone must decide what those components should be. Traditionally, programmers make that choice. They identify recurring operations, give them names and organize them into libraries. But fixed libraries can restrict what a system readily discovers. An unfamiliar problem may become much easier once several low level operations are expressed as a single meaningful concept. Learning these abstractions would let a machine gradually improve the language in which it solves problems.
DreamCoder, developed by a collaboration involving MIT and Cornell, explored this possibility through program synthesis. Given tasks described by examples, it searched for programs that produced the requested behavior. It then identified recurring structures in its solutions and gathered them into a growing library. A neural network learned to guide subsequent searches using that library. The two processes reinforced each other: useful components shortened future solutions, while better search exposed further opportunities for reuse.
This provides a concrete account of one kind of generalization. A new task becomes approachable because the system can express it using concepts acquired elsewhere. Yet DreamCoder also exposes the distance between reusable components and verified components. Matching supplied examples does not establish correctness for every permitted input. Extending this approach toward dependable software would require explicit specifications and evidence that learned abstractions satisfy them. The library would then accumulate both computational capabilities and knowledge about the circumstances in which each capability can be trusted.
Reusable pieces expand what a system can do. Their guarantees extend to a larger workflow only when the connections preserve the required assumptions.
Neurosymbolic AI offers a way to divide this work. Neural models can suggest promising actions or structures, drawing on patterns learned from data. Symbolic methods operate on explicit representations using rules whose application can be checked. The arrangement is particularly useful when the space of possible solutions is enormous but an individual candidate comes with evidence that can be examined. Its reliability depends on the checker’s scope and correctness, while its practical usefulness also depends on finding acceptable candidates within reasonable time.
Google DeepMind’s AlphaGeometry demonstrated this division in mathematical problem solving. Its neural language model proposed auxiliary constructions that could unlock a difficult geometry problem. A symbolic deduction engine then derived consequences from the available facts. In its 2024 evaluation, the system solved 25 of 30 selected Olympiad geometry problems within competition time limits. The neural component helped navigate the search; the symbolic component supplied the deductive structure of the resulting solutions.
Geometry gives this partnership unusually favorable conditions. Objects and relationships have precise meanings, and deductions can follow explicit rules. Everyday software tasks often arrive as ambiguous requests, so translating them into formal statements introduces another possible failure. A checker can establish that a solution satisfies the encoded requirement without establishing that the encoding captures what someone meant. The architectural lesson nevertheless travels well: systems can allow considerable freedom in proposing solutions while requiring specific evidence before accepting them. That evidence must address the property that actually matters.
The challenge becomes sharper when software acts in a changing environment. A verified plan describes what should happen under modeled conditions. Execution introduces observations, delays and events that may invalidate those conditions. A larger verified workflow therefore needs more than a chain of approved outputs. It needs an account of how information remains valid, how actions affect later assumptions and what happens when the system can no longer justify continuing. These obligations belong to the architecture as well as its individual components.
A research framework for modular robotic software applied this reasoning to an autonomous rover inspecting a nuclear site. The work specified software components using logical contracts and examined how those contracts supported reasoning about their composition. The significance lay in connecting local responsibilities to a larger mission. For this kind of architecture, a navigation guarantee can depend on assumptions about incoming information; establishing the surrounding components’ obligations becomes part of establishing the workflow’s correctness.
Consider what this means for the rover when its observations become unreliable. A proof about planning cannot, by itself, repair the connection between a sensor reading and the physical world. Runtime checks and carefully specified fallback behavior can help manage that boundary, although they bring assumptions of their own. The prospect of greater generality rests on making such dependencies explicit. Each reusable capability can enlarge what the machine is able to attempt. Each established contract clarifies when that attempt is justified. The crucial advance is the ability to carry those guarantees through the entire task.
Key references: Spontaneous evolution of modularity. PNAS, 2005. CompCert’s correctness specification. CompCert documentation. Compositional reasoning with assumptions and guarantees. Science of Computer Programming, 2014. DreamCoder and reusable program libraries. PLDI, 2021. AlphaGeometry and neurosymbolic geometry. Google DeepMind, 2024. A Compositional Approach to Verifying Modular Robotic Systems. Research paper, 2022.
Daice Labs Inc.
Brookline, MA, USA
Roll the "daice"–exploration & programmable adaptation.