In Search of a Compositional Theory of Self-Stabilization

Murat · 2026年9月21日

AI 摘要 AI 生成,可能有误

作者在为亚稳态故障寻找一种有原则的解决方案时,重新审视了自稳定化,并研究了一篇2017年关于参数化假设-保证契约的控制理论论文;该论文提供了一种将组件承诺表示为按环境恶劣程度索引的契约族的方法,但其小增益定理依赖于无记忆的输入-输出视角,无法刻画积压或非线性、多队列组件。将该方法应用于具有两个耦合队列的重试风暴模型时,作者表明,仅考虑非对角耦合增益会让人以为系统是稳定的(乘积 ≈ 0.1),但包含对角“记忆”项的完整线性稳定性分析却揭示出 1.19 的主导乘子,从而解释了系统的不稳定性。这一分析还澄清了一些已知的修复方法:重试预算或新请求优先的服务策略消除了一个耦合项并恢复了稳定性,而队列上限只能约束发散,使系统停留在亚稳态。

My quest for a principled solution for metastable failures has taken me back to my roots on self-stabilization, as this recent paper related the problem to composition of self-stabilizing systems. But, my literature search for recent work on composing self-stabilizing systems didn't yield anything useful. The layered stabilization idea was already in place by the early 2000s, and nothing fundamental seems to have been added since. Frustrating.

So I decided to attack the problem using the concrete example I have. I had composed a rely-guarantee TLA+ model of a retry storm as two components with contracts. That model reproduces metastable failure because the composition that worked from good states failed to work when a large shock removes the base case that let the two conditions hold each other up.

Searching for  rely-guarantee based composition from every state, turned up a 2017 control theory paper by Kim, Arcak and Seshia, "A Small Gain Theorem for Parametric Assume-Guarantee Contracts". This paper does roughly what I want: discharging circular reasoning between two components without layering or blocking. But it comes with some serious limitations. In their formalism, a component is an input-output relation on signals, and contracts relate an input bound to an output bound. This is a memoryless view of a component, so it is not possible to express backlog accumulating from previous rounds. That rules out queues, among other useful distributed systems concepts. It also has no connection to stabilization. The paper does not talk about a variant/potential function and convergence reasoning. But there are still pieces there worth stealing toward a compositional theory of self-stabilization and metastability. Below I try to work this out... somewhat unsuccessfully.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Murat Demirbas

Meaningful Human-in-the-Loop Checking of GenAI Synthesis for Restricted Languages

AI 摘要The article reviews an ECOOP 2026 paper introducing PICK, a human-in-the-loop tool that resolves ambiguity in LLM-generated specifications for restricted languages (regexes, LTL, access-control policies) by deriving multiple candidate formulas, sampling concrete scenarios where the candidates disagree, and asking users to accept or reject them until only the correct candidate survives. Experiments showed PICK substantially improved accuracy over reading formulas directly (e.g., 60–72% versus 22% on regex tasks) and made users more likely to correctly reject all wrong candidates. The author also applies the same idea in reverse to build 'Do you Paxos?', an interactive tutor that teaches correct Paxos by quizzing users on behaviors distinguishing it from common misconceptions.

TLAPS-Bench: Formally Proving Correctness Of Real-World System Specifications With TLA+ Proof System

AI 摘要TLAPS-Bench is a benchmark of 265 proof targets drawn from 95 real-world TLA+ specifications (including etcd Raft, ZooKeeper, and MongoDB transactions), designed to measure how well AI agents can carry the burden of deductive correctness proofs using the TLA+ Proof System. Unlike existing verification benchmarks that provide scaffolding such as helper lemmas or invariants, it hands agents only the spec and target theorem—covering safety, liveness, and refinement properties—and its Tilapia harness supplies proof checking, model checking tools, and anti-cheating guards, notably using a 'falsify before you prove' recipe where TLC and Apalache quickly refute bad candidate invariants. On the 70 hardest targets, the best current model proved 44.3%, leaving substantial room for AI labs to improve agents' formal proof and autoformalization capabilities.

Writing as a thinking tool

AI 摘要The author argues that writing is fundamentally a tool for thinking, likening a human without writing to a finite automaton and one with writing to a Turing machine, and illustrates this with personal experiences from mind maps in school to paper reviews and blogging. They warn that delegating writing to LLMs outsources the very act of thinking, making personal writing a widening comparative advantage. The article closes with five practical rules: produce unrestrained first drafts, edit ruthlessly, keep prose simple and plain, write for yourself without expectations, and put writing on a regular schedule.

TLA-Verus: LLM agents prove temporal properties of TLA+ specs

AI 摘要This article reviews the TLA-Verus paper, which uses LLM agents in a prover-reviewer loop to translate TLA+ specs from GitHub into Verus and prove safety and liveness properties there. The author criticizes the paper for lacking any refinement proof linking the Verus spec back to the original TLA+ (and producing no executable Rust code at all), understating TLAPS's existing temporal proof capabilities, and presenting a skewed corpus and a benchmark filtered to tasks its own pipeline had already proven. Nonetheless, the author finds Verus itself and the paper's automated task generator genuinely useful contributions.

The Man from the Future: Why Johnny Can't Stop Abstracting

AI 摘要The article reviews Ananyo Bhattacharya's biography of John von Neumann, chronicling his early years in Budapest and his foundational contributions to an extraordinary range of fields, including set theory, quantum mechanics, game theory, economics, and computing. The author argues that von Neumann's real superpower was the 'art of abstraction'—reducing messy domains to their minimal objects and axioms, as seen in his rigorous Hilbert space formulation of quantum mechanics, his axiomatization of expected utility, and the stored-program computer architecture he deliberately released into the public domain. The piece also explores his upbringing, including his father's seminar-style dinners and multilingual education, as keys to understanding the 'Johnny phenomenon'.