Better HN
topnewbestaskshowjobs
Log inSign up

_zdet

2 karma · joined Nov 28, 2026 (5h ago) · 43 submissions

Submissions

comment 1d ago · link · parent

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.

comment 1d ago · link · parent

> 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.

comment 1d ago · link · parent

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.

comment 1d ago · link · parent

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.

comment 1d ago · link · parent

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.

comment 1d ago · link · parent

Soundness issues generally get fixed very quickly.

comment 1d ago · link · parent

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.

comment 1w ago · link · parent

To verify, yes. To understand and push mathematics forward, no.

comment 1w ago · link · parent

By the linked paper, this has been in the works for 12 years.

comment 1mo ago · link · parent

From the article:

> Proving that a fuzz test has no more crashes to find is more significant than it sounds. It’s common for fuzz tests in real-world code to test for violations of meaningful high-level properties, such as encode-decode roundtripping, idempotence, algebraic laws, differential testing, self-consistency, or equivalence to reference implementations. For example, a fuzz test for the LZO compression algorithm asserts that if you compress an input, then decompress it, the result is the same as the original. If the property does not hold, the program crashes—so proving the test never crashes is equivalent to proving the property itself.

However, you're correct that this is not formal verification in the sense of a correctness proof against a full specification validated to capture what the program is intended to do. Pretty impressive though.

comment 1mo ago · link · parent

Lean is the dependently typed language with a SotA metaprogramming system. Lean itself is a language written using this system.

comment 2mo ago · link · parent

Exactly. Reliable abstractions are more important than ever. They're the dues the rest of us must pay to support vibe coding.

comment 2mo ago · link · parent

What I've said is rather clearly spelled out in the article. Consider reading the it next time?

> It did, however, unambiguously solve the problem according to the Clay Institute’s original formulation.

comment 2mo ago · link · parent

This is mathematicians using the solution, explicitly acknowledged to solve the original formulation of the problem, to pose interesting new questions. That is what mathematics is.

Only someone who has never interacted with mathematics outside a rote-problem-solving capacity would describe it as you have.

comment 2mo ago · link · parent

Is EC2 real-world enough? From June:

https://aws.amazon.com/blogs/compute/aws-nitro-isolation-eng...

And for the PQ parts of Apple's crypto libraries, from May:

https://security.apple.com/blog/formal-verification-corecryp...

Similar from Microsoft, from July:

https://www.microsoft.com/en-us/research/blog/verifying-rust...

comment 2mo ago · link · parent

> How to prove the correctness of the mathematical specification?

You can show that your specifications satisfy well-accepted criteria like confidentiality and integrity. This is usually done as the final verification step. For example, AWS just did it for the Nitro hypervisor used by EC2: https://aws.amazon.com/blogs/compute/aws-nitro-isolation-eng....

comment 2mo ago · link · parent

Not as many as you'd expect. The perceived difficulty of the problem leads people to more reliable pastures.

comment 2mo ago · link · parent

Yeah, the interesting thing to me with formal methods is where you write some (partial) specs to tell the LLM what you want. It'll do the usual stuff, plus extra proof work to make sure your intent was actually realized.

Throwing tools haphazardly at the LLM and hoping they increase the correctness of its output is expectedly pretty ineffective. Good to see this borne out in the article.

comment 3mo ago · link · parent

This needs to be qualified with "to the degree that you have a specification of what that software should do." The better the spec, the more leeway you can give the optimizer. A very thorough spec lets you give the LLM total free rein to run optimization passes over your codebase.

comment 3mo ago · link · parent

To a first approximation, formal verification can guarantee some property holds for every possible run of the program, rather than just the tested ones. It's a lot more powerful than it sounds, because this unlocks the ability to talk about qualities of programs that cannot be tested (effectively or at all). Hyperproperties like confidentiality, integrity, and availability tend to be quite difficult to test, for instance.

comment 3mo ago · link · parent

Part of it may be that you need experience writing formal specifications just as you need experience writing programs; everyone has a lot of the second, but little of the first. They're related skills, but not the same. The first is a much more abstract (but also much more concise and powerful) method of reasoning. This sort of skill hasn't been taught well in CS education yet, owing to the fact that the underlying languages and tools were too niche.

comment 3mo ago · link · parent

Agree in part, but remember that formal verification need not be done in full. By analogy, we don't avoid testing simply because everything under the sun can't be tested. Even simple things like verifying that certain API endpoints are idempotent, or as a few steps up, that the datastores used by Facebook have distributed consistency and fault-tolerance properties, are of enormous utility.

