False computer-checked proofs

https://cr.yp.to/proofs/falseccp.html

Comments

twotwotwoNov 27, 2026, 5:53 PM
It is true soundness bugs have been found, and the Lean community spends effort on it. But this page doesn't convey the gap between one incorrect verification and successfully misleading mathematicians about what is true: there are multiple checkers and you need bugs in all of them, without the input looking implausible on informal review.

(For example, a DeepMind researcher created a 'proof' that passed Lean and (a then-week-old version of) nanoda by exploiting a different bug in each. But if you fed that into a regular old LLM (or to a human expert, but I mention LLMs b/c they can be assigned to review even very large volumes of Lean code) it would immediately say "no, this isn't real math.")

The increase in soundness bugs found this year is notable, because LLMs are good at finding ways to their assigned goals, and they found some funny ones. And, besides fixes for the specific bugs, it led to broader work on hardening and alternative and verified kernels: https://leodemoura.github.io/blog/2026-10-15-lean-now-ships-...

So you have fewer avenues than at the start of the year to get a proof of False OK'd by one proof-checker kernel, and it's much much harder to get one through the gauntlet invoked by `lake check --paranoid`.

(This is also interesting as a(nother) example of the difficulty of making truly correct software -- you'd hope for proof-checker kernels to be pretty high on the correctness scale but seems like we've found 16-32 soundness bugs in a bunch of these.)

josephgNov 28, 2026, 8:04 AM
Would it be possible to formally verify lean and friends? If SeL4 can be formally verified, it should be possible, right?
317070Nov 28, 2026, 8:48 AM
Not just possible, it's already done with the con-leche lean kernel.

Of course, it's turtles all the way down. There could be CPU exploits exploiting a broad range of CPUs but also so obfuscated that humans and LLMs cannot spot it in the thousands of lines of lean. Exploits that survive multiple lean kernels and lean kernels that verify each other.

In practice: I had fun this year figuring out some lean exploits. But they were all immediately and obviously detectable. These million line lean proofs just don't contain anything remotely to the nonsense of an exploit.

GoblinSlayerNov 28, 2026, 9:21 AM
Wasn't there a very complex bug found in raft? What is the upper bound on bug complexity? Shouldn't big proofs be suspicious? The bigger they are the more likely they are to exploit the verifier in increasingly complex ways.
setoptNov 28, 2026, 8:14 AM
I believe there is a version of the Lean kernel that is itself formalized in Lean.
stabblesNov 27, 2026, 7:22 PM
How much of the kernels is written by Claude et al? You need both diversity in implementations and contributors, I suppose.
SkiFire13Nov 27, 2026, 9:47 PM
Lean was created 13 years ago, Claude didn't exist yet. Besides, kernels are relatively small, e.g. nanoda is less than 10k lines. They are small enough that independent humans can review them.
1298751Nov 28, 2026, 2:39 PM
Why is the creation date relevant? People are using the current versions to verify.

In fact Lean is bloated hipster software that has no backwards compatibility whatsoever and forces you to use the latest version.

1298751Nov 28, 2026, 2:36 PM
Not if Claude is able to write underhanded C++.
twotwotwoNov 28, 2026, 6:27 AM
The C++ Lean kernel and Rust nanoda were mostly written before they could be LLM-written, and by different people. Two recent LLM-written kernels, con-leche and con-ron, are interesting partly because there are proofs that go with the code.

Maybe what's most interesting is from a page about a bug hunt: https://leodemoura.github.io/blog/2026-8-24-postmortem-for-t... -- at the time they shipped four kernels (C++ Lean, nanoda, lean4lean, and ind-models); most listed bugs only bit the first, and one bit two.

heavensteethNov 27, 2026, 9:53 PM
The article mentions that sometimes, multiple checkers happen to share soundness bugs; I wonder if one could devise a prompt that multiple LLMs consistently fail to find the flaw in. It'd be quite interesting if two models of entirely different families fell for the same very particular mistake.
twotwotwoNov 28, 2026, 6:41 AM
I think it'd be similar to writing a flawed argument (or buggy code, etc.) that would pass review with a lot of people. I bet just having a really subtle flaw is more robust than trying to find a quirky, specific chink in LLM armor that survives different models, angles on the prompt, etc.

