Huber, Nikolaus and Perera, Roly and Orchard, Dominic (2026) Python Code Generation for Isabelle/HOL. [Preprint] (doi:10.48550/arXiv.2611.22613) (The full text of this publication is not currently available from this repository. You may be able to access a copy if URLs are provided) (KAR id:118138)
| The full text of this publication is not currently available from this repository. You may be able to access a copy if URLs are provided. | |
| Official URL: https://doi.org/10.48550/arXiv.2611.22613 |
|
Abstract
The Isabelle theorem prover provides an environment for formalising mathematics and reasoning about programs. To make verified implementations practically usable, its code generator translates functions expressed in the executable fragment of its logic into conventional programming languages. Its targets have traditionally been functional languages (Standard ML, OCaml, Haskell, and Scala), recently joined by Go. Python, which is becoming the dominant language of scientific computing, data science, and education, has remained out of reach. In this work, we close this gap with a Python backend for Isabelle's code generator. This generator enables verified algorithms to be used in Python applications, or to serve as verified references against which established Python libraries can be differentially tested, without leaving the Python ecosystem. We validate the backend on regression suites covering large parts of the HOL library and by testing six verified data structures and algorithms against established Python libraries. The generated code is slower than hand-written libraries, but well suited as a verified reference.
| Item Type: | Preprint |
|---|---|
| DOI/Identification number: | 10.48550/arXiv.2611.22613 |
| Refereed: | No |
| Other identifier: | https://arxiv.org/abs/2611.22613 |
| Name of pre-print platform: | arXiv |
| Uncontrolled keywords: | Isabelle/HOL, code generation, Python, interactive theorem proving, differential testing |
| Subjects: | Q Science > QA Mathematics (inc Computing science) |
| Institutional Unit: | Schools > School of Computing |
| Former Institutional Unit: |
There are no former institutional units.
|
| Funders: | University of Kent (https://ror.org/00xkeyj56) |
| Depositing User: | Ian Badger |
| Date Deposited: | 26 Nov 2026 10:43 UTC |
| Last Modified: | 30 Nov 2026 10:06 UTC |
| Resource URI: | https://kar.kent.ac.uk/id/eprint/118138 (The current URI for this page, for reference purposes) |
- Export to:
- RefWorks
- EPrints3 XML
- BibTeX
- CSV
- Depositors only (login required):

https://orcid.org/0000-0002-7058-7842
Altmetric
Altmetric