arXiv:2610.06368cs.LOOct 2026

Manuscript Offprint

arXiv:2610.06368

Decreasing Diagrams are Complete for Confluence

Jörg Endrullis, Ievgen Ivanov, Femke van Raamsdonk

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

JÖRG ENDRULLIS, Vrije Universiteit Amsterdam, The Netherlands

IEVGEN IVANOV, Taras Shevchenko National University of Kyiv, Ukraine

FEMKE VAN RAAMSDONK, Vrije Universiteit Amsterdam, The Netherlands

Confluence is a fundamental property of nondeterministic computations, arising from parallelism, concurrency, or freedom in the evaluation order. It guarantees that such a computation always yields the same result, regardless of the order in which steps are taken. The decreasing diagrams technique of van Oostrom is one of the most versatile methods for establishing confluence of transition systems (abstract rewriting systems). It reduces global confluence to local confluence: a system is confluent whenever its transitions admit a locally decreasing labeling. Essentially all classical confluence criteria arise as corollaries.

A central question, posed by van Oostrom in 1993, asks whether the decreasing diagrams technique is complete: Does every confluent transition system admit a locally decreasing labeling? This is Problem 56 of the RTA List of Open Problems. A positive answer was known only for countable systems, and recently up to the first uncountable cardinal ℵ1\aleph_{1}. The general case remained open.

We settle this thirty-three-year-old problem in full. We prove that every confluent transition system admits a locally decreasing labeling using only three labels. This bound is optimal, as two labels do not suffice even at the first uncountable cardinality. It follows that this single criterion can, in principle, certify the confluence of every confluent system, and hence of every confluent program. The entire development is machine-checked in the Isabelle/HOL and Lean proof assistants and relies only on classical logic and the axiom of choice.

CCS Concepts: • Theory of computation → Equational logic and rewriting.

Additional Key Words and Phrases: confluence, decreasing diagrams, Church–Rosser, abstract rewriting

Dedicated to the memory of Jan Willem Klop (1945–2025), dear friend and colleague, and a founder of the theory of term rewriting, for whom the completeness of decreasing diagrams was a favourite open problem.

1 Introduction

Confluence, also known as the Church–Rosser property, is of central importance to the theory of computation. A transition system ⟨S,→⟩\langle S, \rightarrow \rangle, where →\rightarrow is a binary relation on a set of states SS, is confluent if two finite computations from a common state can always be brought back together: ⟸⋅→⊆→⋅↔\Longleftarrow \cdot \rightarrow \subseteq \rightarrow \cdot \leftrightarrow, or equivalently

Figure

A confluent nondeterministic system is deterministic in its results: despite any possible parallelism, concurrency, freedom in the evaluation order, or nondeterministic choices in such a system, all terminating computations that begin in the same state yield the same outcome.

Confluence is load-bearing in the meta-theory behind programming languages and verification. The Church–Rosser theorem for the λ\lambda-calculus underpins the determinacy of the evaluation of functional programs, and the consistency of equational reasoning about them [5, 9], justifies lazy

Authors' Contact Information: Jörg Endrullis, Vrije Universiteit Amsterdam, Amsterdam, The Netherlands, j.endrullis@vu.nl; Ievgen Ivanov, Taras Shevchenko National University of Kyiv, Kyiv, Ukraine, ivanov.eugen@gmail.com; Femke van Raamsdonk, Vrije Universiteit Amsterdam, Amsterdam, The Netherlands, f.van.raamsdonk@vu.nl.

Endrullis, Ivanov, and van Raamsdonk

and optimal evaluation strategies [3, 37], and makes type checking decidable in dependently typed languages [49]. Beyond the λ\lambda-calculus, confluence separates genuine nondeterminism from mere interleaving [38, 46], governs the convergence of replicated data [7, 47] and state-space reduction in model checking [6], and is a correctness criterion for constraint solvers [1] and Knuth–Bendix completion [34].

