When the only comment on a PR is "LGTM", due diligence has not been done. A glance is not understanding. Understanding has levels, and we almost always overestimate ours. But the LGTM stamps the code as correct anyway. Make no mistake (pun intended), this is also true for LLM-generated code, even with so-called "correct-by-construction" approaches.
Why does verification catch anything at all? Because of redundancy. You write the specification carefully and then write the implementation separately, and the verification check finds the places where the two disagree.
LLM code synthesis throws that away. It derives the implementation from the specification, so the two can almost never disagree. Correct-by-construction becomes a dangerous misnomer. If the specification is wrong, the implementation is wrong in exactly the same way. Better models will not fix this. Any move from natural language to a specification leaves an intent gap between what the user meant and what the specification captures. The devil is in the cornercases.
We need to do better than LGTM. This ECOOP 2026 paper is brought to you by Brown. To resolve ambiguity in LLM-generated specification snippets, the paper introduces PICK, a human-in-the-loop tool that eliminates mismatched candidate formulas by asking users to classify concrete distinguishing scenarios sampled from the candidates' semantic differences. PICK brings the redundancy back in verification checks. Your answers about concrete cases are a second statement of intent, made in a different form than the prose prompt.
PICK derives not one but four candidate expressions from the user's prose description. It computes where the candidates disagree, and samples concrete scenarios from those regions to show them to the user two at a time, in a this-or-that format. The scenarios they study in the paper are strings for regexes, traces for LTL, and requests for access-control policies. The target is restricted languages for now as the title says. The user accepts or rejects each scenario, and each vote is checked against every candidate. A candidate is eliminated after two downvotes and needs at least one upvote to be selected. This repeats until one or zero candidates remain.
Each classification is checked against every candidate, not just against the one the scenario came from. Accept a scenario and every candidate whose language contains it gets an upvote, while the ones that exclude it get a downvote. One answer updates several candidates at once, and this keeps the number of questions small.
Rejecting is deliberately asymmetric. If you reject a scenario, the candidates that accept it get downvoted, but the candidates that also reject it get nothing. Otherwise a candidate could win by outlasting the others rather than by being chosen. A candidate has to earn at least one upvote to get selected. Ending with zero candidates is a legitimate outcome. It means either the LLM produced nothing correct or the user's intent is inconsistent.
How restricted do these languages need to be? Not very. You need to compute the set difference between two candidates, which means closure under negation and intersection. You need to decide equality, so that candidates with identical meaning can be collapsed before you waste questions on them. And you need to sample concrete instances out of a difference set. Regexes qualify. LTL qualifies, and they use Spot to generate the traces. ABAC (attribute-based access control) qualifies once you bound the entities.
Notably SQL does not as query containment is undecidable. The paper also gives a second reason: A query means nothing without a database, so the object the user has to judge is a query-and-database pair.
The regex and ABAC studies had three groups of 50 participants each, recruited through the Prolific platform. Everyone got the same task: here are four candidate expressions, pick the right one.
The groups differ only in what help they get. The control group saw the four candidates and picked one, with no examples. They could also say none was correct, or that they were unsure. The other two groups used PICK and classified scenarios instead of reading formulas. One of those two could see the candidate list while classifying and the other could not. This is how they test whether seeing the formulas helps at all, but this turned out to make no measurable difference.
Regex experiment: On abWords (a/b strings with b in every even position), control got 22% right, versus 60-72% with PICK. The most common wrong answer, chosen by 19 of 50, was ~((a|b)b)+~, which requires even length. On Dates, where no candidate was correct, control got 26% and PICK 66-70%. Of the 13 control participants who said they regularly write regexes, none got both abWords and Dates right.
ABAC experiment: Significant improvement on two of the three policies. PICK users were also 2-4 times more likely to eliminate every candidate, while control users tended to pick a wrong policy that was close to the correct one. I think this is the right behavior. A subtly wrong policy may go unnoticed for a long time, whereas an empty result tells you immediately that something needs fixing.
LTL: There was no new control group. The candidates were formulas that LTL-trained participants wrote in two earlier studies by the same group, and those participants' accuracy served as the baseline. PICK users were crowdworkers with no LTL background who never saw a formula. On RedOnce ("red is on in exactly one state"), they got 68% versus about 25%. Pooled across three problems, 56% versus about 44%.
The PICK idea should also work for TLA+. You write a prose description, an LLM gives you several candidate specs, and PICK asks you about concrete behaviors until one survives. That would close the intent gap, but the hard part is the design, not the theory. The regex, LTL, and access-control scenarios are considered toy compared with a full TLA+ spec. How to apply PICK in a scalable and manageable wayto a TLA+ spec is an open question. What do we show, and at what level of abstraction? I have not attempted that, but instead I tried something simpler: a Paxos tutor built on the PICK idea.
PICK assumes the specification is unknown and the user is the oracle. We flip that around here. The Paxos specification is known, but in this case the user would need to be brought up to speed on it. Following this approach, I built an interactive Paxos tutor. Ok, Opus 5.5 built it, but I had to babysit it over at least ten rounds. It is hard to teach a machine empathy for the user. And it turns out, as I suspected, distributed algorithms are still very hard for an LLM to manage, even with TLC as a backend.
The tool is called "Do you Paxos?" and it is available here. The candidates are correct Paxos plus eleven mutants, each one a misconception people hold. Questions come from the steps where correct Paxos and a mutant disagree. None of this is hand-written. The app runs its own Paxos state machine, and every question is generated from one of its reachable states, with the answer attached. A TLA+ spec of Paxos is checked against that state machine on every build, so the two cannot drift apart.