Journal of Functional Programming · 2021 · 19 citations · 60 references
ComputingComputer ScienceComputer SystemsCompilersOperating SystemsProgramming LanguagesCompiler ConstructionDeductive VerificationType CheckingType SystemsVerificationEquational LogicEquational ReasoningFunctional CorrectnessMemory Safety VerificationProgram VerificationRuntime Code GenerationSafety Verification Of Generated CodeVerified Compilation
Abstract This paper presents a framework aimed at significantly reducing the cost of proving functional correctness for low-level operating systems components. The framework is designed around a new functional programming language, Cogent. A central aspect of the language is its uniqueness type system, which eliminates the need for a trusted runtime or garbage collector while still guaranteeing memory safety, a crucial property for safety and security. Moreover, it allows us to assign two semantics to the language: The first semantics is imperative, suitable for efficient C code generation, and the second is purely functional, providing a user-friendly interface for equational reasoning and verification of higher-level correctness properties. The refinement theorem connecting the two semantics allows the compiler to produce a proof via translation validation certifying the correctness of the generated C code with respect to the semantics of the Cogent source program. We have demonstrated the effectiveness of our framework for implementation and for verification through two file system implementations.
60
Security Policies and Security Models
Joseph A. Goguen, José Meseguer · 1982 · 2.1K citations
Gerwin Klein, Kevin Elphinstone, Gernot Heiser et al. · 2009 · 1.6K citations
Formal verification of a realistic compiler
Xavier Leroy · Communications of the ACM · 2009 · 1.1K citations
Koen Claessen, John Hughes · ACM SIGPLAN Notices · 2011 · 1K citations
An axiomatic proof technique for parallel programs I
Susan Owicki, David Gries · Acta Informatica · 1976 · 1K citations