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.

Meta's AI 'Perv Glasses' Now Come with Stupid Comcast-Esque Usage Restrictions

http://www.techdirt.com/2026/07/06/metas-ai-perv-glasses-now-come-with-stupid-comcast-esque-usage...
1•beardyw•11s ago•0 comments

Apprentice developer defied orders – then got a job supporting her weird code

https://www.theregister.com/software/2026/07/06/apprentice-developer-defied-orders-then-got-a-job...
1•LorenDB•14s ago•0 comments

Global renewable capacity factors datasets

https://bayesian.energy/blog
1•p44v9n•1m ago•0 comments

I Built a Telegram Client for Pi

https://www.npmjs.com/package/@atharva-again/pi-tg
1•atharva-again•1m ago•1 comments

Show HN: Orchestrate parallel Claude Code and Codex agents on a live map

https://github.com/Latand/live-log-viewer-next
1•latand6•1m ago•0 comments

Show HN: We track 1,397 AI agents. 43 famous ones (402k stars) have gone dark

https://agentcrush.xyz/ghost-report
1•AgentCrush•2m ago•0 comments

The Nature of Launch Day

https://seths.blog/2026/06/the-nature-of-launch-day/
1•herbertl•2m ago•0 comments

Show HN: Captchainbox – make senders work to get into your inbox

https://www.captchainbox.com
1•felixdoerp•3m ago•0 comments

Microsoft joins AI-driven tech layoff wave with 4,800 job cuts

https://www.reuters.com/business/world-at-work/microsoft-joins-ai-driven-tech-layoff-wave-with-48...
1•root-parent•4m ago•0 comments

Loop Engineering's Missing Half

https://x.com/compose/articles/edit/2073814852167184384
1•sankarn_ai•4m ago•0 comments

Show HN: Flying Drones with Natural Language

https://jakedecamp.com/product/flying-drones-with-natural-language/
1•silksowed•5m ago•0 comments

We asked AI agents to fix real security bugs. This is what happened

https://mobb.ai/blog/we-asked-ai-agents-to-fix-real-security-bugs-this-is-what-happened
1•k1r111•5m ago•0 comments

Will GPUs Accelerate Your Traditional SQL Workload?

https://www.starburst.io/blog/will-gpus-accelerate-your-traditional-sql-workload/
1•abadid•6m ago•1 comments

Show HN: Quiet Sky, a weather app built for privacy

https://github.com/NW-Hiker-Skier/quietsky-privacy-proxy
1•Aaron_NW•6m ago•0 comments

Ask HN: Is anyone using Jujutsu version control (JJ) exclusively?

3•cabyambo•6m ago•0 comments

CppRTOS

https://github.com/borisRadonic/CppRTOS
2•BorisRadonic•9m ago•0 comments

Go Report Card has been sunset

https://goreportcard.com/
1•atkrad•9m ago•0 comments

Xbox to Lay Off Up to 3,200 in 'Most Significant Restructure' in Company History

https://variety.com/2026/gaming/news/xbox-layoffs-3200-4-studios-sold-1236802326/
3•drayfield•9m ago•0 comments

Show HN: I check grocery "sale" prices against government data (190 cities)

https://lowtein.com
1•barneycorp•10m ago•0 comments

Domain-specific agents: composition against the bloated agent

https://leocavalcante.dev/en/agentes-de-dominio-especifico-composicao-contra-o-agente-inchado/
1•leocavalcante•10m ago•0 comments

How old are you?

https://orchidfiles.com/how-old-are-you/
1•theorchid•11m ago•0 comments

Show HN: OnlyFoundrs – Twitter for founders, minus the flex

https://onlyfoundrs.com/
2•Quise2003•12m ago•0 comments

OpenAI's apparent failure to visit key site raises questions over UK investment

https://www.theguardian.com/technology/2026/jul/04/openai-apparent-failure-visit-key-site-questio...
4•_tk_•13m ago•0 comments

UEFA slams FIFA's 'unprecedented, unjustifiable' Balogun decision

https://www.reuters.com/sports/soccer/uefa-slams-fifas-unprecedented-incomprehensible-unjustifiab...
2•root-parent•14m ago•0 comments

Cognitive Aging and Brain Health: Comparison of Super Movers vs. Nonsuper Movers

https://www.neurology.org/doi/10.1212/WNL.0000000000214776
2•bookofjoe•14m ago•0 comments

Uniform Invoice

https://en.wikipedia.org/wiki/Uniform_Invoice
2•redbell•14m ago•0 comments

Nintendo's EU Switch 2 gets a 1% smaller battery and is 10 grams heavier

https://hanafuda.report/articles/nintendo-switch-2-eu-battery-change/
2•brandrick•14m ago•0 comments

Blatant nepotism among various groups of Indians in Amazon

https://old.reddit.com/r/amazonemployees/comments/1uoj25w/blatant_nepotism_among_various_groups_o...
3•root-parent•14m ago•0 comments

Invisible Companies

https://colossus.com/article/invisible-companies/
2•herbertl•16m ago•0 comments

Hackers replace D.C.'s Broken 311 App

https://www.notus.org/metro/washington-dc-311-app-ai
2•therealcamino•16m ago•0 comments