Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. F-Droid 2.0 (f-droid.org)
    239comments
  2. Show HN: Koi.rest – watch some fish and regain your balance (koi.rest)
    17comments
  3. Show HN: Make cursed fonts like Times New Bastard (mitpit.com)
    57comments
  4. California is chasing wealth that has feet (landeconomics.org)
    213comments
  5. Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design (github.com/devdotfast)
    72comments
  6. Why is the liver so weirdly regenerative? (dynomight.substack.com)
    129comments
  7. Fearless SIMD v1.0 (linebender.org)
    27comments
  8. 2DWillNeverDie (2dwillneverdie.com)
    4comments
  9. GitLab Outage (status.gitlab.com)
    4comments
  10. Rails World 2026 Opening Keynote [video] (youtube.com)
    216comments
  11. My weird new hobby: Wandering around Tokyo on Google Maps (ahmedhossamdev.com)
    76comments
  12. Back and shoulder surgery is often worse than useless (economist.com)
    4comments
  13. Using LLMs to trace alchemical knowledge and decode 17th century letters (resobscura.substack.com)
    9comments
  14. International observers to investigate Swedish election fraud (tv4.se)
    8comments
  15. Toyota is taking the Corolla electric (electrek.co)
    238comments
  16. Stable (YC W20) Is Hiring Product Engineers (usestable.com)
    —discuss
  17. The Board Game of the Alpha Nerds (2014) (grantland.com)
    17comments
  18. Google’s Project Suncatcher to put ML infrastructure in space (blog.google)
    144comments
  19. Book review: Is parallel programming hard, and, if so, what can you do about it? (ahelwer.ca)
    22comments
  20. Sourcehut account takeover via build logs (XSS in ansi2html) (blog.arusekk.pl)
    8comments
  21. Security auditing in the age of (good enough) AI (trailofbits.com)
    2comments
  22. Two-tier encryption in the UK (macanorak.com)
    370comments
  23. Forging 1024-bit RSA signatures in nearly SNFS time [pdf] (iacr.org)
    6comments
  24. The forgotten battle of East Lansing (eastlansinginfo.news)
    12comments
  25. Geothermal heat map of US hot springs (soakingsprings.com)
    30comments
  26. Early rogue AI agent activity and attempts to hack found on urlquery.net (transluce.org)
    216comments
  27. WaveDigger: Dig into wireless signals to discover their physical locations (github.com/christianrowlands)
    14comments
  28. Tutoring company tells parents to save their money and 'use AI instead' (afr.com)
    108comments
  29. Opus 5.5 is good at explainer videos (launchvideo.io)
    72comments
  30. Show HN: AgentRun: DSL to turn agents into workflows (github.com/parcha-ai)
    6comments

AI will make formal verification go mainstream

6 pointsby 9mo agomartin.kleppmann.com
4 comments
9mo agoHN ↗

This is going to happen and is real stuff we could be working towards with the tools that we already have. No need for AGI vaporware, no waiting around for the perfect agentic playground. Not even necessarily a big requirement for excellent reasoning. Just using LLMs for what they are actually good at, i.e. fuzzy translators, stylistic filters, and compilers.

Gradual-typing was practice and hints. Like gradual typing, gradual spec'ing could be an iterative and kind of parallel annotated representation, ignored by the main runtime unless called for, and ignored by developers that aren't interested in it. But when there's enough of it to hit some kind of critical mass, then it's suddenly very powerful and lots of very interesting stuff is possible

9mo agoHN ↗

I certainly hope so.

I wonder, what is the actual blocker right now? I'd assume that LLMs are still not very good with specifications and verifcation languages? Anyone tried Datalog, TLA+, etc. with LLMs? I suppose that Gemini was specifically trained on Lean. Or at least some IMO-finetuned fork of it. Anyhow, there's probably a large Lean dataset collected somewhere in Deepmind servers, but that's not certification applicable necessarily, I think?

AI also creates a need to formally verify more software: rather than having humans review AI-generated code, I’d much rather have the AI prove to me that the code it has generated is correct.

At RL stage LLMs could game the training*, proving easier invariants then actually expected (the proof is correct and possibly short - means positive reward). It would take additional care it to set it up right.

* I mean, if you set it to generate a code AND a proof to it.

9mo agoHN ↗

I would like this to be true, but am a bit skeptical.

I am what the article calls an "industrial software engineer" and I work on "low- to medium-assurance" projects, but have used various formal methods (alloy and TLA+) in my work to prevent and discover bugs.

I've experimented with using LLMs to generate both Alloy and TLA+ a couple times over the past years, and the problems I see are:

- They have gotten better over the last few years, but still can only produce useful results in the hands of someone who is moderately competent. Becoming moderately competent requires many hours of investment in these tools, and you will lose much of this competence if you don't keep it up. For example, I can still read TLA+ and Pluscal but can't write them without lots of referring to the docs because I only write them like once or twice a year.

- They suffer even more from GIGO than other aspects of software development. If you can't really rigorously define your problem you will get a bad model/output that only gives you false confidence. A large part of the value of doing formal methods is building the muscle for thinking rigorously. Hillel Wayne says this in several places, that doing enough TLA+ (e.g.) work gives you a much better innate sense for where there will be race conditions.

- There will still be a cultural and technical problems with integrating formal methods, and their artifacts, into the rest of your codebase and team. For example, how do you prevent drift? Will you have a CI automation that uses an LLM to detect when the spec has diverged from the code?

I'm not saying it is impossible that this will happen, and I would love to be wrong, but the general tendency I see with LLM use is to make software developers less intimately familiar with their tools, and less invested in deeply understanding their code. That bodes ill for formal methods even more than regular programming.

9mo agoHN ↗

What would you suggest as a reference problem (a benchmark of sorts) to try to play with formal methods for someone with just a bit of formal verification background but not in the field of software verification? Can you suggest some helpful materials?

I've come across TLA+ multiple times, but it seems it was more targeted towards distributed systems (Lamport being the creator, that makes sense). Is it correct, that it would be useless in other domains?