Fully Composable and Adequate Verified Compilation with Direct Refinements between Open Modules
Ling Zhang, Yuting Wang, Jinhua Wu, Jérémie Koenig, Zhong Shao
摘要
Verified compilation of open modules (i.e., modules whose functionality depends on other modules) provides a foundation for end-to-end verification of modular programs ubiquitous in contemporary software. However, despite intensive investigation in this topic for decades, the proposed approaches are still difficult to use in practice as they rely on assumptions about the internal working of compilers which make it difficult for external users to apply the verification results. We propose an approach to verified compositional compilation without such assumptions in the setting of verifying compilation of heterogeneous modules written in first-order languages supporting global memory and pointers. Our approach is based on the memory model of CompCert and a new discovery that a Kripke relation with a notion of memory protection can serve as a uniform and composable semantic interface for the compiler passes. By absorbing the rely-guarantee conditions on memory evolution for all compiler passes into this Kripke Memory Relation and by piggybacking requirements on compiler optimizations onto it, we get compositional correctness theorems for realistic optimizing compilers as refinements that directly relate native semantics of open modules and that are ignorant of intermediate compilation processes. Such direct refinements support all the compositionality and adequacy properties essential for verified compilation of open modules. We have applied this approach to the full compilation chain of CompCert with its Clight source language and demonstrated that our compiler correctness theorem is open to composition and intuitive to use with reduced verification complexity through end-to-end verification of non-trivial heterogeneous modules that may freely invoke each other (e.g., mutually recursively).
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SECOMP: Formally Secure Compilation of Compartmentalized C Programs 引用了 CompCertM: CompCert with C-assembly linking and lightweight modular verification
- Choice Trees: Representing Nondeterministic, Recursive, and Impure Programs in Coq 引用了 Interaction trees: representing recursive and impure programs in Coq
- Choice Trees: Representing Nondeterministic, Recursive, and Impure Programs in Coq 引用了 Promising 2.0: global optimizations in relaxed memory concurrency
- Unifying Compositional Verification and Certified Compilation with a Three-Dimensional Refinement Algebra 引用了 Conditional Contextual Refinement
- Unifying Compositional Verification and Certified Compilation with a Three-Dimensional Refinement Algebra 引用了 CompCertM: CompCert with C-assembly linking and lightweight modular verification
- Pyrosome: Verified Compilation for Modular Metatheory 引用了 Interaction trees: representing recursive and impure programs in Coq
- Let It Flow: A Formally Verified Compilation Framework for Asynchronous Dataflow 引用了 Interaction trees: representing recursive and impure programs in Coq
- Let It Flow: A Formally Verified Compilation Framework for Asynchronous Dataflow 引用了 CompCertM: CompCert with C-assembly linking and lightweight modular verification
- CRIS: The Power of Imagination in Hybrid Verification 引用了 Unifying Compositional Verification and Certified Compilation with a Three-Dimensional Refinement Algebra
- CRIS: The Power of Imagination in Hybrid Verification 引用了 Conditional Contextual Refinement
- CRIS: The Power of Imagination in Hybrid Verification 引用了 Interaction trees: representing recursive and impure programs in Coq
- Conditional Contextual Refinement 引用了 Interaction trees: representing recursive and impure programs in Coq
- Conditional Contextual Refinement 引用了 CompCertM: CompCert with C-assembly linking and lightweight modular verification
引用它的顶会 Paper6
- Unifying Compositional Verification and Certified Compilation with a Three-Dimensional Refinement AlgebraYu Zhang, Jérémie Koenig, Zhong Shao, Yuting WangPOPL 2025 · 2 次引用
- SECOMP: Formally Secure Compilation of Compartmentalized C ProgramsJérémy Thibault, Roberto Blanco, Dongjae Lee, Sven Argo 等CCS 2024 · 1 次引用
- Let It Flow: A Formally Verified Compilation Framework for Asynchronous DataflowZhengyao Lin, Yi Cai, Milijana SurbatovichPLDI 2026 · 1 次引用
- Pyrosome: Verified Compilation for Modular MetatheoryDustin Jamner, Gabriel Kammer, Ritam Nag, Adam ChlipalaOOPSLA 2025
- CRIS: The Power of Imagination in Hybrid VerificationYonghee Kim, Taeyoung Yoon, Sanghyun Yi, Jaehyung Lee 等PLDI 2026
它引用的 Paper10
- Interaction trees: representing recursive and impure programs in CoqLi-yao Xia, Yannick Zakowski, Paul He, Chung-Kil Hur 等POPL 2020 · 133 次引用
- CompCertM: CompCert with C-assembly linking and lightweight modular verificationYoungju Song, Minki Cho, Dongjoo Kim, Yonghyun Kim 等POPL 2020 · 49 次引用
- Promising 2.0: global optimizations in relaxed memory concurrencySung-Hwan Lee, Minki Cho, Anton Podkopaev, Soham Chakraborty 等PLDI 2020 · 48 次引用
- Conditional Contextual RefinementYoungju Song, Minki Cho, Dongjae Lee, Chung-Kil Hur 等POPL 2023 · 29 次引用
- Choice Trees: Representing Nondeterministic, Recursive, and Impure Programs in CoqNicolas Chappe, Paul He, Ludovic Henrio, Yannick Zakowski 等POPL 2023 · 21 次引用
相关 Paper
- CompCertOC: Verified Compositional Compilation of Multi-threaded Programs with Shared StacksLing Zhang, Yuting Wang, Yalun Liang, Zhong ShaoPLDI 2025
- CompCertELF: verified separate compilation of C programs into ELF object filesYuting Wang, Xiangzhe Xu, Pierre Wilke, Zhong ShaoOOPSLA 2020 · 26 次引用
- Verified compilation of C programs with a nominal memory modelYuting Wang, Ling Zhang, Zhong Shao, Jérémie KoenigPOPL 2022 · 6 次引用
- Certified and efficient instruction scheduling: application to interlocked VLIW processorsCyril Six, Sylvain Boulmé, David MonniauxOOPSLA 2020 · 21 次引用
- Archmage and CompCertCast: End-to-End Verification Supporting Integer-Pointer CastingYonghyun Kim, Minki Cho, Jaehyung Lee, Jinwoo Kim 等POPL 2025 · 1 次引用
