Multi-language Program Logics (Extended Version)
Alexander Loitzl, Niklas Mück, Michael Sammler
Abstract
Real-world programs are rarely written in a single language: For example, C programs call assembly routines, and high-level languages like OCaml link with low-level C libraries. Yet program logics---one of the most successful techniques for modular program verification---almost exclusively target single-language programs. We present Hotpot, the first framework for building multi-language program logics. Hotpot enables compilation-independent, cross-language reasoning about languages with heterogeneous views of shared state. Hotpot rests on four key ideas: abstract calls to specify calls to unknown functions, lanes and the switching modality to move between languages inside the program logic, uniform integration of refinement reasoning via lanes, and exchanges to translate between separation logic assertions of different languages. We demonstrate that Hotpot allows reusing specifications across implementations in different languages, supports reasoning about higher-order cross-language function calls, and integrates with verified compilation. Hotpot is built on top of Iris and DimSum and mechanized in the Rocq Prover.
Create a lesson
Related papers
Type-Directed Discretization of Probabilistic Programs (Extended Version)
Shared title terminology · Katherine Wu, Jules Jacobs, Kevin Batz et al.
Inferring Empirical Sound Resource Bounds via Symbolic Execution and Linear Programming (Extended Version)
Shared title terminology · Samuel Frontull, Manuel Meitinger, Georg Moser
Statically Typed Purely Functional Definitional Interpreters for Essentials of Programming Languages
Shared title terminology · Kwanghoon Choi
Agent-Native by Design: A Programming Language for Agentic Applications
Shared title terminology · Jayanaka Dantanarayana, Savini Kashmira, Xiaoyu Ma et al.
Meta Build Systems as Logic Programs
Shared title terminology · Alex Reinking
TauLang: A Language and Compiler for Space-Time Programming on Statically Scheduled Accelerators
Shared title terminology · Xuxiao Yang, Junchi Wu, Yuqi Peng et al.