计算机科学 > 程序设计语言
[提交于 2026年10月5日]
标题:A Complete, Formal Semantics for Rust Source Code
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Formally reasoning about Rust programs requires a rigorous formal semantics, especially in the context of deductive verification and concurrent programming. We present a modular, flexible semantics for a significant subset of (close to) source code level Rust, based on the recent locally abstract, globally concrete semantics framework, separating local evaluation of expressions from their composition into concrete traces. The semantics is extended to model Rust's asynchronous programming features and Rust's most popular async runtime, Tokio. Based on our more abstract formalization, we establish the fairness of Tokio's scheduler. Further, we show the applicability of our semantics to deductive verification of Rust by providing soundness proofs for a Rust program logic.
提交历史
来自:Daniel Drodt[v1] 2026年10月5日 星期一 09:00:33 UTC