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

Comments

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

Hunt for missing millions unmasks crypto exchange hidden inside another

https://www.icij.org/investigations/coin-laundry/hunt-for-missing-millions-unmasks-one-crypto-exc...
1•KingNoLimit•25s ago•0 comments

Exactly Once Is a Lie

https://docs.eventsourcingdb.io/blog/2025/11/20/exactly-once-is-a-lie/
1•goloroden•1m ago•0 comments

Garage44 – Modern web applications built with Bun, Preact, and DeepSignal

https://github.com/garage44/garage44
1•jvanveen•3m ago•0 comments

Show HN: Long Courrier – A custom web player for a 1h Barber Beats mix

https://monosky.mateo-siam.com/
1•Mateleo•6m ago•0 comments

Universal testing machines OEM software?

https://www.tinyutm.com/utmware/
1•DrNuke•9m ago•1 comments

Open source image generation with style codes (–sref))

https://kwai-kolors.github.io/CoTyle/
1•meander_water•10m ago•0 comments

Palo Alto Networks to buy Chronosphere for $3.35B

https://www.reuters.com/business/palo-alto-buy-chronosphere-335-billion-2025-11-19/
1•puppion•12m ago•0 comments

Nvidia Announces Financial Results for Third Quarter Fiscal 2026

https://nvidianews.nvidia.com/news/nvidia-announces-financial-results-for-third-quarter-fiscal-2026
3•raffael_de•14m ago•2 comments

Show HN: Fruit Ninja Created with Gemini3

https://gemini.google.com/share/f8a9599db344
1•leecy007•14m ago•0 comments

Show HN: Taskai – AI-powered reminders that reduce mental load

1•ZackMomily•16m ago•0 comments

Show HN: Swipeable TikTok Style Video Embed – Pitch Your Visitors Async

https://app.harloop.com/preview
1•chinmaypingale1•17m ago•0 comments

Interactive language learning with Claude Code

https://github.com/m98/fluent
1•rioppondalis•19m ago•0 comments

ATTiny85 – MNIST RNN model run via the internal 512-Byte EEPROM

https://github.com/GiorgosXou/ATTiny85-MNIST-RNN-EEPROM
2•xou•22m ago•1 comments

Italy allows extradition of Ukrainian suspect in Nord Sea pipeline sabotage

https://www.euractiv.com/news/italy-allows-extradition-of-ukrainian-suspect-in-nord-sea-pipeline-...
1•colinprince•22m ago•0 comments

DOS Days – Laptop Displays

https://www.dosdays.co.uk/topics/laptop_displays.php
1•nullbyte808•25m ago•0 comments

Ask HN

1•fangzhang_new•27m ago•1 comments

Story of a Beijing Vibe Coder

https://afraw.substack.com/p/story-of-a-chinese-vibe-coder
1•colinhb•28m ago•0 comments

Autonomously Folding Napkins for 24 Hours

https://www.dyna.co/dyna-1/research
2•v9v•28m ago•0 comments

The EU wants to kill cookiebanners by moving consent to the browser

https://www.simpleanalytics.com/blog/the-eu-wants-to-kill-cookie-banners-by-moving-consent-to-you...
3•birdculture•32m ago•0 comments

A taxonomy of the video game production scope

https://hushcrasher.substack.com/p/taxonomy-of-games
1•danbolt•33m ago•0 comments

Show HN: Worqlo – A Conversational Layer for Enterprise Workflows

1•andrewdany•33m ago•0 comments

An ESP32-S3 desktop hackable toy in an iconic Mac Design

https://labs.alxvtoronto.com/products/byte-90-designer-edition
1•meilily•34m ago•0 comments

Show HN: Data-driven insights into patterns in work, wellbeing, and habits

https://www.proddigy.app
2•ramn7•37m ago•0 comments

Show HN: A Conceptual Whitepaper on the Abstractive Thinking Model

https://github.com/Jonathan-Monclare/Abstractive-Thinking-Model-ATM-
1•J_Monclare•40m ago•1 comments

Some Personal Thoughts on This Whole Mess [Rebble/Pebble/Core]

https://rebble.io/2025/11/19/some-personal-thoughts-on-this-whole-mess.html
1•jamesbelchamber•45m ago•0 comments

F1TV issue on Firefox after latest Google Announcement – Coincidence?

2•iKasu•47m ago•0 comments

Cobalt 200: Azure's next cloud-native CPU

https://techcommunity.microsoft.com/blog/azureinfrastructureblog/announcing-cobalt-200-azure%E2%8...
3•pjmlp•50m ago•0 comments

PHP 8.5 Release Announcement

https://www.php.net/releases/8.5/en.php
2•doppp•51m ago•0 comments

Context: The missing API in Ruby logger

https://honeyryderchuck.gitlab.io/2025/11/12/context-missing-api-in-logger.html
2•todsacerdoti•51m ago•0 comments

Here Comes the Sun

https://www.euclid-ec.org/here-comes-the-sun/
2•robin_reala•51m ago•0 comments