Metraipolis › archive › dc_0494a7447e06

Djinnlang: Higher-Level Programming by Unambiguous Specification with an LLM in the Compiler — arXiv:2609.23954

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.23954
License (as archived)
CC0-1.0
Archived
2026-10-09T07:14:01.356Z
SHA-256 of the archived text
2d1c94b7dee2792eb1674ee76a26a52c8b762dc29ec88bc83fe4aa5c18cad5bc
Stable URL of this page
https://metraipolis.com/documento/dc_0494a7447e06

How to cite

Djinnlang: Higher-Level Programming by Unambiguous Specification with an LLM in the Compiler — arXiv:2609.23954 — arXiv (en), https://arxiv.org/abs/2609.23954 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_0494a7447e06 (Metraipolis archive dc_0494a7447e06, sha256 2d1c94b7dee2792eb1674ee76a26a52c8b762dc29ec88bc83fe4aa5c18cad5bc)
BibTeX
@misc{dc0494a7447e06,
  title = {Djinnlang: Higher-Level Programming by Unambiguous Specification with an LLM in the Compiler — arXiv:2609.23954},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.23954},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_0494a7447e06; sha256 2d1c94b7dee2792eb1674ee76a26a52c8b762dc29ec88bc83fe4aa5c18cad5bc},
  year = {2026}
}

Archived text

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

Programmers write formal specifications, and LLMs implement them, proving that each implementation matches its spec. Taken to its extreme, this makes specification languages the new programming languages. We argue that an unambiguity constraint is key: in addition to proving that its implementation satisfies the specification, the LLM must also prove that any other implementation satisfying it must produce the same outputs on the same inputs, i.e. that the relation formed by the constraints is deterministic. This leaves the LLM no leeway on program semantics: as with a conventional compiler, the generated code never needs to be read and can be regenerated from the spec at any time. Under this constraint and with a powerful LLM, the difference between a specification language and a programming language becomes essentially meaningless, and the LLM essentially becomes a part of the compiler toolchain. The arrangement doubles as a strong form of AI control: an untrusted model writes the code, yet its work is tightly checked by a verifier. To demonstrate that our LLM-in-the-compiler paradigm is feasible when supported by our unambiguity constraint, we present Djinnlang, a high-level specification language built for this future. A Djinnlang program consists only of specifications --- the programmer never writes executable code. In place of a traditional compiler, a symbolic translator lowers each spec to Dafny stubs and proof obligations, and a driver harness orchestrates an LLM that fills in implementations and proofs, all checked by the Dafny verifier. We evaluate our language and implementation on multiple examples and we show that it is self-hosting: an LLM can implement the Djinnlang translator from its specification and the reimplementation can verify itself.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-22 in cs.SE).
Categorie arXiv: Programming Languages (cs.PL) ; Artificial Intelligence (cs.AI); Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2609.23954 — 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-09T07:08:15.285Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-22?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).