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)
The big tech companies and the federal government all made a statement at the same time, telling us to upgrade to post-quantum cryptography. To protect our customers' money and data, we audited our external connections and cryptography to understand how many of the external APIs we depend on are exposed to this hypothetical quantum threat... functorial.inc/blog/2026/sec…
11
Our main sites are already using Post-Quantum Key Exchange, but we are going to do some auditing of all our connections to APIs we don't control and report back before bringing all our systems back online. Sorry for the disruption, and we will have more news for you before EOD Pacific Time.
23
Yesterday's ONCD/NSA/CISA joint statement says to "expeditiously upgrade" cryptography. Traffic recorded today can be decrypted once quantum computers arrive ("harvest now, decrypt later"). The fix is hybrid TLS 1.3: rfc-editor.org/info/rfc10024… Functorial is already using this ✅
1
60
Every one of our hosts negotiates X25519MLKEM768, a hybrid of classical and post-quantum key exchange, with modern browsers over TLS 1.3. Check any site yourself: 𝚘𝚙𝚎𝚗𝚜𝚜𝚕 𝚜_𝚌𝚕𝚒𝚎𝚗𝚝 -𝚌𝚘𝚗𝚗𝚎𝚌𝚝 𝚏𝚞𝚗𝚌𝚝𝚘𝚛𝚒𝚊𝚕.𝚒𝚗𝚌:𝟺𝟺𝟹 -𝚐𝚛𝚘𝚞𝚙𝚜 𝚇𝟸𝟻𝟻𝟷𝟿𝙼𝙻𝙺𝙴𝙼𝟽𝟼𝟾
31
Going to drop everything and do the necessary updgrades to protect our customers 🫡
Do not ignore this. Do not underestimate it. Yes, we were briefed on something. Yes, it’s a big deal. No, we can’t give you all the details yet. But it is urgent to move encrypted systems to post-quantum (maybe more appropriately called post-AI) standards.
1
23
Building a category theory tool called catpad that can hook into a local AI agent, or Claude Code, and it uses a Lean compiler to check the types, and then produce commutative diagrams on the right. The diagrams are inspectable, and even editable, there's a two-way feedback loop
25
29
7
245
7,619
Super dig this and what you're doing with @functorialdev - Rad
1
1
18
How the tables have turned! When I was in college, I used to run after courses that involved a lot of coding and I'd even go beyond the syllabus while learning. But, everyone used to run away from theoretical courses, like discrete math, or theory of computation (mostly because the teachers could never show why these courses were useful). Now, AI is doing all the coding and everyone is talking about TCS on social media and popular media.
4
3
2
131
15,159
I actually bought your A Brief Course in Modern Math for Programmers back in 2020! How different is the new book from that one? Is it a substantially expanded version? Currently I'm trying to learn formal methods.
2
17
2,297
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
145
our team is producing a lot of heavily agent written software but i don't think any of us have messed with the formal proof stuff is it actually useful, should we be looking into it?
223
28
17
2,007
249,335
A 40 page RH proof skeleton has been produced. This could be a nice starting point for people to sink their teeth into the proof. github.com/sdyy1990/riemann-…
Cutting down the RH proof by 200x (not 200%, but 200x!) After the dust settles, we might just end up with a 50 page proof of RH...
34
179
31
1,283
164,739
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,923
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
14
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…
7
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
Since the Curry-Howard isomorphism is in the spotlight right now, let me tell you that there is a whole book-length treatment you can peruse at your pleasure. cs.cmu.edu/~rwh/courses/clog…
13
77
3
461
21,412
This is required reading, great share!
1
134
the Riemann Hypothesis proof went from 17.4 million lines of Lean to 76,000. the size isn't the real story. a proof that size can only be trusted if the kernel accepts it, and only the 3 standard axioms show up: propext, Classical.choice, Quot.sound. no hidden assumptions, no sorry, no shortcuts. Andrew Sutherland at MIT reran the checks on both versions. so what actually happened? > the first version was search. Claude found a path and kept every dead end, detour and duplicate lemma > the second version was compression. same five theorems, 200x less text > a mathematician would call that second step "understanding" in information theory a thing's real size is the shortest program that produces it. 17 million lines told us a proof exists. 76,000 lines is the first hint of how long the idea actually is. no human has read either one yet. but 76,000 lines is about the size of a serious textbook, and that means for the first time someone could.
Anthropic researchers used Claude to cut the Lean formalization of the Riemann Hypothesis and its generalization by roughly 99.56%. That’s more than 200× smaller. 17.4 million lines of Lean down to 76,000.
2
1
36
2,211