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

Comments

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

Why Make Websites?

https://techne98.com/blog/why-make-websites/
1•fixedprog•34s ago•0 comments

The Science of Life and Death in Mary Shelley's Frankenstein

https://publicdomainreview.org/essay/the-science-of-life-and-death-in-mary-shelleys-frankenstein/
1•Anon84•1m ago•0 comments

Are people avoiding iOS 26 because of Liquid Glass? It's complicated

https://arstechnica.com/gadgets/2026/01/are-people-avoiding-ios-26-because-of-liquid-glass-its-co...
1•mindracer•1m ago•0 comments

Niccup: Hiccup-Like HTML Generation in ~120 Lines of Pure Nix (2025)

https://embedding-shapes.github.io/introducing-niccup/
1•mooreds•2m ago•0 comments

How do you know if you've unlocked the intellectual capacity of your org?

https://josezarazua.com/unlock-the-full-intellectual-capacity-of-your-organization/
1•mooreds•3m ago•0 comments

Mysterious 'iron bar' discovery in space may reveal Earth's future

https://www.bbc.com/news/articles/ckgxlvv0wdko
2•Brajeshwar•3m ago•0 comments

Leonardo Proteus: Royal Navy flies UK's first autonomous full-size helicopter

https://www.aerotime.aero/articles/leonardo-proteus-royal-navymaiden-flight-autonomous-full-size-...
2•Brajeshwar•4m ago•0 comments

Aristotle

https://en.wikipedia.org/wiki/Aristotle
1•hkopp•4m ago•0 comments

Wormholes may not exist. They reveal something deeper about time and universe

https://phys.org/news/2026-01-wormholes-weve-reveal-deeper-universe.html
2•Brajeshwar•4m ago•1 comments

Plentiful, high-paying jobs in the age of AI

https://www.noahpinion.blog/p/plentiful-high-paying-jobs-in-the
1•SoKamil•5m ago•0 comments

Steve Jobs Vision of AI [video]

https://www.youtube.com/watch?v=cHuqhQmc4ok
1•0x1ceb00da•5m ago•0 comments

China's brutal 'fat prisons', where rapid weight loss can prove fatal

https://www.news.com.au/lifestyle/fitness/weight-loss/inside-chinas-brutal-fat-prisons-where-rapi...
2•mooreds•6m ago•0 comments

Show HN: Kate Code – KDE Kate Editor Plugin for Accessing Claude Code

https://github.com/undefinedopcode/kate-code
1•empressplay•6m ago•0 comments

Rackspace customers grapple with "devastating" email hosting price hike

https://arstechnica.com/information-technology/2026/01/rackspace-raises-email-hosting-prices-by-a...
1•speckx•8m ago•0 comments

Show HN: WorkSpace Manager – Native macOS Workspace Launcher (SwiftUI)

https://github.com/frafra077/workspace-manager
1•fra07•8m ago•1 comments

AI tools expand scientists' impact but contract science's focus

https://www.nature.com/articles/s41586-025-09922-y
1•7777777phil•9m ago•0 comments

Show HN: Video-to-Grid – Analyze videos with one Vision API call

https://github.com/unhaya/vam-seek-electron-demo
1•haasiy•12m ago•0 comments

Show HN: The Logos Programming Language and Theorem Prover

https://logicaffeine.com/crates
1•tristenharr•13m ago•2 comments

Ask HN: How optimistic are you about the future of tech?

1•julienreszka•14m ago•0 comments

New York City is being recreated at 1:1 scale inside Minecraft

https://www.tomshardware.com/video-games/pc-gaming/new-york-city-recreated-at-1-1-scale-inside-mi...
2•speckx•14m ago•0 comments

A brief history of code signing on Macs

https://eclecticlight.co/2025/04/26/a-brief-history-of-code-signing-on-macs/
1•chmaynard•17m ago•0 comments

Terabyte-Scale Analytics in the Blink of an Eye

https://arxiv.org/abs/2506.09226
1•matt_d•18m ago•0 comments

Tool Search Now in Claude Code

https://twitter.com/i/status/2011523109871108570
1•wawayanda•19m ago•0 comments

Open Responses: specification for building interoperable LLM interfaces

https://www.openresponses.org/
1•Palmik•19m ago•0 comments

The Only Cure by Mark Solms review – has modern neuroscience proved Freud right?

https://www.theguardian.com/books/2026/jan/12/the-only-cure-by-mark-solms-review-a-bold-attempt-t...
1•pseudolus•20m ago•0 comments

The Iranian Regime Is Stronger Than We Think

https://www.thefp.com/p/the-iranian-regime-is-stronger-than
1•mhb•21m ago•1 comments

Taiwan Is a Shining Example of Undersea Cable Incidents Transparency

https://charlesmok.substack.com/p/taiwan-is-a-shining-example-of-undersea
1•cwwc•21m ago•0 comments

KDE Ni OS – Plasma Login Manager Now Available

https://cukic.co/2026/01/16/kde-ni-os-plasma-login-manager-available/
1•speckx•24m ago•0 comments

Uploading SRV3 subtitles on YouTube got broken/disabled

https://old.reddit.com/r/youtube/comments/1qdvgmc/uploading_srv3_subtitles_got_brokendisabled/
1•afishhh•25m ago•0 comments

How Does the Hive Mind Work in "Pluribus"?

https://www.wired.com/story/how-does-the-hive-mind-work-in-pluribus/
2•7777777phil•30m ago•0 comments