Formal certification of a compiler back-end or: programming a compiler with a proof assistant
The DOI matches its Crossref record; 20 of the 20 references it cites were found in a registry or an index.
Abstract
This paper reports on the development and formal certification (proof of semantic preservation) of a compiler from Cminor (a C-like imperative language) to PowerPC assembly code, using the Coq proof assistant both for programming the compiler and for proving its correctness. Such a certified compiler is useful in the context of formal methods applied to the certification of critical software: the certification of the compiler guarantees that the safety properties proved on the source code hold for the executable compiled code as well.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Necula, G. C. (1997) · Proceedings of the 24th ACM SIGPLAN-SIGACT symposium on Principles of programming languages - POPL '97 · doi:10.1145/263699.263712 · Cited by 2,119
Interactive Theorem Proving and Program Development
Bertot, Y., & Castéran, P. (2004) · Texts in Theoretical Computer Science An EATCS Series · doi:10.1007/978-3-662-07964-5 · Cited by 1,353
Castéran, P., & Bertot, Y. (2004) · HAL (Le Centre pour la Communication Scientifique Directe) · Cited by 1,084
Register allocation & spilling via graph coloring
Chaitin, G. J. (1982) · ACM SIGPLAN Notices · doi:10.1145/872726.806984 · Cited by 767
Register allocation & spilling via graph coloring
Chaitin, G. J. (1982) · Proceedings of the 1982 SIGPLAN symposium on Compiler construction - SIGPLAN '82 · doi:10.1145/800230.806984 · Cited by 666
From system F to typed assembly language
Morrisett, G., Walker, D., Crary, K., & Glew, N. (1999) · ACM Transactions on Programming Languages and Systems · doi:10.1145/319301.319345 · Cited by 584
Pnueli, A., Siegel, M., & Singerman, E. (1998) · Lecture Notes in Computer Science · doi:10.1007/bfb0054170 · Cited by 499
Translation validation for an optimizing compiler
Necula, G. C. (2000) · Proceedings of the ACM SIGPLAN 2000 conference on Programming language design and implementation · doi:10.1145/349299.349314 · Cited by 488
A machine-checked model for a Java-like language, virtual machine, and compiler
Klein, G., & Nipkow, T. (2006) · ACM Transactions on Programming Languages and Systems · doi:10.1145/1146809.1146811 · Cited by 246
Automated soundness proofs for dataflow analyses and transformations via local rules
Lerner, S., Millstein, T. D., Rice, E., & Chambers, C. (2005) · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · doi:10.1145/1040305.1040335 · Cited by 152
Cited by
seL4: formal verification of an OS kernel
Klein, G., Elphinstone, K., Heiser, G., Andronick, J., Cock, D., Derrin, P., Elkaduwe, D., Engelhardt, K., Kolanski, R., Norrish, M., et al. (2009) · Proceedings of the ACM SIGOPS 22nd symposium on Operating systems principles · doi:10.1145/1629575.1629596 · Cited by 2,303
Formal verification of a realistic compiler
Leroy, X. (2009) · Communications of the ACM · doi:10.1145/1538788.1538814 · Cited by 1,187
Self-citationA Formally Verified Compiler Back-end
Leroy, X. (2009) · Journal of Automated Reasoning · doi:10.1007/s10817-009-9155-4 · Cited by 503
Self-citationUnikernels: library operating systems for the cloud
Madhavapeddy, A., Mortier, R., Rotsos, C., Scott, D., Singh, B., Gazagnaire, T., Smith, S., Hand, S., & Crowcroft, J. (2013) · Proceedings of the eighteenth international conference on Architectural support for programming languages and operating systems · doi:10.1145/2451116.2451167 · Cited by 400
Compiler validation via equivalence modulo inputs
Le, V., Afshari, M., & Su, Z. (2014) · Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/2594291.2594334 · Cited by 388
“Compiler Testing The most directly related is compiler testing, which remains the dominant technique for validating production compilers in practice.”
BackgroundMethodInfluentialComprehensive formal verification of an OS microkernel
Klein, G., Andronick, J., Elphinstone, K., Murray, T., Sewell, T., Kolanski, R., & Heiser, G. (2014) · ACM Transactions on Computer Systems · doi:10.1145/2560537 · Cited by 348
A FORMAL PROOF OF THE KEPLER CONJECTURE
HALES, T., ADAMS, M., BAUER, G., DANG, T. D., HARRISON, J., HOANG, L. T., KALISZYK, C., MAGRON, V., MCLAUGHLIN, S., NGUYEN, T. T., et al. (2017) · Forum of Mathematics, Pi · doi:10.1017/fmp.2017.1 · Cited by 342
seL4: formal verification of an operating-system kernel
Klein, G., Andronick, J., Elphinstone, K., Heiser, G., Cock, D., Derrin, P., Elkaduwe, D., Engelhardt, K., Kolanski, R., Norrish, M., et al. (2010) · Communications of the ACM · doi:10.1145/1743546.1743574 · Cited by 299
A Machine-Checked Proof of the Odd Order Theorem
Gonthier, G., Asperti, A., Avigad, J., Bertot, Y., Cohen, C., Garillot, F., Le Roux, S., Mahboubi, A., O’Connor, R., Ould Biha, S., et al. (2013) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-39634-2_14 · Cited by 290
Formal certification of code-based cryptographic proofs
Barthe, G., Grégoire, B., & Zanella Béguelin, S. (2009) · Proceedings of the 36th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1480881.1480894 · Cited by 268
Aydemir, B., Charguéraud, A., Pierce, B. C., Pollack, R., & Weirich, S. (2008) · Proceedings of the 35th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1328438.1328443 · Cited by 216
“However, despite several successful tours de force (Appel 2001; Crary 2003; Klein and Nipkow 2006; Leroy 2006; Lee et al. 2007, etc.), the community remains fragmented, with little synergy between groups and, for newcomers wanting to join the game, a perplexing array of choices between different…”
BackgroundBehavioral interface specification languages
Hatcliff, J., Leavens, G. T., Leino, K. R. M., Müller, P., & Parkinson, M. (2012) · ACM Computing Surveys · doi:10.1145/2187671.2187678 · Cited by 178
“For instance, the functional speci.cation of a compiler includes a speci.cation of the syntax of the source and target language, of the semantics of both languages, and of the translation function [Leroy 2006].”
Finding compiler bugs via live code mutation
Sun, C., Le, V., & Su, Z. (2016) · Proceedings of the 2016 ACM SIGPLAN International Conference on Object-Oriented Programming, Systems, Languages, and Applications · doi:10.1145/2983990.2984038 · Cited by 168
“The main compiler validation techniques include formal verification [12, 13], translation validation [22, 24], and random testing [4, 9–11 , 35].”
MethodFormal Verification of a C-like Memory Model and Its Uses for Verifying Program Transformations
Leroy, X., & Blazy, S. (2008) · Journal of Automated Reasoning · doi:10.1007/s10817-008-9099-0 · Cited by 159
“The memory model presented here is used in the formal verification of the Compcert compiler [3, 15], a moderately-optimizing compiler that translates the Clight subset of the C programming language down to PowerPC assembly code.”
MethodSelf-citationIndustrial Use of Formal Methods for a High-Level Security Evaluation
Chetali, B., & Nguyen, Q.-H. (2008) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-68237-0_15 · Cited by 21
A theory of platform-dependent low-level software
Nita, M., Grossman, D., & Chambers, C. (2008) · Proceedings of the 35th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1328438.1328465 · Cited by 16
Metadata
- Authors
- Leroy, X.
- Venue
- Conference record of the 33rd ACM SIGPLAN-SIGACT symposium on Principles of programming languages
- Publisher
- ACM
- Published
- 2006-01-11
- Pages
- 42-54
- OpenAlex
- W2129695855
- Cited by
- 661
- References
- 20
- FWCI
- 43.94
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.