Why Verified Reuse Can Bend the Cost Curve

How verified components became the most powerful cost-control tool in sofware and AI.

Software Engineering · AI · Computer Science
Why Verified Reuse Can Bend the Cost Curve
Building bigger systems keeps getting more expensive, unless the pieces you reuse come with proof.
2026

Every large software system carries a hidden tax. It is not the cost of building new features or hiring more engineers. It is the cost of rebuilding things that already exist, somewhere else in the codebase, in a library nobody trusted deeply enough to rely on.

I. The tax nobody talks about

Redundancy compounds quietly. Two teams write two authentication libraries. Three services reimplement the same retry logic. An AI model learns to do arithmetic from data when a calculator has known the answer for decades. None of this appears on a budget line. It shows up later, as bugs, as latency, as a training run that costs ten times what it should have.

The basic remedy is reuse, and software engineering has understood it for fifty years. The Don't Repeat Yourself principle holds that every piece of knowledge should have a single, authoritative representation in a system. When a change needs to happen, it should happen in one place, and every consumer should get the update automatically. The principle sounds obvious and turns out to be extremely hard to follow at scale, because the real obstacle is not reuse. It is trust. Engineers rebuild things not because they are unaware something similar already exists, but because they cannot verify that the thing they found actually does what it claims.

That distinction, between reuse and verified reuse, is where the cost curve lives. Unverified reuse copies a risk as well as a function. It lets a bug or a security flaw travel silently across dozens of systems until something fails in production. When a component carries a proof, a contract, or a machine-checked guarantee of its behavior, its consumers do not need to re-examine it. They can build on top of it the way civil engineers build on bedrock rather than loose fill. One-time verification amortized across many reuse events is one of the only known ways to make a system grow in capability without growing proportionally in cost.

01 The cost curve
Unverified reuse lets cost grow steeply with complexity as bugs and redundancy compound. Verified reuse keeps growth nearly flat: the proof is paid once and inherited by every consumer.
Cost to build and maintain System complexity over time Start Unverified reuse Bugs and redundancy compound Verified reuse Proof paid once, inherited forever Gap widens with each reuse event Savings
Unverified reuse (compounding cost)
Verified reuse (amortized proof)
II. What it means to verify something

Verification is a spectrum, not a binary. At the lightweight end sit type systems, the rules a programming language uses to catch certain categories of mistake before a program ever runs. A type system cannot prove that a sorting function returns a sorted list, but it can guarantee that nobody accidentally passes a string to a function that expects a number. That guarantee, cheap to check and automatic, prevents entire families of bugs without any effort from the programmer beyond writing well-typed code. The research record on statically typed languages consistently shows lower defect rates than their dynamically typed counterparts in large codebases.

At the heavy end sits formal verification: mathematical proof, checked by a machine, that a program behaves correctly for every possible input, not just the ones a test suite happened to try. The seL4 microkernel, developed at NICTA and now stewarded by the seL4 Foundation, is the canonical example. Roughly 8,700 lines of C and 600 lines of assembly, proved functionally correct down to its C implementation. The proof cost approximately twenty person-years and around 350 dollars per line of code. That sounds expensive until you see the other side of the ledger: every system that runs on seL4 inherits that guarantee for free, permanently, without re-verification. The amortization is the point.

Proof-carrying code captures the same logic in a transferable form. A code producer ships a machine-checkable proof of safety alongside the binary, and the consumer only needs to run the checker, which is fast and automatic, rather than trust the producer's reputation or review the source manually. Verification shifts from a property you hope a dependency has to evidence you can inspect yourself. The consumer pays almost nothing per reuse event. The producer pays once. That asymmetry, expensive to establish and cheap to consume, is the economic structure behind every technology that has ever bent a cost curve in engineering.

02 The verification spectrum
From social trust at the bottom to machine-checked proof at the top. Each rung adds a stronger guarantee and broader safe reuse. The proof paid once at the top is inherited by every consumer, forever.
Stronger guarantee Formal proof Machine-checked for all inputs Paid once · inherited by every consumer · seL4, HACL*, CompCert · ~20 person-years; reuse: free Type system Error classes ruled out at compile time Automatic, zero runtime cost · logic errors still possible Tests and contracts Checked for known inputs Covers tested cases only · silent on edge cases Social reputation Popular, trusted author Maintainer compromise · silent removal (left-pad, 2016)
Formal proof (strongest guarantee)
Type system
Tests and contracts
III. The AI training bill and the neurosymbolic shortcut

Training large AI models has become one of the most expensive activities in computing. According to Epoch AI, the compute used to train frontier models has been doubling roughly every six months, and the cost of a flagship training run now routinely reaches tens to hundreds of millions of dollars. The cause is not inefficiency in any simple sense. Neural networks learn from scratch. They do not accumulate verified knowledge the way a software library does. Every new model has to relearn arithmetic, logic, and geometry from data, because there is no trusted module the network can call that already knows those things and has been proved to know them correctly.

