TRANSMISSION // 2612.04376v1
When an AI’s formal specification passes—but misses a property
Source published
A NASA case study found that verifier-guided repair made many AI-written TLA+ specifications executable, but fewer passed checks of their stated properties.

A model checker can catch errors in an AI-generated formal specification—but only if it checks the right things. In a pilot study of one NASA requirement, a repair loop greatly increased the number of specifications TLC could run. A separate check, however, found that some apparent successes did not satisfy the properties they were meant to encode.
A formal specification is a precise description of how a system should behave. Unlike ordinary prose, it can be checked by software. But a specification that runs without errors is not necessarily one that captures the intended behavior. That distinction is central to a pilot study of an AI system writing TLA+ specifications for a requirement concerning NASA’s docking-system Capture Latch Assembly.
TLA+ is a mathematical language for describing systems that change state over time. Its model checker, TLC, explores the states allowed by a specification and can report problems. The study asked whether feeding TLC’s diagnostic messages back to a large language model (LLM) could help repair specifications that failed to run or explore.
A bounded repair loop
Researcher Tianxiang Lu evaluated GPT-4o on 100 paired trials. Each trial began with an AI-generated specification; the same initial draft was used for both the baseline result and its corresponding repair outcome. Specifications that passed the initial check were left alone. Those that failed received one repair attempt: TLC’s diagnostic was matched to a reusable “skill”—guidance for a particular failure type—and supplied to the model as it regenerated the specification.
The experiment used a domain-engineered TLA+ scaffold and modeled three instances of the mechanism. It therefore tested a specific workflow, not unrestricted, from-scratch specification writing. The model was not given the expert reference model.
The paper reports two ways of counting success. An executable pass meant TLC accepted the module and completed its exploration using the configuration generated by the pipeline. By that measure, 20 of 100 initial specifications passed, compared with 88 after the conditional repair process. Of the 80 that initially failed, 68 were rescued on this measure.
But executable success turned out to be an incomplete test. The pipeline generated TLC configurations that omitted the encoded invariants in 87 of the 88 runs counted as passing. An invariant is a property expected to hold across the states a model can reach. When the saved specifications were checked again against the two named properties, TypeOK and DDMR26, 19 initial drafts and 75 final drafts passed. That is 56 rescues among the 80 trials that entered repair—not 68.
The difference matters: a checker cannot verify a property that its configuration does not ask it to check. The paper describes DDMR26 as a state-consistency proxy, not direct indication itself. Passing the property checks also does not prove that the formal model faithfully represents the natural-language NASA requirement; no systematic test of that faithfulness was performed.
Some failures were easier to repair
Results varied by the first diagnostic. Unknown-operator failures were rescued in 40 of 45 trials by the executable-pass measure; missing next-state assignments were rescued in all 27. Under the stricter property-pass measure, those figures fell to 34 of 45 and 21 of 27. None of the four IF/THEN/ELSE parse errors or three Boolean-evaluation errors was rescued by the single attempt. The small counts mean these are observations from this experiment, not reliable estimates of how each error type will behave elsewhere.
In total, 12 repairs that passed the executable check failed DDMR26. The repair loop did not see those property violations because the generated configurations had omitted the invariants. It therefore could not use them to guide another repair.
What the study can—and cannot—show
The results suggest that a verifier-feedback loop can help make AI-generated TLA+ drafts executable in this case. They also show why checking configuration files and re-verifying saved outputs matter: a headline pass rate can obscure what the tool actually checked.
The experiment does not establish that reusable skills caused the improvement. There was no control group that received TLC feedback without skills, and the skill registry persisted across trials, making results order-dependent. Although the workflow includes a route for proposing new skills subject to human approval, every first diagnostic in this run matched an existing skill; skill synthesis and human approval were not evaluated. The study used one requirement, one model, one repair attempt, and small explored state spaces. It reports no significance tests or confidence intervals because trials were not independent.
The supplied manuscript describes itself as an accepted paper for a 2026 IEEE conference, while the accompanying source record identifies an arXiv version. The claims should be read in light of the study’s limited scope; the available evidence here is the paper text and abstract, not an independent replication. The paper identifies broader testing, invariant checks inside the repair loop, and comparisons with a no-skill condition as useful next steps.
- TLA+
- formal verification
- large language models
- model checking
- AI specification repair
- NASA
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Formal Guidance for AI-Generated RTL
Shared method: Both studies use tool-generated verification feedback to guide bounded iteration: the TLA+ pilot repairs initially failing specifications using TLC diagnostics, while Layered Formal Guidance checks RTL against assertions and uses counterexamples to refine the RTL, specification, or properties. The artifacts, checkers, and evaluation settings differ, so this is a shared workflow pattern, not evidence of comparable performance.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.04376v1 — Original paper
Excerpt reference:
static/papers/2612.04376v1.md:73-146
Basis: Paper text
Source file SHA-256:a9b6b2f67d0200d82b9ff967ee36714109bd8b8376f2011ff97a5ca7dbe7eb5c2611.30766v1 — Original paper
Excerpt reference:
static/papers/2611.30766v1.md:239-312
Basis: Paper text
Source file SHA-256:ad6c4b767ec56de19010b335ac9206a0d7d17f8bcbda26e9ecfea33d4cc4275d
ChipArc puts verification in charge of AI chip-design edits
Shared method: Both describe verifier-controlled repair in which a deterministic tool evaluates candidate artifacts and its results inform whether changes are retained or revised. The TLA+ study gives one conditional repair attempt with TLC, while ChipArc uses a multi-agent RTL workflow and benchmark-specific verification; their domains and acceptance procedures differ, and the TLA+ pilot does not isolate the effect of its repair skills.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.04376v1 — Original paper
Excerpt reference:
static/papers/2612.04376v1.md:73-146
Basis: Paper text
Source file SHA-256:a9b6b2f67d0200d82b9ff967ee36714109bd8b8376f2011ff97a5ca7dbe7eb5c2611.37679v1 — Original paper
Excerpt reference:
static/papers/2611.37679v1.md:67-119
Basis: Paper text
Source file SHA-256:b5ba64ae9146804e8742bdb9885226a6d1f2600d57f703f085ba9dfa22332332
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Can AI Agent Rules Be Governed as Code?
Source published
Shared keywords: formal verification
Language models write small neural policies—and model checking tests their promises
Source published
Shared keywords: formal verification, large language models
What Formal Verification Can—and Cannot—Show About Cognitive Models
Source published
Shared keywords: formal verification, model checking
AI Agents Build Helper Assertions for RTL Proofs
Source published
Shared keywords: formal verification, model checking
AI Logic Problems May Be Easier Than Their Labels Suggest
Source published
Shared keywords: large language models