Building Reliable AI From Verified Parts

Why verified parts need carefully checked connections to form reliable AI workflows.

From Verified Components to Larger Verified Workflows
Neurosymbolic AI · Computer Science · Software Engineering
From Verified Components to Larger Verified Workflows
Generality comes from reusable pieces that can safely combine
2026

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.

I. How Small Pieces Become Something More

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.

01 Reuse expands what a system can do
A shared library supports new combinations. Reuse creates flexibility, while correctness still requires evidence.
1. Reuse expands what a system can doA shared library of three reusable components supports three different combinations. Reuse increases capability but does not itself prove correctness.1. Reuse expands what a system can doLearn useful pieces, then combine them for different tasks.A shared libraryAReusable operationBReusable operationCReusable operationCombine familiar pieces in new waysTask oneABTask twoACTask threeBCMore tasks from the same reusable piecesReuse creates flexibility. Correctness still needs evidence.
II. The Conditions Hidden Inside “Correct”

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.

02 The connections need proof too
A component’s guarantee must satisfy the next component’s assumptions. Their composition must also meet the overall requirement.
2. The connections need proof tooComponent A guarantees an output between zero and ten. A connection check proves that this meets component B's input assumption. The assembled workflow still needs a proof of its overall requirement.2. The connections need proof tooA guarantee is useful only when the next component can rely on it.Component AConnection checkComponent BGuaranteesOutput is between0 and 10Prove thatA’s guarantee meetsB’s assumptionAssumesInput is between0 and 10Prove the overall requirementUse the component proofs and their connections.Compatible parts support a larger guaranteeAll external assumptions must still hold.If A could output 12, this connection would need repair.
III. A Machine That Learns Its Own Building Blocks

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.

Conceptual illustration of reusable computational components forming a larger workflow through compatible interfaces

Reusable pieces expand what a system can do. Their guarantees extend to a larger workflow only when the connections preserve the required assumptions.

IV. Giving Neural Intuition a Formal Check

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.

V. Making the Whole Workflow Accountable

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.

03 From AI proposals to verified workflows
A neural model proposes a route, a checker verifies it, and monitoring helps identify when execution conditions change.
3. From AI proposals to verified workflowsA neural model proposes a route. A formal checker verifies the route against stated rules and assumptions. Accepted routes execute. A monitor checks observable conditions and can trigger a pause or replan. Rejected proposals return to the neural model. Guarantees remain limited to the specification and assumptions.3. From AI proposals to verified workflowsAn illustrative architecture for a rover choosing its next move.Propose a routeNeural model explores possible moves.Check the routeVerify stated rules and assumptions.Execute the accepted routeAct within the checked conditions.Monitor conditionsCheck observable assumptions.RejectedRevise routeConditionschangedPause andreplanGenerality grows when reusable pieces combine safelyGuarantees extend only as far as the specification and assumptions.