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.

Show HN: Assist (Voice Screenshot)

https://assistapp.dev
1•abhishekucs•2m ago•0 comments

TR-106

https://en.wikipedia.org/wiki/TR-106
1•num42•3m ago•0 comments

LA District Bans Most A.I. For Students

https://www.nytimes.com/2026/09/03/us/lausd-schools-ban-ai-artificial-intelligence.html
1•narenst•3m ago•0 comments

Greenland forces Trump's US oil firm to delay drilling

https://www.theguardian.com/world/2026/aug/12/trump-greenland-oil
3•Alien1Being•6m ago•0 comments

Consciousness, creativity andunderstanding not obstacles to machine intelligence

https://link.springer.com/article/10.1007/s11229-026-05655-1
1•klaustro•7m ago•0 comments

'Huge Breakthrough' in the Math of Imbalance

https://www.quantamagazine.org/huge-breakthrough-in-the-math-of-imbalance-20260821/
1•diazc•10m ago•0 comments

Find fastest DoH provider for you

https://dnsspeedtest.online/
1•snihalani•11m ago•0 comments

Why Laser Beams Are the Hottest New Tech in Defense

https://www.bloomberg.com/news/articles/2026-09-04/why-laser-beams-are-the-hottest-new-tech-in-de...
1•Alien1Being•11m ago•0 comments

After 30 Years of Silence, the Original NSA Whistleblower Looks Back

https://therealnews.com/after-30-years-of-silence-the-original-nsa-whistleblower-looks-back
1•Eridanus2•13m ago•0 comments

LMMS 1.3.0-alpha.2 Release (after 5 yrs of last release)

https://github.com/LMMS/lmms/releases/tag/v1.3.0-alpha.2
1•xiaoyu2006•18m ago•0 comments

I Run Grok Bot with BotOps

https://granda.org/en/2026/09/06/how-i-run-grok-bot/
1•granda•19m ago•0 comments

Joy and Curiosity #98

https://twitter.com/thorstenball/status/2096466015055953967
5•tosh•19m ago•0 comments

Ada: An open-source data analyst that tells you when its own forecast is useless

https://github.com/saineshnakra/automated-data-analyst
4•saineshnakra•20m ago•0 comments

An Empirical Study on Soundness Bugs in the Rust Compiler

https://arxiv.org/abs/2608.28713
1•rvz•24m ago•0 comments

Extract and Review Web Page Links Using a Bookmarklet

https://www.adamsdesk.com/posts/extract-review-web-page-links/
1•rdmuser•25m ago•0 comments

What "Decolonizing" Israel Looks Like. | Professor Noura Erakat - Full Interview

https://www.youtube.com/watch?v=TuBMKhObhgs
1•xbmcuser•27m ago•0 comments

Revise is the Figma of machine learning

https://www.revise.live/
3•Aadi_Ajmire•28m ago•0 comments

A volunteer stopped a backdoor from exposing Linux systems worldwide (2024)

https://www.theverge.com/2024/4/2/24119342/xz-utils-linux-backdoor-attempt
5•joebig•30m ago•0 comments

RecallDock

2•ashishmallur•32m ago•0 comments

Europe would not be able to sustain war of attrition with Russia

https://www.theguardian.com/world/2026/sep/05/europe-unable-sustain-war-of-attrition-russia-defen...
3•Teever•33m ago•0 comments

A very old Blog?

https://www.cannonade.net/blog/a-very-old-blog
1•redbluething•36m ago•0 comments

Fiber-immersion microfabrication with sub-10µm resolution for under $300 [video]

https://www.youtube.com/watch?v=UvV2CH5il3Q
4•mimorigasaka•37m ago•0 comments

Hwaro – A Lightweight and Fast Static Site Generator Written in Crystal

https://github.com/hahwul/hwaro
5•TheWiggles•38m ago•0 comments

A Wiki for AIs

https://synthetic.wiki/
1•guscatalano•41m ago•0 comments

Any Nix package, live in your browser

https://fzakaria.com/2026/09/04/any-nix-package-live-in-your-browser
3•haswell•42m ago•0 comments

Using Blender with coding agents on macOS

https://til.simonwillison.net/llms/blender-coding-agents-macos
8•theanonymousone•47m ago•0 comments

Ask HN: Would you read a statistics textbook?

3•usernametaken29•51m ago•1 comments

Show HN: Move Claude Code sessions between accounts in Claude Desktop

https://github.com/vitaliyhayda/claude-transplant
1•vhayda•56m ago•0 comments

Lists of Problems

https://en.wikipedia.org/wiki/Lists_of_problems
1•num42•1h ago•0 comments

Clean up your Android TV

https://tv.cobanov.dev/
7•chris_overseas•1h ago•0 comments