Manuscript Offprint
arXiv:2611.04788Global Trace Condition for Injective Transition Graphs
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We formulate the global trace condition, GTC, for cyclic proofs as a particular case of the size-change termination condition or SCT. We express cyclic proofs through a variant of size-change graphs, called transition graphs, whose edges are labelled by (finite) bi-partite relations.
We show that injective transition graphs suffice to encode cyclic pre-proofs for a variant of Brotherston and Simpson's sequent calculus with inductive definitions. The injectivity of transition graphs corresponds to the restriction of SCT to fan-in free graphs. Then we prove that an essentially weaker condition implies SCT in this case, and hence GTC.
2012 ACM Subject Classification Theory of computation → Proof theory; Theory of computation → Constructive mathematics
Keywords and phrases Proof theory, Cyclic proofs, Global trace condition, Size-change termination, Infinite Ramsey's theorem
1 Introduction
Cyclic proof systems are the formalization of a particular way of reasoning with inductively defined predicates, where derivations using induction rules are replaced by infinite regular proof trees, whose infinite branches satisfy the “infinite descent” condition. This condition is inspired by Fermat's method of infinite descent. If such a branch exists in a proof, then an infinite sequence of decreasing-size values of inductively defined formal parameters should exist, contradicting their well-founded definition. As a consequence, a cyclic proof encodes an underlying inductive argument that is sound.
This criterion, also called Global Trace Condition (GTC) in the literature, is the adaptation of Fermat's principle to cyclic proofs in sequent calculi, extended with Martin-Löf's inductive definitions [15]. It has been adopted by Brotherston and Simpson [6, 5, 8], where it implies the correctness of the conclusion of an infinite proof-tree [6, Proposition 4.2.10]. Counterintuitive as it may be, a good strategy to look for a finite proof is to look for a regular and infinite proof satisfying GTC first. Indeed, the use of GTC combines well both with proof search and with program synthesis on realistic examples [7, 9, 10, 12, 17, 18, 20].
As observed in [6], GTC is a termination argument. On the other hand, in [14] Lee, Jones, and Ben-Amram have introduced the size-change termination condition (SCT) to provide a sufficient condition for the totality of partial recursive maps on natural numbers, initiating a thread of research on program termination; see [13, 1, 2] and references there. A major result in [14] is that deciding that SCT holds for a set of graphs, called size-change graphs, is a PSPACE-complete problem.
In her recent study [11], Ikebuchi has shown a deep relationship among GTC and SCT, by proving that a set of size-change graphs can be associated with each cyclic pre-proof so that it satisfies GTC if and only if the graphs associated with it satisfy SCT.
Global Trace Condition for Injective Transition Graphs
2
In this paper, we go further in investigating the relation between cyclic proofs and SCT. In [13, 1, 2], Lee and Ben-Amram have explored the complexity of the problem of deciding the SCT condition by considering some particular cases of size-change graphs. In the case of fan-in free graphs, namely when the in-degree of all nodes is at most one, algorithms solving SCT problem have an exponential lower bound given by the size of ranking functions (roughly related to the size of the graph), in place of the triple exponentials needed in the general case. By considering a sequent calculus in the original sense of Gentzen [19], where sequences are pairs of (finite) lists instead of multisets or sets of formulas as in Brotherston and Simpson systems, we show that the notion of trace in a pre-proof can be identified with a thread in a set of fan-in free size-change graphs, while preserving the equivalence among GTC and SCT established by Ikebuchi.
Technically, this is obtained by using a variant of the notion of size-change graphs, which we call transition graphs. These are directed and cyclic graphs, rather than multigraphs, where edges are labeled by certain relations, modeling the “stationary” and “progressing” parameters in a proof. We adopt transition graphs instead of (sets of) size-change graphs because they are more natural when modeling the GTC of cyclic proofs, where paths represent the branches in the proof.
In our formalism, the fan-in free condition amounts to restricting the relations to the injective case, where two distinct parameters cannot be related to the same third one. The existence of a path in a transition graph determines a relation which is the composition of those labeling its edges, which allows us to define a new condition called here the Progress Domain Condition (PDC) solely in terms of the domain of the relations labeling cycles in the transitive closure of a transition graph.
We show that PDC is an essentially weaker condition than SCT, and therefore than GTC, but it is equivalent to them in the case of transition graphs with only injective relations associated with their edges, namely in the case of fan-in free size-change graphs, and therefore it can be used to discriminate valid cyclic pre-proofs in our proof system. Also, we think that deciding PDC should not be harder than deciding SCT in the case of fan-in free size-change graphs, and we conjecture it might be a faster exponential than the measure based on the size of ranking functions in [2].
The paper is organized as follows: in Section 2 we introduce our Gentzen-style version of the systems and ; in Section 3 we define the transition graphs and SCT, which are paired with cyclic pre-proofs in Section 4. The main results of the paper are in Section 5, where the PDC condition is studied in the case of injective transition graphs. Then in Section 6 we discuss the related works and conclude.
and are both systems for first-order theories, hence we consider a signature , which contains symbols for constants, functions, and predicates of individuals. Terms, formulas, and -structures are defined as usual. We consider sequences as originally defined by Gentzen using finite lists, instead of the formulations in [5, 8] using sets or multisets.
In the case of , sequences have the form , while in , they are defined as , where and are finite lists of formulas, and is either a single formula or the
Figure 1 Rules of LK. Blue arrows define the trace relation between atomic inductive formulas (Def. 3).
empty list. The comma between lists of formulas (e.g. ) denotes list concatenation. For any formula in a list , we define the occurrence of in as the formula paired with the position where it appears in , written as . Predicate symbols are divided between inductive predicates, as in Martin-Löf's productions [15], and ordinary predicates. To formally define inductive predicates, we introduce the notion of inductive definition set.
► Definition 1 (Inductive definition set). An inductive definition set is a finite set of productions of the form:
where are ordinary predicate symbols, are inductive predicate symbols, and , are tuples of terms.
A production of conclusion for some is said to be a production for . A formula is said inductive when it is an atomic formula for some inductive predicate and some .
Example 2. We define the inductive definition set , using the following production rules:
Here 0 is a constant representing the number zero and s is a unary function representing the successor function. The predicate N is used to inductively represent the natural numbers, E and O are mutually defined inductive predicates defining even and odd numbers respectively.
We define the proof system for inductive predicates as an extension of the classical logic LK, whose rules are reported in Figure 1, with additional rules used to handle
Global Trace Condition for Injective Transition Graphs
inductive predicates on the right and left part of the sequent. These rules for inductive predicates are defined as follows: let be the inductive definition set, such that all are productions as in Definition 1.
For each production for an inductive predicate , the system includes a corresponding right introduction rule for , denoted :
For all inductive predicates there is a single left introduction rule associated to and to all productions for . It is denoted case split rule for or (Case ):
In the rule (Case ), for each production , there is a corresponding sequent in the premises of the form subject to the restriction that any free variable in , or , does not occur free in and .
To the usual presentation of these rules, we add a trace relation among occurrences of inductive formulas, which is represented by blue and red arrows from the conclusion to the premises, according to the clauses below and Definition 3.
i) Arrows of either color connect occurrences on the left side of the conclusion's sequent, to occurrences on the left side of the premises' sequences of each rule, where and are inductive predicates.
ii) The blue arrow from a list in the conclusion to the same list in a premise defines a bijection between occurrences in the list in the conclusion, and in the same position of the list in the premise.
iii) The blue arrow from a list in the conclusion to in a premise, in the rule (Subst), defines a bijection between occurrences in the list in the conclusion, and in the list in the premise.
iv) The blue arrow from a list in the conclusion to in a premise, in the rule (=L), defines a bijection between occurrences in the list in the conclusion, and in the list in the premise.
► Definition 3 (Trace Relation). Let be a rule in , with conclusion and premises . Moreover, consider the occurrences in and in for some , where and are inductive predicates. We say that is connected to in , noted if and only if there is an arrow drawn from to in the definition of rule in the Figure 1 or the Formulas (1) and (2). is called a progressing occurrence, if only red arrows originate from it, and a stationary occurrence if all arrows out of it are blue.
The intended meaning of red progressing arrows and of blue stationary arrows is: when progresses to then the vector denoted by has larger size than the vector denoted by , when there is a stationary connection then and denote the same vector.
Example 4. For the inductive predicates defined in Example 2, we add the following rules (for simplicity, we omit the rules that are not used in the proof of Figure 2):
The proof system for and its trace relation is naturally obtained by restricting the rules for inductive predicates over intuitionistic sequences, preserving the exchange rule, and replacing LK with its intuitionistic version, named LJ (see, for instance [4]).
Our presentation differs from the previous one in that we consider an injective trace relation, as the next Proposition says.
▶ Proposition 5. 1. Assume is a set of injective relations on with disjoint codomains, namely: . Then is an injective relation on .
- The trace relation in Def. 3 is injective.
Proof. 1. Let . Assume and in order to prove that . From and we deduce and for some . From we deduce that , therefore and . From injective we conclude that .
- For all rules we considered a trace relation union of injective relations, on sequences and on single formulas, which are injective and have disjoint codomain. By point 1 above, these unions define an injective trace relation.
Cyclic pre-proofs, defined below, are used to formally represent a possibly infinite regular derivation in and through a finite graph with a bud/companion relationship used to represent the infinite tree.
▶ Definition 6 (Cyclic pre-proof). A (resp. ) pre-proof of sequent (resp. ), is a tuple , where:
is a derivation tree where is a finite set of vertices, is a total function labelling vertices with sequences in (resp. ), is a partial function labelling vertices with inference rules in (resp. ), is a partial function that maps a number and a vertex , with a vertex , such that is labeled by the premise of the rule over the sequent , and for every , () is an instance of the rule in (resp. ), with premises. A vertex such that is undefined is called a bud node. The set of bud nodes of a derivation tree , is written as .
is a partial function, that maps each one of the bud nodes in to a non-bud node in the derivation tree, called a companion, satisfying that if and , then .
Moreover, the graph of , written as , is the graph obtained after adding the edges induced by and deleting the bud vertices. Specifically, where, and is defined for any as: if , or otherwise.
Global Trace Condition for Injective Transition Graphs
Figure 2 cyclic pre-proof of the sequent . The function is represented by labeling each bud and its corresponding companion node with the and symbols. The arrows from the trace relation are used to show the validating trace (see Def. 8).
Example 7. Figure 2 is an example of a cyclic pre-proof, taken from [6]. We use blue/red arrows to connect inductive formulas.
As mentioned before, the Global Trace Condition (GTC) is used as a sufficient criterion to verify the soundness of cyclic pre-proofs in and . To define it, it is first necessary to formalize both the notions of trace and progress point.
► Definition 8 (Trace and Progress Point). Let be a (resp. ) pre-proof and let be a sequence of vertices defining a path in . A trace over is a sequence of occurrences such that, for all :
is in , where is an inductive predicate, and (resp. ).
If , then , where is an occurrence such that is an inductive predicate, , and is in , where (resp. ).
If is a case split rule, and is the progressing occurrence of the rule, then i is said to be a progress point of the trace.
A trace is infinitely progressing if it has infinitely many progress points.
Remark 9. The previous definition of trace corresponds to a proper subset of the original trace relation defined by Brotherston in [6, Definition 4.2.3]. Specifically, our definition of trace corresponds to applying Brotherston's definition to work over occurrences instead of formulas. The reason we use occurrences, is that they allow us to track the essential part of the history of a formula in a pre-proof without ambiguities, and it ensures that two distinct arrows of the trace relation, will never join in the same occurrence of a premise (see Proposition 5), a fact which will be exploited in Section 5.
We now define the validity condition for pre-proofs, which we call the global trace condition, following the literature.
► Definition 10 (Global Trace Condition). A (resp. ) pre-proof is said to be a (resp. ) proof, if for every infinite path in , there is an infinitely progressing trace following some tail of the path.
Example 11. Consider the cyclic pre-proof in Figure 2 and the only infinite path, contained in the cycle between the two right-most branches of the pre-proof. The trace
is infinitely progressing over this path, since it contains the progressing points and . Since this is the only infinite path in the pre-proof, we conclude that the pre-proof satisfies the GTC, and that it is a proof.
3 Transition Graphs and Size-Change Termination
Inspired by the work by Ikebuchi [11], in this section we introduce the notion of transition graphs, which is intended to characterize the global trace condition from the theory of cyclic proofs in terms of the size-change termination condition. We consider directed graphs whose edges are labelled with pairs of relations, that we call bi-partite relations. The properties relevant for termination can now be expressed in terms of compositions of such relations.
3.1 Bi-partite Relations and Transition Graphs
Let be a binary relation, then we write for . Thinking of as a function , we set . Then we define , and .
In this work, we shall consider binary relations over some fixed finite set of abstract “parameters”, which are consequently themselves finite. We say that is a bi-partite relation over if both and , namely if are a partition of the binary relation over , with possibly or empty.
► Definition 12 (Transition graph). Let be a finite set of bi-partite relations over . transition graph of is a tuple where is a finite set of vertices, and is a (finite) set of labeled edges.
Let ; we abbreviate by . Also, if is any edge, then , , and are the source, target, and label of respectively. When is understood, we omit the subscripts in .
Suppose that , and . When we say that the size associated with in the abstract state is equal or greater than the size associated with in in some intended ordering; hence, if we say that are stationary in the transition from to . If instead , then the size of in is strictly greater than that of in , and we say that progresses to in the transition from to . Finally, if and are unrelated by , this represents the lack of knowledge about the ordering of their sizes in and , respectively.
Transition graphs are a variant of the notion of size-change graph as defined in [2, Def. 2.1], abstractly representing the labeled transition system of the flow of values of certain variables through the calls of functions in a functional program, where labels convey the information needed to detect termination. More precisely, a size-change graph for a pair of function names , out of some functional program is given by a triple , where , are disjoint sets of variables occurring in the definitions of and , and and there are not two edges from to labelled with both and in .
In our view, , corresponds to the edge of a transition graph , and is the set of all parameters occurring in the program , and and are binary relations over . The transition graph has vertices defined in the program , and has set of bi-partite relations .
Global Trace Condition for Injective Transition Graphs
A multipath [2, Def. 2.3] is the composition of finitely or infinitely many size-change graphs. The composition of with requires that the target function symbols of and the source function symbol of coincide. In the case of our transition graphs, we have a unique graph , with finite set of parameters , and we express the composition by composing the edges and .
3.2 Composition of bi-partite Graphs and Size Change Termination
Binary relations compose: if and then is such that if and only if there is s.t. and , a fact we abbreviate by . Relation compositions are associative and have the identities as units. We can extend composition to bi-partite relations in a way compatible with the information weakly decreasing/strictly decreasing associated to the partition. In the next definition, we say that progresses to in this composition if for some either progresses to such that or if are stationary and . We say that are stationary in the composition if there is a such that is stationary to which is stationary to , provided does not progress to . In this case we consider the progression information to be more relevant and we drop the stationary information from .
► Definition 13 (Composition of bi-partite relations). Let , be bipartite relations over ; then we define their composition , where
We call the relation associated to .
We will prove that the case all relations are injective the definition can be replaced with The composition of bi-partite relations is bi-partite by construction; also, it is associative with identity the pair . We observe that composition is compatible with the operation and ordinary composition of binary relations:
(3)
Let be the closure under composition of a set of bi-partite relations. Notice that the set of bi-partite relations over the finite set is a subset of which is finite, hence is finite. The role of a transition graph with labels in is to reduce the number of compositions of bipartite relations in which are accepted. We formalize this notion by adapting the usual definition of transitive closure of a graph.
► Definition 14 (Transitive closure of a transition graph). We say that the graph is the transitive closure of if is the smallest set such that and
If for some vertexes then we say that and are composable in ; we say that is self-composable in if for some vertex .
In words, is the transitive closure of the graph with edges labeled by the composition of the labels of composable edges in . We could say that it is essentially a category, but for the lack of identities.
Let ; we abbreviate by . If is self-composable then for all by definition of composition over the edges of , where is the composition of with itself -times. As before, we omit the subscripts in , when is understood. In order to state GTC for transition graphs we need the notions of sequence and suffix.
► Definition 15 (Sequence and Inhabited Suffix). Let be an ordinal, identified with an initial segment of ordered in the natural way, and possibly coinciding with . Let .
-
a sequence over some set with domain is just a map ;
-
is an inhabited suffix of ;
We can now restate the notion of trace and the Global Trace Condition for transition graphs.
► Definition 16 (Trace, path and progress). Let be a transition graph and , ; then:
i) a trace is a map with domain some inhabited suffix of ;
ii) a path is a map such that if then ;
iii) a trace follows a path , written , if for all , if then .
If furthermore we say that is a progress point of in .
iv) a trace such that is infinitely progressing if has infinitely many progress points in .
► Remark 17. A trace follows a path if for have domain , respectively, and for all . Hence, for to hold, it suffices that the above relation holds, possibly disregarding an initial segment of which is a proper subset. In the particular case that , namely when both and are finite, there is no condition about w.r.t. , but this is immaterial for our development, as for us the only interesting paths and traces are the infinite ones.
We say that is a trace of if for some path of . In our terminology, the path and the trace correspond to a multipath and a thread in [14], respectively. Both and are finite, so that an infinite path exists in only if it has a cycle, and therefore there exists some which is self-composable in .
We are eventually in place to define the size-change termination condition for transition graphs, which is essentially the same as [2, Def. 2.6].
► Definition 18 (Size-change Termination - SCT). The transition graph satisfies the Size-change Termination condition if for all infinite path of there is some infinitely progressing trace such that .
In the rest of this section, we relate the progress of a trace w.r.t. to the composition of the bi-partite relations labeling the edges in , and show that progressing is equivalent to having in the image of such that precedes in and .
► Lemma 19. Let and , then
i)
ii)
Global Trace Condition for Injective Transition Graphs
If is a (finite) path of , for we abbreviate .
► Proposition 20. Let be a finite path of and be a trace such that . Then has a progress point in if and only if there exists such that
4 Transition Graphs of Cyclic Proofs
Given a or pre-proof , we show how to construct the induced transition graph with bi-partite relations. Our approach follows Ikebuchi's work [11], where the equivalence between the GTC and SCT is formally stated by extracting the size-change graphs of a cyclic proof. In our case, we extract a transition graph with bi-partite relations of a cyclic proof, which in principle corresponds to the same process, with some simplification in the case of an injective trace relation.
► Definition 21 (Transition Graph of a Pre-Proof). Let be a pre-proof with a graph . We note as the transition graph over bi-partite relations induced by , where:
where is inductive, s.t. and
be two vertices which share an edge, i.e., there exists a such that . Moreover, let (resp. ) and let (resp. ) be the sub-sequences containing only the occurrences of (resp. ), of the form , where is an inductive predicate. We define the bi-partite relation as follows:
i) The domain and codomain of are and respectively.
ii) If is not a case split rule, then for all in and in , if and only if .
iii) If is a case split rule, then for all in , if and only if and is the progressing occurrence in . Otherwise, if is stationary, then .
This process can also be applied to pre-proofs, using sequences of the form .
Note that this construction defines an isomorphism between graphs. Specifically, is isomorphic to , in the sense that for all then in if and only if in .
► Example 22. Using Definition 21 over the cyclic pre-proof in Figure 2, we obtain the transition graph in Figure 3.
Using the construction specified in Definition 21, and the Definitions 16, inspired by SCT, and 8 of path and traces for transition graphs and cyclic pre-proofs, it can be deduced that they are the same:
► Proposition 23. Consider a circular pre-proof with a graph and induced transition graph . Moreover, let be a sequence of vertices defining a path in , and corresponding to the same path in , but defined as in Definition 16 (we can do this, since the two graphs are isomorphic). Then, is a trace over if and only if .

