## Branching structures in tree logic skip countable infinities to hit maximal depth

URL: https://theprimary.com/science/2026-12-03/mso-tree-rank-dichotomy
Published: 2026-12-03T00:40:38.065Z
Updated: 2026-12-03T00:40:39.643Z
Category: Science

A mathematical threshold in monadic second-order logic shows branching witnesses either terminate below omega squared or leap straight to the first uncountable ordinal.

When computer scientists analyse programs that run through branching pathways, they often test whether a procedure is guaranteed to finish. In systems that can make nondeterministic choices, one execution might take three steps while another takes a thousand. To confirm that no path continues forever, researchers measure the depth of the entire branching structure using ordinal numbers, which extend standard counting past ordinary infinity. For decades, mathematicians wondered how complex these structures could get when described in the standard logic of infinite binary trees. A natural assumption was that the depth could settle at any countable transfinite level, climbing smoothly through increasingly complicated infinite heights.

A mathematical investigation by Damian Niwiński, Paweł Parys, and Michał Skrzypczak at the Institute of Informatics at the University of Warsaw shows that this continuous scale does not exist. Instead, the logical descriptions of these structures exhibit a strict dichotomy: the depth required to satisfy a logical formula either stays strictly below a relatively low threshold, or it instantly jumps to the maximum possible countable infinite rank. No middle ground exists between these two extremes, and an automated algorithm can decide which of the two worlds a given formula belongs to.

To understand why this gap appears, consider how an infinite system executes. A computational process begins at a starting state and advances down branching choices step by step. If a collection of points has no infinite path, every possible sequence of choices must eventually reach an end. Mathematicians can measure the complexity of this ending pattern by peeling away the terminal leaf points repeatedly. The transfinite count of how many peeling steps are required to exhaust the set gives its ordinal rank. Because the underlying rules are governed by finite systems, either these peeling steps exhaust the whole structure after a modest transfinite sequence, or the rules permit cycles that sustain branches of arbitrarily great countable depth.

## Why does the depth of a tree structure matter in computer science?

The depth of a tree structure determines whether a computational process will eventually stop running. In mathematical logic and automated verification, researchers model computations as paths through an infinite binary tree where every point splits into a left branch and a right branch. A collection of points inside this tree is called well-founded when it contains no infinite path descending from the root. Measuring the depth and branching complexity of such a set yields an ordinal number known as its rank, where a smaller rank corresponds to a simpler and more shallow branching pattern. In program verification, proving that a nondeterministic system terminates without an obvious bound on computation length often requires establishing an upper bound on this ordinal rank.

To evaluate these systems, mathematicians rely on monadic second-order logic over the full infinite binary tree. Monadic second-order logic, abbreviated as MSO, extends first-order logic by allowing quantifiers to range over entire sets of tree nodes in addition to individual positions. In 1969, mathematician Michael O. Rabin proved that the truth of any monadic second-order formula on the infinite binary tree can be decided algorithmically, establishing the famous Rabin Tree Theorem. Even though Rabin settled the general decidability of the logic more than 50 years ago, many structural properties of its formulas remain active topics of investigation.

The central question addressed by the Warsaw researchers focuses on existential formulas where a property is witnessed by a set of nodes. When a formula asserts that there exists a witness set satisfying a given condition, and every valid witness is guaranteed to be well-founded, one wants to know the minimal rank needed to supply that witness. For a given formula, this minimal bound is defined as the supremum, taken over all possible tree instances, of the minimum rank among all valid witness sets for each instance. Because each individual rank is a countable ordinal, the resulting bound can never exceed the first uncountable ordinal, written as omega one.

## What creates the sudden gap between simple and maximal complexity?

The gap between simple and maximal complexity arises from the expressive limitations of tree automata running over infinite branches. To understand how this works, consider how ordinal ranks accumulate. The first infinite ordinal, omega, represents the order type of the natural numbers. Multiplying ordinals arranges copies in sequence: omega multiplied by two represents two sequential copies of the natural numbers, and omega squared represents a sequence of omega copies of omega. Prior research established that for any pair of natural numbers, one can write a formula whose minimal rank equals omega multiplied by the first number plus the second number. It was therefore plausible that formulas could be designed to produce minimal bounds at omega squared, omega cubed, or any other countable ordinal between omega squared and omega one.

The research team demonstrated that this intermediate territory is completely empty. For every formula where the witness set is well-founded, the minimal ordinal rank is either strictly smaller than omega squared or it reaches the maximal possible value of omega one. When the rank is strictly below omega squared, the researchers demonstrated that an algorithm can compute a specific natural number N such that the rank is strictly bounded by omega multiplied by N. The property of having a rank strictly smaller than omega squared cannot be expressed directly within the syntax of monadic second-order logic itself.

Michał Skrzypczak, an author of the study, explained the core mechanism behind the sudden leap. Skrzypczak said that on an intuitive level, the initial formula is regulated by a system of finite memory states. Skrzypczak told Primary that "some patters in this mechanism have to necessarily repeat, creating loops within this mechanism," and noted that "any such loop can lead to unbounded number of repetitions, which leads to witnesses of arbitrarily large depths." Once a formula pushes past the lower threshold, these internal loops multiply without restriction, forcing the minimal rank all the way to omega one.