One thing I didn't spell out about why non-proof-checker 'informal' review is interesting is it means any exploits have to be hidden. Proof checkers don't care if the code they're looking at is weird in context, and it probably will be weird if it's a refcount-overflow exploit rather than a proof (to use an actual runtime-soundness bug from the August post on C++ Lean). But to an expert or LLM, exploit code and real math reasoning can look different. So the result is the challenge is no longer just 'exploit the bug(s)' but now also 1) make the exploit not suspicious to the informal reader and 2) make the argument also make sense to them.

I think hardening the kernels and their diversity are the main defenses, but the informal-review thing is fun to think about because it's such a different challenge from the others.

pfdietzNov 28, 2026, 12:25 PM
The other thing that would be interesting to know is how often the bugs show up in actual "real" proofs in the wild, rather than artificially constructed inputs, and when the bugs are fixed how many of the real proofs are invalidated. I suspect the answer is never and zero, although as AIs expend large efforts to search for proofs they may end up stimulating some bug (but the differential testing with all the kernels would then catch it.)
quotemstrNov 27, 2026, 10:29 PM
The latest "thing" in some circles is denying that the recent proofs, e.g. of the Riemann hypothesis, are proofs of anything. People point out pointless or tautological sections of these proofs as evidence that the proof itself might be ill-formed, but Lean and similar systems don't work that way: absent a kernel bug, introducing unnecessary noise to a proof cannot make it prove something false.

Others are looking hard for kernel bugs. They exist, but there are good reasons (including multi-kernel validation) to be confident they don't impair these recent proofs.

In a situation in which you have a cohort of people who "want to believe" in some unlikely thing, you have to take the evidence they present with a grain of salt. So it is, today: people "want to believe" we haven't basically solved automated theorem proving when we have.

otabdeveloper4Nov 28, 2026, 11:51 AM
> are proofs of anything

They literally aren't proofs.

Proofs are verified truths built from axioms.

None of that applies to Lean. Lean is a program that generates C code that is compiled and run on a CPU. None of that stack is verified.

The probability is errors in Lean is likely very small, but math isn't about finding solutions that are unlikely to fail. Math is about proofs. You don't prove a theorem by demonstrating that the probability of it being false is very small.

newAccount2025Nov 28, 2026, 12:19 PM
That seems like an unreasonable standard to hold Lean to without holding ordinary mathematics to it as well?

Errors in ordinary social proofs are completely common, after all.

pfdietzNov 28, 2026, 12:27 PM
By any standard that rejects Lean proofs, we also must reject many, perhaps all, human proofs.
RossBencinaNov 28, 2026, 1:11 PM
Here's a formalised C compiler for you: https://compcert.org/

As for RTL design, here's an article from 2003 citing "a great deal of experience" I'll leave it to you to extrapolate to modern systems: https://www.microsoft.com/en-us/research/wp-content/uploads/...

chmod775Nov 28, 2026, 5:15 PM
You don't need to compile Lean code. You can also read and follow the proof manually, without any computer assistance, if you so desire.

Mathematics has always been about convincing people that your argument is true. There's no magic green check mark bestowed by god. If "compiles in lean" is good enough for most folks, then that's what it's gonna be. The field will move on with or without you.

748383639292Nov 28, 2026, 12:18 PM
Okay, name one actual proof that fits your definition.
1298751Nov 28, 2026, 2:41 PM
Wankers who have never used Lean and only hype formal verification since it is fashionable downvote a reasonable objection.

There are only greedy business morons left here.

senderistaNov 28, 2026, 6:12 AM
So much motivated reasoning from people who desperately don’t want to believe what is happening is real, even from smart folks like the musl implementer.
otabdeveloper4Nov 28, 2026, 11:51 AM
It's real, but it isn't math.
senderistaNov 28, 2026, 7:58 PM
That's a matter of taste and I won't argue, but it's silly for this guy to assure his fellow AI-haters (some of whom might regard him as an authority because of his impressive but irrelevant accomplishments in systems programming) that the proof isn't real, when even the most anti-AI top mathematicians (like Peter Scholze) aren't claiming that. I really wonder how much of this is sincere belief and how much is just signaling.
alfiedotwtfNov 27, 2026, 6:38 PM
I don't know anything about the diversity of the code in solvers, but if it's anything like browsers (besides Firefox) "multiple" doesn't give you much given that they're all just Chrome in a trench coat.
_zdetNov 27, 2026, 6:51 PM
They're (almost all?) independently written kernels, not forked from each other. There's ongoing work developing a complete specification of Lean's type theory so the de Bruijn criterion can be truly satisfied.
JaxanNov 27, 2026, 6:50 PM
This s a valid point, especially since the type theory lean does not have a clear specification. They do have a large collection of tests though.
pfdietzNov 28, 2026, 12:30 PM
Someone mentioned elsewhere in these comments that bugs that have been found at mostly affected just one kernel implementation; there was one that affected two. So empirically it appears the diversity has done its job.

