Metraipolis › archive › dc_59361be74290
Trust the Spec, Not the Code - A Specification-First, AI-Assisted Case Study in Online Banking — arXiv:2609.07365
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.07365
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T14:09:06.055Z
- SHA-256 of the archived text
d9a56af15f1c75dc4692d718ae6d2a11a75e92b334573b7d54f1b681f0525c55- Stable URL of this page
https://metraipolis.com/documento/dc_59361be74290
How to cite
Trust the Spec, Not the Code - A Specification-First, AI-Assisted Case Study in Online Banking — arXiv:2609.07365 — arXiv (en), https://arxiv.org/abs/2609.07365 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_59361be74290 (Metraipolis archive dc_59361be74290, sha256 d9a56af15f1c75dc4692d718ae6d2a11a75e92b334573b7d54f1b681f0525c55)
BibTeX
@misc{dc59361be74290,
title = {Trust the Spec, Not the Code - A Specification-First, AI-Assisted Case Study in Online Banking — arXiv:2609.07365},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.07365},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_59361be74290; sha256 d9a56af15f1c75dc4692d718ae6d2a11a75e92b334573b7d54f1b681f0525c55},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.07365. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Formal specification promises early error detection, explicit invariants, and correctness by design, yet its notational cost has kept it out of mainstream practice. We argue that AI removes much of that cost: natural language enriched with lightweight mathematics, written in \LaTeX, can serve as an intermediate specification language that is precise enough to reason over and prove, while a large language model (LLM) reviews it for ambiguity, drafts proofs, and generates the implementation. The specification becomes the artifact one authors, reviews, proves, and refines; the code becomes regenerable output. This paper is a follow-on to a prior study that established the discipline on an organizational-knowledge-growth simulation~\cite{predecessor2026}. Here we replicate the discipline in a different domain---an online-banking fund-transfer service---and extend it. The two domains share one spine: a conservation invariant (knowledge in the prior study, money here), which suggests the approach generalizes across domains. We contribute: (i) a second, independent case study of the method; (ii) a stress-test of the method on a richer problem---\emph{scheduled/recurring} transfers---whose generated code grows substantially while the invariant and its proof do not; (iii) an \emph{AI-proposed runtime coverage model} for invariants (``never violated $\neq$ covered''); and (iv) a Z formalization, including paired success/failure operation schemas and an invariant proved over the inductive set of all reachable configurations, together with an experiment in which the AI proposes the Z interfaces itself. We are explicit about the method's limits: the proofs and runtime checks live at the specification level and do not establish that the generated code refines the specification---that step is delegated to the AI. This is a case study, not a controlled experiment.
Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-09 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2609.07365 — 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-16T13:58:36.384Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-09?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).