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.

Elon Musk Is a Liar

https://twitter.com/TheSysMechanic/status/2128584980670648359
1•doener•16s ago•0 comments

Electric cars outsell petrol cars in the EU

https://www.euronews.com/2026/12/02/fully-electric-cars-outsell-petrol-cars-in-the-eu-which-count...
2•andrewstetsenko•29s ago•0 comments

Codeshape: Read Prose Like Code

https://codeshape.vercel.app/
1•big_toast•3m ago•1 comments

Cancer treatment could soon be as simple as a vaccine shot

https://www.vox.com/good-medicine-newsletter/511738/cancer-vaccine-personal-treatment-mrna
2•dabinat•3m ago•0 comments

My first ever vibe code project

https://newlystartup.com/
1•Bashar42•3m ago•1 comments

From AI code review to PR approval at Fin

https://ideas.fin.ai/p/from-ai-code-review-to-pr-approval
1•ryan_sherlk•4m ago•1 comments

Show HN: VoiceHz – Measure your speaking pitch (Hz) locally with Web Audio

https://voicehz.org
1•Darwin233•5m ago•0 comments

Bare-Metal Assembly LLM on RTX 3090 Without OS

https://twitter.com/superalesha/status/2128183560922444243
1•PanMan•7m ago•0 comments

Self-host Workers and Durable Objects with workerd clustering

https://developers.cloudflare.com/changelog/post/2026-12-03-workerd-self-hosted-durable-objects/
2•rfc2324•8m ago•0 comments

Vector API to add support for FP16 in JDK 28

https://openjdk.org/jeps/548
1•mfiguiere•8m ago•0 comments

A self-hosting compiler and bare-metal OS, written entirely in JavaScript

https://github.com/Dyspel/unGodly
1•binyu•11m ago•0 comments

The Seattle-based Goodreads engineering team has been laid off

https://goodereader.com/blog/amazon-news/the-entire-seattle-based-goodreads-engineering-team-has-...
2•cdrnsf•12m ago•0 comments

Popcorn in the cinema: Oral interference sabotages advertising effects

https://www.sciencedirect.com/science/article/abs/pii/S1057740813000879
1•niemandhier•12m ago•1 comments

Show HN: AI Map Harness – A map generate by AI

https://www.easytomato.com/ai-map
1•edouard1234567•15m ago•2 comments

Cracking the code: How eggshells balance being protective yet breakable

https://penntoday.upenn.edu/news/how-eggshells-are-strong-but-breakable
1•gmays•16m ago•0 comments

Show HN: Self-improving Claude Code with turn-counter hook

https://github.com/JonnaMat/claude-skill-self-improve
1•JonnaMat•18m ago•0 comments

AI Agents Enable Mass Profiling

https://arxiv.org/abs/2612.02638
2•dpaleka•22m ago•1 comments

Show HN: DNey Guard – Catch sensitive data before it goes to ChatGPT or Claude

https://github.com/gkasinath2020/dney-guard-chrome
1•gauthamkasinath•23m ago•0 comments

Asking is not waiting: a coding agent shipped before user replied

https://attentiontuning.ai/blog/asking-is-not-waiting
1•bit_byte•23m ago•0 comments

NASA data shows Kelvin waves raising sea levels off Southern California coast

https://ktla.com/news/california/southern-california-el-nino-kelvin-wave/
1•howard941•23m ago•0 comments

Open Food Facts

https://world.openfoodfacts.org
1•zeristor•24m ago•0 comments

Tiny Hat puts old PCs back in the game

https://www.theregister.com/os-platforms/2026/12/03/tiny-hat-puts-old-pcs-back-in-the-game/5313940
2•joebuckwilliams•28m ago•0 comments

Video-rate wavefront capture and replay: toward holographic telepresence

https://www.oejournal.org/oea/article/doi/10.29026/oea.2026.260001
3•bookofjoe•28m ago•0 comments

Laravel for Basic

https://github.com/pihedy/laravel-goto
1•gisbird•29m ago•0 comments

Laravel Smiley

https://github.com/pihedy/laravel-smiley
1•slopinthebag•29m ago•0 comments

Oxford Word of the Year 2026: Slopaganda

https://corp.oup.com/word-of-the-year/
1•gmays•30m ago•0 comments

Nvidia's Top Lawyer Confirms Trump Put Our National Security for Sale

https://newrepublic.com/post/218557/nvidia-lawyer-confirms-trump-deal-cut-chips-sales
6•bananaboy•30m ago•1 comments

Elon Musk's "zero deaths" claim is "a horrendous lie"|The Economist [video]

https://www.youtube.com/shorts/olqNrDw587E
8•PhotonHunter•31m ago•0 comments

Show HN: I cut build time and disk use for coding agents in Git worktrees

https://github.com/theblixguy/warm-worktrees
1•suyashsrijan•32m ago•0 comments

Show HN: Sea Album – 2,896 marine species sorted by colour and habitat

https://seaalbum.com/en/
1•alchaincyf•34m ago•0 comments