Figure 3 The transition graph of the cyclic pre-proof in Figure 2, where the set of parameters is the set of occurrences of the inductive predicates in the pre-proof. For each bi-partite relation , the relation is represented by blue pairs, while the pairs in are colored in red. In this case, there is only one pair in each bi-partite relation , therefore, we label the edges with just one pair to simplify the presentation.
Then, using the previous proposition and the Definitions 10 and 18, the equivalence between GTC and SCT follows:
► Proposition 24. Let be a (resp. ) pre-proof. Then is a (resp. ) proof if and only if satisfies the size-change termination condition.
5 Injectivity and Progress Domain Condition
We define injectivity over relations and prove some of its properties. Our goal is finding a case in which GTC is simpler to state. A relation is injective if for all and , and implies . Equivalently, is injective if all the for are disjoint. Moreover, the composition of two injective relations is always injective.
► Lemma 25. If both and are injective, then is injective.
Proof. If and then there are such that and , and and . By the injectivity of we have , hence by the injectivity of .
We say that a bi-partite relation is injective if is such in the above sense. We can then extend the previous lemma in the case of injective bi-partite relations.
► Lemma 26. 1. If both and are injective, then is injective. 2. If is injective, then composition can be simplified by:
Proof. 1. By (3) in Section 3, we know that which is ordinary composition of the injective relations and , hence it is injective by Lemma 25.
Global Trace Condition for Injective Transition Graphs
- By definition the stationary component of is where and . Our thesis becomes: . We have to prove that and are disjoint. We assume and (there is some other trace from to ) in order to prove that this trace is not in , namely that and . From injective and we deduce that . Our thesis is now and . This follows from and and .
We say that the set of bi-partite relations is injective if all are such. If with injective , by abuse of language we say that is injective. By Lemma 26, if is injective, then its composition closure is such.
The notion of injectivity is crucial when analyzing the structure of transition graphs arising from pre-proofs in and . In particular, the construction of the graph associated with a pre-proof with contexts as lists, as defined in the previous sections, is always injective. This observation leads to the following result:
► Theorem 27. Let be any or pre-proof. Then is injective.
Proof. By Prop. 5.2.
► Remark 28. The original version of traces by Brotherston and Simpson, in the system named , is not fan-in free. As a counterexample, consider the following instance of left-equality rule, using sequents as sets, with the inductive predicate of Example 2.
If we apply Brotherston's definition of trace in [6, Definition 4.2.3], we obtain that the inductive formula in the premise has at least two incoming edges obtained from the trace relation, from the inductive formulas and in the conclusion. Even considering sequents as multisets, fan-in free connections between inductive formulas are not guaranteed. For example, consider the left-weakening rule:
where one of the inductive predicates in the conclusion is a direct descendant of the inductive predicate in the premise, while the other was freshly introduced by the weakening rule. Again, we apply Brotherston's definition of trace then the last two occurrences of in the right-hand side of conclusion are connected to the same occurrence of in the assumption of the rule.
In the previous section, we have seen that the SCT condition for transition graphs and the GTC condition for cyclic proofs coincide up to rephrasing GTC in terms of transition graphs. We have also proved that the transition graphs associated with cyclic pre-proofs in systems and are injective. In this section, we formalize a new condition on transition graphs, which we call Progress Domain Condition, shortly PDC, and show that, although it is strictly weaker than SCT, it implies SCT in the case of injective graphs. Hence PDC is a simpler reformulation of GTC for our deduction system.
► Definition 29 (Progress Domain Condition - PDC). A transition graph satisfies the Progress Domain Condition if for all self-composable there are such that progresses to . In other words we require:
► Proposition 30. If satisfies SCT, then it satisfies PDC.
Proof. Let be a self-composable path of . Then there is an infinite path
By SCT, there is a trace such that and is infinitely progressing must progress in some step .
By Proposition 20, it follows that for some ; now since . It follows that satisfies PDC.
► Remark 31. The inverse of Proposition 30 does not hold without injectivity. Consider and where and . Let . Then is self-composing, and , hence satisfies the PDC.
On the other hand, the infinite path represented in Figure 4 is such that the only infinite traces that follow it are and , and neither of them is infinitely progressing.

