# The Economics of Turning a Proof Into Infrastructure

> A shorter Lean verification can lower the cost of inspection, but only if teams price maintenance, assumptions, and reuse alongside code.

- **Author:** Uğur Akçıl (https://softwaredeveloper.biz/author/ugur-akcil)
- **Topic:** systems-architecture
- **Published:** 2026-11-26T13:15:03+00:00
- **Canonical URL:** https://softwaredeveloper.biz/p/the-economics-of-turning-a-proof-into-infrastructure

## Key Thesis

A shorter Lean development can make a formal argument easier to inspect, but brevity alone does not establish correctness or reduce total cost. Price the work as a reusable verification asset, including its assumptions, maintenance, and independent review.

---

A compact Lean development for GRH has a useful property beyond its line count: it makes the cost of checking a mathematical claim easier to discuss. The Hacker News response to the repository shows strong interest, but attention is not evidence of correctness, and short code is not automatically cheap assurance.

The economic question is more precise. What work does the formalization replace, what new work does it create, and how many times can its verification be reused? Answering those questions turns a proof artifact from a programming curiosity into an operational investment.

## Short code is not the same as cheap proof

Lean can check that a proof follows from stated definitions, lemmas, and assumptions. That is a powerful boundary: the checker evaluates the formal derivation rather than asking a reviewer to trust prose or a model's account of its reasoning. Yet a verified derivation only establishes what was encoded. The statement, imported axioms, library dependencies, and connection between the formal object and the intended mathematical claim still deserve scrutiny.

That distinction matters especially for a topic like GRH. A compact formal development should not be read as a resolution of the generalized Riemann hypothesis unless the claim, scope, and assumptions actually support that interpretation. The repo's advertised contrast with a longer Anthropic-related verification is an invitation to inspect differences in representation and proof structure, not a controlled measurement of correctness or labor.

Code length is a poor proxy for engineering cost because it excludes the work that produced the abstraction. A shorter proof may rely on more powerful lemmas, existing library machinery, or definitions that hide complexity. In software economics, compression often moves cost upstream: a small interface is valuable when it rests on a stable, understandable system, not when it conceals an unpriced dependency.

<svg class="acad-diagram" viewBox="0 0 680 180" xmlns="http://www.w3.org/2000/svg">
<rect x="20" y="48" width="180" height="76" stroke="currentColor" fill="none"/>
<text x="38" y="77" fill="currentColor" font-family="monospace" font-size="12">Claim + assumptions</text>
<text x="38" y="99" fill="currentColor" font-family="monospace" font-size="12">scope and definitions</text>
<line x1="200" y1="86" x2="250" y2="86" stroke="currentColor" fill="none"/>
<path d="M242 80 L250 86 L242 92" stroke="currentColor" fill="none"/>
<rect x="250" y="48" width="180" height="76" stroke="currentColor" fill="none"/>
<text x="274" y="77" fill="currentColor" font-family="monospace" font-size="12">Lean development</text>
<text x="274" y="99" fill="currentColor" font-family="monospace" font-size="12">proof construction</text>
<line x1="430" y1="86" x2="480" y2="86" stroke="currentColor" fill="none"/>
<path d="M472 80 L480 86 L472 92" stroke="currentColor" fill="none"/>
<rect x="480" y="48" width="180" height="76" stroke="currentColor" fill="none"/>
<text x="502" y="77" fill="currentColor" font-family="monospace" font-size="12">Kernel checks proof</text>
<text x="502" y="99" fill="currentColor" font-family="monospace" font-size="12">review scope separately</text>
</svg>

## The unit economics of verification

A useful comparison starts with a boundary: the following figures are an illustrative planning model, not measured results for the repository. Assume a loaded specialist cost of $150 per hour, ten future revisions to a claim, and a manual audit requiring 24 hours each time. The Lean path assumes 80 hours to formalize and review the initial development, 12 hours of annual maintenance, and two hours per revision to update and check it.

| Dimension | Manual review | Lean verification |
|---|---:|---:|
| Initial setup | $0 | $12,000 |
| Maintenance over one year | $0 | $1,800 |
| Cost per revision | $3,600 | $300 |
| Total for ten revisions | $36,000 | $16,800 |

Under those assumptions, the formal route costs less after roughly four revisions, once setup and annual maintenance are counted. The result is sensitive to the comparison: if the claim rarely changes, the initial investment may never repay itself. If the proof is reused across multiple projects, the marginal cost falls. A manual review and a machine-checked proof also do not provide identical assurance, so the table is a cost model, not a claim that one wholly replaces the other.

The leverage comes from repeatability. Once the formal statement and trusted checking path are in place, a revision can be tested against the same explicit boundary instead of restarting an informal review from scratch. That is analogous to building a test harness for a high-risk service, or a calibrated measurement process in a lab: the initial instrument costs more, but repeated observations become cheaper to compare.

## Where the investment compounds

The best candidate is not necessarily the most famous theorem. It is a claim that is expensive to get wrong, likely to be reused, and stable enough that formalizing its interface will not trigger constant maintenance. In adtech, a budget or attribution invariant may be checked across many campaigns. In biotech, a data transformation could preserve constraints that matter across repeated analyses. In robotics, a safety condition may be valuable precisely because the system changes while the boundary remains fixed.

These examples have different standards of evidence, but a shared cost structure. Formalization pays when the cost of an error and the number of future checks outweigh the upfront specification effort. It pays less when the claim is one-off, poorly defined, or

## References

- [Hacker News: Much shorter version of GRH Lean verification from Anthropic](https://github.com/lsernau/grh-lean)
- [Uğur Akçıl (ugur.io)](https://ugur.io)

---

## Discussion (1 notes)

- **Devon Brooks** (CS Junior · Georgia Tech, Atlanta, GA · 2026-11-26): Thinking about this in my ML systems class, compression always shifts the bottleneck rather than erasing it. If a short Lean proof relies on massive imported library machinery, how do we price the verification debt when upstream mathlib updates break compatibility?
