Lune

POPL2025顶会

Top-Down or Bottom-Up? Complexity Analyses of Synchronous Multiparty Session Types

Thien Udomsrirungruang, Nobuko Yoshida

摘要

Multiparty session types (MPST) provide a type discipline for ensuring communication safety, deadlockfreedom and liveness for multiple concurrently running participants. The original formulation of MPST takes the top-down approach, where a global type specifies a bird’s eye view of the intended interactions between participants, and each distributed process is locally type-checked against its end-point projection. A more recent one takes the bottom-up approach, where a desired property 𝜑 of a set of participants is ensured if the same property 𝜑 is true for an ensemble of end-point types (a typing context) inferred from each participant. This paper compares these two main procedures of MPST, giving their detailed complexity analyses. To this aim, we build several new algorithms missing from the bottom-up or top-down workflows by using graph representation of session types (type graphs). We first propose a subtyping system based on type graphs, offering more efficient (quadratic) subtype-checking than the existing (exponential) inductive algorithm by Ghilezan et al. Next for the top-down, we measure complexity of the four end-point projections in the literature. For the coinductive projection with full merging, we build a new sound and complete PSPACE-algorithm using type graphs. For bottom-up, we develop a novel type inference system from MPST processes which generates minimum type graphs, succinctly capturing covariance of internal choice and contravariance of external choice. For property-checking of typing contexts, we achieve PSPACE-hardness by reducing it from the quantified Boolean formula (QBF) problem, and build nondeterministic algorithms that search for counterexamples to prove membership in PSPACE. We also present deterministic analogues of these algorithms that run in exponential time. Finally, we calculate the total complexity of the top-down and the bottom-up approaches. Our analyses reveal that the top-down based on global types is more efficient than the bottom-up in many realistic cases; liveness checking for typing contexts in the bottom-up has the highest complexity; and the type inference costs exponential against the size of a process, which impacts the total complexity.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Deadlock-free asynchronous message reordering in rust with multiparty session types 引用了 Precise subtyping for asynchronous multiparty sessions
  • Top-Down = Bottom-Up: Sound and Complete Characterisations of Liveness by Multiparty Global Protocols 引用了 Deadlock-free asynchronous message reordering in rust with multiparty session types
  • Top-Down = Bottom-Up: Sound and Complete Characterisations of Liveness by Multiparty Global Protocols 引用了 Precise subtyping for asynchronous multiparty sessions
  • Top-Down = Bottom-Up: Sound and Complete Characterisations of Liveness by Multiparty Global Protocols 引用了 A Synthetic Reconstruction of Multiparty Session Types
  • Top-Down = Bottom-Up: Sound and Complete Characterisations of Liveness by Multiparty Global Protocols 引用了 Complete Multiparty Session Type Projection with Automata
  • Top-Down = Bottom-Up: Sound and Complete Characterisations of Liveness by Multiparty Global Protocols 引用了 Separation and Encodability in Mixed Choice Multiparty Sessions
  • A Synthetic Reconstruction of Multiparty Session Types 引用了 Complete Multiparty Session Type Projection with Automata
  • A Synthetic Reconstruction of Multiparty Session Types 引用了 Separation and Encodability in Mixed Choice Multiparty Sessions
  • Implementability of Global Distributed Protocols Modulo Network Architectures 引用了 Deadlock-free asynchronous message reordering in rust with multiparty session types
  • Implementability of Global Distributed Protocols Modulo Network Architectures 引用了 Complete Multiparty Session Type Projection with Automata
  • Implementability of Global Distributed Protocols Modulo Network Architectures 引用了 Separation and Encodability in Mixed Choice Multiparty Sessions
  • Separation and Encodability in Mixed Choice Multiparty Sessions 引用了 Complete Multiparty Session Type Projection with Automata
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. Top-Down = Bottom-Up: Sound and Complete Characterisations of Liveness by Multiparty Global ProtocolsKai Pischke, Nobuko YoshidaOOPSLA 2026
  2. A Synthetic Reconstruction of Multiparty Session TypesDavid Castro-Perez, Francisco Ferreira, Sung-Shik JongmansPOPL 2026
  3. Implementability of Global Distributed Protocols Modulo Network ArchitecturesElaine Li, Thomas WiesPLDI 2026

它引用的 Paper4

  1. Deadlock-free asynchronous message reordering in rust with multiparty session typesZak Cutner, Nobuko Yoshida, Martin VassorPPoPP 2022 · 28 次引用
  2. Precise subtyping for asynchronous multiparty sessionsSilvia Ghilezan, Jovanka Pantovic, Ivan Prokic, Alceste Scalas 等POPL 2021 · 26 次引用
  3. Complete Multiparty Session Type Projection with AutomataElaine Li, Felix Stutz, Thomas Wies, Damien ZuffereyCAV 2023 · 17 次引用
  4. Separation and Encodability in Mixed Choice Multiparty SessionsKirstin Peters, Nobuko YoshidaLICS 2024 · 10 次引用

相关 Paper

  1. Hybrid Multiparty Session Types: Compositionality for Protocol Specification through Endpoint ProjectionLorenzo Gheri, Nobuko YoshidaOOPSLA 2023 · 5 次引用
  2. Characterizing Implementability of Global Protocols with Infinite States and DataElaine Li, Felix Stutz, Thomas Wies, Damien ZuffereyOOPSLA 2025 · 2 次引用
  3. Statically verified refinements for multiparty protocolsFangyi Zhou, Francisco Ferreira, Raymond Hu, Rumyana Neykova 等OOPSLA 2020 · 38 次引用
  4. Zooid: a DSL for certified multiparty computation: from mechanised metatheory to certified multiparty processesDavid Castro-Perez, Francisco Ferreira, Lorenzo Gheri, Nobuko YoshidaPLDI 2021 · 25 次引用
  5. Probabilistic Resource-Aware Session TypesAnkush Das, Di Wang, Jan HoffmannPOPL 2023 · 11 次引用
黄昏的海面,两侧是细线勾勒的悬崖