The impossibility of writing this condition directly within the logic itself presented a distinct conceptual barrier. Skrzypczak highlighted the difference between properties that a logic can state internally and properties that must be evaluated externally. Skrzypczak told Primary that definability within MSO is internal because an analyst writes a formula specifying a property inside the structure. The game the researchers developed operates as an external analysis constructed from a representation of the relation, providing an algorithmic answer when internal quantifier methods cannot be formulated.

## How can two players playing an infinite game resolve a mathematical property?

Two players in an infinite game can resolve the complexity of a formula because the winning strategies directly construct either a low-rank witness or an unbounded family of witnesses. Rabin proved that any monadic second-order formula corresponds to an equivalent parity tree automaton operating on trees labelled over a finite alphabet. A parity tree automaton is a theoretical machine with a finite set of states that processes a tree by assigning states to nodes and inspecting the priorities encountered along every infinite path. An execution of the automaton is accepting if, on every infinite branch, the largest priority seen infinitely often is an even natural number. By analysing the transitions of these automata, the researchers could track how well-founded witness sets are constructed across different branches.

The researchers constructed a two-player game with perfect information played on a finite graph arena. In this game, one player tries to force the construction of witness sets of arbitrarily large countable ranks, while the second player tries to restrict the construction to small ranks. The winning condition for the game is defined by an omega-regular set of infinite sequences of moves. A foundational theorem proved by J. Richard Büchi and Lawrence H. Landweber in 1969 guarantees that every game of this kind is determined, meaning exactly one of the two players possesses a winning strategy. When the existential player wins the game, their winning strategy can be transformed into an explicit proof that the minimal rank of the formula equals omega one. Conversely, when the universal player wins, their strategy yields an algorithm that computes a fixed natural number N bounding the minimal rank strictly below omega multiplied by N.

Constructing the winning conditions required solving difficult structural dependencies within the game arena. Skrzypczak said in response to questions from Primary that designing the exact rules required deep insight into the structure of the problem. Skrzypczak told Primary that "the most subtle part of the construction is the design of what we call ,,auxiliary game''. Only due to positional determinacy of this game one can construct reasonable strategies of the opponent in the original game." This positional determinacy allowed the researchers to guarantee that decisions in the game depend only on the current state rather than on the entire history of play.

## What does the result leave unsettled about practical systems and richer logics?

The mathematical dichotomy does not yield an immediate, low-cost algorithm for everyday software verification. Although the dichotomy theorem proves that the rank classification is algorithmically decidable, the computational complexity grows rapidly. The proof relies on translating formulas into parity tree automata and solving infinite-duration games, which entails heavy exponential resource demands. Skrzypczak told Primary that even when a specification is formatted as a parity tree automaton, "the size of the game is exponential in the number of states of the automaton." Solving the game also requires turning the winning condition into a deterministic automaton, which Skrzypczak noted introduces yet another exponential explosion in computational size.

The result also applies specifically to standard monadic second-order logic on the binary tree and does not cover logics equipped with explicit size bounds. When asked what structural extensions might introduce intermediate countable ordinals, Skrzypczak said that "the most standard idea would be to allow additional boundedness conditions, like in logics similar to MSO+U." Such formalisms incorporate unbounding quantifiers that can state whether a family of sets has a uniform finite size bound, breaking the finite-state loop structure that drives the current dichotomy.

The exact bounds for fixed-point formulas in richer modal logics also remain open. The Warsaw result directly informs the study of the modal mu-calculus, an expressive logic widely used in program verification to express iterative properties through least and greatest fixed-point operators. When a least fixed point is computed on an infinite model, it is evaluated through transfinite iterations starting from the empty set. In 2010, Marek Czarnecki asked whether there exists a modal mu-calculus formula with a countable closure ordinal equal to or greater than omega squared.

Recent work by Bahareh Afshari, Giacomo Barlucchi, and Graham E. Leigh established that for the Sigma-fragment of the modal mu-calculus, any countable closure ordinal across countable models must be strictly less than omega squared. By applying their MSO dichotomy through standard tree-model encodings, Damian Niwiński, Paweł Parys, and Michał Skrzypczak provided an alternative proof of this result while extending it to arbitrary uncountable models and showing that the threshold is algorithmically decidable. However, whether general formulas of the full modal mu-calculus can achieve countable closure ordinals at or above omega squared remains unresolved. Skrzypczak told Primary that while adding backward modalities is known to break the dichotomy, predicting what happens for formulas featuring full alternation of fixed points remains an open question.

The study of tree ordinals continues to reveal structural contrasts between different mathematical representations. In automatic structures, where relations are recognised by finite automata on words, ordinal ranks are known to stay below omega to the power of omega, as shown by Christian Delhommé in 2004. For automata processing infinite trees, works by Olivier Finkel and Stevo Todorcevic showed that automatic ordinals cannot exceed omega to the power of omega squared. The more restrictive bound of omega squared in monadic second-order logic reflects the specific structural constraints imposed by well-founded witness sets on the binary tree, providing a rigorous boundary for how deeply branching structures can behave in mathematical logic.
