Functorial (@functorialdev) header
Functorial (@functorialdev) profile picture

Spec engineering with mathematical precision

Seattle, United States
Joined November 2026
Photo by Functorial (@functorialdev)Photo by Functorial (@functorialdev)Photo by Functorial (@functorialdev)
Kubernetes APF can remove a queue while a finished request still holds seats, and the server can panic when that request's timer fires. We specified "empty" in Lean, proved a model of the fixed code, and generated a fix that matches the PR byte for byte: functorial.inc/blog/2026/ver…
1
1
1
7
14,898
Agreed, you cannot delegate the writing of the spec to an LLM
Reasons I'm extremely skeptical about formal verification taking off: 1. Simpler, cheaper alternatives like enforcing invariants via the type system itself 2. Writing the specification / contract that gets verified is much harder than it sounds for complex, important things - and not something you can delegate to an LLM. 3. Are you going to verify that the formal verification actually verifies what you think it's verifying? Same problem as reading reams of LLM-authored unit tests.
2
137
4/ Finally we generated the Go fix from the specification. It is byte-for-byte identical to the fix in Sai krishna Bodapati's PR, and the naive meaning of "empty" regenerates the buggy code.
1
13
5/ The proofs are about a model of the Go code, and the post lists what we proved, checked and trust. Code and proofs: github.com/Functorial-Inc/k8…
6
Functorial retweeted
Spec engineering will be the next big thing in 2027
At Functorial, we are betting that the future of software will be specification engineering, where the attention of human engineers will be spent almost entirely on one thing: getting the spec right. Get the spec right, and sleep at night.
1
1
30
At Functorial, we are betting that the future of software will be specification engineering, where the attention of human engineers will be spent almost entirely on one thing: getting the spec right. Get the spec right, and sleep at night.
1
2
30
1,905
Introducing: Zero to Riemann Zeros, Learn Lean 4 and the proof of the Riemann Zeta function, free on Functorial Academy! academy.functorial.inc/cours…
1
1
1
17
73,610
If you want to learn Lean and work with us to build custom formal methods workflows, sign up for our free pilot. Find time to join us on Zoom, send a problem you are interested in (including Riemann Hypothesis!) and let's work together functorial.inc/pilot
1
5
18,101
Riemann Hypothesis has been officially solved! ∀s ∈ ℂ, ζ(s) = 0 ∧ s ∉ −2ℕ⁺ ⟹ Re(s) = ½ where ζ(s) = ∑{n∈ℕ⁺} n⁻ˢ = ∏{p∈ℙ} (1 − p⁻ˢ)⁻¹ for Re(s) > 1
The Lean FRO and Mathlib Initiative have released a joint statement on the Lean verification of the Riemann Hypothesis. On November 20, Levent Alpöge released a proof of the Riemann Hypothesis as a Lean library of 17 million lines of code. Over the past day, the Lean and Mathlib communities worked together to verify it. The statement certifies the proof as correct and describes how it meets all necessary verification criteria. Congratulations to Levent on this achievement, and thank you to everyone in the community who contributed to the verification. Full statement: leanprover-community.github.…
1
1
98