A 1960s bride and poet holds a bouquet of sharpened pencils beside her accountant groom and a mechanical adding machine.

When Code Became Cheap and Proofs Did Not

Lanyon AI combines language models with formal verification - and asks whether, in an age of abundant code, scientific software should finally arrive with proofs.

Lanyon AI is a new scientific-computing company built around an unusually specific proposition: AI-generated software for mathematics, physics, and engineering should come with machine-checkable proofs. Instead of asking a language model to write an implementation and then produce a separate proof—two artifacts that may quietly disagree—Lanyon translates a natural-language request into a compact formal specification. Deterministic symbolic machinery then expands that single specification into executable code and Lean proofs. The ambition is not merely to make scientific programming faster, but to make correctness part of the construction process itself.

The most important sentence in Lanyon AI’s announcement is therefore also the least futuristic: “Code is now abundant, but correctness remains scarce.” As a manifesto, that is elegant. The publication of the AdvectionDiffusion repository, however, changes the balance. Lanyon is no longer merely presenting an architecture and asking us to admire the arrows. It has put artifacts on the table: specifications, implementations, proofs, screen recordings, and numerical results. There are, in other words, receipts—and unusually, some of them are written in Lean.

The repository contains nine generated solver constructions: linear advection, isotropic advection-diffusion, and fully anisotropic advection-diffusion, each in one, two, and three dimensions. Lanyon reports producing 9,578 lines of Lean 4, 8,292 lines of C, 438 definitions, and 282 theorems in roughly 156 seconds. Line counts are no more a measure of mathematical depth than kilograms are a measure of literary quality. Still, this is plainly not vaporware. A working system has expanded compact specifications into a substantial, inspectable body of executable and machine-checkable material.

What Lanyon does is conceptually simple and technically rather clever. A language model, supported by retrieval, interprets a natural-language request and proposes a compact, Lisp-like domain-specific specification. Symbolic machinery then expands that same formal object into implementation and proof. The crucial phrase is “the same.” Ordinary AI autoformalization can write some code, then write a proof that accidentally describes neighboring code—perhaps with the notorious plus sign in one artifact and a minus sign in the other. Lanyon tries to remove that gap structurally. It is a productive marriage between a poet and a particularly severe accountant: one proposes; the other will not clear the transaction unless the books balance.

The published workflow makes this concrete. A user can ask Lanyon to create a one-dimensional advection-diffusion solver, run verification, compile the result, and then request a simulation in ordinary language. The system chooses finite-volume upwinding for advection, a limiter for troublesome high-frequency behavior, and centered differences for diffusion. The accompanying research note shows one- and two-dimensional experiments, including a transported sine wave and a cosine hump in rigid-body rotation. Lanyon is therefore attempting more than proof-flavored autocomplete. It is sketching a scientific computing environment in which the mathematical model, numerical scheme, executable kernel, and certificate have a common ancestry.

The word “certificate,” however, deserves mathematical housekeeping. The public Lean files prove genuine properties of the generated constructions: flux hyperbolicity, wave-speed bounds, consistency conditions, flux-jump identities, and reconstruction properties. Lean checks those arguments. But this is not yet a proof that every plotted simulation expresses the user’s intended physics, nor does the repository visibly provide a fully verified semantic bridge from Lean’s real numbers to every IEEE-754 operation performed by the compiled C binary. Lanyon itself says that its verification command checks the specification syntactically, while semantic agreement between a prompt and the resulting formal specification remains fallible. That qualification does not diminish the result; it tells us precisely where the result ends.

It also explains why this project appears now. Generative models have made source code dramatically cheaper, but they have not made ambiguity, numerical instability, or incorrect assumptions cheaper to detect. Formal verification offers a remedy, yet traditionally demands scarce specialists and forbidding amounts of formal labor. Lanyon’s wager is that a narrow, scientifically informed DSL can compress that labor. The stochastic component proposes within a restricted language; deterministic software expands and checks. The model need not improvise ten thousand trustworthy lines if it can instead produce a few dozen lines from which checked structure follows.

There is something characteristically Gorardian in this move. Instead of treating formalism as ceremonial notation applied after the interesting work, Lanyon makes symbolic structure the productive substrate. That matters especially in scientific computing, where software is not merely a product but an argument about the world. Tests can show that selected runs behave as expected. Proofs can establish that specified properties hold for all admissible inputs under stated assumptions. They cannot tell us whether nature accepts those assumptions, but they can make the contract far less evasive.

The present results are focused. Nine examples arranged around one equation family are not nine unrelated scientific revolutions. Some published theorems are close to definitional; others establish useful algebraic consistency. The harder audit still includes complex boundary conditions, adaptive meshes, coupled nonlinear systems, parallel execution, floating-point error, performance, and reproducible toolchains. The accountant has inspected an important department, not yet the entire factory. Lanyon will earn its grander claims by enlarging that verified perimeter without turning its compact language into another sprawling programming system.

Even so, the repository changes the fairest description of the company. Lanyon is not merely proposing that scientific software ought to arrive with proofs. It has demonstrated a focused proof-producing pipeline and released enough output for outsiders to inspect its seams. The most credible interpretation is not an infallible general intelligence, but a specialized, proof-producing scientific compiler with a conversational front end. That may sound less cosmic than “a formally verified substrate connecting AI to the physical world.” To a mathematician or computer scientist, it may sound considerably more interesting.

Why do this at all? Because abundance changes the dominant failure mode. When code was expensive, producing it was the bottleneck. When code becomes nearly free, unexamined code becomes nearly free as well—and can spread with industrial enthusiasm. Lanyon’s first results suggest a better bargain: generate quickly, but make specifications and obligations travel with the implementation. We have taught machines to write. The next task is to make them show their work.

No comments yet