Neurosymbolic AI is the research program aimed squarely at that waste. The core idea is to pair a neural network, which is good at pattern recognition and open-ended generation, with symbolic components, which are good at structured reasoning and can be verified independently. The neural side proposes. The symbolic side checks. What the symbolic side approves, you can trust, because it has been proved or mechanically validated against explicit rules. What it rejects gets discarded before it causes harm. Neither component has to pretend to do the other's job well.

DeepMind's AlphaGeometry makes the payoff concrete. The system paired a neural language model with a symbolic deduction engine and tested against 30 geometry problems drawn from International Mathematical Olympiad competitions. It solved 25 of them within competition time limits, approaching the average score of human gold medalists and far ahead of the 10 problems solved by the previous state of the art. The symbolic engine did not learn geometry from data. It knew geometry in the form of verified deduction rules, and it checked every step the neural model proposed. Reusing that verified knowledge rather than hoping a neural model would internalize it correctly was not a design flourish. It was the reason the system worked at all.

Verified reuse infographic

A hand-drawn infographic on a glass board in a research lab setting, showing the core argument of the article: verify once, reuse everywhere at near-zero cost.

IV. When reuse goes wrong, and why verification is the fix

The promise of reuse is sharing cost. The peril is sharing failure. Modern software is assembled almost entirely from open-source packages, and the dependency graphs have grown so deep that a single compromised or broken component can travel instantly across thousands of systems. In March 2016, a developer removed a JavaScript package called left-pad from the npm registry. The package was eleven lines long and padded strings with spaces or zeros. Thousands of projects, including Babel and the React toolchain, broke within minutes. The reuse was real. The trust was not.

Supply chain attacks have since become a primary vector for compromising software at scale, because the trust model for open-source reuse is almost entirely social. You use a package because it is popular, because its author seems reputable, because it has been around for a while. None of those signals survive a compromised maintainer account or a deliberate removal. The shared plumbing that makes reuse economically attractive is exactly what makes it a target. Popularity is not a proof.

Formally verified cryptographic libraries show what the alternative looks like. HACL* and EverCrypt, developed through a collaboration among Microsoft Research, Inria, and Carnegie Mellon, are cryptographic implementations proved memory-safe, functionally correct, and free of timing side-channels that would leak secret information. They are deployed in Firefox, the Linux kernel, and the WireGuard VPN. When a dependency of this kind is updated, consumers do not have to re-audit the code. The proof travels with it. Any update that invalidated the proof would fail verification automatically, making tampering visible rather than silent. That is the structural difference between social trust and verified trust, and it is the difference that scales.

V. The pattern underneath everything

Look across the history of engineering and the same structure appears wherever costs have been bent rather than merely managed. Chip designers stopped drawing every transistor by hand and started assembling verified IP blocks, small, tested, reusable logic units whose behavior is guaranteed before they are wired together. A chip that would have taken years to design from scratch can be assembled in months from a library of verified blocks, because the verification of each block does not need to be repeated. The same amortization logic that makes seL4 cheap to reuse makes an IP block library cheap to build from.

The LLVM compiler infrastructure repeated the trick for programming languages. Before LLVM, every new language needed its own backend to translate programs into machine code, and every new processor architecture needed to be supported separately by each compiler. LLVM introduced a shared intermediate representation, a verified, reusable substrate that any language could compile to and any architecture could compile from. Hundreds of language projects and hardware efforts now share one optimizing backend instead of each building their own. The economic result is not just efficiency. It is compounding capability, because improvements to the shared backend benefit every language and architecture simultaneously.

The pattern is always the same: identify the layer where verification is most expensive and most valuable, verify it once, share it widely, and build everything else on top. In AI, this means preferring architectures that offload verifiable work to trusted symbolic tools rather than asking a neural network to relearn what a proof or a library already guarantees. In software, it means treating verified components as infrastructure rather than dependencies, things you build on rather than things you copy. The cost curve does not bend automatically. It bends when the system around reuse is engineered to share not just the code, but the evidence that the code is correct.

03 One pattern, four domains
Chip design, compilers, cloud infrastructure, and neurosymbolic AI all apply the same structural fix. Verify once. Share everywhere. The cost curve bends in every domain that runs this play.
Verify once Reuse everywhere at near-zero cost Neurosymbolic AI Symbolic checker verifies each step AlphaGeometry: 25/30 IMO problems Neural proposes · Lean approves Chip design Verified IP blocks Years of design cut to months via reusable logic units Compilers LLVM shared backend Hundreds of languages share one optimising substrate Cloud infrastructure Containers verify once, run anywhere Environment negotiation replaced by a single verified deployment unit One-time verification cost · near-zero per-reuse cost · compounding returns
Central principle
Neurosymbolic AI
Chip design
Cloud infrastructure

Key references: seL4 Foundation, "seL4 Microkernel," Communications of the ACM, 2010. Epoch AI, compute and cost scaling estimates, 2024. DeepMind, "AlphaGeometry: An Olympiad-level AI system for geometry," Nature, 2024. Necula, G., "Proof-Carrying Code," Carnegie Mellon University, 1997. HACL* and EverCrypt, Microsoft Research / Inria / CMU, deployed in Firefox, Linux kernel, WireGuard VPN. Csmith wrong-code error study, University of Utah, 2011. Epoch AI training cost scaling analysis, 2024.