计算机科学 > 程序设计语言
[提交于 2026年9月26日 (v1),最后修订于 2026年11月20日 (此版本, v2)]
标题:Multi-language Program Logics (Extended Version)
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Alexander Loitzl[v1] 2026年9月26日 星期六 19:00:58 UTC (106 KB)
[v2] 2026年11月20日 星期五 15:18:55 UTC (117 KB)