Figure 4 Infinite path in
The key point in the counterexample of Remark 31 is that is not injective, both and are related with . Toward establishing that PDC implies SCT in case of an injective , we first prove the lemma below for transitive relations in .
We say that is transitive if is such, namely implies , for all . We first prove that PDC implies the so-called “algorithmic criterion for SCT” ([14],Section 3.2).
► Lemma 32. Suppose that is injective and satisfies PDC, and that is self-composing in
-
If is transitive then there exists such that .
-
(SCT criterion) If then there exists such that .
Proof. 1. By the hypothesis that satisfies PDC, there exist such that and with more reason . On the other hand, since , there is such that . From this, by transitivity, it follows that , hence since is injective. From and we conclude that .
Global Trace Condition for Injective Transition Graphs
- implies that is transitive. Now we apply the previous point.
Using Theorem 4 of [14] from PDC we may already deduce the SCT criterion, then conclude SCT. We prefer to include a more direct proof, using the infinite Ramsey's Theorem. We preliminarily introduce some terminology for it. is the set of edges of the complete undirected graph whose vertices are in .
A finite coloring of is a map for some , where , the set of “colors”, is the set of the first positive integers. A subset is monochromatic w.r.t. the coloring if there is such that for all .
► Theorem 33 (Ramsey's Theorem). For all finite coloring of there exists , infinite, such that is monocromatic with respect to .
Proof. See e.g. Theorem 5 in Chapter 1 of [16].
By abuse of language, we say that is a finite coloring for any set of edges.
▶ Corollary 34. Let be a complete undirected graph with infinite denumerable , and let be a finite coloring of its edges, then there exists an infinite that is a complete subgraph of and such that for all distinct we have for some .
Proof. As is denumerable, the graphs and are isomorphic. Hence, up to isomorphism, the corollary is a particular case of Theorem 33.
► Theorem 35 (Main Theorem). Let be a transition graph with injective ; if satisfies PDC, then it satisfies SCT.
Proof. Let be any infinite path of , where for . For all there is an edge , defined by .
Let be the undirected graph formed by the sets , which is denumerable, and ; hence is a complete graph.
The edges in correspond to the edges of . Since , which is a finite set, the mapping is a finite coloring of .
By Corollary 34, there is an infinite such that for some and for all , we have .
As is finite, there exists such that for infinitely many we have . This determines a cofinal subpath of where is self-composing and, by the above, the “colors” and are the same. By the hypotheses that is injective and satisfies PDC, Lemma 32.2 implies that there exists such that . It remains to show that there is a trace such that and that, whenever , . Let be the first two indexes such that and ; then in we have the subpath:
where we assume that the for all .
Since and clearly , there is a sequence such that for all , and for some . Assume that are the indexes such that
... = u. Now, by repeating the same construction for all consecutive indexes in the sub-sequence, we obtain a trace such that for infinitely many , including infinitely many progress points w.r.t. . Hence satisfies SCT by the arbitrary choice of .
6 Related Work and Conclusions
The sequent calculus with inductive definitions in Section 2 is a variant of the systems in [6, 5] and [8], to which it can be shown to be equivalent in the case the system includes Peano Arithmetic. We omit such a proof in this paper for space reasons. In the literature, the global trace condition is defined in terms of infinitely progressing traces or as infinite descending sequences. They are both instances of Fermat's method of infinite descent, which is used to argue by contradiction that a cyclic pre-proof satisfying the GTC is semantically valid. It is known that valid cyclic proofs correspond to finite proofs with induction if the system includes arithmetic, while in some other cases they prove more theorems [4].
The transition graphs are a variant of size-change graphs in [14, 13, 2]; in particular, injective transition graphs correspond to fan-in free size-change graphs as defined in [2, §2.4]. Size-change graphs are a technique for verifying program termination by building suitable abstractions of functional programs so that the SCT condition implies termination.
In Ikebuchi's [11], it is shown that, up to an appropriate association of a set of size-change graphs such that the composition determines the paths in the proof, the GTC and SCT conditions are equivalent, see there, Proposition 2. This result is rephrased for Transition Graphs in our Proposition 24.
To the best of our knowledge, the Progress Domain Condition, presented here in Section 5, is a novel contribution. It is decidable by the finiteness of the bi-partite relations involved in a transition graph, and it is general enough, as we have shown in Theorem 27, in the case that the transition graphs associated with and are injective.
The proof of Theorem 35 is non-constructive since it is based on infinite Ramsey's Theorem, which is a purely classical result. However, we know of a constructive proof of this theorem [3], which we have omitted for the sake of brevity. We understand Theorem 35 and its constructive proof as a step toward efficient translations of cyclic proofs into ordinary inductive proofs, with an intuitionistic translation in the case of intuitionistic cyclic proofs. These translations, in turn, are motivated by cross-checking formal cyclic proofs using proof assistants that do not support cyclic proofs. For the moment, such translations exist only in theory and are built over the results of [4] and [11].
In [14], it is proved that the SCT problem in the general case is PSPACE-complete. From [2], restricting to fan-in free size-change graphs, a lower bound of SCT for known algorithm is exponential in , where essentially depends on the size of the set of formal parameters of the analyzed program (more precisely on the size of expressions defining ranking functions), which corresponds to the set of the occurrences of inductive predicates in a cyclic pre-proof. A brute force algorithm deciding PDC is also exponential, but the relation between the complexity of PDC and the lower bound of SCT based on the size of ranking functions deserves further study.
Global Trace Condition for Injective Transition Graphs
References
1 Amir M. Ben-Amram and Chin Soon Lee. Program termination analysis in polynomial time. ACM Trans. Program. Lang. Syst., 29(1):5:1–5:37, 2007. doi:10.1145/1180475.1180480.
2 Amir M. Ben-Amram and Chin Soon Lee. Ranking functions for size-change termination II. Log. Methods Comput. Sci., 5(2), 2009. URL: http://arxiv.org/abs/0903.4382.
3 Stefano Berardi and Silvia Steila. An intuitionistic version of ramsey's theorem and its use in program termination. Annals of Pure and Applied Logic, 166(12):1382–1406, 2015. URL: https://www.sciencedirect.com/science/article/pii/S0168007215000731, doi:10.1016/j.apal.2015.08.002.
4 Stefano Berardi and Makoto Tatsuta. Intuitionistic Podelski-Rybalchenko Theorem and Equivalence Between Inductive Definitions and Cyclic Proofs. In Corina Cirstea, editor, Coalgebraic Methods in Computer Science, pages 13–33, Cham, 2018. Springer International Publishing.
5 James Brotherston. Cyclic proofs for first-order logic with inductive definitions. In Bernhard Beckert, editor, Automated Reasoning with Analytic Tableaux and Related Methods, pages 78–92, Berlin, Heidelberg, 2005. Springer Berlin Heidelberg.
6 James Brotherston. Sequential calculus proof systems for inductive definitions. PhD thesis, University of Edinburgh. College of Science and Engineering, 2006.
7 James Brotherston, Nikos Gorogiannis, and Rasmus Petersen. A generic cyclic theorem prover. In Ranjit Jhala and Atsushi Igarashi, editors, Programming Languages and Systems, pages 350–367, Berlin, Heidelberg, 2012. Springer Berlin Heidelberg.
8 James Brotherston and Alex Simpson. Sequential calculi for induction and infinite descent. J. Log. and Comput., 21(6):1177–1216, December 2011. doi:10.1093/logcom/exq052.
9 Liron Cohen, Adham Jabarin, Andrei Popescu, and Reuben N. S. Rowe. The complex(ity) landscape of checking infinite descent. Proc. ACM Program. Lang., 8(POPL), January 2024. doi:10.1145/3632888.
10 Liron Cohen, Reuben N. S. Rowe, and Matan Shaked. Cyclone: A heterogeneous tool for verifying infinite descent. In Arie Gurfinkel and Marijn Heule, editors, Tools and Algorithms for the Construction and Analysis of Systems, pages 336–354, Cham, 2025. Springer Nature Switzerland.
11 Mirai Ikebuchi. Cyclic proofs and size-change termination. Theoretical Computer Science, 1045:115273, 2025. URL: https://www.sciencedirect.com/science/article/pii/S0304397525002117, doi:10.1016/j.tcs.2025.115273.
12 Shachar Itzhaky, Hila Peleg, Nadia Polikarpova, Reuben N. S. Rowe, and Ilya Sergey. Cyclic program synthesis. In Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation, PLDI 2021, page 944–959, New York, NY, USA, 2021. Association for Computing Machinery. doi:10.1145/3453483.3454087.
13 Chin Soon Lee. Ranking functions for size-change termination. ACM Trans. Program. Lang. Syst., 31(3), April 2009. doi:10.1145/1498926.1498928.
14 Chin Soon Lee, Neil D. Jones, and Amir M. Ben-Amram. The size-change principle for program termination. In Proceedings of the 28th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL '01, page 81–92, New York, NY, USA, 2001. Association for Computing Machinery. doi:10.1145/360204.360210.
15 Per Martin-Löf. Hauptsatz for the intuitionistic theory of iterated inductive definitions. In J.E. Fenstad, editor, Proceedings of the Second Scandinavian Logic Symposium, volume 63 of Studies in Logic and the Foundations of Mathematics, pages 179–216. Elsevier, 1971. URL: https://www.sciencedirect.com/science/article/pii/S0049237X08708474, doi:10.1016/S0049-237X(08)70847-4.
16 Ronald L. Graham, Bruce L. Rothschild, and Joel H. Spenser. Ramsey Theory. Wiley & Sons, New York, 1980.
17 Reuben N. S. Rowe and James Brotherston. Automatic cyclic termination proofs for recursive procedures in separation logic. In Proceedings of the 6th ACM SIGPLAN Conference on
Certified Programs and Proofs, CPP 2017, page 53–65, New York, NY, USA, 2017. Association for Computing Machinery. doi:10.1145/3018610.3018623.
18 Sorin Stratulat. E-cyclist: Implementation of an efficient validation of fold cyclic induction reasoning. Electronic Proceedings in Theoretical Computer Science, 342:129–135, September 2021. URL: http://dx.doi.org/10.4204/EPTCS.342.11, doi:10.4204/eptcs.342.11.
19 M. E. Szabo, editor. The Collected Papers of Gerhard Gentzen. North-Holland Pub. Co., Amsterdam, 1969.
20 G. Tellez and Brotherston J. Automatically verifying temporal properties of pointer programs with cyclic proof. J. Autom. Reason. 64(3), pages 555–57, 2020. doi:10.1007/s10817-019-09532-0.