Concurrent and distributed programs are a prime source of confluence questions, since a program induces a transition system on its states whose confluence can be subtle. As a small example, take two processes computing greatest common divisors over shared variables:

GCD(A,B)∥GCD(B,C),\mathrm{GCD}(A,B)\parallel\mathrm{GCD}(B,C),

each process repeatedly comparing its two operands and replacing the larger by their difference. Here ∥\parallel denotes parallel composition under an interleaving semantics: a computation is any interleaving of the steps of the two processes, which interfere through the shared variable B. Whether this system is confluent is subtle, and depends on the granularity of its steps. If each comparison-and-update is one atomic step — for instance, guarded by a lock on the two operands — then the system is confluent with the unique result A=B=C=gcd⁡(A,B,C)A = B = C = \gcd(A, B, C). If instead the comparison and the assignment are two separate steps, the system is not confluent as a consequence of lost updates through stale reads. The outcome then depends on the schedule. Confluence is thus a subtle property, and reasoning about it soundly calls for rigorous, formal methods.

Confluence is most elegantly studied at the abstract level of transition systems, also called abstract rewriting systems [31, 50]; criteria proved there apply uniformly to every concrete system that instantiates them. Henrio et al. [21] have recently demonstrated that abstract confluence methods — in particular van Oostrom's decreasing diagrams and de Bruijn's weak diamond property [10] — can be employed fruitfully to prove confluence of actual programs: they mechanize de Bruijn's weak diamond method in the Rocq proof assistant and use it to establish confluence of programs in an actor language. Decreasing diagrams are equally central to the automated confluence analysis of rewriting systems, where they underlie the rule-labeling criteria of provers such as CSI [57]; confluence is, indeed, a highly active research area, with an annual International Workshop on Confluence and Confluence Competition [39]. These are precisely the methods studied in the present paper, and completeness of the method means that, in principle, this single technique can certify the confluence of every confluent program.

Because confluence is undecidable for many classes of systems, a rich arsenal of sufficient criteria for confluence has been developed: Newman’s lemma [41], the Hindley–Rosen lemma [22, 45], Huet’s strong confluence [26], and many others [31, 50]. The most versatile of these are de Bruijn’s weak diamond property [10] and van Oostrom’s decreasing diagrams technique [54, 55]. Both infer global confluence from local peaks alone, by labeling the rewrite steps with elements of a well-founded order and constraining, through these labels, how each peak may be joined. The two criteria are in fact equal in strength [15], yet decreasing diagrams are often more convenient to apply: they replace de Bruijn’s total order and asymmetric peak condition with a partial order and a single symmetric diagram (Figure 1). 1^{1} A system whose confluence can, in principle, be established in this way is called decreasing Church–Rosser [54, 55]. The power of the method is striking: essentially all of the classical criteria above arise as instances by a suitable choice of labels. This makes the defining question of the method unavoidable: is it complete?

Does the Church–Rosser property imply the decreasing Church–Rosser property?

1^{1}For instance, Hirokawa, Middeldorp, Sternagel and Winkler [24, Corollary 2.17] prove the critical pair criterion for terminating rewrite systems based on prime critical pairs by labeling each step with its source term and ordering the labels by the rewrite relation →+\rightarrow^{+} itself, a well-founded but non-total order; de Bruijn's criterion would first require linearising this order.

This is Problem 56 of the RTA List of Open Problems, posed by van Oostrom in 1993 [12, 53]: can confluence always be localized — witnessed by a decreasing labeling of the one-step relation? In other words: is every confluent system provably confluent by this single technique?

