This article is a work in progress

AI Writes Better Code Than You but Only Math Can Prove It's Right

Why using model checkers like Quint, TLA+, and Alloy can reduce bugs and make your LLM-generated code more reliable

Gladiator with an abacus

Enim do excepteur aliquip culpa duis adipisicing id laborum aute deserunt commodo. Adipisicing anim nisi cillum id aliqua. Irure velit eiusmod culpa voluptate dolor commodo cupidatat excepteur exercitation Lorem. Proident sit excepteur ad incididunt aute officia do anim velit eu id.

Laboris dolor tempor cillum qui incididunt ad. Velit magna voluptate elit commodo. Velit elit irure quis aliqua laboris nulla officia ex sit nostrud id ut id. Incididunt reprehenderit anim reprehenderit voluptate tempor aliqua elit magna nostrud irure nisi. Cillum ad dolore tempor et est veniam cillum ut eiusmod esse. Officia nostrud nostrud et eiusmod aute excepteur aute commodo consectetur quis. Qui ad sint reprehenderit anim sint dolore nostrud duis veniam cupidatat.

What I have been warning about for years. AI models will become too powerful and treacherous for us to understand, so the only sensible approach to use them is to assume “dangerous until proven safe”.

Fortunately, since they are so powerful, in addition to the code artifact they produce, they can easily provide a proof that the code is safe, secure, and correct.

Then we use artisan trusted technology, like Z3, Lean, Rocq, … to independently check the proof before we run the AI generated code.

Time to listen before it is too late and we humans are getting obliterated by the machines.

Erik Meijer (@headinthebox), Apr 7, 2026

Ut duis voluptate esse consectetur nulla ullamco enim nostrud commodo proident occaecat anim aute. Esse dolore officia officia excepteur nisi nostrud veniam. Sint enim culpa sint adipisicing reprehenderit reprehenderit eu proident elit duis sunt aliqua.

Cillum aliqua minim aliqua est excepteur in duis deserunt nulla amet cillum elit duis. Consectetur voluptate sint pariatur occaecat amet aliqua aliqua commodo aute elit est et eu irure. Dolore amet laboris exercitation nostrud sit irure Lorem culpa. Occaecat officia duis ad enim nulla ex ad proident enim excepteur ex. Pariatur nisi excepteur cillum esse consequat sunt sint est labore magna non.