frontpage.
newsnewestaskshowjobs

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.

J YouTuber and K Programmer Michal Wallace on Narrative Programming

https://alexalejandre.com/interviews/michal-wallace/
1•veqq•2m ago•0 comments

The BBC Strikes Back

https://joycevance.substack.com/p/the-bbc-strikes-back
1•Tomte•5m ago•0 comments

eMudhra faces a bigger test of public trust after security lapse

https://economictimes.indiatimes.com/ai/ai-insights/emudhra-faces-a-bigger-test-of-public-trust-a...
1•thunderbong•12m ago•0 comments

80% to 90% of women reproduce, but only about 40% of men do

https://unchartedterritories.tomaspueyo.com/p/do-women-reproduce-more-than-men
1•tudorconstantin•15m ago•0 comments

Modd: Flexible developer tool that runs processes,responds to filesystem changes

https://github.com/cortesi/modd
1•thunderbong•22m ago•0 comments

Show HN: Free Local Letterboxd Analytics

https://letterboxd.ddns.net/
1•shafiemoji•28m ago•0 comments

DHH's keynote at Rails World: "The most confusing funeral I've ever experienced"

https://www.globalnerdy.com/2026/09/27/dhhs-keynote-at-rails-world-2026-the-most-confusing-funera...
1•gurjeet•39m ago•1 comments

Intel 1103: The Tiny Chip That Killed Magnetic Core Memory and Saved Intel

https://www.youtube.com/watch?v=v3HczTwJHcM
1•cable2600•41m ago•0 comments

Musk claims Ukraine violated Starlink service agreement

https://www.cnbc.com/2026/10/24/ukraine-starlink-starshield-service-restored.html
2•kristianp•42m ago•0 comments

Black October

https://en.wikipedia.org/wiki/Black_October_(information_security)
1•BentonE•46m ago•0 comments

Show HN: Independent Vet – Find locally owned vets (and corporate ones) near you

https://independentvet.com/
2•packeted•50m ago•0 comments

Weight-loss drug reduces sleep apnea in two late-stage trials

https://medicalxpress.com/news/2026-10-triple-action-weekly-weight-loss.html
2•geox•51m ago•0 comments

The Trouble with the View from Above (2010)

https://www.cato-unbound.org/2010/09/08/james-c-scott/trouble-view-above/
1•perused•52m ago•0 comments

Show HN: Git-ing Over it, learn Git like you'll use it IRL

https://git-ing-over-it.vercel.app/
1•k2maan•53m ago•0 comments

Just Dashboard open-source dashboard for managing your VPS

https://github.com/JustDashboard/Just-Dashboard
1•Wayy10•53m ago•0 comments

Manage Your Dotfiles with Nothing but Git

https://terminal.ninja/guides/manage-dotfiles/
1•ankitg12•1h ago•0 comments

Retroviral insertions contributed to divergence of human and chimpanzee brains

https://www.science.org/doi/10.1126/sciadv.aeg5791
2•gumby•1h ago•0 comments

Show HN: Dadgpt Open Source Halloween Costume

https://dadgptcostume.vercel.app/
2•johnpolacek•1h ago•0 comments

iPhone apps no better for privacy than Android, Oxford study finds (2021)

https://www.tomsguide.com/news/ios-android-app-privacy-parity
2•cisc•1h ago•0 comments

Backd / Discovery

https://backd.io
1•ahmedels•1h ago•0 comments

Five Qwen3.8-27B models match Fable 5 Using GVS5H Harness

https://github.com/slee-persis/GVS5H
70•rzk•1h ago•17 comments

My love/hate relationship with YAML has offspring

https://github.com/FyiurAmron/NanoYaml
1•sqvaard•1h ago•1 comments

Kevin Kelly – We don't want the best AI, we want the only AI

https://kevinkelly.substack.com/p/most-improbable-agent-of-you
1•Balgair•1h ago•1 comments

Show HN: A Truly Modular Keyboard

https://github.com/notaroomba/keybytes
1•NotARoomba•1h ago•1 comments

Kids Are Doomers Now

https://twitter.com/noriagent/status/2114201432781885792
2•theahura•1h ago•0 comments

Inline Viewer: Quest Diagnostics Incorporated 8-K 2026-10-21

https://www.sec.gov/ix?doc=/Archives/edgar/data/0001022079/000094787126000941/ss6979200_8k.htm
1•OptionOfT•1h ago•0 comments

Ask HN: Arc browser being deprecated. Which browser do you use?

1•galsapir•1h ago•1 comments

What Is an Ass Subtitle File?

https://subtitleops.com/blog/what-is-ass-subtitle-file
1•debo_•1h ago•0 comments

Daily Path – A minimal 1-minute visual memory challenge.Just a daily brain test

https://super-swan-a311d2.netlify.app/
1•iafacilproducti•1h ago•0 comments

Chasing the cognitive roots of our rectangular mindset (2004)

https://www.cdac.in/index.aspx?id=pdf_dkatre5
1•vismit2000•1h ago•0 comments