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.

Performance of Rust Language [pdf]

https://github.com/yugr/rust-slides/blob/main/EN.pdf
1•ksec•50s ago•0 comments

Securing AI agents by separating them from credentials

https://infisical.com/blog/credential-brokering-for-ai-agents
1•vmatsiiako•2m ago•0 comments

Ferrari shares fall after launch of first EV as Jony Ive design proves divisive

https://www.theguardian.com/business/2026/may/26/ferrari-luce-ev-jony-ive-design-sports-car
1•coffeeyesplease•2m ago•0 comments

Understand Anything – Graphs that teach the codebase

https://understand-anything.com/
1•ulrischa•3m ago•0 comments

The Bug that Chromium wont Fix

https://issues.chromium.org/issues/40093420
1•mgoetzke•3m ago•1 comments

Show HN: Audiogen – a new take on generative music AI

https://audiogen.co/demos
2•elyxlz•4m ago•1 comments

Claude on AWS vs. AWS Bedrock

https://www.cloudyali.io/blogs/claude-platform-aws-vs-bedrock-finops
1•heldsteel7•5m ago•0 comments

An Open Call to Flipper Devices: Problems with Flipper and How They Can Improve

https://spicemesh.de/posts/open-call-to-flipper/
1•muxdervish•5m ago•1 comments

Show HN: Radiccio Server is a new personal music server for Mac: one-click setup

https://radiccio.music/server
1•dmdeller•6m ago•0 comments

Show HN: A website that tracks every stock trade Congress makes

https://congress.kadoa.com/
2•hubraumhugo•6m ago•0 comments

Local AI transcription in the browser (no uploads)

https://www.scribeitlocal.com/
1•JankoTech•7m ago•0 comments

Incanter: A Clojure-based R-like platform for statistical computing and graphics

http://incanter.org/
1•Thom2503•8m ago•0 comments

Claude, Author of the Humanitas

https://linch.substack.com/p/claude-author-of-the-humanitas
1•whelchel•9m ago•0 comments

The Three-Cylinders Problem – When AI Models Choose Beauty over Truth

https://rabdology.ai/three-cylinders
1•speckx•9m ago•0 comments

Stop using POM for complex test suites. Do this instead

https://bdr-methodology.dev/blog/3-layers-architecture-pro/
1•dmitryaqa•13m ago•0 comments

Show HN: MurrDB: A RocksDB-based NVMe/S3 cache for AI inference workloads

1•shutty•13m ago•0 comments

Google, I Dump Your Ass

https://jaredwhite.com/20260522/google-i-dump-your-ass
3•abnercoimbre•14m ago•0 comments

Success Is 'Monotasking'

https://www.theatlantic.com/health/2026/05/monotasking-inside-the-box-excerpt-david-epstein/687015/
2•quaintdev•16m ago•0 comments

The rise of the -10x engineer: The negative side of AI productivity

https://www.qawolf.com/blog/the-rise-of-the--10x-engineer-the-negative-side-of-ai-productivity
1•amandare•18m ago•0 comments

Simplifying Bluetooth qualification for Linux/BlueZ: New upstream documentation

https://www.collabora.com/news-and-blog/blog/2026/05/26/simplifying-bluetooth-qualification-for-l...
1•losgehts•18m ago•0 comments

What Happened to the Locusts?

https://explosion-scratch.github.io/locusts/
2•explosion-s•20m ago•0 comments

Show HN: What story are you telling? (narrative archetypes tool)

https://arc.quanten.co/tools/logline
1•phaedrus044•20m ago•0 comments

Safe Ways to Use AI Agents

https://blog.rnstlr.ch/safe-ways-to-use-ai-agents.html
1•rnestler•21m ago•0 comments

Google's Guidance on AI Search Is Naive and Self-Serving

https://ipullrank.com/google-ai-search-guidance
2•adamcarson•21m ago•0 comments

Before Pixar, There Was The Computer Graphics Lab [1:22:51] [video]

https://www.youtube.com/watch?v=GiW3Jr0wFak
1•wpm•21m ago•0 comments

Managers Are Struggling to Keep Up with the AI Productivity Boom

https://hbr.org/2026/05/managers-are-struggling-to-keep-up-with-the-ai-productivity-boom
1•vinhnx•22m ago•0 comments

Programming Is Real Engineering, and AI Proves It

https://www.jerf.org/iri/post/2026/programming_is_engineering/
2•mooreds•22m ago•2 comments

The AI Bifurcation of Tech: Why the fundamentals matter more

https://neevash.com/blog/tech-bifurcation-and-the-0.5-layer
1•vinhnx•22m ago•0 comments

Bringing LLMs to the Edge

https://www.raspberrypi.com/news/bringing-llms-to-the-edge/
1•Brajeshwar•23m ago•0 comments

What AI race? China and U.S. AI are tightly connected

https://restofworld.org/2026/china-us-what-ai-race/
1•speckx•23m ago•0 comments