A Layered Certifying Compiler Architecture
Publication date
2025-10-09
Editors
Young, Jeffrey
Rizkallah, Christine
Advisors
Supervisors
Document Type
Part of book
Metadata
Show full item recordCollections
License
cc_by
Abstract
The formal verification of an optimising compiler for a realistic programming language is no small task. Most verification efforts develop the compiler and its correctness proof hand in hand. Unfortunately, this approach is less suitable for today’s constantly evolving community-developed open-source compilers and languages. This paper discusses an alternative approach to high-assurance compilers, where a separate certifier uses translation validation to assess and certify the correctness of each individual compiler run. It also demonstrates that an incremental, layered architecture for the certifier improves assurance step-by-step and may be developed largely independently from the constantly changing main compiler code base. This approach to compiler correctness is practical, as witnessed by the development of a certifier for the deployed, in-production compiler for the Plinth smart contract language. Furthermore, this paper demonstrates that the use of functional languages in the compiler and proof assistant has a clear benefit: it becomes straightforward to integrate the certifier as an additional check in the compiler itself, leveraging the the Rocq prover’s program extraction.
Keywords
Certified compilation, Compiler correctness, Smart contracts, Translation validation, Hardware and Architecture, Software, Safety, Risk, Reliability and Quality
Citation
Krijnen, J O G, Swierstra, W, Chakravarty, M, Dral, J & Keller, G 2025, A Layered Certifying Compiler Architecture. in J Young & C Rizkallah (eds), FUNARCH 2025 - Proceedings of the 3rd ACM SIGPLAN International Workshop on Functional Software Architecture, Co-located with ICFP/SPLASH 2025. FUNARCH 2025 - Proceedings of the 3rd ACM SIGPLAN International Workshop on Functional Software Architecture, Co-located with ICFP/SPLASH 2025, Association for Computing Machinery, pp. 1-20, 3rd ACM SIGPLAN International Workshop on Functional Software Architecture, FUNARCH 2025, co-located with ICFP/SPLASH 2025, Singapore, Singapore, 12/10/25. https://doi.org/10.1145/3759163.3760427, conference