frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

GenAI-Accelerated TLA+ Challenge

https://foundation.tlapl.us/challenge/index.html
35•lemmster•1y ago

Comments

Taikonerd•1y ago
Using LLMs for formal specs / formal modeling makes a lot of sense to me. If an LLM can do the work of going from informal English-language specs to TLA+ / Dafny / etc, then it can hook into a very mature ecosystem of automated proof tools.

I'm picturing it something like this:

1. Human developer says, "if a user isn't authenticated, they shouldn't be able to place an order."

2. LLM takes this, and its knowledge of the codebase, and turns it into a formal spec -- like, "there is no code path where User.is_authenticated is false and Orders.place() is called."

3. Existing code analysis tools can confirm or find a counterexample.

omneity•1y ago
A fascinating thought. But then who verifies that the TLA+ specification does indeed match the human specification?

I’m guessing using an LLM as a translator narrows the gap, and better LLMs will make it narrower eventually, but is there a way to quantify this? For example how would it compare to a human translating the spec into TLA+?

justanotheratom•1y ago
maybe run it through few other LLMs depending on how much confidence you need - o3 pro, gemini 2.5 pro, claude 3.7, grok 3, etc..
svieira•1y ago
Then you need to be able to formally prove the equivalence of various TLA+ programs (maybe that's a solved problem?)
omneity•1y ago
No idea about SOTA but naively it doesn't seem like a very difficult problem:

- Ensure all TLA+ specs produced have the same inputs/outputs (domains, mostly a prompting problem and can solved with retries)

- That all TLA+ produce the same outputs for the same inputs (making them functionally equivalent in practice, might be computationally intensive)

Of course that assumes your input domains are countable but it's probably okay to sample from large ranges for a certain "level" of equivalence.

EDIT: Not sure how that will work with non-determinism though.

justanotheratom•1y ago
I didn't mean generate separate TLA programs. Rather, other LLMs review and comment on whether this TLA program satisfies the user's specification.
Taikonerd•1y ago
A fair question! I'd say it's not that different from using an LLM to write regular code: who verifies that the code the LLM wrote is indeed what you meant?
fmap•1y ago
The usual way to check whether a definition is correct is to prove properties about it that you think should hold. TLA+ has good support for this, both with model checking as well as simple proofs.
frogmeister57•1y ago
It makes a lot of sense only for graphics card sales people. For everyone else with a working neuron the sole idea is utter nonsense.
max_•1y ago
Leslie Lamport said that he invented TLA+ so people could "think above the code".

It was meant as a tool for people to improve their thinking and description of systems.

LLM generation of TLA+ code is just intellectual masterbation.

It may get the work done for your boss. But you intellect will still remain bald — in which case you are better off not writing TLA+ at all.

warkdarrior•1y ago
> [TLA+] was meant as a tool for people to improve their thinking and description of systems.

Why the speciesism? Why couldn't LLMs use TLA+ by translating a natural-language request into a TLA+ model and then checking it in TLA+?

jjmarr•1y ago
Not the OP, but I would rather give a formal specification of my system to an AI and have it generate the code.

I believe the point is it's easier for a human to verify a system's correctness as expressed in TLA+ and verify code correctly matches the system than it is to correctly verify the entire code as a system at once.

Then, if my model of the system is flawed, TLA+ will tell me.

I'm an AI bull so if I give the LLM a natural language description, I'd like the LLM to explain the model instead of just writing the TLA+ code.

max_•1y ago
TLA+ was invented in the first place because we Leslie Lamport thought natural language was a dubious tool for "specifying systems".

Yes an LLM may generate the TLA+ code even correctly, but model checking is not the end goal of TLA+

TLA+ plus is written to fully under how a system works at an abstract level.

Anyways, I guess you could just read the LLM generated TLA+ code. That would help you understand the abstraction of the system — but is the LLMs abstraction equal to your abstraction.

But vibe coded TLA+ sounds extremely dangerous especially in mission critical stuff where its required like Smart Contracts, Pacemakers, Aircraft software etc

frogmeister57•1y ago
Using generative chatbots to write a formal spec is the most stupid idea ever. Specs are all about reasoning. You need to do the thinking to model the system in a very simplified manner. Formal methods and the generative BS are at the antipodes of reliability. This is an insult to reason. Please keep this nonsense away from the serious parts of CS.
siscia•1y ago
Anyone who has tried to write formal verification will tell you that there is a WIDE gap between thinking and writing the specs.

Any tool that makes formal verification more accessible, should be welcome.

I believe the valuable part is how accessible we make thinking together with machines.

Us human are great at create innovative solutions, not so great at check and verify every single thing that can go wrong. Machines help with that.

kelseyfrog•1y ago
Interesting. I've always wanted to formalize the US Constitution into TLA+ in order to find loopholes.

Motorola phones have started hijacking the Amazon app to insert affiliate codes

https://9to5google.com/2026/05/25/motorola-amazon-app-hijacking-behavior/
3•Cider9986•14m ago•0 comments

Show HN: Self-hosted collaborative SQL editor for teams

https://github.com/p-raj/collab-sqlc/
1•joddystreet•16m ago•0 comments

Show HN: Lily Design System: Components for React, Vue, Svelte, HTML, More

https://lilydesignsystem.github.io/
1•jph•21m ago•0 comments

Show HN: AgentToolBench-Code – security benchmark for AI coding agents

https://gist.github.com/allenwu-blip/fa2bd0218b93a1d7aef765817e3c6608
1•allenwu06•25m ago•0 comments

Earthion: A New Mega Drive-Style Shoot-Em-Up

https://earthiongame.com/
1•MrBuddyCasino•28m ago•0 comments

Linux Compromises, Broken Embargoes, and the Shrinking Patch Window

https://www.askbaize.com/blog/linux-compromises-broken-embargoes-and-the-shrinking-patch-window
1•laurex•29m ago•0 comments

The CISO's Guide to IDE Security in 2026

https://yeethsecurity.com/blog/2026-05-21-CISO-Guide-IDE-Security
1•somerandom1337•30m ago•0 comments

Argus – multi‑agent AI coding assistant that never gets stuc

https://github.com/argustek/Argus
1•argustek•35m ago•0 comments

Why the Smart Home Bubble Popped

https://hackaday.com/2026/05/21/why-the-smart-home-bubble-popped/
11•lxm•35m ago•3 comments

The open-source ACP orchestrator

https://github.com/alfonsodg/aintegrix
1•alfonsodg•45m ago•0 comments

GSD [NPM get-shit-done-cc] is now OpenGSD

https://www.opengsd.net/
1•_blk•45m ago•0 comments

Show HN: Rapel – chunked resumable downloads in unstable networks

https://github.com/redraw/rapel
1•autorun•47m ago•0 comments

Webwright: A Terminal Is All You Need for Web Agents

https://www.microsoft.com/en-us/research/articles/webwright-a-terminal-is-all-you-need-for-web-ag...
3•pyinstallwoes•50m ago•0 comments

Self-hosting Wafrn behind another Caddy, with Bluesky support

https://blog.goodanser.com/fediverse/post/03c6a4f4-cdd4-4027-a6a4-5017dd9154bd
1•mooreds•52m ago•0 comments

Mashing up modelling techniques for fun and profit

https://event-driven.io/en/on-mashing-up-modelling-techniques/
1•mooreds•53m ago•0 comments

The Ask

https://randsinrepose.com/archives/the-ask/
2•mooreds•55m ago•0 comments

SK Group chairman says memory chip shortage will last until 2030

https://www.tomshardware.com/pc-components/dram/sk-group-chairman-says-memory-chip-shortage-will-...
3•SiqingYu•59m ago•0 comments

Publishing's Latest Piracy Problem: Audiobooks on YouTube

https://www.nytimes.com/2026/05/21/books/audiobook-piracy-youtube.html
3•lxm•1h ago•0 comments

Waymo suspends all freeway rides over safety issues

https://sfstandard.com/2026/05/21/waymo-suspends-all-freeway-rides-safety-issues/
8•romanhn•1h ago•1 comments

Artificial Intelligence Floods Court Dockets with Home-Brewed Lawsuits

https://www.nytimes.com/2026/05/25/us/politics/artificial-intelliegence-courts.html
3•jrmg•1h ago•1 comments

Human-Made Materials Now Weigh More Than All Life on Earth Combined (2020)

https://www.smithsonianmag.com/smart-news/human-made-materials-now-weigh-more-all-life-earth-comb...
3•thunderbong•1h ago•0 comments

GitHub commit Verification logic flaw and bypass

1•handwritter•1h ago•0 comments

Brockovich AI Data Center Reporting

https://www.brockovichdatacenter.com/
2•cdrnsf•1h ago•0 comments

Pinned – daily geography pin-drop game (pinned.engineering)

https://www.pinned.engineering/
1•Hddharry•1h ago•0 comments

Models Have Blind Spots: Debugging Unfamiliar Code with a Multi-LLM Loop

https://sosuke.com/models-have-blind-spots-debugging-unfamiliar-code-with-a-multi-llm-loop/
1•sosuke•1h ago•0 comments

Show HN: Pgcraft – a lazygit-style TUI for Postgres

https://github.com/lucasfrederico/pgcraft
3•lucasfrederico•1h ago•0 comments

LibreOffice Tips and Tricks: Replacing Microsoft Fonts (2020)

https://blog.documentfoundation.org/blog/2020/09/08/libreoffice-tt-replacing-microsoft-fonts/
1•bariumbitmap•1h ago•0 comments

Ente's Legacy Kit Feature

https://ente.com/blog/legacy-kit/
2•gurjeet•1h ago•0 comments

Matchmaker: A Powerful and Modern Searcher

https://github.com/Squirreljetpack/matchmaker
2•squirreljetpack•1h ago•1 comments

MileStone: A Multi-Objective Compiler Phase Ordering Framework

https://arxiv.org/abs/2605.23435
1•matt_d•1h ago•0 comments