Lune

ASPLOS2023顶会

Compiling Distributed System Models with PGo

A. Finn Hackett, Shayan Hosseini, Renato Costa, Matthew Do, Ivan Beschastnikh

摘要

Distributed systems are difficult to design and implement correctly. In response, both research and industry are exploring applications of formal methods to distributed systems. A key challenge in this domain is the missing link between the formal design of a system and its implementation. Today, practitioners bridge this link through manual effort.

We present a language called Modular PlusCal (MPCal) that extends PlusCal by cleanly separating the model of a system from a model of its environment. We then present a compiler tool-chain called PGo that automatically translates MPCal models to TLA + for model checking, and that also compiles MPCal models to runnable Go code. PGo provides system designers with a new ability to model and check their designs, and then re-use their modeling efforts to mechanically extract runnable implementations of their designs.

Our evaluation shows that the PGo approach works for complex models: we model check, compile, and evaluate the performance of MPCal systems based on Raft, CRDTs, and primary-backup. Compared to previous work, PGo requires less time to develop a checked model and derive a fully working implementation. With PGo we created a formally checked Raft model and its corresponding implementation in under 1 person-month, which is 3× less time than Ivy. Our evaluation shows that a PGo-based Raft KV store with three nodes has 41% higher throughput than a Raft KV store based on Ivy, the highest performing verified Raft-based KV store from related work. A PGo-based CRDT set has a latency within 2× of a CRDT set implementation from SoundCloud called Roshi.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • DuoAI: Fast, Automated Inference of Inductive Invariants for Verifying Distributed Protocols 引用了 Finding Invariants of Distributed Systems: It's a Small (Enough) World After All
  • DuoAI: Fast, Automated Inference of Inductive Invariants for Verifying Distributed Protocols 引用了 DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols
  • DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols 引用了 Finding Invariants of Distributed Systems: It's a Small (Enough) World After All
  • Multi-Grained Specifications for Distributed System Model Checking and Verification 引用了 Finding Invariants of Distributed Systems: It's a Small (Enough) World After All
  • Multi-Grained Specifications for Distributed System Model Checking and Verification 引用了 DuoAI: Fast, Automated Inference of Inductive Invariants for Verifying Distributed Protocols
  • Multi-Grained Specifications for Distributed System Model Checking and Verification 引用了 DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols
  • Multi-Grained Specifications for Distributed System Model Checking and Verification 引用了 Model Checking Guided Testing for Distributed Systems
  • Multi-Grained Specifications for Distributed System Model Checking and Verification 引用了 Using Lightweight Formal Methods to Validate a Key-Value Storage Node in Amazon S3
  • SandTable: Scalable Distributed System Model Checking with Specification-Level State Exploration 引用了 Model Checking Guided Testing for Distributed Systems
  • SandTable: Scalable Distributed System Model Checking with Specification-Level State Exploration 引用了 Using Lightweight Formal Methods to Validate a Key-Value Storage Node in Amazon S3
  • Model Checking Guided Testing for Distributed Systems 引用了 Understanding and Detecting Software Upgrade Failures in Distributed Systems
  • Smart Casual Verification of the Confidential Consortium Framework 引用了 SandTable: Scalable Distributed System Model Checking with Specification-Level State Exploration
  • Smart Casual Verification of the Confidential Consortium Framework 引用了 Model Checking Guided Testing for Distributed Systems
  • Smart Casual Verification of the Confidential Consortium Framework 引用了 Using Lightweight Formal Methods to Validate a Key-Value Storage Node in Amazon S3
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. Model Checking Guided Testing for Distributed SystemsDong Wang, Wensheng Dou, Yu Gao, Chenao Wu 等EuroSys 2023 · 21 次引用
  2. Smart Casual Verification of the Confidential Consortium FrameworkHeidi Howard, Markus A. Kuppe, Edward Ashton, Amaury Chamayou 等NSDI 2025 · 13 次引用
  3. SandTable: Scalable Distributed System Model Checking with Specification-Level State ExplorationRuize Tang, Xudong Sun, Yu Huang, Yuyang Wei 等EuroSys 2024 · 8 次引用
  4. Multi-Grained Specifications for Distributed System Model Checking and VerificationLingzhi Ouyang, Xudong Sun, Ruize Tang, Yu Huang 等EuroSys 2025 · 4 次引用
  5. ProfiX: Improving Profile-Guided Optimization in Compilers with Graph Neural NetworksHuiri Tan, Juyong Jiang, Jiasi ShenNeurIPS 2025 · 4 次引用

它引用的 Paper11

  1. DistAI: Data-Driven Automated Invariant Learning for Distributed ProtocolsJianan Yao, Runzhou Tao, Ronghui Gu, Jason Nieh 等OSDI 2021 · 76 次引用
  2. Finding Invariants of Distributed Systems: It's a Small (Enough) World After AllTravis Hance, Marijn Heule, Ruben Martins, Bryan ParnoNSDI 2021 · 69 次引用
  3. Using Lightweight Formal Methods to Validate a Key-Value Storage Node in Amazon S3James Bornholt, Rajeev Joshi, Vytautas Astrauskas, Brendan Cully 等SOSP 2021 · 63 次引用
  4. DuoAI: Fast, Automated Inference of Inductive Invariants for Verifying Distributed ProtocolsJianan Yao, Runzhou Tao, Ronghui Gu, Jason NiehOSDI 2022 · 50 次引用
  5. Understanding and Detecting Software Upgrade Failures in Distributed SystemsYongle Zhang, Junwen Yang, Zhuqi Jin, Utsav Sethi 等SOSP 2021 · 40 次引用

相关 Paper

  1. TraceLinking Implementations with Their Verified DesignsFinn Hackett, Ivan BeschastnikhOOPSLA 2025 · 1 次引用
  2. AutoMan: Facilitating Verified Distributed Systems Development Through Automatic Code Generation and Manual OptimizationsZihao Zhang, Ti Zhou, Christa Jenkins, Omar Chowdhury 等SOSP 2025 · 2 次引用
  3. Grove: a Separation-Logic Library for Verifying Distributed SystemsUpamanyu Sharma, Ralf Jung, Joseph Tassarotti, M. Frans Kaashoek 等SOSP 2023 · 18 次引用
  4. Performal: Formal Verification of Latency Properties for Distributed SystemsTony Nuda Zhang, Upamanyu Sharma, Manos KapritsosPLDI 2023 · 4 次引用
  5. Verifying a high-performance distributed transaction system using permissioned state machinesYun-Sheng Chang, Joseph Tassarotti, Frans Kaashoek, Nickolai ZeldovichSOSP 2026
黄昏的海面,两侧是细线勾勒的悬崖