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: Radio Dystopia

https://radiodystopia.com/
1•drcode•27s ago•0 comments

Software as a Garden

https://carllapierre.com/blog/software-as-a-garden
1•staffor•27s ago•0 comments

Mizu – zero-copy parallel R and Python over shared memory

https://github.com/shikokuchuo/pymizu
1•cscheid•1m ago•0 comments

A gleam implementation of Solitare encryption scheme

https://code.mfashby.net/solitare/file/src/solitare.gleam.html
1•speckx•1m ago•0 comments

Raising the bar for 8 GB Windows 11 PCs: what's improved and how to get it

https://blogs.windows.com/windowsexperience/2026/11/03/raising-the-bar-for-8-gb-windows-11-pcs-wh...
2•taubek•1m ago•0 comments

Show HN: EpubCC, PDF to ePub that beats Calibre on 14/19 PDFs (loses on Arabic)

https://epubcc.com/
1•lou_alcala•1m ago•0 comments

Together AI Compiler for Inference

https://www.together.ai/blog/together-compiler-continual-compilation-for-ai-inference
1•sha_rad•2m ago•0 comments

A writing app that helps you spot what could be clearer and how to improve

https://yukiwriter.com/
2•partsch•2m ago•0 comments

Show HN: Revline – An open-source AI-native video editor

https://tryrevline.com
1•ZuraMakaradzeHe•3m ago•0 comments

Canva layoffs: design giant to cut or relocate more than 1,200 jobs

https://www.theguardian.com/australia-news/2026/nov/04/canva-layoffs-job-cuts-restructure
2•pseudolus•3m ago•0 comments

I Gave Claude Code a Realtime Voice Mode on My MacBook

https://www.storminthecastle.com/posts/claude-voice/
1•johnrobinsn•4m ago•0 comments

French blood banks hit alongside cyberattack on European supermarkets

https://www.yahoo.com/news/world/articles/several-french-blood-banks-hit-124448641.html
1•pseudolus•5m ago•0 comments

Batman's bike could be yours, if you have a spare $1.2 million

https://www.cnn.com/2026/11/05/entertainment/batman-batpod-auction-scli-intl
1•cisc•6m ago•0 comments

Show HN: Engine-X – Interactive 3D machines you can take apart in the browser

https://engx3d.com/
1•parth_mecheng•6m ago•0 comments

Bluesky was right all along and will accept your apology any time

https://www.fastcompany.com/91635647/bluesky-was-right-all-along-and-will-accept-your-apology-any...
2•donohoe•7m ago•0 comments

Show HN: Isoform – open-source Mac app that learns you and works as you

https://github.com/yubozhao/isoform
1•yubozhao•7m ago•1 comments

First Paper to Link CO2 and Global Warming (1856) (2019)

https://publicdomainreview.org/collection/first-paper-to-link-co2-and-global-warming-by-eunice-fo...
1•zenincognito•8m ago•0 comments

Pull the Plug on Technofascism Before It Reboots

https://www.techpolicy.press/pull-the-plug-on-technofascism-before-it-reboots/
4•cdrnsf•8m ago•1 comments

Private equity is buying up more methadone clinics

https://theconversation.com/private-equity-is-buying-up-more-methadone-clinics-access-to-the-life...
2•speckx•8m ago•0 comments

Dory1.0-4B: A Looped Normalized-GPT

https://huggingface.co/papers/2611.03998
1•sha_rad•9m ago•0 comments

Twelve-month all-cause mortality after initial Covid-19 vaccination

https://www.sciencedirect.com/science/article/pii/S2590113326000556
2•bilsbie•10m ago•1 comments

Techseen: AI News, Sources and Discussion

https://techseen.com/
1•mooreds•10m ago•0 comments

Humble Robotics raises $51M to build autonomous electric self-driving truck

https://www.businessinsider.com/humble-robotics-raises-51-million-for-cabless-self-driving-trucks...
1•maiagryskiewicz•10m ago•0 comments

Show HN: MaidenRun – Deploy an AI agent to your AWS and collect tester feedback

https://github.com/kaushik333/MaidenRun
1•Kaushik47•10m ago•0 comments

AIs try to create a large C++ physics Simulation [video]

https://www.youtube.com/watch?v=lZoS1tr8Cik
1•chii•10m ago•0 comments

Explaining the popularity of Max Richter's compositions

https://economist.com/culture/2026/11/04/explaining-the-popularity-of-max-richters-compositions
1•andsoitis•11m ago•0 comments

Taylor Lorenz on X: "I'm once again being offered money promote anti-AI content

https://twitter.com/TaylorLorenz/status/2118095796981637203
2•bilsbie•12m ago•0 comments

The Making of Dario Amodei

https://www.nytimes.com/2026/11/05/technology/dario-amodei-anthropic-ai.html
2•rafaelc•12m ago•0 comments

Show HN: Typos – Render Typst Documents to Thermal Printers (Go and ESC/POS)

2•shlewis•13m ago•0 comments

US Democrats Win Enough Seats Nationwide to End Presidential Electoral College

https://newrepublic.com/post/217594/democrats-seats-nationwide-end-electoral-college
14•ck2•14m ago•0 comments