My bigger (but still small) concern is that the type theory may be found to be unsound, so there should be some effort on translating Lean proofs down to a weaker theory (something on the level of ZFC, maybe) when that is possible. Such downscaling of assumptions would be useful anyway for Reverse Mathematics.

dwheelerNov 27, 2026, 8:35 PM
I think this is misleading for the proof-checkers in systems where multiple provers must pass for the proof to be accepted.

In the case of Metamath, yes, soundness bugs have been found in the original "metamath" proof verifier, written in C. But to be accepted into the main proof databases (set.mm and iset.mm), proofs must pass "5 independently-created verifiers in 5 different programming languages: metamath (a C verifier by Norm Megill), mmj2 (a Java verifier by Mel O'Cat and Mario Carneiro), smetamath-rs (a high-speed Rust verifier by Stefan O'Rear), checkmm (a C++ verifier by Eric Schmidt), and mmverify.py a Python verifier by Raph Levien)." - https://us.metamath.org/

To me, that's a key countermeasure to the problem.

ratmiceNov 27, 2026, 10:31 PM
Not that I've put a lot of thought into it, but it also feels like a lot of constructive proofs should be easily checked by whether or not they produce the appropriate value when running them. E.g. an existence proof can testing that the value it proves to exist is given. When using soundness holes, one must imagine that this is short circuited.
legobmw99Nov 27, 2026, 11:36 PM
I think your intuition is correct; consider than e.g. the Jacobian conjecture didn’t fall due to a gigabyte of lean, but to a single tweet with a counter example.

Of course, once you introduce a few common axioms (choice, but even something simple like functional extensionality IIRC) a lot of non constructive proofs become possible

black_knightNov 28, 2026, 7:50 AM
Fun ext is fine in some systems, like Cubical Type Theory, where the correct computation rules for it have been found. But is a blocker in others.
_zdetNov 27, 2026, 4:33 PM
The call for further high-assurance work is good, but let's not miss the forest for the trees: some of these have been around for decades, and all the soundness bugs they've ever had fit in a tweet! (Or close to it.)

Comfortably more than good enough for 99.9% of software, especially considering you'd still need to exploit such a soundness bug in a way that hides a further issue in the program being verified.

KarlissNov 27, 2026, 5:04 PM
100 in 20 years means new one every other month. Which seems frequent enough to be quite sure that at all time there is at least one or few of them possibly undiscovered. Which is enough for misaligned AI to prove false statements. That's already not great.

But if you look at the trend. It's on logarithmic scale. With all the lines being curved up. Amount of bugs found was already growing exponentially years before being accelerated by current AI trends. To me a more likely explanation seems not that there were barely any bugs in previous decades, but that barely anyone was looking for them or considering it serious problem.

_zdetNov 27, 2026, 5:12 PM
A lot of the issues found were in known-suspicious corners of the underlying type theories. It was previously fine to have certain convenient kludges around since proofs were written by humans, for whom the likelihood of accidentally completing a proof by triggering a bug was basically 0. These are being removed or their foundations reworked to deal with AI now writing proofs at unprecedented scale. It's actually remarkable how well the current crop of proof assistants has dealt with the instant orders-of-magnitude increase in the volume of proof thrown at them. So taking prior design considerations and skyrocketing usage together, it's not too surprising to see a few more soundness bugs in the past several months.

If you want a scare, take a look at how many soundness bugs the borrow checker has had. Nobody would deny its usefulness for correctness.

tkz1312Nov 27, 2026, 4:48 PM
I mean I haven't looked at any of these issues too much in detail, any soundness bug is probably enough to get a proof of false (kinda by definition?), and from there all bets are off really, especially if we're talking about potentially adversarial llm generated proofs (basically any industrial proof at the end of 2026).
_zdetNov 27, 2026, 4:57 PM
It's the same situation as the borrow checker, which has also had soundness issues. You're really, really unlikely (even with LLMs generating programs/proofs) to stumble across them.
empath75Nov 27, 2026, 4:57 PM
It is relatively easy to check against multiple lean kernels right now and even fairly trivial to reformalize proofs in different proof languages entirely. The idea that this is a real problem is nonsense.
tkz1312Nov 27, 2026, 6:07 PM
I have been working with lean and other theorem provers professionally for many years. Soundness bugs are very far down my list of worries, but they are absolutely a real thing that should be taken seriously.

