The Spectrum Dispatch News

technology

Developer Proposes Formally Verifiable Language to Address LLM-Era Code Quality Crisis

As AI-generated code accelerates sloppy engineering practices, one programmer argues the industry must adopt formal verification to ensure provably safe software.

Developer Proposes Formally Verifiable Language to Address LLM-Era Code Quality Crisis

Software engineering faces a crisis driven by large language models, according to Blaine Hansen, a developer who argues that LLM-assisted coding is accelerating existing poor practices rather than improving code quality. The core problem: quality is declining, and without structural change, the trend will likely worsen.

Developer Proposes Formally Verifiable Language to Address LLM-Era Code Quality Crisis

Hansen notes that software engineering was already struggling before LLMs became widespread. The default behavior in the industry leaned toward sloppiness, but LLMs have turbocharged these tendencies. The proposed solution is to embrace formal verification—a discipline that uses mathematical proof to guarantee code correctness—“all the way down to the foundations” of critical software systems.

However, existing formal verification tools face significant adoption barriers. According to Hansen, they suffer from “massive usability and understandability problems” and have failed to gain traction in mainstream software engineering culture. Some argue that LLMs themselves could solve this by writing verified code for humans, but Hansen dismisses this as unrealistic. Even if proof assistants like Lean became highly scalable and LLMs could generate proofs automatically, the core issue remains: industry engineers must actually adopt these tools when building real applications.

Formal verification presents an inherent human limitation: while proof assistants can guarantee that proofs are mathematically correct, someone must still read and validate that the theorem statements accurately capture the intended mathematics. This human contract cannot be automated away.

Hansen’s answer is Magmide, a proposed formally verifiable programming language designed for practical adoption by working engineers. His original vision was overly ambitious—he initially planned to build an entirely new proof assistant and assembly-level base language to enable verification down to machine code. After pursuing it as a startup and reconsidering, he developed a more pragmatic approach.

The revised Magmide concept would start with a simpler, more mainstream design and gradually add verification capabilities from the bottom up, rather than beginning with maximum formal power and then trying to make it usable. Hansen compares this potential adoption path to Deno, a JavaScript runtime that added permission-based sandbox safety and attracted engineers who valued security without requiring them to learn entirely new languages.

Hansen argues that cultural change across the entire software engineering discipline is necessary. No small group of formal methods researchers can produce enough verified code to defend systems against future risks. He emphasizes that this requires diverse approaches and multiple projects attacking the problem from different angles. While LLMs may help, Hansen warns against betting the industry’s future on the possibility that artificial superintelligence will solve the problem. Instead, he calls for taking responsibility and agency now.

Key facts

  • LLM-assisted coding is accelerating poor engineering practices rather than improving software quality
  • Existing formal verification tools have high usability and understandability barriers that limit mainstream adoption
  • Formal verification requires human validation of theorem statements—a step that cannot be fully automated
  • Magmide is a proposed programming language designed to make formal verification accessible to practicing engineers
  • The adoption strategy prioritizes simplicity over completeness, gradually adding verification capabilities rather than starting with maximum formal power

Sources

← All posts