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•4mo ago

Comments

Taikonerd•4mo 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•4mo 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•4mo 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•4mo ago
Then you need to be able to formally prove the equivalence of various TLA+ programs (maybe that's a solved problem?)
omneity•4mo 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•4mo 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•4mo 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•4mo 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•4mo 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_•4mo 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•4mo 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•4mo 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_•4mo 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•4mo 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•4mo 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•4mo ago
Interesting. I've always wanted to formalize the US Constitution into TLA+ in order to find loopholes.

Opus and o3 saved me from permanent blindness

https://mmaaz.ca/writings/blindness.html
1•pr337h4m•18s ago•0 comments

Magical Systems Thinking

https://www.worksinprogress.news/p/magical-systems-thinking
1•komape•1m ago•0 comments

Tips and Shortcuts for Better Browsing

https://www.google.com/chrome/tips/
1•kamaraju•1m ago•0 comments

Boring Is Good

https://jenson.org/boring/
1•zdw•4m ago•0 comments

In Memory of Mat Travizano

https://maraoz.com/mat/
2•wslh•7m ago•0 comments

Simplaix – Agent-first project management and workflow automation

https://simplaix.com/
1•hanyuan_peng•8m ago•1 comments

I made an AI expense tracker because I don't like typing

https://apps.apple.com/us/app/xpendai-track-your-expenses/id6752033430
1•bruuuuuuuuh•8m ago•0 comments

turdus merula — iOS downgrade tool for A9-A10X devices

https://sep.lol/
2•Lammy•9m ago•0 comments

White House Plans Broad Crackdown on Liberal Groups

https://www.nytimes.com/2025/09/15/us/politics/jd-vance-charlie-kirk-show.html
2•hughw•9m ago•0 comments

Repairing sequential consistency in C/C++11 [pdf]

https://plv.mpi-sws.org/scfix/full.pdf
3•fanf2•13m ago•0 comments

Free Startup Ideas

https://www.minimumviablenl.com/
1•minimumviable•14m ago•0 comments

Robinhood plans to launch a startups fund open to all retail investors

https://techcrunch.com/2025/09/15/robinhood-plans-to-launch-a-startups-fund-open-to-all-retail-in...
2•jaredwiener•18m ago•0 comments

Europe Is a Terrified Child

https://davekeating.substack.com/p/europe-is-an-abused-child
6•ironyman•19m ago•0 comments

The Adventures of Reemo Green [video]

https://www.youtube.com/watch?v=5bYA2Rv2CQ8
1•tantalor•21m ago•0 comments

Field-Programmable Logic 2025 Best Paper Awards and FPL Community Award

https://2025.fpl.org/program/best-paper-awards/
2•gnabgib•22m ago•0 comments

Godot 4.5, making dreams accessible – Godot Engine

https://godotengine.org/releases/4.5/
4•makepanic•23m ago•1 comments

ChatPerson, our new RI (real intelligence) service

https://www.mcsweeneys.net/articles/introducing-chatperson
2•Geekette•24m ago•1 comments

What problems are worth solving?

5•KopyWasTaken•25m ago•0 comments

Rustlantis: Randomized Differential Testing of the Rust Compiler

https://plf.inf.ethz.ch/research/oopsla24-rustlantis.html
4•mooreds•27m ago•0 comments

Deaths are projected to exceed births in 2031

https://www.cbo.gov/publication/61390
7•johntfella•27m ago•0 comments

CLion Introduces Constexpr Debugger

https://blog.jetbrains.com/clion/2025/09/introducing-constexpr-debugger/
2•vitaut•27m ago•0 comments

Show HN: Blocks – Dream work apps and AI agents in minutes

https://blocks.diy
3•shelly_•29m ago•0 comments

Stategraph – Terraform without the state file bottleneck

https://stategraph.dev
1•lawnchair•29m ago•0 comments

Widespread Data Theft Targets Salesforce Instances via Salesloft Drift

https://cloud.google.com/blog/topics/threat-intelligence/data-theft-salesforce-instances-via-sale...
1•mooreds•29m ago•0 comments

Ghost Kitchens Are Dying. Here's the $15B Lesson Every Restaurateur Must Learn

https://davidrmann3.substack.com/p/ghost-kitchens-are-dying-heres-the
4•mooreds•30m ago•2 comments

The importance of sandboxing and access control in AI agents

https://gr1m0ire.xyz/articles/sandboxing_ai_agents
1•gemini-15•30m ago•0 comments

Elon Musk Promises Full Self-Driving "Next Year" [2014-2024]

https://www.youtube.com/watch?v=B4rdISpXigM
11•JumpinJack_Cash•34m ago•0 comments

One-Third of the Internet Is Bots Now

https://www.vice.com/en/article/yep-one-third-of-the-internet-is-just-bots-now/
7•bookofjoe•36m ago•1 comments

Nano BiBi – a free, AI creation platform powered by Google's Nano Banana

https://nanobibi.com/en
2•jokera•37m ago•1 comments

Show HN: Httpjail – HTTP(s) request filter for processes

https://github.com/coder/httpjail
3•ammario•37m ago•0 comments