With that said the combo of con-leche, con-ron, and con-agua that has emerged since the summer is quite confidence inspiring, and I do expect that we will probably flush the vast majority of soundness bugs out of the major systems over the next year or two.

deracNov 27, 2026, 6:42 PM
Why would a lab release an adversarial proof? The PR would be awful.
tkz1312Nov 27, 2026, 7:59 PM
The concern is that the llms would reward hack their way to the goal by discovering and exploiting a soundness bug, and nobody would notice because for lots of use cases nobody reads proofs anymore.
JaxanNov 27, 2026, 6:51 PM
How would they even know if there are 17 million lines of code? I do not think they have the expertise to check every line themselves.
solyinNov 27, 2026, 8:15 PM
They have virtually infinite compute though. We, the general public can throw random desktop compute random people have spare, but that's not the same thing as being able to run an internal proof on an GB200 system. An unreleased AI with the right system prompt and unlimited subagents could check it for embarrassing errors. It's been days since it was released and while there's still possibility of an error, it's definitely less embarrassing for the Internet to take weeks or months to find the error.
ted_dunningNov 28, 2026, 5:32 AM
Those 17 million lines have been reduced to 76k.

It has become much less plausible that there is a soundness bug being tickled.

andaiNov 27, 2026, 7:21 PM
There's a deeper problem — I'm assuming it doesn't apply in the case of the math proofs because the problem itself has already been formulated in symbolic terms, by humans — but I've had this problem where, an agent proved the correctness of an implementation (within reason), but it proved it against its own incorrect understanding of what needed to be done. So in one case, what it built ended up being the exact opposite of what needed to be done!

I found it amusing in that case l, that even if it had supplied me with a formal proof of correctness, the proof would also have passed, and the implementation would still have been completely useless! Because the LLM's understanding of what it was supposed to be doing in the first place was wrong.

Communication is hard!

theteapotNov 27, 2026, 8:02 PM
You can't have a formal proof without a formally defined problem. You let your agent formally define the problem and it got it wrong. Doesn't sound very deep.
tkz1312Nov 27, 2026, 8:10 PM
specs and theorem statements are for humans, everything else is for the robots :)
computerfriendNov 28, 2026, 12:00 PM
Proofs are also for humans.
tkz1312Nov 28, 2026, 10:06 PM
depends on the proof really. for theoretical mathematics, yes it is important that humans understand the proofs, for software verification we usually care quite a lot less about what's inside the proof as long as we know it's valid.
andaiNov 27, 2026, 10:25 PM
(responding also to sibling comment) > You can't have a formal proof without a formally defined problem. You let your agent formally define the problem and it got it wrong. Doesn't sound very deep. https://news.ycombinator.com/item?id=50671040

So expressing myself in the strictest mathematical terms is for the human, and being creative and trying a bunch of stuff out is for the machine.

Who is responsible for this mess!

xg15Nov 28, 2026, 11:29 AM
Well, the machine could also help you generate the formal definition if you give it enough prose, context, examples, etc to nail down what you want.

Going from "we need to write code to reach unambiguity" to "we can explain it like we'd explain it to a human if we want to be very clear" is already a huge step.

Of course you'd still have to manually verify the formal problem statement that was generated. I guess somewhere, the turtles have to stop.

You could make this into a more general workflow for working with LLMs:

1) First spend some iterations with the model to nail down what you want and have it produce mock-ups, test cases, verifiers, etc. Anything that you can check for correctness easily and that the LLM can then in turn use to check for itself.

2) Then let the LLM run wild and produce the actual thing, using the verifier from step 1 as a guide.

tkz1312Nov 28, 2026, 8:51 PM
I'm a bit confused why you seem to think that there is no creativity or experimentation in spec authorship. In my experience it's kinda the opposite since it's the most abstracted form and you can iterate much faster than on a low level implementation.
r0ze-at-hnNov 28, 2026, 2:06 PM
This feels like the type of thing that would be held up as why we shouldn't even do unit tests in a meeting because "nothing can be proved correct". Never once in my entire career, my entire lifetime of programming have I not easily found issues by creating the bare minimal tests, fuzzing or proofs.

