Metraipolis › archive › dc_d814a3555078

LLVM Translation Validation Automated with Large Language Models and Lean — arXiv:2609.19583

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.19583
License (as archived)
CC0-1.0
Archived
2026-10-10T05:45:31.914Z
SHA-256 of the archived text
aad8515e885a4932d7b2306e9a77ad3e0448e6ce24a76454ce0419aa9f115a27
Stable URL of this page
https://metraipolis.com/documento/dc_d814a3555078

How to cite

LLVM Translation Validation Automated with Large Language Models and Lean — arXiv:2609.19583 — arXiv (en), https://arxiv.org/abs/2609.19583 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d814a3555078 (Metraipolis archive dc_d814a3555078, sha256 aad8515e885a4932d7b2306e9a77ad3e0448e6ce24a76454ce0419aa9f115a27)
BibTeX
@misc{dcd814a3555078,
  title = {LLVM Translation Validation Automated with Large Language Models and Lean — arXiv:2609.19583},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.19583},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d814a3555078; sha256 aad8515e885a4932d7b2306e9a77ad3e0448e6ce24a76454ce0419aa9f115a27},
  year = {2026}
}

Archived text

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

LLVM is the cornerstone of modern compilers, but its subtle intermediate representation (IR) semantics make transformations error-prone and necessitate formal verification. Alive2, a state-of-the-art translation validator based on satisfiability modulo theories, has achieved substantial success in automating the validation of LLVM transformations. However, it still faces scalability limitations, does not support symbolic bitwidths, and offers only bounded guarantees for loops. In contrast, interactive theorem provers such as Lean can address these cases but require substantial proof engineering. In this paper, we present Trivet, a framework combining large language models (LLMs) and Lean for automated translation validation of LLVM transformations. Trivet generates structured proof scaffolds based on source and target functions, automatically discharges obligations amenable to deterministic reasoning, and delegates transformationspecific obligations to LLMs. It produces refinement proofs or counterexample-based refutations, with every successful verdict checked by the Lean kernel. On 148 LLVM transformations, Trivet verifies or refutes 147, leaving one invalid case unresolved. Successful cases include 60 loop-free transformations with symbolic bitwidths, 27 cases from a restricted class of loop-containing transformations, and 10 complex valid fixed-bitwidth cases on which Alive2 times out. Compared with an unscaffolded baseline, scaffolding enables 26 additional proofs. On cases solved by both configurations, it reduces mean proof time by 75.9% and mean monetary cost by 88%.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-18 in cs.PL).
Categorie arXiv: Programming Languages (cs.PL).
Pagina del lavoro: https://arxiv.org/abs/2609.19583 — 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-10T05:15:10.280Z dalla pagina https://arxiv.org/catchup/cs.PL/2026-09-18?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).