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: Personal finance tracker – CSV import, free, no bank login

https://trakyodollas.com/
1•gflo247•3m ago•0 comments

Show HN: Self-hosted Google Business Profile manager with agent approvals

https://github.com/synectus/OpenGMB
1•hermes_x10k•3m ago•0 comments

Show HN: llmrun – which open LLMs run on your GPU, and how good they are

https://llmrun.dev
3•alexfank•4m ago•0 comments

The Case for OpenTelemetry Maintainership

https://opentelemetry.io/blog/2026/case-for-opentelemetry-maintainership/
1•adityakonarde•4m ago•0 comments

Samsung Has Found the Next Way to Unfold a Phone

https://gizmodo.com/samsung-galaxy-z-slide-rumor-2000828188
1•cisc•6m ago•0 comments

Bryan Caplan Is Wrong About Pedagogy

https://news.educationprogress.org/p/bryan-caplan-is-wrong-about-pedagogy
1•Tomte•6m ago•0 comments

Goodbye, Coding

https://alexcwatt.com/goodbye-coding/
2•acwatt•6m ago•0 comments

Show HN: GHWM, Manage GitHub Actions workflows like versioned packages

https://github.com/ghwfxlab/ghwm
1•petermefrandsen•8m ago•0 comments

Show HN: Change my page if the agent allows it

https://actera.dev/try
1•zomtorg•9m ago•0 comments

Show HN: OpenGeocoding – source-available geocoder, world rebuilt in 7 minutes

https://opengeocoding.com/
1•mokto•9m ago•0 comments

Show HN: Pinscope – remote access, logs and OTA for ESP32 in 9.4KB of RAM

https://pinscope.dev/
1•pinscope_dev•11m ago•1 comments

Arje: The init that remembers – your whole system as a signed commit

https://gioser.net/en/blog/arje-the-init-that-remembers/
1•sergiovelasquez•12m ago•0 comments

Show HN: Friday, an open-source harness for coding agents that work as a team

https://github.com/splashxmoon/friday
1•arundass•13m ago•1 comments

I made a tiny e-reader

https://milofultz.com/2026-10-12-i-made-a-tiny-e-reader.html
3•surprisetalk•14m ago•0 comments

Show HN: iResolve – Private AI rooms for hard talks and 3+ anonymous mode

https://www.iresolve.io
1•Seal36•16m ago•0 comments

The Shift of Theseus – Toy Bit Provenance Abstract Domain

https://pypy.org/posts/2026/10/toy-bit-provenance.html
1•lumpa•16m ago•0 comments

A Salesforce AI agent that can't publish a hallucination

https://github.com/deep-roiforce/Deal_rescue_Agent
1•deep_roiforce•16m ago•0 comments

CarveAnything: Image-to-volumetric material with destruction mechanics

https://carveanything.com/
2•lukehollis•17m ago•1 comments

PHP2Shell on CISA KEV: patch by Oct 29, check for a break-in first

https://hol.org/blog/cve-2026-109618-php2shell-cisa-kev-forensic-triage
1•michaelkantor•18m ago•0 comments

The end of the end times – AI is returning us to an era of demons and god

https://www.newstatesman.com/technology/2026/09/the-end-of-the-end-times
3•chippy•19m ago•1 comments

Did AI kill the modern tech stack?

https://vithushansylvester.com/writing/what-is-left-when-the-programmer-is-not-human
1•hacker_v_s•20m ago•1 comments

AeroCite – Aviation regulation research with source citations

https://aerocite.app
1•mhumaidh•20m ago•0 comments

Show HN: TeamOnly, a place IT can approve for vibe-coded internal apps

https://teamonly.dev/
1•xoail•21m ago•0 comments

Impatient Programming

https://impatientprogramming.org/
3•obiefernandez•23m ago•1 comments

Nvidia backs Indian startup helping companies run AI models with fewer GPUs

https://techcrunch.com/2026/10/27/nvidia-backs-indian-startup-helping-companies-run-ai-models-wit...
1•sangamdas1981•24m ago•0 comments

How to Fund Rust Contributors

https://blog.rust-lang.org/2026/10/26/how-to-fund-rust-contributors/
1•acossta•26m ago•0 comments

Europe vs. Elon: 5 ways the EU is trying to squeeze out Musk's Starlink

https://www.politico.eu/article/elon-musk-5-ways-eu-starlink/
1•robtherobber•26m ago•3 comments

Japanese virtual desktop cloud hacked so hard it asks to be banned

https://assets.theregister.com/2026/10/27/2026
1•ruhani_grover•27m ago•0 comments

Show HN: Lcars – a Star Trek journal that changes itself on my orders

https://github.com/saftacatalinmihai/lcars
2•saftamihai•27m ago•0 comments

Coast Guard Great Lakes District Set to Use Autonomous Sail Drones

https://www.war.gov/News/News-Stories/Article/Article/4477650/coast-guard-great-lakes-district-se...
2•Bluestein•37m ago•0 comments