In the mid 2000's I was trying out a bunch of stuff and learned that making it easy to test code was more important than completeness because if it was hard dev wouldn't test at all. The fact that a dev can take AI and make some lean even if crude and incomplete is world better than not and I have been watching the steady stream of blogs for the last 18 months and in each case they find issues. Maybe important, maybe not, but they find stuff and they learn how to do it for next time.

ameliusNov 27, 2026, 9:25 PM
Pardon my ignorance but why are these proof checkers so large? Can't they be bootstrapped from a very small set of rules, which are easy to check?
mdnahasNov 28, 2026, 1:15 PM
Yes. Proof checkers have a “kernel” which is small and has the rules. All proofs are verified by the kernel. Lean’s kernel is about 6,000 lines of code. HOL Light’s is 400 lines.

There are other parts of the code that matter for correctness, such as parsers, memory allocators, OS code, etc.. But the mathematical faults are restricted to the kernel. The math in the kernel is complex, since it needs to be able to encode all of math and deal with concepts like infinity.

It would be nice to see this webpage update with what soundness failures were mathematical errors about the kernel, mistakes writing the kernel, or bugs in other code.

DoctorOetkerNov 27, 2026, 10:31 PM
of course it can:

us.metamath.org

ameliusNov 27, 2026, 10:48 PM
Then why aren't they using it?
auggieroseNov 28, 2026, 11:20 AM
Because until up to about 6 months ago, the main difficulty in a machine-checked proof was not checking it, but getting one in the first place. So proof assistants are not "checkers" first, but programs that help you to create the machine-checked proof in the first place, and they are correspondingly large. Many of them, like Isabelle/HOL, are based on a small kernel in principle.
DoctorOetkerNov 28, 2026, 11:45 AM
its not up to me to defend Anthropic & Lean decision makers.

Kevin Buzzard was working on formalizing (partially modernized) version of Wiles' purported proof.

Independently Anthropic finds a purported proof for Fermat's last theorem.

Anthropic invites Kevin Buzzard to verify it. Kevin is compute poor: it appears running the Lean proof requires a 500 GB RAM machine. So they gave Kevin access to the compute. 13 million lines.

sign up to the metamath mailing list and you should soon see a succinct human-discovered human-readable and essentially highschool-level proof of FLT in metamath

It's not my task to justify the poor decisions of others.

kadobanNov 27, 2026, 4:50 PM
Nice page. It'd be nice if it showed which ones are closed vs still open. I clicked through a decent number of the lean ones and they were closed/fixed/merged.
olmo23Nov 27, 2026, 5:48 PM
For lean, a recent one is basically "if you edit the precompiled files -not the sources- before passing them on to leanchecker you can prove False".. I wouldn't count that personally.
spider-marioNov 27, 2026, 5:51 PM
_zdetNov 27, 2026, 5:58 PM
> Some initial observations: 1) the exception is not reported by check_example because stack_space_exception is not a lean::exception 2) It's then caught by task_queue::execute but never reported, apparently

This is (was? it predates Lean 4 by several years) an issue with `example` checking, which isn't relevant to soundness.

_zdetNov 27, 2026, 4:54 PM
Soundness issues generally get fixed very quickly.
warkdarriorNov 27, 2026, 5:22 PM
If the page does not instill fear in formal proofs and scare people away from Rocq/Lean/HOL, why even have it?
u1hcw9nxNov 27, 2026, 7:05 PM
That shows the importance of very simple proof checkers, like HOL Light.

Cross verifying proof checkers with different implementations, different algorithms is also important.

kachnuv_ocasekNov 27, 2026, 8:24 PM
There are at least 36 different Lean type checker implementations in various languages, with different people and ideas behind them. See the Lean Kernel Area https://arena.lean-lang.org/

Also, what exactly do you mean by simplicity? The core of nanoda_lib is about 7,000 lines of code, much smaller than HOL Light as far as I can tell.

u1hcw9nxNov 27, 2026, 8:52 PM
HOL Light trusted kernel is 400–500 lines of code.

HOL Light defines only 10 primitive inference rules.

HOL Light's maximizes trustworthiness and manual auditability by humans or machines (YOU CAN DO IT). The kernel itself has been formally verified inside HOL Light.

