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•10mo ago

Comments

Taikonerd•10mo 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•10mo 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•10mo 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•10mo ago
Then you need to be able to formally prove the equivalence of various TLA+ programs (maybe that's a solved problem?)
omneity•10mo 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•10mo 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•10mo 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•10mo 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•10mo 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_•10mo 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•10mo 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•10mo 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_•10mo 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•10mo 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•10mo 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•10mo ago
Interesting. I've always wanted to formalize the US Constitution into TLA+ in order to find loopholes.

Self-Driving Codebase: Background agents and the next era of software delivery

https://background-agents.com/
1•iBelieve•58s ago•0 comments

CIA Prepares Criminal Referral of Tucker Carlson, as Israel et al. Demand Arrest

https://greenwald.substack.com/p/cia-prepares-criminal-referral-of
2•treetalker•4m ago•0 comments

Giving MCP servers a voice in tool selection

https://divanv.com/post/server-side-tool-gating/
1•divanvisagie•10m ago•0 comments

Manjaro Linux 2.0 Manifesto

https://forum.manjaro.org/t/manjaro-2-0-manifesto/186171
2•hmm37•12m ago•0 comments

To fall asleep faster, try cognitive shuffling

https://www.washingtonpost.com/wellness/2026/03/14/insomnia-cognitive-shuffling/
2•bookofjoe•16m ago•1 comments

Steve Jobs's 10-80-10 Rule Is More Useful in the AI Era

https://www.inc.com/jessica-stillman/steve-jobs-10-80-10-rule-is-even-more-useful-in-the-ai-era/9...
1•rosiesherry•16m ago•1 comments

Show HN: Open-source playground to red-team AI agents with exploits published

https://github.com/fabraix/playground
1•zachdotai•16m ago•0 comments

Learn Haskell in Two Weeks

https://mercury.com/blog/learn-haskell-in-two-weeks
2•cosmic_quanta•18m ago•0 comments

Show HN: OnTimer – persistent calendar alarms so you never miss a meeting

https://www.ontimer.app
2•ethangarr•20m ago•0 comments

Website visualizes the 100k most popular Wikipedia articles as skyscrapers

https://wikicity.app/
1•mykowebhn•21m ago•0 comments

CarTalk-AMP Web Player

https://cartalk-amp.exe.xyz/
1•indigodaddy•22m ago•0 comments

Building observable file systems for agents

https://blog.chudioranu.com/posts/agent-file-systems-observability/
2•httptetsuo•26m ago•0 comments

Token optimized query language (Memelang)

https://memelang.net/10/
1•bri-holt•26m ago•0 comments

Show HN: SciTeX Notification – Give AI agents a voice: TTS, phone calls, SMS

https://github.com/ywatanabe1989/scitex-notification
1•ywatanabe1989•27m ago•0 comments

Show HN: Kubernetes Security Profile Generator Using eBPF

2•mrayas•30m ago•0 comments

Nasdaq's Shame

https://keubiko.substack.com/p/nasdaqs-shame
4•imichael•30m ago•0 comments

A new Bigfoot documentary helps explain our conspiracy-minded era

https://www.msn.com/en-us/news/us/a-new-bigfoot-documentary-helps-explain-our-conspiracy-minded-e...
3•zdw•30m ago•0 comments

Twitch is overhauling its suspensions policy

https://techcrunch.com/2026/02/24/twitch-is-overhauling-its-suspensions-policy/
1•PaulHoule•31m ago•0 comments

CostClaw – free local dashboard to track and reduce OpenClaw agent costs

https://github.com/Aperturesurvivor/costclaw-telemetry
1•JosiahWil•31m ago•1 comments

From the Hills of Nepal to the Colombian Jungle: A Migrant's Story (2020)

https://www.occrp.org/en/project/the-cruel-road-north/from-the-hills-of-nepal-to-the-colombian-ju...
1•joebig•32m ago•0 comments

GladAItor – Crowd-testing AI products in a public arena

https://glad-ia-tor.com/
1•Enjoyooor•33m ago•1 comments

Kangina

https://en.wikipedia.org/wiki/Kangina
5•thunderbong•35m ago•0 comments

Cert Authorities Check for DNSSEC from Today

https://www.grepular.com/Cert_Authorities_Check_for_DNSSEC_From_Today
1•zdw•35m ago•0 comments

Hacking 'Skill' distilled from 4200 Hackerone vulns

https://instavm.io/blog/analysed-4000-to-create-security-agent-cli
1•mkagenius•36m ago•0 comments

Copilot Health

https://microsoft.ai/news/introducing-copilot-health/
1•geox•36m ago•0 comments

Cloudflare forked just-bash and they really, really should not have

https://twitter.com/cramforce/status/2033285112478171373
2•switz•39m ago•2 comments

Road Safety Annual Report 2025 [pdf]

https://www.itf-oecd.org/road-safety-annual-report-2025
1•gnabgib•39m ago•0 comments

Show HN: Decision Guardian v1.2.0 – enforce architectural decisions at PR time

2•iamalizaidi•40m ago•0 comments

Cover Flow with Modern CSS: Scroll-Driven Animations in Action (2025)

https://addyosmani.com/blog/coverflow/
2•andsoitis•41m ago•0 comments

Wikipedia Admin David Gerard Launders His Grudges into the Public Record

https://www.tracingwoodgrains.com/p/reliable-sources-how-wikipedia-admin
2•appreciatorBus•43m ago•0 comments