Completeness of the Decreasing Diagrams Method for Proving Confluence of Rewriting Systems of the Least Uncountable Cardinality
Abstract
We show that every confluent abstract rewriting system (ARS) of the cardinality that does not exceed the first uncountable cardinal belongs to the class , i.e. the class of confluent ARS for which confluence can be proved with the the help of the decreasing diagrams method using the set of labels {0,1,2} ordered in such a way that 0<1<2 (in the general case, the decreasing diagrams method with two labels is not sufficient for proving confluence of such ARS). Under the Continuum Hypothesis this result implies that the decreasing diagrams method is sufficient for establishing confluence of ARS on many structures of interest to applied mathematics and various interdisciplinary fields (confluence of ARS on real numbers, continuous real functions, etc.).
We provide a machine-checked formal proof of a formalized version of the main result in Isabelle proof assistant using HOL logic and the HOL-Cardinals theory. An extended version of this formalization is available in the Archive of Formal Proofs.
Keywords and phrases:
confluence, decreasing diagrams method, rewriting systems, reduction, formal methods, formal proofs, formal verification, non-discrete models, nondeterministic models, interval models2012 ACM Subject Classification:
Theory of computation Equational logic and rewriting ; Theory of computation Logic and verificationRelated Version:
Extended Formalization:https://isa-afp.org/entries/Completeness_Decreasing_Diagrams_for_N1.html
Editors:
Maribel FernándezSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Van Oostrom’s decreasing diagrams method [41, 40] is one of the most versatile known approaches to proving confluence of abstract rewriting systems (ARS). An overview of the history of this method and its relation to De Bruijn’s work [6] on weak diamond properties can be found in [8, Section 1], information on modified versions of this method (e.g. conversion version) can be found in [42, 4, 45], application examples can be found in [40, 13].
To show that an ARS is confluent using the decreasing diagrams method, one has to choose a set of labels and a well-founded partial order on , and construct a labeled version of an ARS (that associates labels with reduction steps) that satisfies a condition reminiscent to local confluence, but with certain constraints on how labels of the reduction steps used in this condition are related by . A theorem [40, Theorem 3.7] by V. van Oostrom implies that when a labeled version of an ARS that satisfies the mentioned condition exists, the original ARS is confluent.
Semi-formally, the class of decreasing Church-Rosser (DCR) ARS is the collection of all confluent ARS for which confluence can be proved with the help of the decreasing diagrams method (note that here the words “can be proved“ mean that “there exists a labeled version of an ARS that satisfies the conditions of [40, Theorem 3.7]”). In the work [9] J. Endrullis, J.W. Klop, R. Overbeek introduced a representation of the class of DCR ARS as the union of ordinal-indexed classes , where (semi-formally) for each ordinal , is the class of confluent ARS for which confluence can be proved with the help of the decreasing diagrams method using a fixed set of labels (ordinals less than ) and a fixed well-founded order on this set that is a restriction of the usual order on ordinals to . For these classes the following inclusions hold:
The statement that “all ARS in the class are confluent” is usually called the statement about soundness of the decreasing diagrams method, while a statement of the form “all confluent ARS with a given property belong to the class ” (or belong to for some ) is called the statement about completeness of the decreasing diagrams method for proving confluence of ARS with the property (note that completeness does not mean that confluence can always be checked in practice for concrete rewriting systems).
In [45, 46] it was formally proved using a proof assistant that the decreasing diagrams method is sound. However, the works [45, 46] do not deal with completeness of this method (methods for proving soundness and completeness are different and, generally, one cannot use soundness proof to establish completeness).
In [9] it was shown that every ARS with the cofinality property [24, 9] belongs to . It was previously known [24, 9] that countable confluent ARS have the cofinality property, so in [9] it was established that all countable confluent ARS belong to , i.e. the decreasing diagrams method with 2 labels is complete for proving confluence of countable ARS. However, it is also known [9, p. 14, footnote 3] that uncountable confluent ARS can lack the cofinality property. This motivates study of the capabilities of the decreasing diagrams method for proving confluence of ARS that may lack the cofinality property.
In this paper we propose a machine-checked formal proof in Isabelle/HOL [34, 44] proof assistant that establishes that every confluent ARS such that the cardinality of the reduction relation does not exceed the first uncountable cardinal belongs to the class , i.e. confluence of can be proved with the help of the decreasing diagrams method using a fixed set of labels ordered in such a way that . To the best of our knowledge, this has not been proved before informally or formally, so our formal proof is not a formalization of a previously known non-formalized proof.
This result can be transferred from Higher-Order Logic (HOL) to a more widely known Zermelo-Fraenkel set theory with the Axiom of Choice (ZFC) [11]. If one additionally accepts the Continuum Hypothesis [36] (that is known to be independent of ZFC, if ZFC is consistent), from the main result of this paper it follows that the decreasing diagrams method is complete for proving confluence of ARS of the cardinality of the continuum, and thus this method covers confluence problems on many mathematical structures used in various interdisciplinary fields that involve applied mathematics and/or computer science, e.g. cyber-physical systems [1, 28]. In this case, theoretically, the decreasing diagrams method is sufficient for establishing confluence of an ARS when its elements are:
-
real numbers
-
finite-dimensional real vectors / matrices
-
infinite graphs on a fixed countable set of vertices (because the set of all binary relations on the set of natural numbers has the same cardinality as the set of real numbers )
-
infinite sequences of natural or real numbers indexed by natural numbers
(alternatively, functions or ) -
continuous or piecewise continuous functions
(because the set of all continuous functions has the same cardinality as ) -
other mathematical objects that form a set of the cardinality of the continuum (or less) and model possible structures or possible behaviors of a real-world object of study.
Although the rewriting theory is often used to reason about transformations of syntactical objects like finite terms (in at most countable signature), in the above mentioned cases this does not need to be so: the decreasing diagrams method may be applied to ARS that describe transformations of semantical objects like real numbers or functions . Thus, we expect, the results of this paper can become a part of theoretical foundations for potential applications of concepts and methods of the rewriting theory to analysis of mathematical models at the semantical level in interdisciplinary contexts (when emphasis on syntax is minimized). The latter might be called “model rewriting”. In more detail this can be explained as follows. Mathematical models in applied fields quite often combine non-discreteness, nondeterminism, uncertainty, e.g. in the sense of interval models of uncertainty. Often, important properties of such models can be described in terms of binary relations (e.g. reachability relation on the set of states) that are typically uncountable. Such relations can be viewed as ARS and some forms of model analysis can be performed using methods of the rewriting theory. More ideas on this topic can be found in [16, 18], information on applications of the rewriting theory in different fields can be found in [2, 5].
The rest of the paper is structured as follows. In Section 2 we give an overview of the related work. In Section 3 we clarify the notation and terminology. In Section 4 we give:
-
a non-formalized (natural language) formulation of the main result based on set theory
-
a formulation of a formal, machine-checked version of the main result in Isabelle using HOL logic (theorem thm_main in the file DCRN1.thy in the supplementary material [17]).
In Section 5 we describe the structure of the formal proof from [17] in natural language using set theory. Tables of correspondence between the notation used in the paper and in [17] are given in Appendix A.
To verify correctness of the main result, a reader can use Isabelle 2024 software111Note that Isabelle 2024 is not strict requirement. It is possible that later versions of Isabelle can be used for checking the file [17] that was originally prepared for Isabelle 2024. [14]. Instructions on re-checking formal proofs using Isabelle are given in Appendix B.
Also, an extended and more structured version of the formalization [17] is available as an article [21] in the Archive of Formal Proofs.
Note that previous formalizations [37, 46] of abstract rewriting and decreasing diagrams from the Archive of Formal Proofs are not very useful for proving the main result of this paper, so [17] does not reference them. However, they complement the main result of this paper and can be used together with it. Such a combination is used in [21].
2 Related Work
The works [41, 40, 8, 9, 10], mentioned in Section 1, are directly related to the topic of this paper. In particular, they establish that every ARS with the cofinality property is decreasing Church-Rosser (DCR), or, more precisely, belongs to the class . This implies that every countable confluent or weakly normalizing confluent ARS is DCR.
Additionally, the topic of this paper is related to the study of directed sets: for a nonempty confluent ARS with connected underlying undirected graph, the Church-Rosser property implies that is a directed preordered set. Directed sets were studied in many works, a significant number of which were motivated by applications in topology or domain theory [23, 39, 12]. Various works concerning the structure or classification of (infinite) directed sets or more general pre-/partially ordered sets, e.g. [29, 43, 15, 31, 32, 38, 7], are, in a broad sense, related to the topic of the paper. However, the lack of the assumption about transitivity of a reduction relation is specific to the study of confluence.
3 Preliminaries
A reader can assume that a background theory for understanding the natural language definitions and propositions given below is Von Neumann-Bernays-Gödel (NBG) set theory [30, 11] with the axiom of global choice [11, p. 133] (it allows one to directly reason about proper classes). Formal claims and proofs from Isabelle/HOL formalization [17] referenced in the paper can be transferred to the set-theoretic setting using a process similar to the one described in [25, 27]. The statement of the main result (Theorem 18) does not essentially depend on proper classes, so it and its proof can also be transferred to ZFC set theory.
3.1 General notation and terminology
We will use the following notation:
-
, , , are the logical negation, disjunction, conjunction, and implication respectively
-
is a sequence of elements indexed by non-negative integers
-
is an indexed family indexed by elements of a set .
If is a set, any subset is a (binary) relation on . Any subset is a subrelation of . If are any sets, is a positive integer, and , then:
-
, here is called the field of
-
-
-
-
, i.e. is the transitive closure of
-
, i.e. is the restriction of to .
Remark 1.
We will usually use letters , , or special symbols (e.g. ) for relations. Sometimes we will use the infix notation for membership of a pair in a relation, e.g .
3.2 Ordinals and cardinality
In the paper we will assume that an ordinal [30] is a set such that well-orders and each element of is a subset of .
Remark 2.
In the supplementary material [17] we do not use the above mentioned definition of an ordinal. Instead, we use the HOL formalization [3] of ordinals (and cardinals) using typed well-orders that allows one to model reasoning that involves set-theoretic ordinals. Information on other related approaches to reasoning about ordinals can be found in [33].
If , are ordinals, then denotes and denotes , Also, and denote and respectively.
Remark 3.
For every ordinals , , and every nonempty set of ordinals has a least element with respect to (i.e. an element such that ).
An ordinal is
-
an (ordinal) successor of an ordinal , if is the least ordinal greater than
-
a successor ordinal, if is a successor of some ordinal
-
a limit ordinal, if is neither 0 (empty set), nor a successor ordinal.
For any ordinals and a nonempty set of ordinals :
-
is the (unique) ordinal successor of
-
and denote and respectively
-
is the set of all such that is either 0, or is a successor ordinal
-
is the set of all limit ordinals in
-
is the least element of with respect to .
For any set we will denote:
-
(cardinality of ) is the least ordinal (with respect to ) such that there exists a bijective function .
Remark 5.
We will denote:
-
is the least limit ordinal
-
is the least ordinal such that its cardinality is strictly greater than .
3.3 Decreasing Church-Rosser abstract rewriting systems
Semi-formally, a rewriting system is decreasing Church-Rosser (DCR), if it can be proven confluent using the decreasing diagrams method. Rigorous definitions are given below.
Definition 6.
-
1.
An abstract rewriting system (ARS) is a pair of a set and a relation .
-
2.
An ARS is confluent, if
where , i.e. is the reflexive transitive closure of on .
Definition 7.
A labelled rewriting system (LRS) is a triple , where and are sets and is an indexed family (with the set of indices ) such that for each . Elements of are called labels.
Definitions 11 and 12 given below are based on [41, Definition 2.3.7] (there is an insignificant difference between the definitions given below and in [41], because [41] uses a slightly different terminology and notation explained in Remark 8).
Remark 8.
[41, Definition 2.3.7] refers to [41, Theorem 2.3.5] that applies the term “well-founded partial order” to a relation denoted as , and the well-foundness condition is defined in [41, Definition 1.2.3] for any transitive relation via a variant of ascending chain condition: there is no infinite sequence such that . In other literature relations that satisfy this kind of condition are called converse well-founded or Noetherian. We will not use the terminology concerning well-founded relations from [41] in this paper and instead use Definition 9 below that relies on the descending chain condition (and apply it to a relation denoted as that can be thought of as a strict partial order that corresponds to the inverse of from [41, Definition 2.3.7]).
Definition 9.
A transitive well-founded relation on a set is a binary relation such that and there is no infinite sequence such that for every positive integer .
Remark 10.
A transitive well-founded relation is irreflexive and antisymmetric.
Definition 11.
An LRS is decreasing Church-Rosser (DCR), if there exists a transitive well-founded relation on and subsets and such that and for every , , and such that and there exists elements such that
where
-
for any , denotes the set
-
symbols of the form and , where is an expression, mean:
and .
Definition 12.
An ARS is decreasing Church-Rosser (DCR), if there exists a set and an indexed family (with the set of indices ) such that for each , , and is a decreasing Church-Rosser LRS.
3.4 DCR hierarchy and the class DCR3
For any ordinal denote (the set of all ordinals below ).
Remark 13.
In the sense of the usual set-theoretic definition of ordinals, is the ordinal itself. However, the notation will be used to highlight that is used as a set of labels.
Definition 14 ([19]).
Let be an ordinal.
An ARS belongs to the class , if there exists an indexed family of binary relations on indexed by ordinals
such that for every ordinals and for every the following holds:
if ,
then there exist elements such that
where symbols of the form and , where is an expression, mean:
| (1) |
Remark 15.
For a finite ordinal (that corresponds to a natural number), semi-formally, the class consists of ARS which can be proved confluent with help of the decreasing diagrams method using labels ordered in the usual way ().
Proposition 16.
If is an ordinal and is an ARS in the class , then is decreasing Church-Rosser in the sense of Definition 12.
Proof.
Follows from Definitions 12, 11 by assuming that and that a (transitive well-founded) relation is the restriction of the usual order on ordinals to .
The next proposition makes the definition of the class explicit.
Proposition 17 ([19]).
An ARS belongs to the class if and only if there exist binary relations such that and the following conditions 1–6 hold, where
-
for the symbol denotes the reflexive closure of on
-
for the symbol denotes the reflexive-transitive closure of on
-
the symbol denotes the reflexive-transitive closure of on A:
-
1.
-
2.
-
3.
-
4.
-
5.
-
6.
-
1.
Proof.
Follows directly from Definition 14 by assuming that and using symmetry of the cases , , .
4 Main Result
Let be a nonempty set.
Theorem 18 (Completeness of the decreasing diagrams method with 3 labels for proving confluence of ARS of the least uncountable cardinality).
If is a confluent ARS and , then belongs to the class .
The statement of a formalized version of Theorem 18 (called thm_main) in the formal language of Isabelle/HOL [34] can be found in the supplementary material [17, lines 11760-11790]. It has the following form:
Main parts of the statement of thm_main can be understood as follows:
-
fixes r::"(’U’U) set"
– means that is a binary relation on elements of an arbitrary (nonempty) type
-
assumes " a b c . (a,b) rˆ* (a,c) rˆ* ( d. (b,d) rˆ* (c,d) rˆ*)"
– means that is assumed to be a confluent ARS (here and below ˆ* denotes the reflexive transitive closure of on , and ˆ= denotes the reflexive closure of )
-
and "|r| o cardSuc |{n::nat . True}|"
– means that the cardinality of does not exceed the cardinal successor of the cardinality of the set of natural numbers, or, equivalently, . A rigorous description of the notations |.| (cardinality), cardSuc (cardinal successor), and <=o (left well-order can be embedded into the right one) defined in the theory HOL-Cardinals included in Isabelle software can be found in [3, subsections 3.2 and 4.4].
-
shows " r0 r1 r2 . (
( r = (r0 r1 r2) )
– means a conclusion that can be represented as a union of 3 relations , , that satisfy the conditions 1–6 of Proposition 17, where is replaced with for .
Equivalently, by Proposition 17, is an ARS in the class .
To simplify interpretation of the assumptions of thm_main by readers not familiar with the formalization [3] of cardinality in Isabelle/HOL, in [17, lines 11746–11752] we provide a formal proof of the equivalence between the 2nd assumption of thm_main:
"|r| o cardSuc |{n::nat . True}|"
and the following formula that does not reference any notions and notations defined in [3]:
s r. ( ( t s . (( t′ f. t′ t t ft′) ( f. s ft )) )
( g . r gs ) ) .
Here range over binary relations, , range over functions, the notation means the image of a set under a function . This formula can be interpreted as follows: every subrelation of is either at most countable (the left argument of the disjunction ), or is not smaller than in cardinality (the right argument of ), where
-
“ is at most countable” is expressed as follows: for every , if has a proper subset that is not smaller than in cardinality ( is a subset of the image of under some function), then is not smaller than is cardinality ( is a subset of the image of )
-
“ is not smaller than in cardinality“ is expressed as follows: is a subset of the image of under some function .
Note that in the general case, the conclusion “ belongs to the class ” in the statement of Theorem 18 cannot be strengthened to “ belongs to the class ”. This follows from the next theorem that extends the results of [19]:
Theorem 19 (Optimality of the index 3 of a DCR class in the conclusion of Theorem 18).
If (i.e. is uncountable), then there exists such that is a confluent ARS, , and does not belong to the class .
Proof.
5 Structure of the Formal Proof of the Main Result
The formal proof of Theorem 18 uses slightly more than 80 formal definitions and 260 formal lemmas located in one file in [17] (DCRN1.thy, file length is over 11000 lines). This file depends only on standard theories included in Isabelle software (Main and HOL-Cardinals).
In subsection 5.1 we describe in a semi-formal way a high-level idea of the proof. In subsequent subsections we describe the way in which the most important definitions and lemmas are formulated in [17] (correspondence between the notation used in the paper and in [17] is described in Appendix A). Auxiliary technical lemmas used in the formal proof of the main result are not described in the paper, but are given in [17].
An approximate correspondence between the content of subsection 5.1 and the rest of Section 5 is illustrated in Figure 2.
5.1 General idea of the proof of Theorem 18
Consider a confluent ARS with as a directed graph.
Consider a connected component of .
- Case A.
- Case B.
-
If does not have the cofinality property, then perform the following steps.
- Step B1.
-
Extract a subgraph from such that
-
has a shape illustrated in Figure 1
-
nodes of form a cofinal subset in (the preordered set induced by) .
-
- Step B2.
-
Show that (viewed as an ARS) belongs to . In Figure 1:
-
label red arcs (that start at nodes with unique successor) with 0
-
label green arcs (that start at nodes with non-unique successor) with 1.
-
- Step B3.
-
Use the cofinality of in to conclude that belongs to .
Then belongs to , because all its connected components belong to .
In more detail, the main step “B1” will involve the following sub-steps.
- Sub-step B1a.
-
Extraction of a preliminary cofinal subgraph generally analogous to the one shown in Figure 1, but where red arcs may not form trees and there may be extra green arcs. It will be described using the relation in the proof of Lemma 29. This sub-step will be performed using an analog of Iwamura’s lemma for connected Church-Rosser (CCR) relations that will be described in subsection 5.4. The latter allows one to represent a CCR ARS as a union of a (well-ordered) chain of CCR ARS of smaller cardinality (so, e.g., a CCR ARS of the cardinality can be represented as a union of a chain of at most countable CCR ARS that have the cofinality property).
- Sub-step B1b.
-
Refinement of a subgraph mentioned above to a connected cofinal subgraph that belongs to . This sub-step will be described in the proof of Lemma 27.
5.2 Formalization of finite levels of the DCR hierarchy
In this subsection we describe the way in which finite levels of the DCR hierarchy, i.e. classes for ordinals , are formalized in [17].
For any relation we will denote as and the reflexive, and, respectively, reflexive transitive closure of on the set .
For any function and any ordinals let us denote:
-
-
-
is the set of all tuples such that
Definition 20.
A function is called DCR-generating, if
for every and every the following implication holds:
if , then there exist such that
Let us denote:
-
, where , is the set of all relations such that there exists a DCR-generating function such that .
Remark 21.
It is straightforward to check that for every , a relation belongs to if and only if the ARS belongs to the class .
Definition 22.
A binary relation is called
-
1.
connected Church-Rosser (CCR), if
-
2.
cone-like, if .
We will denote:
-
is the set of all CCR relations
-
is the set of all cone-like relations .
For any let us denote:
-
.
We will call any element of a CCR residue of .
Note that a CCR residue of is a CCR subrelation such that the field of is a cofinal subset in the preordered set .
The next lemma will be used to implement the step “B3” from subsection 5.1 (it can be considered as a restricted version of a theorem about DCR hierarchy presented in [20]).
Lemma 23 (DCR property inference using CCR residue argument).
If , , , and , then .
Proof.
A formal proof is available in [17, lines 7275–7598]. The proof involves extraction of an auxiliary spanning subrelation of entitled r1 [17, line 7458, 7590], labeling r1 to show that as described in [17, lines 7450–7453, 7588, 7591], and extension of a labeling of r1 to a labeling of that ensures that [17, line 7597].
5.3 CCR relation subfield extension lemma
For any , , and let us denote:
-
, i.e. is the image of under
-
, i.e. is the set of successors of w.r.t.
-
, i.e. is the downward closure of in
-
, elements of are called invariant sets of
-
,
elements of are called spanning subrelations of -
, elements of are called subfields of
(note that is a subfield of if and only if is the field of some subrelation ) -
,
i.e. is the set of all cofinal sets in the preordered set -
, here is called the sequential cofinality of .
For any set denote as the set of all subsets of .
Let us fix a (choice) function such that for every nonempty set .
For any , , and let us denote:
-
is the set of all (finite) subsets such that there exists a non-negative integer and a finite sequence of elements of such that , , , and for all
-
-
-
-
-
-
.
Lemma 24.
Let , , , , and .
Then there exists a set that satisfies of the following 9 conditions:
-
1.
-
2.
-
3.
-
4.
-
5.
-
6.
-
7.
-
8.
-
9.
.
Proof.
A formal proof is available in [17, lines 4498–4538]. It depends on several auxiliary formal lemmas that have close formulations, but provide weaker/different guarantees (lem_Ccext_finsubccr_pext5_scf3 and lem_Ccext_infsubccr_pext5_scf3 in [17] and their dependencies). The idea of the proof of the current lemma and its dependencies is related to Löwenheim-Skolem theorem.
When is infinite, the proof aims to define a required set as
| (2) |
for some suitable increasing set function and set functions , , where denotes the -times composition of with itself, such that , , ensure closure properties of required by the lemma’s conditions (e.g. ), but keep the cardinalities of sets defined by subexpressions of (2) bounded, so that the condition 7, i.e. , holds. An explicit expression for can be obtained by unfolding the notation on the right hand side of the definition in [17, line 3972], taking into account substitutions of values in place of parameters of the auxiliary lemma lem_Ccext_infsubccr_set_ext_scf3 specified in [17, line 4280]. Similarly, can be expressed by unfolding the notation used in [17, lines 3964–3966], and as one can take the identity function.
If is a finite set, the proof is based on induction on the size of an auxiliary finite relation associated with . Details can be found in [17, lines 4372–4496, 3332–3414, 2485–2680].
5.4 Analog of Iwamura’s lemma on directed sets for CCR relations
In this subsection we describe a lemma that allows one to represent an infinite CCR relation as a union of a chain of CCR relations of cardinalities smaller than the cardinality of in a way reminiscent to Iwamura’s lemma on directed sets [29, Theorem 1]. Unlike Iwamura’s lemma, our lemma is applicable to a not-necessarily-transitive CCR relation and guarantees that fields of elements of the resulting chain satisfy additional constraints described below using the sets that are used in the proof of the main result.
Let be the set of all ordinals of the cardinality at most .
For any and ordinal let us denote:
-
-
-
-
.
For any , , and ordinal let us denote:
-
-
-
-
-
-
-
-
-
-
-
-
.
For every and let us denote:
| (3) |
Note that , because .
Lemma 25 (Analog of Iwamura’s lemma).
If and , then .
Proof.
A formal proof is available in [17, lines 9533–9616]. The idea of the proof is to use Lemma 24 to define recursively a transfinite sequence of subsets of that gives values , for some .
Remark 26.
If for an infinite CCR relation , then the relations , are smaller than in cardinality and form a chain of CCR relations, the union of which is (one can check this by unfolding the notations for and and noting that if is infinite, then is a limit ordinal).
5.5 Generation of a CCR residue in the class DCR2
Let us denote:
-
is the set of all nonempty relations such that is single-valued (i.e. ), acyclic (i.e. is irreflexive), and total on its field (i.e. ).
Lemma 27.
Let be a relation that is reflexive on . Let be a set of ordinals and , be indexed families of subsets of such that
-
1.
, , and
-
2.
and
-
3.
-
4.
.
Then there exists such that .
Proof.
A formal proof is available in [17, lines 4935–5746] (note that in the formulation of the lemma in [17] the assumptions are not numbered as above and the notation in the conclusion is unfolded).
The idea of the proof is to define a relation (a subrelation of ) such that, semi-formally, the graph has a shape similar to the one illustrated in Figure 1, and show that . The trees illustrated in Figure 1 are extracted from (at most countable) graphs for ordinals .
In more detail this construction is described below (the relations correspond to sets of arcs of the trees extracted from , the relation corresponds to the set of arcs that connect trees, and is the union of and for all ).
For every let us denote:
-
,
the elements of are called exit points from the ARS -
is a function such that for every and , there exists and such that , , and , , , and
-
is some infinite cofinal reduction sequence in the (countable, CCR) ARS
-
-
-
and is some pair of consecutive elements in the sequence such that is located at some index in and
-
is some element of such that
-
is the length of a shortest reduction sequence in the ARS that starts at the element and ends at the element
-
for is some reduction sequence that starts at the element , ends at the element , and has the length
-
-
-
-
is a function such that for every :
Then it is shown that is DCR-generating [17, lines 5659–5720] and . Then , because .
5.6 Completion of the proof of the main theorem
Below we give an important lemma (Lemma 28) that can be used to describe a structure of a confluent relation when is a regular cardinal. We will use it together with several other lemmas to complete the proof of Theorem 18.
Lemma 28.
Let be a relation such that reflexive on .
Assume that is a regular cardinal [3] such that .
Then there exists a set and a function such that for every successor ordinal such that the following conditions 1–3 hold:
-
1.
-
2.
-
3.
for every there exists (denoted in [17] as “wesc r f a“) such that , , and for every successor ordinal such that .
Proof.
A formal proof is available in [17, lines 10415–10460].
The idea of the proof is to define , where
then obtain using Lemma 25, and show that satisfies the conditions 1–3.
Lemma 29.
Let be a relation that is reflexive on .
Assume that and . Then .
Proof.
A formal proof is available in [17, lines 10733–11021].
The proof proceeds as follows. Let and be a set and a function obtained from Lemma 28 applied to . Let us denote:
-
is the set of all successor ordinals in
-
is an indexed family of subsets of such that for
-
is an indexed family of relations on such that
-
.
Lemma 30.
If and , then .
Proof.
A formal proof is available in [17, lines 10687–10731]. The idea of the proof is similar to the idea of [9, Theorem 19].
Lemma 31.
If and , then .
Proof.
A formal proof is available in [17, lines 11023–11072].
The proof proceeds as follows. Consider two cases.
-
1.
If , then by Lemma 30, whence .
- 2.
Lemma 32.
If is a confluent relation and , then .
Proof.
A formal proof is available in [17, lines 11634–11652].
The idea of the proof is as follows. Consider as a directed graph. For each connected component of , the relation satisfies the assumptions of Lemma 31, so . This is used to conclude that .
Proof of Theorem 18 (i.e. if is confluent and , then is in ).
6 Conclusion
We have shown that every confluent ARS such that the cardinality of the reduction relation does not exceed the first uncountable cardinal belongs to the class , i.e. confluence of can be proved with the help of the decreasing diagrams method using labels 0, 1, 2 ordered in such a way that .
Under the Continuum Hypothesis this result implies that, theoretically, the decreasing diagrams method is sufficient for establishing confluence of ARS on many structures of interest to applied mathematics and various interdisciplinary fields.
Investigation of potential applications of this and other methods of the rewriting theory in interdisciplinary contexts is a subject of further research.
References
- [1] Radhakisan Baheti and Helen Gill. Cyber-physical systems. The impact of control technology, 12(1):161–166, 2011.
- [2] Nicolas Behr and Jean Krivine. Rewriting theory for the life sciences. In International Conference on Graph Transformation, pages 185–202, 2020.
- [3] Jasmin Christian Blanchette, Andrei Popescu, and Dmitriy Traytel. Cardinals in Isabelle/HOL. In Lecture Notes in Computer Science, volume 8558, pages 111–127, 2014. doi:10.1007/978-3-319-08970-6_8.
- [4] Mirna Bognar. A point version of decreasing diagrams. In Proceedings Accolade 1996. Dutch Graduate School in Logic, pages 1–14, 1997.
- [5] F. Bonchi, F. Gadducci, A. Kissinger, P. Sobociński, and F. Zanasi. String diagram rewrite theory I: Rewriting with Frobenius structure. Journal of the ACM, 69(2):14:1–14:58, 2022. doi:10.1145/3502719.
- [6] N.G. de Bruijn. A note on weak diamond properties. Memorandum 78–08, Eindhoven Uninversity of Technology, 1978.
- [7] R. Diestel and O. Pikhurko. On the cofinality of infinite partially ordered sets: Factoring a poset into lean essential subsets. Order, 20:53–66, 2003. doi:10.1023/A:1024449306316.
- [8] Jörg Endrullis and Jan Willem Klop. De Bruijn’s weak diamond property revisited. Indagationes Mathematicae, 24:1050–1072, 2013.
- [9] Jörg Endrullis, Jan Willem Klop, and Roy Overbeek. Decreasing diagrams with two labels are complete for confluence of countable systems. In 3rd International Conference on Formal Structures for Computation and Deduction (FSCD 2018), pages 14:1–14:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018. doi:10.4230/LIPICS.FSCD.2018.14.
- [10] Jörg Endrullis, Jan Willem Klop, and Roy Overbeek. Decreasing diagrams for confluence and commutation. Logical Methods in Computer Science, 16:23:1–23:25, 2020. doi:10.23638/LMCS-16(1:23)2020.
- [11] A.A. Fraenkel, Y. Bar-Hillel, and A. Levy. Foundations of Set Theory. Elsevier, 1973.
- [12] Jean Goubault-Larrecq. Non-Hausdorff topology and domain theory: Selected topics in point-set topology. Cambridge University Press, 2013.
- [13] N. Hirokawa, A. Middeldorp, C. Sternagel, and S. Winkler. Abstract completion, formalized. Logical Methods in Computer Science, 15(3):19:1–19:42, 2019. doi:10.23638/LMCS-15(3:19)2019.
- [14] Isabelle proof assistant. http://isabelle.in.tum.de. [Online].
- [15] J.R. Isbell. The category of cofinal types. II. Trans. Amer. Math. Soc., 116:394–416, 1965.
- [16] Ievgen Ivanov. Generalized Newman’s lemma for discrete and continuous systems. In Leibniz International Proceedings in Informatics, volume 260, pages 9:1–9:17, 2023. doi:10.4230/LIPICS.FSCD.2023.9.
- [17] Ievgen Ivanov. Formal proof of completeness of the decreasing diagrams method for proving confluence of relations of the least uncountable cardinality (supplementary material for this paper). https://doi.org/10.5281/zenodo.14254256, 2024. [Online].
- [18] Ievgen Ivanov. On Newman’s lemma and non-termination. In CEUR-WS.org, volume 3624, pages 14–24, 2024. URL: https://ceur-ws.org/Vol-3624/Paper_2.pdf.
- [19] Ievgen Ivanov. On non-triviality of the hierarchy of decreasing Church-Rosser abstract rewriting systems. In Proceedings of the 13th International Workshop on Confluence, pages 30–35, 2024.
- [20] Ievgen Ivanov. On the cofinality property in the context of the hierarchy of decreasing Church-Rosser abstract rewriting systems. In Information Technology and Implementation, November 20–21, 2024, Kyiv, Ukraine, 2024.
-
[21]
Ievgen Ivanov.
Completeness of decreasing diagrams for the least uncountable
cardinality.
Archive of Formal Proofs, April 2025.
https://isa-afp.org/entries/Completeness_Decreasing_Diagrams_for_N1.html, Formal proof development. - [22] Ievgen Ivanov. Formalization of a confluent abstract rewriting system of the least uncountable cardinality outside of the class DCR2. https://doi.org/10.5281/zenodo.14740062, 2025. [Online].
- [23] John L. Kelley. General topology. Van Nostrand, 1955.
- [24] Jan Willem Klop. Combinatory Reduction Systems. PhD thesis, Rijks-universiteit Utrecht, 1980.
- [25] Alexander Krauss and Andreas Schropp. A mechanized translation from Higher-Order Logic to set theory. In Lecture Notes in Computer Science, volume 6172, pages 323–338. Springer, 2010. doi:10.1007/978-3-642-14052-5_23.
- [26] Ondřej Kunčar and Andrei Popescu. Comprehending Isabelle/HOL’s consistency. In Lecture Notes in Computer Science, volume 10201, pages 724–749. Springer, 2017. doi:10.1007/978-3-662-54434-1_27.
- [27] Ondřej Kunčar and Andrei Popescu. A consistent foundation for Isabelle/HOL. Journal of Automated Reasoning, 62:531–555, 2019. doi:10.1007/S10817-018-9454-8.
- [28] Edward A. Lee. Fundamental limits of cyber-physical systems modeling. ACM Transactions on Cyber-Physical Systems, 1(1):1–26, 2016. doi:10.1145/2912149.
- [29] George Markowsky. Chain-complete posets and directed sets with applications. Algebra universalis, 6(1):53–68, 1976.
- [30] Elliott Mendelson. Introduction to Mathematical Logic. CRC Press, 2015.
- [31] Eric C. Milner and Maurice Pouzet. On the cofinality of partially ordered sets. Ordered sets, pages 279–298, 1982.
- [32] Eric C. Milner and Karel Prikry. The cofinality of a partially ordered set. Proc. London Math. Soc., 46:454–470, 1983.
- [33] Chuangjie Xu Nicolai Kraus, Fredrik Nordvall Forsberg. Type-theoretic approaches to ordinals. Theoretical computer science, 957, 2023. doi:10.1016/J.TCS.2023.113843.
- [34] Tobias Nipkow, Markus Wenzel, and Lawrence C Paulson. Isabelle/HOL: a proof assistant for higher-order logic. Springer, 2002. doi:10.1007/3-540-45949-9.
- [35] Andrew Pitts. The HOL logic. In Introduction to HOL: A Theorem Proving Environment for Higher Order Logic, pages 191–232. Cambridge University Press, 1993.
- [36] Raymond Smullyan. Set theory and the continuum problem. Clarendon Press, 1996.
- [37] Christian Sternagel and Rene Thiemann. Abstract rewriting. Archive of Formal Proofs, June 2010.
- [38] Stevo Todorcevic. Directed sets and cofinal types. Trans. Amer. Math. Soc., 290:711–723, 1985.
- [39] John W. Tukey. Convergence and uniformity in topology. Princeton University Press, 1940.
- [40] Vincent Van Oostrom. Confluence by decreasing diagrams. Theoretical computer science, 126(2):259–280, 1994. doi:10.1016/0304-3975(92)00023-K.
- [41] Vincent Van Oostrom. Confluence for Abstract and Higher-Order Rewriting. PhD thesis, Vrije Universiteit Amsterdam, 1994.
- [42] Vincent Van Oostrom. Confluence by decreasing diagrams – converted. In Lecture Notes in Computer Science, volume 5117, pages 306–320, 2008.
- [43] Shang-Zhi Wang and Bo Yu Li. On the minimal cofinal subsets of a directed quasi-ordered set. Discrete Mathematics, 48:289–306, 1984. doi:10.1016/0012-365X(84)90189-4.
- [44] Freek Wiedijk. The seventeen provers of the world: Foreword by Dana S. Scott, volume 3600. Springer, 2006. doi:10.1007/11542384.
- [45] Harald Zankl. Confluence by decreasing diagrams – formalized. In 24th International Conference on Rewriting Techniques and Applications, pages 352–367. Leibniz International Proceedings in Informatics, 2013. doi:10.4230/LIPICS.RTA.2013.352.
- [46] Harald Zankl. Decreasing diagrams. Archive of Formal Proofs, 2013.
Appendix A Correspondence Between the Notions/Notation Used in the Paper and in the Supplementary Material
Below we give tables of correspondence between the formal notions used in the supplementary material [17] (Isabelle/HOL formalization) and their intended interpretations in terms of the notions based on set theory used in natural language text in this paper.
Syntax of the formal language that is used to express Isabelle/HOL theories is described in the documentation included in Isabelle software [14]. Information on semantic aspects of Isabelle language can be found in [35, 27, 26, 25].
A.1 General notation
| Notation in [17] | Notation in the paper |
|---|---|
| , , , | , , , |
| , , | , , |
| , , , | , , , |
| {} | |
| f::’A’B | |
| f x | |
| {x. P x} | |
| nat | |
| UNIV::’U | () |
| x::’U | |
| A::’U set | () |
| r::’U rel | () |
| Field r | |
| Restr r B | |
| r-1, r∧∧n, r∧+, r∧=, r∧∗ | , , , , |
| A =o B | |
| A <o B | |
| A <=o B | |
| ord |
A.2 Notation related to subsection 5.2
A.3 Notation related to subsection 5.3 (part 1)
A.4 Notation related to subsection 5.3 (part 2)
A.5 Notation related to subsection 5.4
Appendix B Instructions on Re-checking Formal Proofs
-
1.
Install Isabelle 2024 software using the instructions at:
-
2.
Launch the installed Isabelle 2024 software.
-
3.
Obtain the file DCRN1.thy from
-
4.
Choose File Open from the main menu in Isabelle window and select DCRN1.thy.
-
5.
Scroll to the end of the loaded text in Isabelle and wait until all red marks on the right scroll bar disappear (this may take several minutes).
-
6.
At this point formal proofs have been checked.
-
7.
The main result (called thm_main) is located at the line 11760.