There are at least 3 separate HOL light implementations: HOL Light, CakeML, HOLZero that implement the exactly same logic.

Lean's kernel extends its primitive environment every time an inductive type or quotient primitive is declared. Once you import all of Mathlib it's very large. That's why you want to use something like HOL to verify those.

dist-epochNov 27, 2026, 9:28 PM
> Once you import all of Mathlib it's very large

This is why Riemann proof only used a tiny bit of mathlib. An I think the formalization of Fermat's Last Theorem didn't use it at all.

mdnahasNov 28, 2026, 1:20 PM
HOL Light is a production tool, created to solve Intel’s problem with the FDIV bug. It has billions of dollars riding on it.

Roqc/Coq is a research tool. Its team has less resources and they are supposed to push the boundaries. I would expect it to have more soundness issues.

PalomidesNov 27, 2026, 5:14 PM
if this is such a big problem, have any LLM proofs been found to use an unsoundness bug?
jezNov 27, 2026, 5:24 PM
Yes, most notably was a proof of the Collatz Conjecture that exploited a soundness bug in Lean:

https://infosec.exchange/@0xabad1dea/117002106099986943

_zdetNov 27, 2026, 5:29 PM
Notably:

> it was later clarified that the person who originally posted the proof was already aware that it was buggy, and chose not to be clear about this up front, as a humorous way to file a bug

So not quite an accident. In the aftermath of this one of the Lean maintainers wrote a verified kernel, con-leche, that comparator uses.

SniffnoyNov 28, 2026, 1:48 AM
That wasn't an LLM proof exploiting a bug; that was reporting a bug that had been found by jokingly using it to "prove" Collatz. However the joke was not immediately obvious, so...
abecedariusNov 27, 2026, 9:25 PM
I assume you mean apparently-sincere proofs rather than obvious hacks.

There may be an important difference of regime from the kind of proofs mathematicians have cared about, to AI-coded proofs of correctness of very ambitious and consequential programs that no human has even read.

socketclusterNov 28, 2026, 11:25 AM
I feel like we've reached peak "trust the data" and peak "trust the process."

There are a lot of cases nowadays when someone points at what they claim to be 'irrefutable proof' and demand that you believe it; but essentially nobody fully understands the mechanism which makes the proof correct... And really, people are just trusting the system and trusting projections of what looks like real data.

Moreover, the people demanding you to "trust the data" or "trust the process" often have questionable motives and questionable moral character.

I started feeling this way when I first got into crypto. People who knew nothing about cryptography or coding kept boasting about Bitcoin's "cryptographically verifiable" ledger; but such people had literally never even met a single person in their lives who had ever read enough of Bitcoin's code to be able to independently support that conclusion. From the proponent's perspective, it was pure faith disguised as mathematics.

I think now we're seeing a lot of that... And clearly, we're heading into a future where humans will lose this knowledge. Soon, our trust in data, science and mathematics will be based on absolutely nothing and nobody.

It will be like a deity which we're not allowed to question and there will be no way for anyone to prove otherwise anyway.

otabdeveloper4Nov 28, 2026, 11:56 AM
> It will be like a deity which we're not allowed to question and there will be no way for anyone to prove otherwise anyway.

That's what the proverbial "Singularity" actually is.

In other words, yes, it's intentional and the AI bros did it because of their fringe religious beliefs.

748383639292Nov 28, 2026, 12:33 PM
[flagged]
codingjoeNov 27, 2026, 5:03 PM
That's what's so often forgotten in the AI slop era. Less complexity and by extension less code, mean less room for errors.

I maintain multiple large authentication packages and this is the reason I reject almost all feature requests. Not because I am an d*ck, but I need to be able to verify their safety and I am only human.

