Metraipolis › archive › dc_a73711ab1dbb
Garlene: Guarded Recursion in Lean — arXiv:2609.24345
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.24345
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-09T22:41:04.955Z
- SHA-256 of the archived text
9b23aa24bae67af27e6cd142b0758cde74f0501d7003ef9b9091e9bc5751856b- Stable URL of this page
https://metraipolis.com/documento/dc_a73711ab1dbb
How to cite
Garlene: Guarded Recursion in Lean — arXiv:2609.24345 — arXiv (en), https://arxiv.org/abs/2609.24345 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a73711ab1dbb (Metraipolis archive dc_a73711ab1dbb, sha256 9b23aa24bae67af27e6cd142b0758cde74f0501d7003ef9b9091e9bc5751856b)
BibTeX
@misc{dca73711ab1dbb,
title = {Garlene: Guarded Recursion in Lean — arXiv:2609.24345},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.24345},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a73711ab1dbb; sha256 9b23aa24bae67af27e6cd142b0758cde74f0501d7003ef9b9091e9bc5751856b},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.24345. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Extending the recursion principles of a formal system is an enticing but dangerous endeavour with a well-documented history of leading to consistency bugs. Nakano's guarded recursion is an elegant, type-based approach to soundly extend type theory with a powerful recursion principle. This makes guarded recursion useful for many applications, from programming with infinite structures such as streams to reasoning about advanced programming language features using synthetic guarded domain theory. Sadly, guarded recursion is not directly supported by any major interactive theorem prover, which leaves users of guarded recursion with unmechanised pen-and-paper proofs or mechanisations that depend on unmaintained theorem provers. In this paper, we present an implementation of guarded recursion as an embedded language in Lean consisting of a simply-typed lambda calculus for definitions and a higher-order logic for reasoning. Using Lean's excellent support for metaprogramming, our language allows users to write guarded recursive definitions in an intuitive syntax and to prove properties about them using a dedicated proof mode. We give our language a presheaf model, which we use to prove the soundness of our language and to allow users to export guarded recursive definitions and their theorems into standard Lean developments. To demonstrate the usefulness of our language, we present several case studies for programming and reasoning with guarded recursion. Tema degli esploratori: matematica e informatica teorica (retro-catalogo arXiv: annunci del 2026-09-22 in cs.LO). Categorie arXiv: Logic in Computer Science (cs.LO) ; Programming Languages (cs.PL). Pagina del lavoro: https://arxiv.org/abs/2609.24345 — 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-09T22:24:26.648Z dalla pagina https://arxiv.org/catchup/cs.LO/2026-09-22?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).