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: Tickerhood – I mapped stock market returns based on where you live

https://tickerhood.adityakarad.com/
1•itskarad•1m ago•0 comments

NASA's Escapade Captures Parting Images of Earth on Its Way to Mars

https://science.nasa.gov/blogs/escapade/2026/11/23/nasas-escapade-captures-parting-images-of-eart...
1•titusblair•1m ago•0 comments

Tabc: An OCI runtime that runs containers in a browser tab

https://github.com/fzakaria/tabc
1•titusblair•1m ago•0 comments

Show HN: Tracking 26 years of progress on science's biggest open questions

https://singularitycurve.com/
1•Bry789123•3m ago•0 comments

Outages and digital pandemics: Preventing the next digital crisis

https://www.euronews.com/2026/11/30/outages-and-digital-pandemics-preventing-the-next-digital-crisis
3•billybuckwheat•3m ago•0 comments

My War Against Leaf Blowers and Other Noise Crimes

https://www.newyorker.com/culture/personal-history/my-lonely-war-against-noise
1•speckx•4m ago•0 comments

Homomorphically Encrypted Llama3-8B at 2 tokens/sec

https://www.jeremykun.com/2026/11/30/belfort-fhe-llama/
3•turtleyacht•5m ago•1 comments

Show HN: Gh-Contrib-Report – CLI and GitHub Action for Markdown/PDF Reports

https://github.com/limacca1978/gh-contrib-report
1•limacca•5m ago•0 comments

There's never been a better time to bring back MySpace

https://murfalo.com/activity/ourspace/
1•Murfalo•5m ago•0 comments

Learnings from 25 Years in Software

https://carlwiedemann.github.io/post/2026-11-22-learnings-from-years-in-software.html
1•Curiositry•7m ago•0 comments

WA inventor who pioneered CD, DVD technology dies at 95

https://www.seattletimes.com/business/technology/wa-inventor-who-pioneered-cd-dvd-technology-dies...
2•ksec•7m ago•1 comments

Compare AI models side by side in a spreadsheet format

https://gentable.ai/
7•tmslnz•9m ago•0 comments

He won an award for his short story. Then he was accused of using AI

https://www.cnn.com/2026/11/29/africa/simbarashe-kundizeza-caine-prize-ai-controversy-cec
1•gpi•9m ago•0 comments

Sociopolitical attitudes of Ukrainians (November 25-26, 2026)

https://www.ratinggroup.ua/en/news/socpol-nov2026
1•bushwart•9m ago•0 comments

Show HN: Fusepin – Adversarial detonation harness for agentic CI/CD (MIT)

https://github.com/fusepin/fusepin
1•peripeteia27•9m ago•0 comments

Proactive, Persistent, Personal and Professional Agents in Agent Commerce

https://kenhuangus.substack.com/p/the-4p-agent-proactive-persistent
1•mooreds•10m ago•0 comments

Compute Desk raises $45M to help businesses lose less money on GPU compute

https://www.computedesk.com/media-insights/press-release-compute-desk-raises-45m
1•jgrall•11m ago•1 comments

Did Anthropic break RSA? guide for non-cryptographers

https://www.cipherwill.com/research/anthropic-rsa-scale
2•EnthusiastShiv•15m ago•0 comments

Show HN: TrialTrace: AI-Powered Evidence Review for Clinical Trial Outcomes

https://github.com/vthottempudi1/TrialTrace
1•vthottempudi1•16m ago•0 comments

Google Plans to Make Its Search Proactively Act on Your Behalf

https://winbuzzer.com/2026/11/30/google-reportedly-plans-to-make-search-act-on-your-behalf-xcxwbn/
1•DemiGuru•17m ago•0 comments

The Cris Walk: Survival Driving in an AI Formula 1 Car

https://github.com/davidgobel-rgbd/cris-walk
1•davidgobel•17m ago•0 comments

What does 'late-stage capitalism' really mean?

https://news.berkeley.edu/2026/03/31/what-does-late-stage-capitalism-really-mean-uc-berkeley-prof...
2•cs702•18m ago•0 comments

SpaceX denies report Iran used Starlink to attack U.S. forces

https://www.upi.com/Top_News/US/2026/11/30/SpaceX-denies-Washington-Post-Starlink-Iran-attack/765...
1•nephihaha•19m ago•0 comments

AmigaVision 2026.11.29 Released with OCS/ECS Support

https://old.reddit.com/r/amiga/comments/1y96lbl/amigavision_20261129_released_with_ocsecs_support/
3•doener•20m ago•0 comments

You May Not Know It, but You Are Financing the A.I. Boom

https://www.nytimes.com/2026/11/30/opinion/artificial-intelligence-americans-costs.html
3•mooreds•20m ago•0 comments

Attention Infidelity? Should We Be Worried?

https://thecongressmanswife.substack.com/p/attention-infidelity-should-we-be
2•mooreds•20m ago•0 comments

AI and the Decentering of Disciplinary Creativity

https://www.cambridge.org/core/journals/philosophy-of-science/article/ai-and-the-decentering-of-d...
1•porteclefs•21m ago•0 comments

Reaching 100% Type System Conformance

https://pyrefly.org/blog/typing-conformance-passing/
1•ocamoss•22m ago•0 comments

Meta makes it easier to report illegal content, avoids EU tech fine

https://www.reuters.com/business/meta-makes-it-easier-report-illegal-content-avoids-eu-tech-fine-...
2•geox•22m ago•0 comments

Urolithin A supplement boosts brain blood flow during memory tasks

https://www.ouhsc.edu/news/details/clinical-trial-explores-potential-brain-health-benefits-of-die...
2•giuliomagnifico•24m ago•0 comments