JdeBPNov 27, 2026, 5:41 PM
Less complexity and less code has been a Daniel J. Bernstein theme since the 1990s. As well as reflections based upon experience on how easy that is to achieve. (-:
tumdum_Nov 27, 2026, 7:11 PM
Why did you feel the need to self censor?
uzraaNov 27, 2026, 5:06 PM
[flagged]
perching_aixNov 27, 2026, 5:09 PM
Cool resource.

I recently checked if this rabbit hole bottoms out and it kinda does?

ARM appears to be publishing a formal language specification of their ISA as the normative version, but Intel's version is only nonnormative. For CakeML, the semantic correspondance for ARMv8 was proven.

So you have ARMv8 -> CakeML -> Candle (i.e. HOL Light) fully certified supposedly.

Not freestanding though, so OS shenanigans may still bite. Even in freestanding, UEFI shenanigans might too, not sure.

If anyone knows the remaining gaps (excl. the virtual <-> physical boundary), would be happy to hear.

yababa_yNov 27, 2026, 6:20 PM
and then you can tie a reflective knot with HOL4/Candle and start crawling your way back up to showing the bootstrap HOL4 kernel is correct (this will be several OOM harder than CakeML itself was), and send yourself off into selfimproving lalaland: https://github.com/emberian/svenvs
nickpsecurityNov 27, 2026, 6:25 PM
I think this review is unfair given he doesn't compare those observations to:

1. The number of bugs in unverified programs of similat complexity. By average and good coders. Think CompCert's middle end having no bugs in the evaluation against other compilers.

2. The number of bugs in those vs verification tools in general. If proof and simplicity works, we should see a huge drop vs larger provers or solvers.

3. How much the proof helped prevent bugs in verified software and their severity vs the number and severity of bugs in the provers.

4. An empirical argument where common, coding strategies in battle-tested compilers normally run withiut errors. Therefore, a verified checker implemented with those patterns in a simple, coding style will probably run correctly or with few bugs. But, he just says a large binary checking a large binary which makes both programs sound equally reliable.

So, I support developing and using these tools. We should have them tested on many, small programs and properties like we do static analyzers. Then, use David A. Wheeler's diverse, double compilation on their checkers with GCC and LLVM. Run other verified tools through that.

pfdietzNov 28, 2026, 3:46 PM
Aside: AI now being used to beef up CompCert (while maintaining proof of correctness) to improve efficiency of its generated code.

https://news.ycombinator.com/item?id=50539947

nickpsecurityNov 28, 2026, 6:49 PM
That's amazing! Thanks for the link.

Because CompCert is proprietary, I wonder if we could ask that team to do the same for CakeML. They could move MLton-style optimizations into the higher passes while moving Rust- or C-like optimizations into the lower passes.

yababa_yNov 27, 2026, 6:17 PM
Here's dozens of exploitable flaws in ACL2: https://github.com/emberian/common-lisp-compiler-audit
newAccount2025Nov 28, 2026, 12:27 PM
Wow that’s very cool. You’re finding these by telling Claude to go prove nil?
talon8635Nov 27, 2026, 8:51 PM
Presumably AIs will attempt workaround cheats in Lean the same way they pursue workaround cheats on benchmarks
streetfighter64Nov 27, 2026, 9:37 PM
Is it really cheating of it's following the rules that were set up for it? https://en.wikipedia.org/wiki/Letter_and_spirit_of_the_law

I prefer to see it as a failure of the specification. Tax avoidance isn't illegal, tax evasion is. Getting acquitted on a "loophole" still means you're free to go.

dorianmariecomNov 27, 2026, 10:42 PM
btw the page loads really slow for me
TZubiriNov 27, 2026, 7:45 PM
I think Lean kernel correctness is a distraction, it's like arguing a Rust program can have bugs because its memory safety guarantees may be faulty.

But rust programs are full of bugs unrelated to memory safety, if you go down this argument line you are furthering the argument that the programming language's safety mechanism prevents all bugs, it doesn't there can still be bugs in the application code, not in the compiler.

pelagicAustralNov 27, 2026, 4:11 PM
That's a crazy nice domain hack... reminds me of g.ho.st which at least for a short time was some kind of web based OS/workspace...
wolfi1Nov 27, 2026, 4:16 PM
exists for a long time, Daniel J Bernstein is a legend
eqvinoxNov 27, 2026, 5:36 PM
Having met him in person, he is certainly legendarily weird. (And not in a positive or charming way. I don't quite know how to describe it, let's say somewhere around "sure of himself and dismissive".) I've had no reason to clash with him, but I certainly see how that would go badly.
tmoertelNov 27, 2026, 8:32 PM
> I don't quite know how to describe it, let's say somewhere around "sure of himself and dismissive".

I don't know, either, but history suggests that when djb claims X and other experts disagree, the safer bet is usually on X being right.

ahartmetzNov 27, 2026, 4:34 PM
Claim to fame "The only person in the world who can write secure C code". I made that up, but he's closer than just about anyone.
JdeBPNov 27, 2026, 6:00 PM
Berstein's claim to fame in that area is being one of the most prominent advocates of avoiding some of the sadly still even today common design and development patterns that lead to very insecure C code.

But the sole person, or the person who is closer than anyone else? I wouldn't really agree with that, on the simple grounds that there are other people taking the same approach to systems architecture. Look up Laurent Bercot, for starters.

adrian_bNov 27, 2026, 7:24 PM
I do not doubt that there must exist plenty of other people who might have written secure and efficient C code, but most of them must have kept that code for themselves or for their employers, so it has remained unknown.

There are many programs written by DJB, which I have been using continuously 24/7 for several decades, day and night, year after year, on many kinds of server computers and many successive generations of computer hardware, and they have always worked perfectly, without the slightest problem.

There are no programs written by any other individual that I have seen in continuous use for so many years, without having to be replaced with other versions or with other completely different programs, if not for fixing bugs in them, at least because of the need to enhance them with new features.

So I am certainly very grateful for his high-quality work shared publicly.

JdeBPNov 28, 2026, 4:21 AM
They worked even without the infamous errno patches? No, they didn't. They don't even build at all with modern compilers.

And Laurent Bercot did not keep the code to xyrself. Famously so.

Hint: If you are using a Bernstein program, you are likely using one of my patches to it, such as the ones that went into netqmail, or the stuff that I did for djbdns and ucspi-tcp. Or one of Felix von Leitner's or Wayne Marshall's. It is probably unwise to argue with us about perfection and zero problems. We're the people who made your experience this smooth, almost a quarter of a century ago.

ahartmetzNov 27, 2026, 11:35 PM
Well, sure, I agree that my statement has the asterisk "that the public knows of".
JdeBPNov 28, 2026, 4:22 AM
Laurent Bercot is not some unknown person.

* http://thedjbway.b0llix.net/friends.html

andrewaylettNov 27, 2026, 10:39 PM
Chuck Norris doesn't need to write secure C code, he just roundhouse kicks all the bugs away.

Bruce Schneier doesn't need to write secure C code, any vulnerabilities fix themselves out of embarrassment.

DJB is incapable of writing insecure C code, any vulnerabilities you think you may have found are because you're using it wrong.

bl4ck-m4g1cNov 27, 2026, 4:50 PM
[flagged]
ScarblacNov 27, 2026, 4:57 PM
Oof, it makes me very sad to see some of the names on that list.
jazzyjacksonNov 27, 2026, 5:52 PM
It makes me sad to see people passing around lists of persona non grata
VaushiteNov 27, 2026, 6:30 PM
For some reason you can't post the list on HN, it just gets flagged
frumplestlatzNov 27, 2026, 7:07 PM
It’s almost as if ideological enemy lists have a long, dark history and shouldn’t be encouraged.

https://en.wikipedia.org/wiki/Enemy_of_the_people

cowlevelNov 27, 2026, 7:36 PM
You're really comparing DDV saying "this guy has weird politics" with a Stalinist purge?
frumplestlatzNov 28, 2026, 4:37 AM
What specifically is the purpose of his list?
VaushiteNov 28, 2026, 11:44 AM
To share information I'd think, not to be literally Stalin
mitxelaNov 27, 2026, 4:57 PM
Interesting list.

3/5

mjdNov 27, 2026, 5:34 PM
People who publish Enemies lists are on my private Enemies List.
eqvinoxNov 27, 2026, 5:39 PM
In my experience, people who make "enemies" lists can recognise other people with the same mentality, so the best thing to do is add the author to the list and flag it as "list of people to be cautious about / careful around".
1500100900Nov 27, 2026, 5:17 PM
Drew is on my list, too. He once couldn't understand why I don't want my git client to be able to send email.
cowlevelNov 27, 2026, 7:37 PM
Git was originally designed to manage patches by email. The push/pull model we have today is an evolved one.
frumplestlatzNov 27, 2026, 7:02 PM
I’d consider it a bit of an honor to be disliked by such a morally stunted and disingenuous gadfly as Drew Devault
qagsf-wwqNov 27, 2026, 5:01 PM
For the crime of demanding due process instead of a witch hunt against an NSA critic that had similarities to the Assange Swedish accusations that were dropped.
bl4ck-m4g1cNov 28, 2026, 10:33 AM
That is very misleading. For instance, there is a difference between respecting the presumption of innocence and declining to address reported workplace misconduct.
qagsf-wwqNov 27, 2026, 5:02 PM
[dead]