Metraipolis › archive › dc_4741a8b35767

Can Formal Specifications Be Synthesized from Tests Alone? — arXiv:2608.13240

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.13240
License (as archived)
CC0-1.0
Archived
2026-10-19T04:40:55.924Z
SHA-256 of the archived text
03dc7351b696613cd3336f7d5e45ef319eb682fb7e660ffc0e59dfbce93c3853
Stable URL of this page
https://metraipolis.com/documento/dc_4741a8b35767

How to cite

Can Formal Specifications Be Synthesized from Tests Alone? — arXiv:2608.13240 — arXiv (en), https://arxiv.org/abs/2608.13240 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_4741a8b35767 (Metraipolis archive dc_4741a8b35767, sha256 03dc7351b696613cd3336f7d5e45ef319eb682fb7e660ffc0e59dfbce93c3853)
BibTeX
@misc{dc4741a8b35767,
  title = {Can Formal Specifications Be Synthesized from Tests Alone? — arXiv:2608.13240},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.13240},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_4741a8b35767; sha256 03dc7351b696613cd3336f7d5e45ef319eb682fb7e660ffc0e59dfbce93c3853},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.13240. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Formal specifications offer strong guarantees, but remain costly to write manually. Recent LLM-based approaches automate this by inferring specifications from source code, yet their reliance on white-box access poses barriers to industrial adoption due to intellectual property risks and deployment costs. Our approach uses LLMs to infer candidate specifications solely from test code and dynamic execution traces: the LLM observes only the program interface, selected inputs, and corresponding outputs or state changes, while the implementation internals remain hidden. Candidate specifications are validated locally using bounded model checking, with feedback guiding iterative refinement. Initial results on the SpecGenBench benchmark suggest that tests can guide LLMs towards meaningful Java Modeling Language specifications, while also highlighting checker compatibility and diagnostic feedback as key challenges for reliable refinement.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-14 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.13240 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T04:25:15.793Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-14?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).