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.

Security through obscurity is dead, and AI delivered the fatal blow

https://www.theregister.com/security/2026/09/13/security-through-obscurity-is-dead-and-ai-deliver...
1•CoderLim110•27s ago•0 comments

Go Mistakes and How to Avoid Them

https://100go.co/
1•adletbalzhanov•1m ago•0 comments

Chinese military researchers caught using Claude for air-defense and weapons

https://www.tomshardware.com/tech-industry/artificial-intelligence/chinese-military-researchers-a...
1•sbulaev•2m ago•0 comments

Key symbols we lost to time, pt. 1: The PC side

https://unsung.aresluna.org/key-symbols-we-lost-to-time-pt-1-the-pc-side/
1•leephillips•8m ago•0 comments

LLMs are real, AI is fake

https://pluralistic.net/2026/09/12/god-in-the-box/#llms-are-fake
3•andrepd•9m ago•0 comments

AI Writing Is Fine

https://matthewphillips.info/programming/posts/ai-writing-is-fine/
1•thomastill•10m ago•0 comments

Bastion of the Turbofish

https://github.com/rust-lang/rust/blob/main/tests/ui/parser/bastion-of-the-turbofish.rs
1•birdculture•10m ago•0 comments

Paul A. M. Dirac, Interview by Friedrich Hund (1982) [video]

https://www.youtube.com/watch?v=xJzrU38pGWc
2•emerongi•14m ago•0 comments

Thingport – a self-hosted web that pulls your 3D model collection into one place

https://github.com/TautvydasDerzinskas/Thingport
1•TautvydasDerzin•20m ago•1 comments

Show HN: Notula for Google Meet

https://chromewebstore.google.com/detail/notula-for-google-meet/egpbmkbnahnhjggmeemnkbblnpedcfkj
1•anetrebskii•20m ago•0 comments

Ask HN: Who Are You?

1•whatnoww•20m ago•1 comments

Irish, Scottish and Welsh leaders meet to plan break-up of United Kingdom

https://www.telegraph.co.uk/politics/2026/09/13/irish-scots-and-welsh-leaders-meet-to-plot-break-...
5•staringforward•23m ago•0 comments

A lease with a timeout is not a lock

https://lucascarlson.net/2026/09/09/a-lease-with-a-timeout-is-not-a-lock/
2•cardmagic•23m ago•0 comments

Read your writes: WAIT FOR in PostgreSQL 19

https://clickhouse.com/blog/postgresql-19-wait-for-read-your-writes
2•bucket2015•24m ago•0 comments

Your car is selling your data

https://www.theverge.com/column/994172/your-car-is-selling-your-data
7•bookofjoe•24m ago•1 comments

How Trump Is Wielding Power to Stifle Speech

https://www.nytimes.com/2026/09/12/us/politics/trump-free-speech.html
3•whack•26m ago•0 comments

Why Tech Oligarchs Are Willing to Risk Apocalypse

https://www.nytimes.com/2026/09/12/opinion/ai-tech-apocalypse-silicon-valley.html
3•cdrnsf•27m ago•1 comments

What happens if you extrapolate the age of US presidents?

https://www.reddit.com/r/dataisugly/comments/1wbuo9z/extrapolation_never_lies_the_55th_president_...
1•gloussou•29m ago•0 comments

Flock worker calls police on reporter filming public camera installation

https://www.investigatetv.com/2026/09/08/flock-worker-calls-police-investigatetv-reporter-filming...
12•SanjayMehta•33m ago•0 comments

Mars astronauts could live in houses made of yeast and jello, say scientists

https://www.theregister.com/offbeat/2026/09/11/mars-astronauts-could-live-in-houses-made-of-yeast...
3•Bender•34m ago•0 comments

AI models don't kill people – people kill people

https://www.theregister.com/ai-and-ml/2026/09/09/ai-models-dont-kill-people-people-kill-people/52...
7•Bender•35m ago•0 comments

RevenueOS – open-source revenue automation that waits for your approval

https://github.com/unempyd/revenueos
2•unempyd•35m ago•0 comments

I Pivoted to Game Development

https://sibylline.dev/articles/2026-09-12-why-i-pivoted-to-game-development/
1•CuriouslyC•37m ago•0 comments

Show HN: I built a day-by-day timeline of the AI boom (2017–2026, 437 events)

https://www.aihistory.live/
1•aniketsauravv•38m ago•0 comments

AI is breaking our proxies for expertise

https://www.seangoedecke.com/ai-is-breaking-our-proxies-for-expertise/
2•j4102_•38m ago•0 comments

Lessons I learned as a software engineer

https://www.thetrueengineer.com/p/10-lessons-from-the-journey-what
1•adletbalzhanov•39m ago•0 comments

Hornbound – I made a 13KB roguelike game for js13k game jam (no AI)

https://labrat.mobi/games/hornbound/
1•g0ld3nrati0•41m ago•0 comments

An update on the May spam-publishing campaign on rubygems.org

https://blog.rubygems.org/2026/09/11/update-may-spam-publishing-campaign.html
1•Topfi•43m ago•0 comments

Tesla Is Reclaiming the U.S. EV Market as Legacy Automakers Retreat

https://www.wsj.com/business/autos/tesla-is-reclaiming-the-u-s-ev-market-as-legacy-automakers-ret...
1•fortran77•44m ago•1 comments

US Customs supervisor busted for stealing hardware from Homeland Security PCs

https://www.tomshardware.com/pc-components/us-customs-supervisor-busted-for-stealing-core-i7-cpus...
19•Levitating•44m ago•11 comments