comment 3mo ago · link · parent

The title may be slightly misleading if you haven't bothered to read the article. It's responding to a famous paper from 1979 critiquing formal verification. The article ends up disagreeing with most of its strongest claims in hindsight, though a couple appear to remain worthwhile.

comment 3mo ago · link · parent

As someone experimenting with this, it's definitely very difficult to articulate your ideas using advanced type systems. At the same time, the process of doing it often forces me to seriously think through what I want the code to do, which I've noticed qualitatively improves the end result and my understanding of it.

My advice is to be okay with starting small: don't go for full end-to-end correctness or anything like it. Just think of simple properties you want like 'the list returned by this endpoint should always be sorted in ascending order' or 'this operation should be idempotent' and go from there. Use your favorite LLM to help come up with example specifications from natural language, as a starting point, and try hard to fully understand those.

This kind of work does operate at the frontier of what LLMs can do, so expect to run into roadblocks (wasting tokens proving accidentally hard properties, etc).

comment 3mo ago · link · parent

A maximally efficient compressor for the existing data distribution is not in general (and often will not be) maximally efficient for future data. The former may only be enabled by convenient local optima of the input distribution that a compressor accounting for the latter could not take advantage of.

For instance, consider the distribution of strings drawn from the language '0+'. Now consider the same for the language '[01]+'. A compressor looking at only the strings of the first language within those of the second can do a much better job if it does not have to account for future data.

This also relates distantly to the idea of overfitting in machine learning.

comment 3mo ago · link · parent

This is a rather poorly-written post that more or less boils down to "GHC isn't fast enough to let us make deep-reaching changes to our codebase all the time" (fair, but this shouldn't be necessary if your abstractions are solid? seems to telegraph very substandard engineering practices, but I guess that's what you get with vibecoding) and vague complaining about how the Haskell community isn't all-in on AI.

I was curious about this so I dug further, and by the author's own admission, they've only made the switch for basic CRUD logic without performance needs, not their core services: https://news.ycombinator.com/item?id=48865986.

It's also pretty unsurprising, given what we know about LLMs' style transfer abilities, that transferring parts of an existing Haskell codebase into Python would avoid a lot of the errors and pitfalls that codebases originating in Python are known for. From my experience writing lots of Python, this does not continue to hold true as you let the agents loose on your Python codebase.

comment 3mo ago · link · parent

> Rust is comparatively worse, because LLMs don't make the same coding mistakes that humans do that justifies the existence of the borrow checker, it only seems to get in their way, and they spend more time fighting Rust's infrastructure than writing code.

I have found exactly the opposite to be true: as always, people think they can write safe concurrent code without the machine checking them and end up getting it completely wrong in lots of subtle cases. Except the problem is now much worse because you're not even writing the code, or in many cases, reading it. I prefer a language with a type system that saves me from the review burden of closely checking (and pretty much always finding issues in) concurrency invariants. And even tells me a bit more beyond that about what the code is intended to do.

comment 3mo ago · link · parent

If so, where are all the new features in the open-source projects I use? Why hasn't GIMP replicated Photoshop? Why hasn't CUDA been fully reverse-engineered as an open source toolchain? These are unreasonable expectations, but only in response to unreasonable claims of productivity. What before took ten years should now only take one, right?

It seems likely that the gains from generating tons of code are being offset by the debt incurred to understanding what you're doing. We see lots of greenfield projects one-shotted with GPT or GLM or whatnot, but very little on the side of projects with long-term maintenance goals. This is telling, to me, that the _effective_ gains are much lower than perceived (it's lots of fun to see the thing crank out code at breakneck pace, probably contributing to this). Still quite nice, and very useful, but not a totally new paradigm.

comment 3mo ago · link · parent

> The practical consequence: checking with an independent kernel still works, since it required two distinct bugs in two implementations, but users who rely on it need current versions of both.

Things like this aren't too surprising, given that even much simpler type checkers like Rust's have soundness issues occasionally. I think it's very important to view verified results not as an absolute and unbreakable guarantee, just an extraordinarily strong one where (1) the surface area for soundness issues has been painstakingly minimized and (2) any realized soundness issues are taken very seriously and fixed in short order.

comment 3mo ago · link · parent

Agree, I've raised this point often. And certainly what remains is still useful, once you accept it! But under no circumstances can we allow scientific achievements to be falsely claimed in service of justifying huge capital investments. Attempting an end-run around the truth, here by redefining words to mean things they don't, always slows down real progress.
12