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

Comments

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

Ask HN: How do you detect compliance risk in Google search results?

1•paolocermelli•3m ago•0 comments

Web Monetiation Wrapped

https://interledger.org/developers/blog/web-monetization-wrapped-2025/
1•ioana_cis•5m ago•0 comments

Questions about Aluminum Alloy

1•Chinalcometal•9m ago•0 comments

Computer Use Models

https://geohot.github.io//blog/jekyll/update/2025/12/18/computer-use-models.html
1•samuel246•10m ago•0 comments

Show HN: Peitho – Automated social media writing for mom-and-pop shops

https://www.peitho.xyz/
1•Nikp263•13m ago•1 comments

Defending Hadrian's Wall took a strong stomach, study finds

https://www.thetimes.com/uk/history/article/defending-hadrians-wall-took-strong-stomach-study-fin...
1•petethomas•15m ago•0 comments

Stately home's £25M restoration derailed by Alberto the albino badger

https://www.thetimes.com/uk/environment/article/parnham-house-albino-badger-wsd72xhmg
1•petethomas•18m ago•0 comments

Why do indie developers always find it so hard to promote their products?

https://amplift.ai/
1•icetearun•18m ago•1 comments

PFAS-contaminated drinking water harms infants

https://www.pnas.org/doi/abs/10.1073/pnas.2509801122
2•methyl•19m ago•0 comments

Top Portuguese fusion physicist shot dead at home in Boston

https://www.portugalresident.com/top-portuguese-fusion-physicist-shot-dead-at-home-in-boston/
2•saubeidl•20m ago•0 comments

The Kremlin's brazen tactics: Russia's shadow fleet is doubling as a spy asset

https://www.cnn.com/2025/12/18/europe/russia-oil-tankers-spying-europe-intelligence-sources-intl-...
3•breve•25m ago•0 comments

Show HN: Helix – AI-powered API mocking with strict schema enforcement

https://github.com/ashfromsky/helix
4•ashfromsky•25m ago•0 comments

The Four Layers of AI-First Transformation

https://www.appunite.com/blog/four-layers-of-ai-first-transformation
1•Przemo_Appunite•33m ago•0 comments

Never Miss a Game Launch

https://www.notifygamer.com/
1•hhdyhaha•35m ago•0 comments

Agnosticism About Artificial Consciousness

https://arxiv.org/abs/2412.13145
2•belter•38m ago•0 comments

Chinese Name Generato

https://chinesenamehub.com/
1•zidana•39m ago•1 comments

A Reddit Post Led to a Breakthrough in the Brown Shooting Investigation

https://www.nytimes.com/2025/12/19/us/brown-mit-shooting-investigation-reddit.html
3•JumpCrisscross•40m ago•0 comments

Gemini 3 Flash now Built-in to AlloyDB

https://medium.com/google-cloud/authors-darshana-sivakumar-pushkar-khadilkar-1a53380fd1bb
2•mariuz•46m ago•0 comments

Show HN: QuantumVICK – 106-agent AI swarm for VSCode (free trial)

https://quantumvick.com
1•epochcore•51m ago•0 comments

Show HN: AI Vocabulary Quiz Maker

https://minform.io/tools/vocabulary-quiz-maker
1•eashish93•52m ago•0 comments

ChatGPT Apps

https://techcrunch.com/2025/12/18/chatgpt-launches-an-app-store-lets-developers-know-its-open-for...
1•grandimam•54m ago•0 comments

The Year in Computer Science – 2025 in review

https://www.quantamagazine.org/the-year-in-computer-science-20251216/
2•vismit2000•55m ago•0 comments

Trump suspends US green card lottery in wake of Brown and MIT shootings

https://www.theguardian.com/us-news/2025/dec/19/trump-suspends-us-green-card-lottery-dv1-visa-pro...
7•Bootvis•55m ago•0 comments

I wanted SSH access to my server from my iPhone, so I built this

https://rootedssh.com/
2•Sayuj01•56m ago•0 comments

The Year in Mathematics – 2025 in review

https://www.quantamagazine.org/the-year-in-mathematics-20251218/
1•vismit2000•56m ago•0 comments

South Korea to mandate facial recognition for opening new mobile numbers

https://english.kyodonews.net/articles/-/67151
3•anigbrowl•56m ago•0 comments

The Biggest Breakthroughs in Mathematics: 2025 [video]

https://www.youtube.com/watch?v=hRpcWpAeWng
1•vismit2000•56m ago•0 comments

Scoop: TikTok signs deal for U.S. unit after yearslong saga

https://www.axios.com/2025/12/18/tiktok-sale
1•_____k•56m ago•1 comments

Predictions for 2026

https://www.platformer.news/2026-tech-predictions-ai-bubble-openai-meta-google/
2•xngbuilds•57m ago•0 comments

The Year in Physics

https://www.quantamagazine.org/the-year-in-physics-20251217/
1•pykello•58m ago•0 comments