The problem was known to have a positive answer for all countable systems [54]; Endrullis, Klop, and Overbeek later sharpened the countable case, showing that just two labels suffice there [17]. The countable barrier was first crossed by Ivanov [28], who proved that every confluent system of cardinality at most ℵ1\aleph_{1} is decreasing Church–Rosser — in fact, with three labels. He also showed that two labels do not suffice for all confluent systems of cardinality ℵ1\aleph_{1}, so three labels are optimal at this cardinality. Conditional completeness of decreasing diagrams under additional assumptions (e.g., weak normalization) was studied in [16, 55]. The general question of unconditional completeness of decreasing diagrams remained open.

Uncountable systems are not a curiosity. Although the programs of interest are typically countable, confluence questions arise just as naturally for genuinely uncountable systems — rewriting over the reals, hybrid and cyber-physical systems, and infinitary or probabilistic semantics. These are not hypothetical: a hybrid system has an uncountable continuous state space and yields a confluent, uncountable ARS of the kind studied in verification (Remark 2.3). Their cardinalities readily exceed ℵ1\aleph_1: the reals have cardinality 2ℵ02^{\aleph_0}, and collections of functions over them are larger still. Here set theory sets the terms of the problem. Ivanov's bound [28] reaches the continuum only under the Continuum Hypothesis [48]; without it, 2ℵ02^{\aleph_0} may lie arbitrarily far up the hierarchy of alephs (Easton's theorem [13]). An unconditional treatment therefore requires completeness at every cardinality. Such systems arise readily: a sensor logger that records real-valued readings (see Example 4.3) yields a confluent ARS of cardinality 2ℵ02^{\aleph_0} without a cofinal rewrite sequence, for which completeness was previously known only under the Continuum Hypothesis; if the readings are sets of reals, its cardinality 22ℵ02^{2^{\aleph_0}} exceeds ℵ1\aleph_1 outright.

Contributions. We resolve Problem 56 [12, 53] in full by proving that every confluent abstract rewrite system is decreasing Church–Rosser, with no cardinality restriction. Moreover, we show that three labels always suffice (Theorem 6.2), and this is optimal, since two labels do not suffice [28]. We thereby also establish the completeness of the weak diamond property for confluence, since de Bruijn’s weak diamond property and decreasing diagrams are equivalent.

To the best of our knowledge, these are the first unconditional completeness results for methods of proving confluence. This outcome was not foregone: van Oostrom conjectured that decreasing diagrams are incomplete [55, Conjecture 2.3.31], and related questions about uncountable directed sets are independent of ZFC [51]. Moreover, the proof reveals hidden structure in every connected confluent system: a cofinal, locally almost deterministic subsystem, generalizing Klop's cofinal reductions [33] beyond the countable case.

Outline. Section 2 fixes notation and recalls the decreasing diagrams method. Section 3 introduces the key tools employed throughout the paper. Section 4 develops the fan construction, which settles the question for every system whose cofinality cardinal cfc( →\rightarrow) is regular (more generally, for all almost regular systems). Section 5 develops the double fan construction for the remaining case where cfc( →\rightarrow) is singular. Together with the two-label countable case (Lemma 3.3), this assembles the full completeness result in Section 6; Section 7 concludes with directions for future work.

Formalization. To eliminate any doubt about a delicate transfinite argument, the entire development is independently machine-checked in two proof assistants, Isabelle/HOL and Lean [11]; both formalizations are archived on Zenodo [14]. Both proofs use only the standard axioms of

Endrullis, Ivanov, and van Raamsdonk

classical mathematics. 2^{2} The mathematical content — the definitions, constructions, and proofs — is the authors’ own; the formalizations were developed with the assistance of Anthropic’s Claude, under the authors’ direction and review. The authors take full responsibility for the correctness and presentation of this work.

By the proof-theoretic conservativity of Isabelle/HOL [35], the theorem dcr_three_of_confluentdcr\_three\_of\_confluent of Singular.thy, with its definitions unfolded, is already provable in Pitts’ standard HOL [43], and hence our completeness result holds in ZFC. A Lean proof alone would not give this, as Lean’s type theory needs inaccessible cardinals to be interpreted in ZFC [8].

References (32)